> ## Documentation Index
> Fetch the complete documentation index at: https://help.memoryplugin.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Codex

> Use MemoryPlugin with OpenAI Codex

![Alara](https://help.memoryplugin.com/images/author-alara.jpg)

Written by Alara

Last updated

![Codex](https://mintcdn.com/memoryplugin/0D7zqA9Ak-TR54pG/images/logos/codex.svg?fit=max\&auto=format\&n=0D7zqA9Ak-TR54pG\&q=85\&s=cc8e582b916480b128af9deb698380ee)

Codex is OpenAI's agentic coding tool. It speaks MCP, so MemoryPlugin connects over the Model Context Protocol and brings your memory and chat history from every other AI tool into your coding sessions.

## Set up

Use the remote MCP server as your primary integration. There is no install and nothing to keep running.

**1. Add the MCP server**

Add MemoryPlugin to Codex using the [remote MCP server](https://help.memoryplugin.com/integrations/remote-mcp-server.md) URL.

**2. Approve access**

Sign in and approve when prompted. Your memories and chat history are then available from your next session.

### Local MCP server

If you prefer a local process, configure the [local MCP server](https://help.memoryplugin.com/integrations/mcp-server.md) instead of the remote one.

## What works here

* **All MemoryPlugin tools over MCP.** Codex can recall and save memories, recall your chat history, and search your uploaded files.
* **Cross-tool context.** What you told ChatGPT, Claude, or any other connected tool comes with you into your coding sessions.

## Limitations

* No browser extension in Codex. The connection is entirely over MCP.
* Capturing your Codex sessions into your chat history needs the [MemoryPlugin desktop app](https://help.memoryplugin.com/integrations/desktop-app.md) (Mac). Syncing sessions requires a Pro plan.
* Whether Codex calls the tools each turn is up to the model. If it forgets, ask it to check MemoryPlugin before answering.

## Next steps

> [card] [Remote MCP Server](https://help.memoryplugin.com/integrations/remote-mcp-server.md)
>
> Recommended, no install

> [card] [Local MCP Server](https://help.memoryplugin.com/integrations/mcp-server.md)
>
> For a local process


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.