GBrain
Self-hosted memory for AI agents; stores facts with sources in Postgres or a local PGLite file and serves them to Claude Code, Codex and others over MCP.
GBrain (v0.60.640.0, 10 Nov 2026, ~32k stars) is Garry Tan's memory layer for AI agents. It indexes Markdown notes and remembered facts in PGLite (local, default) or Postgres with pgvector, links people, companies and pages into a typed graph, and serves it over MCP or a CLI. It needs Bun 1.4.4+. Keyword search works with no API key; semantic search, cited answers and overnight enrichment need embedding or chat API keys (Voyage by default, or local Ollama). MIT. gbrain.io is optional paid hosting. It changes very fast, and Windows has extra rough edges.
The facts
| Question | Answer | Source | Checked |
|---|---|---|---|
| Runs on my machine? | Yes. A local PGLite database by default, or your own Postgres server for shared or large brains | github.com | Checked 3 weeks ago |
| Code licence | Open source. MIT | github.com | Checked 3 weeks ago |
| Commercial use | Yes. The MIT licence allows commercial use | github.com | Checked 3 weeks ago |
| Paid services needed? | None required; keyword search works without keys. Semantic search, cited answers and enrichment need paid model APIs unless you run local models | github.com | Checked 3 weeks ago |
| Hardware | No minimum for a personal brain; the always-on 24/7 setup asks for a server with 8GB+ RAM | github.com | Checked 3 weeks ago |
| Operating systems | Runs wherever Bun runs; macOS and Linux are the main targets, and Windows works but has its own known issues (socket path limits, Supabase DNS) | github.com | Checked 3 weeks ago |
| Setup effort | Medium; install Bun, then a global install from GitHub and one setup command per agent. Postgres, API keys and the background daemon add more steps | github.com | Checked 3 weeks ago |
GBrain released v0.60.789.0 on 30 Nov 2026, after these facts were checked. Some answers may have changed since.
Each fact has its own date. Unknown means nobody has published it. We read their documentation; we didn’t install it. Running it yourself costs your hardware, electricity and setup time. Report a correction.
No licence changes since we started watching. Licence changes: follow GBrain and we email you if its terms change.
Where to run it
GBrain can run on your own server. If you don’t have one, these hosts can run it for you.
Referral links: we may earn a commission if you sign up and pay, at no extra cost to you. They never change our facts, rankings or comparisons. How we keep them separate.
What it replaces, job by job
| Paid tool | Jobs | How far it goes |
|---|---|---|
| Mem0 Platform $19/month |
| 3 of 3 jobs. You run and maintain it yourself, and it is built around a Markdown "brain" plus explicit remembering; automatic fact capture and enrichment are opt-in and need your own model API keys. |
Agent skills
GBrain publishes 92 skills for coding agents such as Claude Code, Cursor and Codex, installed about 15,482 times in total. Some may be for the project’s own developers rather than its users.
| Most installed | Installs | Security scans |
|---|---|---|
| brain-ops | 440 | 3 pass |
| maintain | 364 | 2 pass, 1 fail |
| query | 359 | 2 pass, 1 warn |
npx skills add garrytan/gbrain
From skills.sh, checked 5 days ago. Installs show popularity, not quality or safety: read a skill before you install it. How we count these.
Stars over time
Building history +278 stars this week. Too early to say if that’s fast or slow for it: that needs five weeks of daily counts. Stars show attention, not quality. Where these numbers come from.