gbrain vs Cognee

Two of the top projects in Memory, side by side: who leads on each score part and who each one suits, then setup, license, activity and what each review found.

11st of 13 in Memory

gbrain

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

81 out of 100
#44th of 13 in Memory

Cognee

Memory engine that turns documents and code into a knowledge graph

76 out of 100

Verdict

gbrain ranks higher, 81 to 76. Of the 5 score parts we measure for both, gbrain leads on 2, Cognee on 1 and 2 are even.

  • AdoptionCognee leads by 14 points, 55 to 41.
  • FreshnessEven at 100.
  • Maintenancegbrain leads by 17 points, 98 to 81: a wide gap.
  • Easy to rungbrain leads by 16 points, 83 to 67: a wide gap.
  • Agent-readyEven at 85.

Pick gbrain if you are

Developers giving Claude Code, Codex or other agents persistent shared memory

  • 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

Pick Cognee if you are

Developers building graph-backed memory for agents and company knowledge

  • Keyless mode: local GLiNER extraction and embeddings, no cloud LLM required
  • Claude Code and Codex plugins, OpenClaw plugin, MCP server, Python, TypeScript and Rust SDKs
gbrain vs Cognee: score parts and facts
What we comparegbrainCognee
Score parts, out of 100
Adoption41, known55, popular
Freshness100, active100, active
Maintenance98, healthy81, healthy
Easy to run83, very easy67, easy
Agent-ready85, ready85, ready
Facts from GitHub and the README
Stars30.9k32.3k
LicenseMIT (permissive)Apache-2.0 (permissive)
Last commitOct 2026Oct 2026
Last releaseOct 2026Oct 2026
LanguageTypeScriptPython
DockerYesYes
GPUNot neededNot needed
arm64 or Apple SiliconMentionedMentioned

gbrain

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
  • 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)

Cognee

Cognee builds persistent agent memory by extracting entities, relationships and chunks from text, code and sessions into a graph and vector index with hybrid recall. Without an LLM key it uses local GLiNER extraction and embeddings; adding a key enables generated answers via OpenAI, Ollama or other providers. It runs as a library, CLI, REST API (port 8000), UI (3000) and MCP server (8001).

Who it is for: Developers building graph-backed memory for agents and company knowledge

Strengths

  • Keyless mode: local GLiNER extraction and embeddings, no cloud LLM required
  • Claude Code and Codex plugins, OpenClaw plugin, MCP server, Python, TypeScript and Rust SDKs
  • Imports memory from Mem0, Letta, Zep or Graphiti via the COGX format
  • Apache-2.0; research paper and BEAM evaluation published

Weaknesses

  • Single-Postgres graph store is a demo; production version is a licensed product
  • API defaults to multi-tenant mode; local use needs ENABLE_BACKEND_ACCESS_CONTROL=false
  • Bundled GLiNER extractor is a demo; higher-accuracy version requires contacting the vendor
  • UI launcher needs Node.js/npm and Docker for its MCP service
  • no GPU
  • Docker + Compose
  • Compose runs Neo4j, PostgreSQL, Redis
  • Models: local GLiNER + embeddings (keyless), OpenAI, Ollama, other providers per docs
  • port 8000

More in Memory

Building with these?

We help teams pick an open-source AI stack and run it in production. Client work never changes a rank.