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.

  1. 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
  2. Sign in. Restart Grok, run /mcps, select memroot, then press i to sign in with your browser.
  3. 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:

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:

Choose a project
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:

Bind this folder
npx memroot@latest project use "Example App" --here

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

Doctor command
npx memroot@latest doctor --agent grok

To update the plugin, its connection and its rules, run update, then restart Grok.

Update command
npx memroot@latest update --agent grok

Session 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:

Turn off capture
npx memroot@latest capture off

Later 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:

Import command
npx memroot@latest import --agent grok

Remove Memroot

  1. Revoke the Grok connection on the Connections page of the console.
  2. Remove the connection from Grok:
    Remove the Memroot server
    grok mcp remove memroot
  3. Uninstall the Memroot plugin with Grok’s plugin manager.
  4. Delete the credentials the Memroot command-line tool stored on this computer:
    Sign-out command
    npx memroot@latest logout
  5. 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

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.