thezakuloGet the newsletter
← All setup guides

Setup guide · 5 steps · about 5 minutes

How to start using angelnicolasc/graymatter

GrayMatter is a single-binary MCP server and Go library that gives AI agents persistent memory with a self-building knowledge graph, cutting context tokens by about 90%.

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)

  1. 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@latest
  2. Run the demo

    This seeds an offline sample store, runs consolidation, and opens the workbench so you can see it working.

    graymatter demo
  3. Wire your own project

    Run this inside your project directory. It creates the .graymatter directory, writes the MCP config, and adds the memory block.

    graymatter init
  4. Restart 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.

  5. 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.

Try these first

Get every issue by email

One email a week with the written issue. Free, one-click unsubscribe

Subscribe