{"version":"v1","licence":"CC-BY-4.0","id":"gbrain","name":"GBrain","repo":"garrytan/gbrain","repository_url":"https://github.com/garrytan/gbrain","docs_url":"https://github.com/garrytan/gbrain#readme","description":"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.","summary":"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.","capabilities":["long-term-memory","coding-agent-memory","graph-memory"],"tags":["Agent memory","MCP support","Knowledge graph","Self-hosted","Postgres","CLI","Bring your own API key","Local LLM support","Hosted version"],"alternatives":[{"product":"mem0-platform","jobs":["long-term-memory","coding-agent-memory","graph-memory"],"coverage":"partial","note":"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."}],"facts":{"runs_locally":{"status":"yes","value":"Yes; a local PGLite database by default, or your own Postgres server for shared or large brains","source_url":"https://github.com/garrytan/gbrain#architecture","checked_at":"2026-11-10","confidence":"high","validation":"documentation_review","modes":["local","self-hosted","hosted"],"untrusted_source_quote":"PGLite (Postgres 17 via WASM, zero-config, default) for personal brains up to ~50K pages."},"code_license":{"status":"yes","value":"MIT","source_url":"https://github.com/garrytan/gbrain/blob/master/LICENSE","checked_at":"2026-11-10","confidence":"high","validation":"documentation_review","spdx":"MIT","untrusted_source_quote":"Permission is hereby granted, free of charge, to any person obtaining a copy"},"model_license":{"status":"yes","value":"No model weights; it calls embedding and chat models you choose (Voyage by default, OpenAI, Anthropic, or local Ollama and llama.cpp)","source_url":"https://github.com/garrytan/gbrain#integrations","checked_at":"2026-11-10","confidence":"high","validation":"documentation_review","spdx":null,"applies":false,"untrusted_source_quote":"Ollama (local), llama.cpp llama-server (local), LM Studio, Together, and LiteLLM proxy."},"commercial_use":{"status":"yes","value":"Yes, the MIT licence allows commercial use","source_url":"https://github.com/garrytan/gbrain/blob/master/LICENSE","checked_at":"2026-11-10","confidence":"high","validation":"documentation_review","untrusted_source_quote":"Permission is hereby granted, free of charge, to any person obtaining a copy"},"paid_services":{"status":"yes","value":"None required; keyword search works without keys. Semantic search, cited answers and enrichment need paid model APIs unless you run local models","source_url":"https://github.com/garrytan/gbrain#two-ways-to-query-your-brain","checked_at":"2026-11-10","confidence":"high","validation":"documentation_review","required":[],"optional":["gbrain.io hosting","Voyage AI API","OpenAI API","Anthropic API","OpenRouter API","Supabase"],"untrusted_source_quote":"Keyless keyword search needs no model API"},"hardware":{"status":"partial","value":"No minimum for a personal brain; the always-on 24/7 setup asks for a server with 8GB+ RAM","source_url":"https://github.com/garrytan/gbrain#optional-a-new-personal-agent","checked_at":"2026-11-10","confidence":"medium","validation":"documentation_review","cpu_ok":true,"min_vram_gb":null,"min_ram_gb":null,"untrusted_source_quote":"on a server with 8GB+ RAM and its own API usage"},"platforms":{"status":"partial","value":"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)","source_url":"https://github.com/garrytan/gbrain/blob/master/docs/guides/troubleshooting.md","checked_at":"2026-11-10","confidence":"medium","validation":"documentation_review","windows":"partial","macos":"yes","linux":"yes","untrusted_source_quote":"and Windows allows at most 107 bytes for its path"},"setup":{"status":"yes","value":"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","source_url":"https://github.com/garrytan/gbrain#heres-how-to-self-host-it","checked_at":"2026-11-10","confidence":"high","validation":"documentation_review","level":"medium","untrusted_source_quote":"It needs Bun 1.4.4 or newer"}},"metrics":{"stars":33766,"forks":5062,"contributors":140,"archived":false,"last_push_at":"2026-12-01T01:17:00Z","latest_release":{"tag":"v0.60.789.0","published_at":"2026-11-30T07:52:09Z"},"fetched_at":"2026-12-01T01:21:03.661Z"},"url":"https://repoquarry.dev/projects/gbrain","note":"Installation guidance: follow docs_url. This service never installs or runs code."}