Gbrain (garrytan/gbrain)
gbrain acts as a self-hostable, mit-licensed external memory layer for your AI agents to store explicit facts across sessions. Anyone running multiple agents who needs unified recall across platforms will find it useful.
32.3k · TypeScript
It handles corrections and withdrawal while letting you start with keyword retrieval before layering in semantic search. Visit https://gbrain.io/?ref=readme to get connected to ChatGPT, Claude and Cursor without keeping anything online.
README excerpt
<h1><picture><source media="(prefers-color-scheme: dark)" srcset="docs/images/brand/gbrain-wordmark-light.svg"><img src="docs/images/brand/gbrain-wordmark.svg" alt="GBrain" height="52"></picture></h1> **Give the agent you already use a memory you control.** GBrain stores explicit facts with their sources, supports corrections and withdrawal, and makes the same memory available across your agents. Start with keyless memory and keyword retrieval; add semantic search, synthesis, and background enrichment when you need them. GBrain is MIT-licensed and free to self-host; gbrain.io is optional paid hosting. > [!TIP] > **Need hosted? First time running an agent?** Try **[gbrain.io](https://gbrain.io/?ref=readme)**, hosted GBrain, for the easiest experience: one brain for you and your team, connected to ChatGPT, Claude and Cursor, with nothing to install or keep online. Stuck? Email support@gbrain.io and a person will set it up with you, free. **Keep skills beside knowledge.** New local brains include memory skills in their content root. Agents can join an authorized catalog; only approved editors can publish. Managed coding-agent installs add an owned native router; restart and real-use verification are separate steps. Staged migration preserves sharing choices and personal edits. See [shared brain skills](docs/guides/shared-brain-skills.md). ## Choose your setup 1. **Add GBrain to my existing agent — recommended.** Keep your agent's identity and save memory inside its environment.