> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developer-test.atomicwork.com/llms.txt.
> For full documentation content, see https://developer-test.atomicwork.com/llms-full.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developer-test.atomicwork.com/_mcp/server.

# OpenAI Codex

## Connect from OpenAI Codex

Codex CLI supports remote MCP servers with custom headers natively via a TOML config file.

### Configuration File

Edit or create the Codex config:

* **User-global:** `~/.codex/config.toml`
* **Project-scoped:** `.codex/config.toml` (in project root)

### Using an Environment Variable (Recommended)

```toml
[mcp_servers.atomicwork]
url = "https://<your-subdomain>.atomicwork.com/api/mcp/sse"
env_http_headers = { "X-Api-Key" = "ATOMICWORK_API_KEY" }
```

Then set the environment variable:

```bash
export ATOMICWORK_API_KEY="your-api-key-here"
```

### Using a Static Key

```toml
[mcp_servers.atomicwork]
url = "https://<your-subdomain>.atomicwork.com/api/mcp/sse"
http_headers = { "X-Api-Key" = "<your-api-key>" }
```

### Verify Connection

```bash
codex mcp
```

### Notes

* Project-scoped config requires the project to be trusted by Codex.
* You can set `default_tools_approval_mode = "auto"` to skip per-tool confirmation prompts.