Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By garrytan·v0.60.799.0·MIT·In 1 marketplace
Gives coding agents shared, cited memory over Markdown notes, with keyword, vector and graph search over local PGLite or Postgres. A hook runs on every prompt you send; vector search needs an embedding key.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
GBrain gives your AI agents shared, cited memory over plain Markdown. Save a decision in Claude Code and find it in Codex, Cursor, or ChatGPT: GBrain indexes Markdown into local PGLite or Postgres with keyword + vector search and a typed knowledge graph—returning cited answers that flag gaps instead of isolated search chunks, over MCP and a CLI.
MIT-licensed and free to self-host (starts keyless with local keyword + graph search; add an embedding key for vectors), or managed at gbrain.io.
Your notes stay plain Markdown—[[wikilinks]] and frontmatter become typed graph edges:
---
type: person
company: "[[companies/acme]]"
---
Alice leads engineering at [[companies/acme]].
Ask a connected agent (illustrative):
"What do I need to know before my meeting with Alice tomorrow?"
GBrain follows links across Alice, Acme, and past meetings—and flags where the record stops:
Alice leads engineering at Acme, a Series B fintech [people/alice, companies/acme].
Last met April 22 on the enterprise tier [meetings/2026-04-22-pricing]:
- Security review from Alice was due May 1 [meetings/2026-04-22-pricing].
- You sent a 500-seat quote April 25; no recorded reply [notes/2026-04-25-quote].
Gaps: no notes added for Alice or Acme since April 25—check email or Slack before
assuming these items are still open.
| Self-hosted | Hosted (gbrain.io) | |
|---|---|---|
| Best for | Local-first ownership, offline keyword + graph search, or your own Postgres + pgvector | Always-on memory across Claude, ChatGPT, Codex, and Cursor with nothing to host |
| Storage & keys | Local PGLite (zero API keys; add an embedding key for vector search) or Postgres + pgvector | Managed Postgres + pgvector (hybrid search included; paid plans) |
| Access | Local stdio MCP, or remote HTTPS via Tailscale | Native HTTPS OAuth (notes hosted on gbrain.io) |
Prefer your coding agent to handle setup? Point it at INSTALL_FOR_AGENTS.md.
Prerequisites: macOS or Linux with Bun 1.4.4+.
[!WARNING] Not on npm. Install only from GitHub or the release binary below—the
gbrainpackage on npm is unrelated. If you installed it by mistake or hit an install error, remove it first and follow install recovery.
1. Install and connect your agent (swap claude-code for codex; for Hermes, see docs/mcp/HERMES.md):
bun install -g github:garrytan/gbrain#stable
gbrain --version
gbrain setup claude-code # initializes ~/.gbrain (PGLite), wires MCP, and adds agent hooks (reversible)
Verifies SHA-256 against GitHub build provenance before installing (scripts/install.sh; omit --setup claude-code for binary + keyless brain only):
( f="$(mktemp)"; trap 'rm -f "$f"' EXIT; curl -fsSL https://raw.githubusercontent.com/garrytan/gbrain/stable/scripts/install.sh -o "$f" && bash "$f" --setup claude-code )
Install the compiled release binary above (avoids macOS GUI PATH issues and untrusted-repo bunfig.toml loading per SECURITY.md), initialize a keyless brain, and add its path to your MCP config (for example ~/.cursor/mcp.json):
gbrain init --pglite --no-embedding
which gbrain
{
"mcpServers": {
"gbrain": {
"command": "<path-to-gbrain>",
"args": ["serve", "--surface", "starter", "--advertise", "verbs"]
}
}
}
Client guides: Claude Desktop · OpenClaw (uses full tool surface) · All clients.
2. Try the offline sample brain, then index your own Markdown notes:
# Isolated offline sample brain: 15 company pages, prints cited answers, touches no personal files
gbrain sources demo company-brain
# Index a Markdown folder keyless (--no-embed skips vector embeddings) and search it
gbrain import <path-to-markdown-folder> --no-embed
gbrain search "pricing"
Optional—for standalone CLI synthesis, set ANTHROPIC_API_KEY or OPENAI_API_KEY in your environment (over MCP, your agent uses its own model):
gbrain think "what did we decide about pricing?"
For vector embeddings, Git sync, or Postgres + pgvector, see docs/INSTALL.md and move to Postgres.
7-day copy clicks
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground
npx claudepluginhub garrytan/gbrain --plugin gbrain