Skip to Content
ownmemDocs
Integrations

Codex

Connect Codex CLI to ownmem's remote MCP server and share one encrypted memory between Codex, Claude Code, ChatGPT and Cursor. Two commands, OAuth sign-in, no API key.

By songth1ef · Published · Last updated

Short answer: add ownmem (ownmem.ai) as a remote MCP server and sign in once. Codex can then search and update the same encrypted memory that Claude Code, ChatGPT and Cursor use.

codex mcp add ownmem --url https://mcp.ownmem.ai/mcp
codex mcp login ownmem
Commands may vary by Codex version. Checked in November 2026.

Setup

  1. Create an ownmem account at ownmem.ai/chat and save your recovery phrase (Getting started).
  2. Add the server: codex mcp add ownmem --url https://mcp.ownmem.ai/mcp
  3. Sign in: codex mcp login ownmem opens the ownmem consent page in your browser. Check the app name and click Allow.
  4. Keep ownmem.ai/chat open and unlocked while Codex works; tool calls run in that tab.
  5. Add standing instructions. Paste the prompt for your agent into Codex; it asks Codex to put the rules in your AGENTS.md: search memory at the start of a task, prefer what it finds, save durable facts and decisions (never secrets) at the end.

What Codex can do with it

The same six tools as every other client: memory_search, memory_view, memory_create, memory_str_replace, memory_insert and vault_status. There is no delete or rename over MCP. See the tool reference.

One memory for Codex and Claude Code

Because the memory lives in your ownmem vault rather than in either tool, a decision you save from Codex ("we use pnpm, not npm") is found by Claude Code in the next session, and the other way round. Add the same URL to Claude Code, Cursor or ChatGPT to share it further.

How it reaches your memory

By default, each call is relayed to your open, unlocked ownmem tab, runs there, and only the result goes back; the server never holds your keys or a readable copy of your vault. Optional Agent share lets agents read selected folders with no tab open, but that copy is not zero-knowledge and is read-only.

Troubleshooting

  • Vault unavailable error: open ownmem.ai/chat, unlock, and check Allow agents (MCP) on this device in Settings → Agents (MCP).
  • Login didn't complete: run codex mcp login ownmem again while logged in to ownmem in your default browser.
  • Revoke access: Settings → Agents (MCP) → Connected apps → Revoke.

FAQ

Does this replace Codex's own features?

No. It adds a memory that is shared across tools and machines. Keep project instructions in AGENTS.md.

Is it free?

MCP calls cost no credits. Free accounts store up to 2 MB; see Limits.

My client only supports local (stdio) servers

Use the mcp-remote bridge.

On this page