Connect Codex to Mem0
Set up in minutes
Choose where it runs
On your computer through your own Codex, or hosted in the cloud. The rest of setup adapts to your choice:
Pick what it can do in Mem0
A preset of real Mem0 operations. Each one becomes a tool the agent can call, and it can't touch anything outside the list.
Connect Mem0
One sign-in. The agent acts through your account, scoped to the operations you picked.
Add your personal MCP link
The last step mints a private MCP URL for this agent and walks you through exactly this, with your real link filled in. The page flips to Connected the moment your Codex first calls in. Codex connects when a session starts — run codex, or restart a running one (in the Codex app, Restart).
Run this in your terminal. The Codex app shares its config, so it gets the server too
<your-link> is your personal server URL — setup mints it for you.
Tools Codex gets
Mem0
20 toolsQueue memories from conversation messages; poll the returned event ID.
Read a page of memories matching a JSON filter object.
Search scoped memories by semantic query.
Read one memory by its UUID.
Update the text and optional metadata of a memory.
Delete one memory; linked-memory deletion is opt-in.
Read a memory's change history.
Update up to 1000 memories in one request.
Delete up to 1000 explicitly identified memories.
List the current project's users, agents, apps and runs.
Read an entity using its string identifier.
Queue deletion of an entity and its memories; poll its event ID.
Create a user entity with optional metadata.
Create an agent entity with a display name.
Create an application entity with a display name.
Create a run entity with a display name.
Read the status and results of an asynchronous operation.
Read memory and retrieval usage statistics for this account.
Resolve the key's organization, project and account email.
Record positive or negative feedback on a memory.
About Codex
Frequently asked questions
More ways to connect
Open your Codex agent in one click.
NoClick runs Codex for you with Mem0 wired in as tools. Connect your account and run.