Description
GrayMatter gives AI agents persistent memory. It ships as a single binary of about 10 MB that you install without Docker, a database server, config files or a cloud account. It works as a general-purpose MCP server with Claude Code, Cursor, Codex, OpenCode and Antigravity, and with any other MCP-compatible client. It can also be used as a plain Go library. Instead of resending the whole conversation on every run, the agent recalls facts by meaning and injects only the top eight relevant ones. The site says this cuts context tokens by 90 percent. GrayMatter builds a knowledge graph of typed entities and co-mention edges from ordinary use, and you can export it to Obsidian with one command. The agent can add, update, forget and link its own memories. A context-sync command writes top facts into CLAUDE.md or AGENTS.md within a token budget. Facts fade over a 30-day half-life and are tombstoned rather than deleted. It is free, works offline and needs no account. The source is on GitHub.…
Highlights
- Facts that survive across sessions
- Recall by meaning, injecting only the top eight facts
- Knowledge graph with Obsidian export
- Single binary with no Docker or cloud account
- Works with Claude Code, Cursor, Codex and MCP clients
Ratings & Reviews
No ratings yet
Be the first to rate GrayMatter.
People also visit
SuperLocalMemory
Open-source governed, local-first memory control plane for AI agents and teams
GrayMatter FAQ
Does it need an account or internet?
No. It is free, runs offline and needs no account.
How do I install it?
It installs as a single binary with no Docker, database or config files. The site says it can be wired into your client in under a minute.
Which AI tools does it work with?
Claude Code, Cursor, Codex, OpenCode and Antigravity, plus any MCP-compatible client. It is also a Go library if you do not use MCP.
Does it forget things?
Facts decay over a 30-day half-life when nothing touches them. Forgotten facts are tombstoned, not deleted.
Can I see the memories?
Yes. The knowledge graph can be exported to Obsidian with one command.
What are the best GrayMatter alternatives?
Popular alternatives to GrayMatter include Mnemory, Basic Memory and SuperLocalMemory. See all GrayMatter alternatives





