GBrain

gbrain.io

Open-source memory layer for AI agents by Garry Tan: sourced facts, corrections and one shared brain across your agents via MCP.

Pricing
Open source
Published
Nov 12, 2026

Next steps

  • Willder

    Both tools are listed under AI Knowledge Management, AI Agent, agent-memory, and claude-code.

  • rhebok

    Both tools are listed under AI Knowledge Management, AI Agent, codex, and claude-code.

  • Wakeshift

    Both tools are listed under AI Agent, Open Source, codex, and claude-code.

  • Strix
  • Pi
  • Daily Stock Analysis (DSA)

What it does

GBrain gives the agents you already use a memory you control. It stores explicit facts together with their sources, supports corrections and withdrawal, and shares the same memory across Claude Code, Codex, Cursor, ChatGPT and other MCP clients. You can start keyless with PGLite and keyword retrieval, then add semantic search, synthesis and background enrichment. Setup commands wire MCP, hooks and brain-first instructions into each agent; gbrain mcp expose publishes a local brain over Tailscale. Shared brains can carry approved skills next to knowledge. MIT-licensed and free to self-host; gbrain.io offers optional paid hosting.

Use cases

  • Give Claude Code, Codex or Cursor a shared memory you control across sessions
  • Store facts with sources, corrections and withdrawal instead of opaque chat memory
  • Expose your local brain over MCP to cloud agents through Tailscale

Frequently asked questions

What is GBrain?
GBrain is Garry Tan's MIT-licensed memory layer for AI agents. It stores explicit facts with their sources, supports corrections and withdrawal, and makes the same memory available across your agents.
Is it free?
Self-hosting is free under MIT. gbrain.io is an optional paid hosted version.
How does it connect to agents?
Through MCP: gbrain setup claude-code or gbrain setup codex wires a local server and instructions; plugins exist for Claude Code and Codex, and gbrain mcp expose publishes a local brain on your Tailscale tailnet.
Do I need an API key to start?
No. gbrain init --pglite --no-embedding creates a keyless brain with keyword retrieval; semantic search, synthesis and enrichment can be added later.
Log in to join the discussion