Description
grepai is a command-line tool for semantic code search, described as grep for the AI era. Instead of matching exact text, it builds vector embeddings of your code so you can search by meaning. Asking for authentication logic can find a function named handleUserSession. The README says it is privacy-first and runs 100% locally, and it supports Ollama (the default), LM Studio or OpenAI as the embedding provider, so OpenAI would send your code to that service. A file watcher keeps the index fresh. It can also trace call graphs, so you can see who calls a function before you change it. The README says it reduces the input tokens an AI agent uses by returning relevant context instead of raw search results. It runs as an MCP server, so agents such as Claude Code, Cursor and Windsurf can call it as a tool. Installation options are Homebrew on macOS, a shell script on Linux and macOS, and PowerShell on Windows. Shell completion is provided for Zsh, Oh-My-Zsh, Bash, Fish and PowerShell. The source is on GitHub.…
Highlights
- Semantic code search by meaning, not just text
- Call graph tracing before you change a function
- File watcher keeps the index up to date
- MCP server for Claude Code, Cursor and Windsurf
Ratings & Reviews
No ratings yet
Be the first to rate Grepai.
People also visit
Grepai FAQ
What is grepai?
A command-line tool for semantic code search that uses vector embeddings to find code by meaning.
Does my code leave my machine?
The README says it runs 100% locally. It supports Ollama (the default), LM Studio or OpenAI as the embedding provider, and OpenAI would receive your code.
How do I install it?
Use Homebrew on macOS, a shell script on Linux and macOS, or PowerShell on Windows. It needs an embedding provider such as Ollama.
Can AI agents use it?
Yes. It works with agents such as Claude Code, Cursor and Windsurf, and runs as an MCP server they can call as a tool.
What are the best Grepai alternatives?
Popular alternatives to Grepai include SeaGOAT, CK and Probe. See all Grepai alternatives








