Memroot / Docs

Set up Memroot in Codex

Last updated November 29, 2026

Quick start

You need Node.js 22 or later on macOS or Linux, Codex 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 codex
  2. Sign in. Setup opens Codex’s sign-in page. Approve access, then restart Codex.
  3. Trust the hooks. Open /hooks in Codex and trust the Memroot hooks. Codex runs a plugin’s hooks only once you trust them.
  4. Check it works. Ask Codex: “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 Codex use it on its own:

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. Codex 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 Codex, 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 Codex: 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 codex

To update the plugin, its connection and its rules, run update, then restart Codex. Then trust the Memroot hooks again in /hooks.

Update command
npx memroot@latest update --agent codex

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

Codex may already keep notes in its own memory. Import lists what it found and asks before it starts. Codex 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 OpenAI under your account. Run it once:

Import command
npx memroot@latest import --agent codex

Remove Memroot

  1. Revoke the Codex connection on the Connections page of the console.
  2. Remove the connection from Codex:
    Sign out of the Memroot server
    codex mcp logout memroot
    Remove the Memroot server
    codex mcp remove memroot
  3. Uninstall the Memroot plugin with Codex’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.

Codex is a trademark of OpenAI. Memroot is not affiliated with or endorsed by OpenAI.