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

# Codex

> Connect CaptureFlow to OpenAI Codex: the CLI, the IDE extension and the ChatGPT desktop app.

**1. Add the server**

```bash theme={null}
codex mcp add captureflow --url https://mcp.captureflow.ai/mcp
```

Or add it to `~/.codex/config.toml`:

```toml theme={null}
[mcp_servers.captureflow]
url = "https://mcp.captureflow.ai/mcp"
```

**2. Sign in**

```bash theme={null}
codex mcp login captureflow
```

Sign in to CaptureFlow in the browser and choose the workspace and what Codex may do.

The Codex CLI, the IDE extension and the ChatGPT desktop app read the same `config.toml`, so you add CaptureFlow once. Codex can run shell commands, so it can use the [file upload](https://docs.captureflow.ai/guides/uploads.md) tools.

Source: [OpenAI Codex docs: MCP](https://developers.openai.com/codex/mcp).


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