Source reviewed November 17, 2026 · Codex CLI integration
Capture where the work happens
The native Codex integration connects supported session and tool events to the Claude-Mem worker. Useful work becomes searchable observations instead of a note you have to rewrite before every new session. Capture depends on the installed integration, enabled hooks and a running worker.
Recall the decision behind the change
Ask for a specific decision, bug or file. Start with the matching memory index, inspect the surrounding timeline, then read the records that matter. Saved project history gives Codex evidence to work from; verify it against the current code.
Keep capture and connection separate
An MCP connection provides a route to memory tools. Adding a connection by itself does not record every conversation. Use the native integration for Codex capture, and test capture and recall separately.
Bring the useful history to another tool
CMEM Pro adds optional cloud sync and a private MCP connection for compatible clients. Confirm that the expected records have synced before switching machines or tools. Local capture does not require buying cloud sync.
Start with one project
Install. Check a memory. Start again.
With Codex CLI installed, use the current Claude-Mem installer and select its native Codex integration:
npx claude-mem install --ide codex-cliFollow the installer output and Codex's hook approval prompts. The installer registers the integration; hook approval remains your decision.
- Open a small project and do a recognizable task, such as investigating a named bug.
- Check the Claude-Mem work viewer for a new observation from that task. Let pending processing finish and inspect any errors.
- In a new Codex session in the same project, ask it to find the earlier decision using its memory tools. Open the returned record and compare it with the work you did.
Before you connect
Do I need CMEM Pro to capture Codex work?
The native local integration is part of the open-source engine. CMEM Pro is the optional route for cloud sync and a private hosted MCP connection. Observation processing still depends on your configured provider and its requirements.
Is the Codex subscription provider the same as the Codex integration?
No. The integration captures Codex work and connects memory tools. The optional Codex subscription provider is a separate choice for processing observations through a locally authenticated Codex CLI. Follow its provider guide before selecting it.
Does this recover every previous Codex conversation?
No. Do not assume that enabling capture imports every old conversation. Verify newly recorded work first. Native memory export/import and other ingestion paths have their own formats and requirements.
What should I check if new memories do not appear?
Confirm that your installed version supports the native integration, the worker is running, and the relevant Codex hooks are enabled and approved. Check processing status and provider errors, then retry a small test in the same project. Do not use a successful MCP connection as proof that capture worked.
Follow the source
Your next session has somewhere to start.
Verify local capture first. Add sync when you need your project memory in another place.
