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

# Codex Integration

> Give the OpenAI Codex CLI persistent, cross-session memory with Memanto.

# Codex + Memanto

<img src="https://unpkg.com/@lobehub/icons-static-svg@latest/icons/codex-color.svg" alt="Codex" width="64" style={{marginBottom: "1.5rem"}} />

Connect the [OpenAI Codex CLI](https://github.com/openai/codex) to Memanto so it can store and recall persistent memory across sessions.

## Connect via CLI (recommended)

```bash theme={null}
memanto connect codex
```

This installs a Codex-specific instruction file and the `memanto-memory` skill into your project. Add `--global` to install system-wide:

```bash theme={null}
memanto connect codex --global
```

## Connect via MCP

Codex supports MCP, so you can alternatively register Memanto as an MCP server. See the [MCP integration guide](/integrations/mcp) for the `memanto-mcp` server reference and config.

## Next Steps

* [CLI: connect command](/cli/connect/connect)
* [MCP Integration](/integrations/mcp)
* [Memory Types Reference](/reference/memory-types)
