Endgame-Labs/cerebro
A self-hosted RAG wiki that precompiles source-cited answers for agents
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Tracked from daily D1 telemetry snapshots. Hover any data point for exact daily star counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Cerebro is an article-first RAG knowledge layer rather than a drop-in database engine. It reads files, SaaS systems, databases, and MCP sources without writing back to them. Factoid, pinned to 0.1.35, turns records into short facts linked to source quotations. Cerebro then compiles facts into Markdown articles and refreshes the articles as new data arrives. Agents read the shared wiki over MCP and can query facts directly when an article falls short.
The article collection is the unit of configuration. A file such as agents/competitors/article.md declares evidence scope and a change heartbeat in YAML frontmatter, with writing instructions in the Markdown body. Generated articles carry identity keys, a compilation timestamp, and fact-ID footnotes. The Python package exposes cerebro.cli:main through Click and pins mcp==2.3.0 and pydantic-ai-slim[openai,anthropic]==2.69.0. The PostgreSQL extra uses psycopg 3 for ingestion; it does not establish PostgreSQL as the workspace store.
Key Capabilities & Differentiators
An operator approves the first proposed article list and, with a template, starts from a limited source read covering the last two weeks by default. The system can combine records from different sources, preserve conflicting evidence in the same article, and update article state as records change. Footnotes point to quoted source text, while v0.1.8 marks sentences that their cited facts do not fully support. This makes an article reviewable, not independently verified.
The default configuration uses open-weight models hosted by Fireworks for reading and compilation and Typesafe for decisions and sentence scoring. The v0.1.8 paths include running all jobs on Anthropic or OpenAI, or using signed-in Claude Code or Codex without a model API key. Daily spending caps and pre-run estimates help manage compilation costs. Four small synthetic-data examples span 34–40 records and $0.69–$1.95 for build plus evaluation; they establish neither production cost nor throughput.
Trade-offs & Limitations
Compared with direct SaaS connectors or a retrieval-first RAG stack, Cerebro performs much of the synthesis before anyone asks. That is useful when several agents repeatedly need the same account, issue, or competitor context: they can reuse a reviewable article rather than reconstructing the answer each time. The cost moves to background ingestion, extraction, and recompilation. Freshness depends on those jobs and their evidence scope, so use the source system for decisions that depend on immediate state.
Markdown makes the compiled output easy to inspect and retain, but teams still need to configure connectors and article scopes, review citations, and handle conflicting records. Fact queries help when an article misses something, but they cannot recover data that was not ingested. Before a team rollout, verify how source permissions carry over to the shared wiki and fact queries, test refresh lag and cost on representative data, and check workspace upgrade behavior. MIT keeps software licensing straightforward; it does not resolve source-data permissions or provider terms.
Hardware & Deployment Guide
Install from the repository with Python 3.13 and uv using uv tool install .; Cerebro itself is not published on PyPI. Create a workspace with cerebro init, configure the relevant source credentials and model access, and keep cerebro serve running for refreshes. The container is designed to serve a workspace over HTTP. Its multi-stage build uses a frozen uv.lock, includes the PostgreSQL extra, and moves from a full Python 3.13 build image to a slim runtime image. Treat workspace data as persistent and review the changelog before updating: pre-1.0 versions may reject older workspaces.
Self-hosting places the service and workspace on your infrastructure, but the listed model routes still depend on external services; a fully offline setup is not established. The hosted routes do not require local model GPUs. Budget host resources for ingestion, parsing, workspace storage, and concurrent jobs. Release v0.1.6 added Claude compilation, v0.1.7 enabled article refresh during long initial reads, and v0.1.8 added single-provider and signed-in plan routes, sentence-level warnings, and pre-run cost estimates.
Teams whose agents repeatedly need the same cross-source account, deployment, or competitive context, and whose reviewers need to trace statements back to records.
You need immediate source state, a general-purpose retrieval backend, or verified offline inference and source-level access controls before adoption.
Quick Start & Installation
git clone https://github.com/Endgame-Labs/cerebro && cd cerebro uv tool install . cerebro init ~/wikis/team-wiki
Comparison vs. Top RAG, Data & Memory Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| cerebro ★ | 39 | +38 | Python | MIT | A self-hosted RAG wiki that precompiles source-cited answers for agents |
| Scrapling | 107.9k | +1.8k | Python | BSD-3-Clause | Python HTTP and browser crawlers that turn websites into RAG-ready Markdown |
| crawl4ai | 88.5k | +408 | Python | Apache-2.0 | Async browser crawler that turns web pages into Markdown and JSON for RAG |
| OpenViking | 43.2k | +255 | Python | AGPL-3.0 | A directory-scoped RAG database for inspectable agent knowledge and memory |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/Endgame-Labs/cerebro.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about cerebro
How does an existing agent retrieve knowledge from Cerebro?
cerebro tools query, where you can filter by source and matching text.Do I need a GPU, and how should I size the host?
Can we use Cerebro commercially and keep sensitive data on premises?
When is Cerebro a better choice than direct connectors or conventional RAG?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy