🧠 m3 Memory
Give your AI a memory that lasts.
Your AI assistant is helpful until you start a new conversation and it has forgotten
what you were working on. m3 fixes that.
Your assistants remember your projects, preferences, decisions and past work, even after
you close the app, start a new session or switch to a
different agent. By default everything stays on your own
computer, and it works offline. m3 itself needs no cloud
account or API key; your AI assistant may have its own requirements.
pipx install m3-memory # or pip install m3-memory in a virtual environment; use one, not both
m3 setup # finds your agents and connects them to m3
m3 doctor # checks that everything is working
No pipx yet? sudo apt install pipx (Debian, Ubuntu), brew install pipx (macOS) or
py -m pip install --user pipx (Windows). If m3 is not found right after installing,
open a new terminal.
Setup finds your agents and connects m3 to them. m3 setup detects your AI agents and wires m3 into each; if you run a local LLM (Ollama, LM Studio), it offers to use it to summarize and link your memories. That part is optional; to use it, install the LLM before m3 setup: Windows · macOS · Linux. That's the whole install.
New here? The 5-minute Getting Started guide walks you through your first saved memory.
What m3 is
m3 is a memory layer for AI agents: the AI assistants that work for you, such as
Claude Code, Codex, Cursor or Gemini CLI. It runs on your own computer and stores
facts, decisions, preferences and conversation history so your assistants can recall
them later, across sessions, across tools and across machines. Assistants reach it
through MCP, the standard way AI assistants connect to tools, and you can use it from
the command line too.
It is not an AI model or a chatbot. You keep using the assistants you already use;
they call m3 when they need to remember or recall something.
Put another way, m3 is the knowledge layer your assistants share. It keeps typed
memories (a decision is not just a chunk of chat), the history of how each one changed,
and a graph of the people, places and things they mention, with a confidence and a source
on each memory. It is local by default and speaks MCP. m3 is built for knowing what an
assistant knows, why, and since when, rather than for being the fastest vector index.
your assistants (Claude Code, Codex, Cursor, Gemini CLI, ...)
| MCP tools, or the m3 command line
v
+------------------------------ m3 ------------------------------+
| typed memories ---------- entity graph (people, places, ...) |
| history: earlier versions are kept; "as of" a date |
| search: keywords + meaning optional background upkeep |
+-----------------------------------------------------------------+
| one SQLite file by default (PostgreSQL is optional)
v
recall in your next session . web dashboard . generated wiki
How the pieces fit together: Architecture.
📅 A week with m3