Garry Tan releases GBrain open-source memory layer for AI agents

Y Combinator president Garry Tan open-sources GBrain, a memory layer that gives agents like OpenClaw and Hermes explicit, portable memory with synthesis and knowledge-graph retrieval across 150K+ page

cpaua3 min507
Garry Tan releases GBrain open-source memory layer for AI agents

Y Combinator president and CEO Garry Tan has released GBrain, an MIT-licensed open-source memory layer that gives existing AI agents — including OpenClaw and Hermes — explicit, portable memory with provenance, corrections, and cross-agent sharing. The system runs Tan's personal production deployment of 155,795 pages, 24,589 people, 5,340 companies, and 66 autonomous cron jobs that ingest meetings, emails, tweets, and voice calls overnight.

Memory as a controllable layer, not a black box

GBrain stores facts with their sources, supports withdrawal and correction, and makes the same memory available across multiple agents. It starts keyless with keyword retrieval and adds semantic search, synthesis, and background enrichment on demand. The synthesis layer returns a cited prose answer instead of a list of chunks, and explicitly notes what the brain does not yet know — a gap analysis that changes how you prepare for meetings or decisions. A typed knowledge graph enables breadth-first walks that resolve relationship queries in milliseconds; on BrainBench relationship questions, graph retrieval lifts production R@5 from 0.6626 to 0.7241 (the graph-oracle-parse upper bound is 0.9791).

Production scale behind the release

Tan built GBrain to run his own OpenClaw and Hermes deployments. The agent enriches every person and company it encounters, fixes its own citations, and consolidates memory overnight. The 24/7 daemon architecture handles ingestion, enrichment, and consolidation separately from the chat agent, which Tan argues is easier to keep reliable than a single agent trying to do everything. Durable preferences and facts can be shared across agents; transient task state stays local.

Installation paths: hosted or self-hosted

The fastest route is the hosted service at gbrain.io — one command launches a managed brain that connects to ChatGPT, Claude, Cursor, Codex, and Grok Bot via MCP with nothing to keep online. For self-hosting, GBrain requires Bun 1.4.4+ and is not distributed on npm (the npm package is unrelated). Install only via:

shellscript
bun install -g github:garrytan/gbrain#stable
gbrain setup claude-code # or: gbrain setup codex
gbrain init --pglite --no-embedding

The gbrain setup command wires MCP, writes a brain-first instruction block into the agent's config (CLAUDE.md or AGENTS.md), and smoke-tests the round trip. A keyless brain is created only if none exists. For any other coding agent, paste the prompt from INSTALL_FOR_AGENTS.md in the repo.

Remote access and company-brain mode

gbrain mcp expose publishes the local brain over MCP on a Tailscale tailnet (add --funnel for cloud agents such as Grok Bot, Muse, and ChatGPT). Authenticated remote clients are constrained by source and operation grants plus visibility filters; local files and shared database credentials sit behind a different trust boundary. The sharing boundaries doc and company-brain tutorial detail the authorization model before enabling shared access.

Works with existing agent ecosystems

GBrain integrates with OpenClaw and Hermes Agent (which already has native editable memory; GBrain adds an explicit, portable record with provenance and shared access). Guides cover Grok Bot, Muse, Codex, and Claude Code. The repo includes llms.txt/llms-full.txt for documentation maps and AGENTS.md/CLAUDE.md for agent onboarding.

Sources

garrytan/gbraingithub.com/garrytan/gbrain
Share

Author

cpaua

VibeCode blog admin. Writing about vibe coding, AI and open source.

Related news

Comments

To leave a comment, log in
Loading...

Weekly digest

The best of vibe coding, AI agents and open source — once a week, no spam.