Semantic Search
Ask in plain English. grepai understands code meaning, not just text patterns.
Give your AI coding agents semantic code search. Find relevant code instantly, save tokens, ship faster.
Semantic Search
Ask in plain English. grepai understands code meaning, not just text patterns.
Call Graph Tracing
Find callers and callees of any function. Build dependency graphs. Supports Go, JS/TS, Python, PHP, C#, Java, C/C++, Rust, Zig.
100% Local
Runs entirely on your machine with Ollama. Your code never leaves your laptop.
AI Agent Ready
First-class integration with Cursor, Windsurf, Claude Code, Gemini CLI, and more.
MCP Server
Run as a native MCP server. AI agents discover grepai as a first-class tool automatically.
Real-time Indexing
File watcher keeps your index up-to-date as you code. No manual re-indexing needed.
Install grepai
curl -sSL https://raw.githubusercontent.com/yoanbernabeu/grepai/main/install.sh | shInitialize your project
grepai initStart indexing & watching
grepai watchSearch with natural language
grepai search "user authentication flow"Trace function calls
grepai trace callers "Login" # Who calls this?grepai trace callees "Handler" # What does it call?embedder: provider: ollama model: nomic-embed-textRecommended Privacy-first, runs 100% offline.
embedder: provider: openai model: text-embedding-3-smallFaster indexing, requires API key.
GOB — Local File
Zero setup, single portable file. Perfect for small & medium codebases.
store: backend: gobPostgreSQL — pgvector
Shared index, native vector similarity. Scales to large codebases.
store: backend: postgresSearch Boost
Automatically penalizes test files, mocks, and docs. Boosts source directories.
search: boost: enabled: trueHybrid Search
Combines vector similarity with text matching (RRF). Better for exact identifiers.
search: hybrid: enabled: true