CodeRAG
CodeRAG: A self-hosted, open-source search library for semantic code retrieval. Ranked #32 of 42 in Code Search Tools by our editors (5.4/10); pricing: Free plan; best for embedding-based code chunk retrieval.
At a glance
- Editor score5.4 / 10
- PricingFree plan
- Best forEmbedding-based code chunk retrieval
- Free planYes
- Paid fromFree
- DeploymentSelf_hosted
- Facts checked24 Sep 2026

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
Our verdict on CodeRAG
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.
Your product? Our editors can test CodeRAG in depth and publish a review, labelled as paid · from $149/mo →
CodeRAG pricing
CodeRAG fact sheet
| Free plan | Yes |
|---|---|
| Paid from | Free |
| Indexing scope | Codebase |
| Deployment | Self_hosted |
| Supported languages | Not verified |
| Regex search | Not verified |
| Code navigation | Yes |
| IDE extensions | Not verified |
| Deployment | Self-hosted |
| Support | Docs |
| Built for | Solo, Small business, Mid-market, Enterprise (editorial estimate) |
| Integrations | 2 integrations: OpenAI embeddings, MCP clients |
| Pricing | Free plan |
| Website | github.com |
| Facts checked | 24 Sep 2026 |
CodeRAG integrations
CodeRAG lists 2 integrations on its own site.
- OpenAI embeddings
- MCP clients
Alternatives to CodeRAG
- Android Code SearchA free, focused browser for searching and navigating AOSP source.9.3
- LXR Cross ReferencerA focused open-source browser for navigating indexed code across versions and repositories.9.2
- GNU GLOBALA focused, open-source navigator for symbols across C-family codebases.9.0
See all CodeRAG alternatives →
Used CodeRAG? Be the first to review it
The editor score above is our own research. What this page doesn't have yet is a reader's view — what you used CodeRAG for, what worked and what didn't. No stars are seeded and no review is paid for; an editor reads every one before it appears.
Write a reviewTwo minutes · verified accounts only · read by an editor before it appears
Featured on iTechGuides
CodeRAG is listed in our Code Search Tools directory. Add the badge to your site — it links back to this page.
<a href="https://www.itechguides.com/products/coderag/"><img src="https://www.itechguides.com/best/badge/coderag.svg" alt="Featured on iTechGuides" width="230" height="46"></a>
Reviewed by iTechGuides Editors · Editorial team · Updated Oct 2026
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
