Skip to content

Integration

Codex

One command in the terminal, restart Codex. From then on Codex looks things up in your memory.

Audience
Everyone working with OpenAI Codex. The free knowmind Private plan is enough.

Prerequisites

  • OpenAI Codex installed
  • Node.js 20 or newer (check: node --version)
  • A knowmind account. None yet? Create one for free

Steps

  1. 1

    Get the command

    1. Copy the command.
      bash
      npx -y knowmind@latest install codex --token kmt_YOUR_KEY
    2. Replace kmt_YOUR_KEY with your access key. You create a key in the Cockpit under access keys.

    Outcome: The command with your key is on your clipboard.

  2. 2

    Run the command

    Paste the command into a terminal and press enter. It extends ~/.codex/config.toml (Windows: %USERPROFILE%\.codex\config.toml) and leaves existing entries alone.

    Outcome: The output reports “✓ Codex CLI: knowmind eingetragen in …” (added to).

  3. 3

    Restart Codex

    Quit Codex and start it again.

    Outcome: codex mcp list lists knowmind with the status enabled.

  4. 4

    First recall

    1. Write in a Codex session: “Save to knowmind: releases always ship on Tuesdays.”
    2. Then ask: “When do releases ship?”

    Outcome: Codex calls knowmind_recall_memories and answers with your entry.

Verify the result

The connection works when these points hold:

  • codex mcp list lists knowmind with the status enabled.
  • The recall shows up in the Cockpit timeline, and access keys shows a time of last use.

Troubleshooting

Error messageCauseResolution
npx: command not foundNode.js is missing on this machine.Install it from nodejs.org, open a new terminal, run the command again.
Codex does not use the memory on its ownThe lookup before every prompt is not set up.Run npx -y knowmind@latest init --client codex --token kmt_YOUR_KEY in the project folder. Details are on the command line page.
Calls report 401The key was copied incompletely or has been revoked.Create a new one under access keys and repeat the command. It replaces the old entry.
What we tested
Tested on 2 December 2026 with knowmind 0.4.12 in an empty user folder: the command writes the entry with your key to config.toml, and codex mcp list lists it as enabled. We did not check a recall from a Codex session.

Related