Memroot / Docs
Set up Memroot in Grok
Last updated November 29, 2026
Quick start
You need Node.js 22 or later on macOS or Linux, Grok 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 grok - Sign in. Restart Grok, run
/mcps, select memroot, then press i to sign in with your browser. - Check it works. Ask Grok to call
connection_status, then to save a test memory to Memroot and find it again.
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 Grok use it on its own:
- Reminds Grok to check Memroot. Once a session, after Grok’s first tool call, the plugin tells Grok which project it uses and to check Memroot before it works.
- Saves lessons as it works. Grok 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 Grok 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 Grok 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.
- Adds Memroot’s rules and skills. The rules tell Grok to use Memroot as its project memory. The skills are memroot-memory, memroot-project, memroot-status and memroot-help in Grok’s skill picker.
- 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 Grok without tools to propose lessons. Memroot receives only those lessons, never the transcript. Session capture below says how to turn it off.
If the Claude Code plugin is also installed, Grok runs that copy, and the once-a-session reminder and the failure reminder do not appear. Your project choice still applies.
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. Grok 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 the memroot-project skill in Grok, 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 Grok: 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 grokTo update the plugin, its connection and its rules, run update, then restart Grok.
npx memroot@latest update --agent grokSession 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
Grok may already keep notes in its own memory. Import lists what it found and asks before it starts. Grok 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 xAI under your account. Run it once:
npx memroot@latest import --agent grokRemove Memroot
- Revoke the Grok connection on the Connections page of the console.
- Remove the connection from Grok:Remove the Memroot server
grok mcp remove memroot - Uninstall the Memroot plugin with Grok’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.
- Grok does not see Memroot. Restart Grok after setup and after each update.
- Memroot is not signed in. Run /mcps in Grok, select memroot and press i.
- 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 Grok. Update Grok, 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.
Memroot is not affiliated with or endorsed by xAI.