Skip to content
RepoQuarry
Weekly email Suggest a project

Instead of Mem0 Platform

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.

YesRuns on my machine?
YesAllowed at work?
NoDo I have to pay for anything?
MediumSetup

Agent memory, MCP support, Knowledge graph, Self-hosted, Postgres, CLI, Bring your own API key, Local LLM support, Hosted version

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

QuestionAnswerSourceChecked
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 toolJobsHow far it goes
Mem0 Platform
$19/month
  • Long-term memory for chat assistants partly
  • Memory for coding agents partly
  • Knowledge graph memory partly
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 installedInstallsSecurity 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.

  • GBrain
33,76632,377 2026-11-112026-12-01 Tracked daily begins 2026-11-11GBrain, 2026-11-11: 32,504 stars, trackedGBrain, 2026-11-12: 32,701 stars, trackedGBrain, 2026-11-13: 32,782 stars, trackedGBrain, 2026-11-14: 32,867 stars, trackedGBrain, 2026-11-15: 33,015 stars, trackedGBrain, 2026-11-16: 33,099 stars, trackedGBrain, 2026-11-17: 33,156 stars, trackedGBrain, 2026-11-18: 33,235 stars, trackedGBrain, 2026-11-19: 33,286 stars, trackedGBrain, 2026-11-20: 33,317 stars, trackedGBrain, 2026-11-21: 33,349 stars, trackedGBrain, 2026-11-22: 33,370 stars, trackedGBrain, 2026-11-23: 33,431 stars, trackedGBrain, 2026-11-24: 33,488 stars, trackedGBrain, 2026-11-25: 33,541 stars, trackedGBrain, 2026-11-26: 33,596 stars, trackedGBrain, 2026-11-27: 33,634 stars, trackedGBrain, 2026-11-28: 33,668 stars, trackedGBrain, 2026-11-29: 33,696 stars, trackedGBrain, 2026-11-30: 33,729 stars, trackedGBrain, 2026-12-01: 33,766 stars, tracked
Focus a point, use arrow keys, or tap for its value.

Tracked daily since 11 Nov 2026. Dashed history is estimated (how).

Others that do the same job

Cookie preferences

Choose what we may store in your browser. You can change this any time from Cookie settings in the footer.

Essential

Security, and remembering this choice. rq-consent · 12 months

Always on