grepai-embeddings-openai

grepai-embeddings-openai is a skill for Claude Code from yoanbernabeu/grepai-skills. It costs 28 tokens per session (2,152 once invoked), scanned A, original, MIT.

A GrepAI configuration guide for using OpenAI to turn code into searchable numerical representations called embeddings. GrepAI uses these representations to find related code.

In plain words
What is it for?
Use it to configure OpenAI embeddings for GrepAI, including an API key and optional parallel requests.
Why use it?
It avoids running an embedding service locally, but requires sending code to OpenAI and paying for API use.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: positional $N argument.

Part of the grepai-embeddings plugin — 3 skills shipped together , and of grepai-complete

Good fit Use it to configure OpenAI embeddings for GrepAI, including an API key and optional parallel requests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yoanbernabeu/grepai-skills/grepai-embeddings-openai
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add yoanbernabeu/grepai-skills --skill grepai-embeddings-openai
Clone the repo
git clone --depth 1 https://github.com/yoanbernabeu/grepai-skills

Made for: Claude Code.

Or install grepai-embeddings, the plugin that ships this one along with the rest of its 3 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for grepai-embeddings-openai

README.md
[![agentmods](https://agentmods.dev/badge/skills/yoanbernabeu/grepai-skills/grepai-embeddings-openai/github.svg)](https://agentmods.dev/skills/yoanbernabeu/grepai-skills/grepai-embeddings-openai)
Your own site
<a href="https://agentmods.dev/skills/yoanbernabeu/grepai-skills/grepai-embeddings-openai"><img src="https://agentmods.dev/badge/skills/yoanbernabeu/grepai-skills/grepai-embeddings-openai/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for grepai-embeddings-openai

Your own site · 80×15
<a href="https://agentmods.dev/skills/yoanbernabeu/grepai-skills/grepai-embeddings-openai"><img src="https://agentmods.dev/badge/skills/yoanbernabeu/grepai-skills/grepai-embeddings-openai.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,152 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 30 Oct 2026
  • Snyk pass 30 Oct 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00028 $0.02152
Opus 5.5 $0.00011 $0.00861
Sonnet 5.5 $0.00006 $0.00430
Haiku 4.5 $0.00003 $0.00215

Measured 6d ago against content hash 22271c167bcb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

grepai-embeddings-openai scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/embeddings/grepai-embeddings-openai/SKILL.md · 311 lines

How it starts

The opening of the file, as written. The whole thing — 311 lines — stays where its author put it; the contents beside it link to each section on GitHub.

GrepAI Embeddings with OpenAI

This skill covers using OpenAI's embedding API with GrepAI for high-quality, cloud-based embeddings.

When to Use This Skill

  • Need highest quality embeddings
  • Team environment with shared infrastructure
  • Don't want to manage local embedding server
  • Willing to trade privacy for quality/convenience

Considerations

Aspect Details
✅ Quality State-of-the-art embeddings
✅ Speed Fast, no local compute needed
✅ Scalability Handles any codebase size
⚠️ Privacy Code sent to OpenAI servers
⚠️ Cost Pay per token
⚠️ Internet Requires connection

Prerequisites

  1. OpenAI API key
  2. Billing enabled on OpenAI account

Get your API key at: https://platform.openai.com/api-keys

Configuration

Basic Configuration

# .grepai/config.yaml
embedder:
  provider: openai
  model: text-embedding-3-small

Set the environment variable:

export OPENAI_API_KEY="sk-..."

With no api_key and no endpoint, grepai uses the official endpoint (https://api.openai.com/v1) and reads OPENAI_API_KEY from the environment.

Note: grepai does not expand variables in config.yaml. api_key: ${OPENAI_API_KEY} is sent as the literal string ${OPENAI_API_KEY}; leave api_key out to use the environment variable.

With Parallel Processing

embedder:
  provider: openai
  model: text-embedding-3-small
  parallelism: 8  # Concurrent requests for speed

Direct API Key (Not Recommended)

embedder:
  provider: openai
  model: text-embedding-3-small
  api_key: sk-your-api-key-here  # Avoid committing secrets!

Warning: Never commit API keys to version control.

Available Models

text-embedding-3-small (Recommended)

Property Value
Dimensions 1536
Price $0.00002 / 1K tokens
Quality Very high
Speed Fast

Best for: Most use cases, good balance of cost/quality.

Read the full file on GitHub · 311 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago Changed · +12 lines 22271c167bcb
  2. 2mo ago First seen · 299 lines · 28 tokens per session scan A 4967e1054851

Subscribe to this mod's changes

grepai-embeddings-openai is a skill published in the GitHub repository yoanbernabeu/grepai-skills (20 stars, last pushed 7d ago), licensed MIT. It adds 28 tokens to every session and 2,152 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

grepai-embeddings-openai compared with skills from other repositories

grepai-embeddings-openai next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
grepai-embeddings-openaiyoanbernabeu/grepai-skillsSkill207d agoMITA28Claude Code
gnogmickel/gnoSkill1174d agoMITA86Claude Code
qdrant-model-migrationqdrant/skillsSkill267yesterdayApache-2.0A88Claude Code
qdrant-multitenancyqdrant/skillsSkill267yesterdayApache-2.0A109Claude Code
qdrant-search-speed-optimizationqdrant/skillsSkill267yesterdayApache-2.0A78Claude Code
qdrant-migration-toolqdrant/skillsSkill267yesterdayApache-2.0A156Claude Code
qdrant-hybrid-cloud-setupqdrant/skillsSkill267yesterdayApache-2.0A156Claude Code