Built from the official docs: GitHub - angelnicolasc/graymatter: 30 sec to give your AI agents persistent memory. Reduce 90% token consumption while also maintaining quality. · raw.githubusercontent.com · checked 18 November 2026
Quick start (CLI, as the README's Quick start section shows)
Install the binary with Go
Install the latest GrayMatter command-line binary. This needs no API keys and no Ollama.
go install github.com/angelnicolasc/graymatter/cmd/graymatter@latestRun the demo
This seeds an offline sample store, runs consolidation, and opens the workbench so you can see it working.
graymatter demoWire your own project
Run this inside your project directory. It creates the .graymatter directory, writes the MCP config, and adds the memory block.
graymatter initRestart your editor
After init, restart your MCP client (for example Claude Code, Cursor, Codex, OpenCode, or Antigravity) so it picks up the server. Seven memory tools become live.
Store and recall a fact
Write one fact for an agent namespace, then recall it by meaning. Replace <agent> with a namespace name, and <text> and <query> with your own values.
graymatter remember "<agent>" "<text>" graymatter recall "<agent>" "<query>"
Check it worked
Run `graymatter doctor` for read-only observations of your local setup, and run `graymatter status` to see facts, recalls, and KG state; a `recall` for a fact you just stored should print it back.