CodeRAG review
A self-hosted, open-source search library for semantic code retrieval.
Reviewed by iTechGuides Editors · Editorial team · Updated Oct 2026
CodeRAG is an open-source code-search library for developers and AI coding assistants. It indexes a codebase at semantic boundaries such as functions and classes, then retrieves those chunks through keyword and semantic methods. The project supports API and self-hosted deployment, making it suitable for individuals, small teams, and larger organizations that want local control over code indexing and retrieval.
Its strongest capability is the combination of AST-aware chunking and hybrid search. Chunks are formed around meaningful code structures rather than arbitrary text segments, while search can combine keyword matching with semantic retrieval. Optional embeddings use a configurable provider, including OpenAI embeddings, and the default TF-IDF path can search without an embedding API. Persistent and in-memory storage options support different operational needs, while incremental indexing and file-change watching help keep a codebase current. Filters for extensions, paths, and excluded paths narrow results, and returned line-range metadata helps downstream tools locate relevant code.
CodeRAG fits teams comfortable running self-hosted software and integrating an API into their own workflow. MCP clients are supported, and the project documents an MCP server and CLI published under the Locus name. The documented @sylphx/coderag API is identified as legacy, so teams should account for that distinction when selecting an integration path. Documentation is the listed support channel, and the integration surface is narrower than products with broad hosted ecosystems. Choose CodeRAG when embedding-based retrieval, local deployment, and configurable indexing matter most; consider an alternative if you need a managed service or a wider range of native integrations.
CodeRAG pros and cons
- Where it wins
- AST chunking preserves function and class boundaries
- Hybrid keyword and semantic search with optional embeddings
- Incremental indexing, filters, and line-range metadata
- Where it doesn't
- Self-hosted deployment requires managing your own environment
- Integration options center on OpenAI embeddings and MCP clients
- The @sylphx/coderag API documentation is marked legacy
CodeRAG fact sheet, pricing and score →
Advertiser disclosure: iTechGuides is reader-supported. Vendors can pay for top positions in our rankings and for a place on other products' pages, and we may earn a commission when you click some links. Bought places stand at the number bought; this page and our disclosure say so. Paying vendors may get a fuller, more detailed review from our editors, and that review can change their score. How we rank.
Last updated · How we research and update