#44th of 18 in Memory

gbrain

Long-term memory store for coding agents, with sources and corrections

Stars
31.1k
License
MIT
Last commit
Oct 2026
Last release
Oct 2026
Language
TypeScript
Stars, last 28 weeks+27,999
10 Apr 2026: 3,141 stars17 Apr 2026: 8,723 stars24 Apr 2026: 10,902 stars1 May 2026: 12,321 stars8 May 2026: 13,560 stars15 May 2026: 15,553 stars22 May 2026: 17,847 stars29 May 2026: 19,371 stars5 Jun 2026: 20,777 stars12 Jun 2026: 22,106 stars19 Jun 2026: 23,077 stars26 Jun 2026: 23,832 stars3 Jul 2026: 24,578 stars10 Jul 2026: 25,480 stars17 Jul 2026: 26,134 stars24 Jul 2026: 26,703 stars31 Jul 2026: 27,187 stars7 Aug 2026: 27,674 stars14 Aug 2026: 28,190 stars21 Aug 2026: 28,650 stars28 Aug 2026: 29,034 stars4 Sept 2026: 29,400 stars11 Sept 2026: 29,657 stars18 Sept 2026: 29,953 stars25 Sept 2026: 30,195 stars2 Oct 2026: 30,400 stars9 Oct 2026: 30,663 stars16 Oct 2026: 30,893 stars23 Oct 2026: 31,140 stars

3,141 on 10 Apr 202631,140 on 23 Oct 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

GBrain keeps explicit facts and their sources in a local PGLite or Postgres brain and exposes them to agents such as Claude Code, Codex, Cursor and Hermes over stdio or HTTP MCP. It starts keyless with keyword search; semantic search, cited synthesis, a typed knowledge graph and an overnight enrichment cycle are optional. It is installed with Bun from GitHub, not npm.

Who it is for: Developers giving Claude Code, Codex or other agents persistent shared memory

Ranked among open-source alternatives to Mem (#4 of 10).

Strengths

  • Keyless start: PGLite brain with keyword search, no server or Docker needed
  • One brain shared across agents via stdio MCP or HTTP MCP with scoped OAuth tokens
  • One-command setup for Claude Code and Codex, with dry-run and remove options
  • Optional cited synthesis that notes gaps, plus a typed graph for relationship queries

Weaknesses

  • Not on npm; the unrelated npm package named gbrain can shadow the real binary
  • Always-on OpenClaw/Hermes setup needs a server with 8GB+ RAM plus paid API usage
  • Local files and shared database credentials are not isolated by sources
  • Remote put_page does not extract graph edges inline; HTTP needs explicit maintenance

What it needs

  • RAM ≥ 8 GB
  • no GPU
  • Compose
  • Needs Bun 1.4.0+, PGLite or Postgres, Tailscale (optional, for remote MCP)
  • Models: Optional cloud embedding, reranking, extraction and synthesis providers (unspecified)

Quick answers

Is gbrain open source?

Yes. Its code is on GitHub under the MIT license.

Can you run gbrain with Docker?

Yes. Its repository has a Docker setup: a Dockerfile, a Compose file or a published image.

Does gbrain need a GPU?

No, it runs without one. Plan for at least 8 GB of RAM.

Head to head

Also in Memory

See all 18
Also in Memory
RankProjectScore
1hindsightAgent memory server with retain, recall and reflect operations53.3k starsMIT94 out of 100
2MemPalaceLocal verbatim memory store for AI agents with semantic search and MCP59.7k starsMIT90 out of 100
3Mem0Long-term memory layer that stores and retrieves user facts for LLM agents Live demo ↗ (opens in a new tab)67.7k starsApache-2.089 out of 100
#5CogneeMemory engine that turns documents and code into a knowledge graph32.7k starsApache-2.085 out of 100
#6GraphitiPython framework for temporal knowledge graphs that track how facts change32.2k starsApache-2.084 out of 100