
Grepai Embeddings Openai
Configures OpenAI's embedding API as your GrepAI provider when you want high-quality semantic search without running local models. You get text-embedding-3-small (recommended, $0.00002/1K tokens) or text-embedding-3-large for maximum accuracy at higher cost. The tradeoff is straightforward: your code gets sent to OpenAI servers, so this isn't for sensitive codebases. Setup is just adding your API key to the config and setting parallelism based on your rate limit tier. Good for teams that want consistent embeddings without maintaining infrastructure, and the cost is genuinely low for most codebases (around $0.10 to index 1000 files). If privacy matters more than convenience, stick with Ollama instead.
- skills.sh installs
- 560
- GitHub stars
- 20
- last updated
- Aug 21, 2026
Install
$ npx -y skills add yoanbernabeu/grepai-skills --skill grepai-embeddings-openai --agent claude-codeInstalls into .claude/skills of the current project.
Files
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
- OpenAI API key
- 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.
Sponsors
Details
- Repository
- github.com/yoanbernabeu/grepai-skills
- Categories
- Code Review & Quality, AI & Agent Building, Cloud & Infrastructure
- First seen
- Jun 3, 2026
More from yoanbernabeu/grepai-skills
All 27- Grepai Storage Postgres560
- Grepai Search Basics936
- Grepai Search Advanced855
- Grepai Trace Graph831
- Grepai Trace Callers812
- Grepai Ollama Setup808
- Grepai Search Tips807
- Grepai Trace Callees790
- Grepai Search Boosting778
- Grepai Embeddings Ollama770
- Grepai Mcp Tools744
- Grepai Languages732
- Grepai Chunking729
- Grepai Init724
- Grepai Watch Daemon723
- Grepai Config Reference717
- Grepai Troubleshooting717
- Grepai Workspaces711
- Grepai Ignore Patterns703
- Grepai Storage Gob692
- Grepai Mcp Claude618
- Grepai Mcp Cursor601
- Grepai Quickstart600
- Grepai Installation598