11st of 13 in Memory

gbrain

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

Stars
30.9k
License
MIT
Last commit
Oct 2026
Last release
Oct 2026
Language
TypeScript
Stars, last 27 weeks+30,777
8 Apr 2026: 104 stars15 Apr 2026: 8,205 stars22 Apr 2026: 10,280 stars29 Apr 2026: 12,067 stars6 May 2026: 13,194 stars13 May 2026: 15,209 stars20 May 2026: 17,447 stars27 May 2026: 19,106 stars3 Jun 2026: 20,500 stars10 Jun 2026: 21,841 stars17 Jun 2026: 22,906 stars24 Jun 2026: 23,676 stars1 Jul 2026: 24,432 stars8 Jul 2026: 25,289 stars15 Jul 2026: 26,013 stars22 Jul 2026: 26,585 stars29 Jul 2026: 27,092 stars5 Aug 2026: 27,556 stars12 Aug 2026: 28,087 stars19 Aug 2026: 28,565 stars26 Aug 2026: 28,972 stars2 Sept 2026: 29,351 stars9 Sept 2026: 29,633 stars16 Sept 2026: 29,895 stars23 Sept 2026: 30,180 stars30 Sept 2026: 30,386 stars7 Oct 2026: 30,637 stars14 Oct 2026: 30,881 stars

104 on 8 Apr 202630,881 on 14 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

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)

Head to head

Also in Memory

See all 13
Also in Memory
RankProjectScore
2hindsightAgent memory server with retain, recall and reflect operations49.7k starsMIT78 out of 100
3MemPalaceLocal long-term memory store for agents with verbatim storage and semantic search59.6k starsMIT77 out of 100
#4CogneeMemory engine that turns documents and code into a knowledge graph32.3k starsApache-2.076 out of 100
#5OpenVikingContext database that stores agent memory, resources and skills as a virtual filesystem Live demo ↗ (opens in a new tab)39.9k starsAGPL-3.074 out of 100
#6Mem0Memory layer for agents with a self-hosted server, SDKs and CLI Live demo ↗ (opens in a new tab)67.2k starsApache-2.072 out of 100