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
Get the command
- Copy the command.bash
npx -y knowmind@latest install codex --token kmt_YOUR_KEY - Replace
kmt_YOUR_KEYwith your access key. You create a key in the Cockpit under access keys.
Outcome: The command with your key is on your clipboard.
- Copy the command.
- 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
Restart Codex
Quit Codex and start it again.
Outcome:
codex mcp listlists knowmind with the status enabled. - 4
First recall
- Write in a Codex session: “Save to knowmind: releases always ship on Tuesdays.”
- Then ask: “When do releases ship?”
Outcome: Codex calls
knowmind_recall_memoriesand answers with your entry.
Verify the result
The connection works when these points hold:
codex mcp listlists knowmind with the status enabled.- The recall shows up in the Cockpit timeline, and access keys shows a time of last use.
Troubleshooting
| Error message | Cause | Resolution |
|---|---|---|
| npx: command not found | Node.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 own | The 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 401 | The 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.
