Memroot / Docs
Set up Memroot in Claude Code
Last updated November 29, 2026
Quick start
You need Node.js 22 or later on macOS or Linux, Claude Code installed, and a Memroot account. You can create an account first, or register when the browser opens. Windows is not supported.
- Run setup in your terminal. It shows what it will install, then installs the Memroot plugin and connects Memroot to your account.Setup command
npx memroot@latest setup --agent claude - Sign in. From a terminal, setup opens your browser to sign in to Memroot or register. If that did not finish, run
/mcpinside Claude Code. Select memroot, choose Authenticate, then restart Claude Code. - Check it works. Ask Claude Code: “Check Memroot for what we decided about database migrations.”
Setting up more than one agent? Run npx memroot@latest setup and pick them all.
What the plugin does
Memroot is project memory for software teams: the decisions, root causes, fixes, failed approaches and conventions behind your code. The plugin makes Claude Code use it on its own:
- Reminds Claude Code to check Memroot. At the start of a session the plugin names the project in use, and with each of your messages it reminds Claude Code to check Memroot before a new task, a failure, or an action that is hard to undo. Greetings, thanks and requests not to check get no reminder.
- Waits for a check before the first change. When Claude Code is about to change files and has not checked Memroot since your last message, the plugin holds the first change once and reminds it to check.
- Saves lessons as it works. Claude Code saves decisions, root causes, fixes, failed approaches and conventions to Memroot without being asked, marked as Agent save, and tells you in one line. Tell it not to, and it stops.
- Saves its own notes to Memroot too. When Claude Code writes a lesson to its own built-in memory, the plugin reminds it to save the same lesson to Memroot.
- Checks known failures. When a terminal command fails, the plugin reminds Claude Code to check Memroot for the same failure before it reports or fixes it.
- Keeps every call on your project. Memroot calls go to the project you chose for this computer or folder, without a permission prompt.
- Adds Memroot’s rules and skills. The rules tell Claude Code to use Memroot as its project memory. The skills are
/memroot:memroot-memory,/memroot:project,/memroot:memroot-statusand/memroot:memroot-help. - Captures lessons from your sessions. When a session ends or is compacted, and every few turns, the plugin queues a capture. On your computer, it redacts the session and runs your own Claude Code without tools to propose lessons. Memroot receives only those lessons, never the transcript. Session capture below says how to turn it off.
The hooks themselves make no network request and never open a transcript. Only the capture worker described below reads a session.
Sign-in and connections
There are no API keys: you sign in to Memroot in your browser. Claude Code keeps the credentials of its own connection, and setup never reads or copies them.
Session capture and the project commands in your terminal use a second connection, named Memroot CLI, which setup asks you to approve.
See and revoke every connection on the Connections page of the console. A revoked connection can no longer be used.
Choose a project
Every memory belongs to a project. If your account has one project, it is used. If it has several, choose one with /memroot:project in Claude Code, or in your terminal:
npx memroot@latest project use "Example App"The choice applies to every agent on this computer until you change it. To use another project in one folder and the folders below it, bind that folder:
npx memroot@latest project use "Example App" --hereNothing is chosen from the folder or repository name: a folder uses a project only when you bind it.
Check and update
The doctor command checks what setup installed for Claude Code: the plugin, its hooks and skills, the connection and the rules, and your sign-in, project and session capture. It only reads, prints no secrets, and gives a fix for each problem.
npx memroot@latest doctor --agent claudeTo update the plugin, its connection and its rules, run update, then restart Claude Code.
npx memroot@latest update --agent claudeSession capture
Setup shows what session capture does and turns it on. A plugin hook only records a small job. A background worker then reads that session on your computer, keeps your messages and the agent’s replies with tool names and file paths, never tool output, and removes secrets, personal email addresses and home paths. It runs your own agent without tools to propose lessons, which uses your agent subscription or API quota and sends the redacted excerpt to that agent’s provider.
Memroot receives typed lessons and, with them, among other things a few short quotes from the redacted session, file paths and symbols in the repository, your repository’s address and salted hashes of the session. It never receives the transcript. The Memroot privacy notice lists everything, and the Trust page explains it.
To turn it off on this computer, and delete the work still queued:
npx memroot@latest capture offLater updates keep it off. To turn it back on, run npx memroot@latest capture on. To set up without it, add --no-capture to the setup command.
Import what it already remembers
Claude Code may already keep notes in its own memory. Import lists what it found and asks before it starts. Claude Code then reads only its own notes, redacted on your computer, and saves the lessons to the project chosen for this computer. The redacted notes go to Anthropic under your account. Run it once:
npx memroot@latest import --agent claudeRemove Memroot
- Revoke the Claude Code connection on the Connections page of the console.
- Remove the connection from Claude Code:Remove the Memroot server
claude mcp remove memroot - Uninstall the Memroot plugin with Claude Code’s plugin manager.
- Delete the credentials the Memroot command-line tool stored on this computer:Sign-out command
npx memroot@latest logout - If you no longer use Memroot on this computer, also revoke the Memroot CLI connection on the Connections page.
Your memories stay in your Memroot account. To delete a memory, your content or your account, email privacy@memroot.dev.
Troubleshooting
- Start with doctor. Run the doctor command from Check and update and follow the fix it gives for each problem.
- Claude Code does not see Memroot. Restart Claude Code after setup and after each update.
- Memroot is not signed in. Run
/mcpinside Claude Code, select memroot and choose Authenticate. - No project is selected. Choose one as in Choose a project.
- A memory you just saved is not found. A new memory takes about two minutes to become searchable. Search again after that.
- A setup command fails in Claude Code. Update Claude Code, then run setup again. Running setup again also repairs an install.
Still stuck? Email support@memroot.dev with the doctor output (read it first and remove anything you do not want to share), or see the Support page.
Claude and Claude Code are trademarks of Anthropic, PBC. Memroot is not affiliated with or endorsed by Anthropic.