One brain for you and your company, read by every agent you use
open coreMITself-hostablefreeMCP
GBrain is a memory and knowledge base for AI agents: you point it at folders of Markdown (your notes, an Obsidian vault, your company's facts, decisions log and call transcripts) and Claude Code, Codex, ChatGPT, Cursor and other agents search it over MCP before they answer, and save what you ask them to remember for the next session. gbrain setup claude-code or gbrain setup codex wires the MCP server, hooks and brain-first instructions in one command, and it also connects to OpenClaw, Hermes, Claude Desktop, Perplexity and Grok. It starts keyless with keyword search on an embedded Postgres (PGlite), adds semantic search, a cited synthesis layer and a typed knowledge graph when you add model keys, and can run as an always-on daemon that ingests and consolidates memory overnight. Garry Tan built it to run his own agents; the code is MIT and free to self-host, and gbrain.io sells hosted workspaces for individuals and teams.
Problems it solves
- every new Claude Code or Codex session starts from zero and doesn't know what we decided last week
- something I told one AI agent to remember isn't there when I use a different agent
- let my agents answer 'what did we decide about pricing and why' from our own decisions log
- make my Obsidian notes searchable by Claude Code and Codex without copying them into prompts
- one shared memory for the whole team that works in ChatGPT, Claude and Cursor
- give my OpenClaw or Hermes agent a long-term memory of people, companies and meetings
- start agent memory without any API keys and add semantic search later
- use the knowledge base on my laptop from cloud agents over Tailscale
- my agent should answer with citations and say what it doesn't know yet, not just list chunks
- control which sources and operations a remote agent can read from a shared company brain
Features
- gbrain setup for Claude Code, Codex and Hermes (MCP, hooks and instructions)
- MCP guides for OpenClaw, opencode, Cursor, ChatGPT, Claude Desktop, Claude Cowork, Perplexity and Grok
- keyless keyword search on embedded PGlite, or Postgres
- semantic search when an embedding key is added
- synthesis layer with citations and gap notes
- typed knowledge graph with breadth-first walks
- federated sources from Markdown folders
- remote MCP over Tailscale (gbrain mcp expose)
- source and operation grants for remote clients
- always-on ingestion and overnight memory consolidation under OpenClaw or Hermes
View 3 more
- shared brain skills and Claude Code and Codex plugins
- stable release channel with a compatibility promise
- release binaries for Linux and macOS
Limitations
- Not a data warehouse or analytics store: keep ads, analytics, CRM and payment data elsewhere1
Ways to run it
GBrain (self-hosted)
free1
Not included
- GBrain's own chat, Slack and Telegram messages, and cloud-scheduled skills, which gbrain.io Team adds
You arrange
- Bun 1.4.4 or newer, or the release binary
- PGlite or a Postgres database
- embedding and model API keys for semantic search and synthesis
- a server with 8 GB+ RAM and its own API usage for always-on ingestion
gbrain.io
Personal $49/month, Team $199/month, Enterprise custom2
Only in this edition
- hosted brain with nothing to keep online
- connected accounts (Gmail, GitHub, Notion and more) with per-AI permission levels
- Team: GBrain's own AI chat, Slack and Telegram messages, skills on a cloud schedule, overnight memory upkeep and $100 of AI credit a month
- Enterprise: Mission Control across teams, a workspace per employee, guests
Capabilities
| Has a command line tool | plan not known |
|---|---|
| Has an MCP server | plan not known |
Alternatives
The same job
These do what GBrain does.
- QMD An on-device search engine for your notes, docs and meeting transcripts
- OpenViking The context database for AI agents
- Mem0 The memory layer for AI agents
- Supermemory Memory and context layer for AI: memory, RAG, user profiles and connectors in one API
- Hindsight Long-term memory for AI agents that learns from experience
- Engram Persistent memory for AI coding agents
