Skip to main content
Setup guide

Codex memory setup

StremAI gives Codex a shared memory layer over MCP. Connect the hosted endpoint, sign in through the browser where supported, and Codex can store useful project lessons and recall them in later sessions. API keys remain available for CI, scripts, or clients that cannot complete OAuth/browser sign-in.

Verified with Claude Code and Claude Desktop; Cursor, Codex, Windsurf, OpenClaw, and other MCP clients are supported or in active verification.

Markdown version

How Codex uses StremAI

Codex can call MCP memory tools to store decisions, pitfalls, and handoffs. Later Codex sessions, or other connected agents, can recall those entries when they are relevant.

Keep AGENTS.md for written instructions. StremAI adds learned context from prior work.

Verify the connection

Ask Codex to store a staging reset memory, then start a new session and ask what it knows about staging. This proves the memory survives the session boundary.

When you do not need StremAI

Skip it if you use one AI tool, in one repository, on one machine, and its built-in memory plus a CLAUDE.md or AGENTS.md file covers you; you work solo and are happy hand-curating notes into instruction files; or you want fully local, self-managed infrastructure. Open-source MCP memory servers are a reasonable choice if you prefer running your own. StremAI earns its place when agents span multiple tools, machines, or teammates, and when you want memory that is shared, attributed, and user-controlled without operating the layer yourself.

FAQ

How do I verify Codex is using StremAI memory?

Store a memory: "our staging database resets every Sunday." Start a new session and ask what the agent knows about staging. A connected agent should recall the stored entry rather than asking you to repeat it.

Does StremAI replace Codex instructions?

No. Keep instruction files and rules for commands, conventions, and policy. StremAI adds the learned memory layer: decisions, pitfalls, and context discovered while agents work.

What is the markdown version of this page?

Use https://stremai.com/docs/codex-memory.md when an agent needs a plain-text copy without navigation chrome.

Start with a real connection

OAuth/browser sign-in is preferred. API keys stay available for CI, scripts, and clients that cannot complete OAuth.

See Codex setup details