# Codex CLI

> Connect GetIntel's MCP server to OpenAI's Codex CLI through mcp-remote in config.toml, so your coding agent can read your AI visibility data.

Source: https://getintel.ai/docs/mcp/clients/codex-cli/

Codex CLI speaks stdio, so it connects to GetIntel's remote server through `mcp-remote`.

<Steps>

1. **Create a token** in GetIntel under **Integrations**.

2. **Add GetIntel** to `~/.codex/config.toml`:

   ```toml title="~/.codex/config.toml"
   [mcp_servers.getintel]
   command = "npx"
   args = ["-y", "mcp-remote", "https://app.getintel.ai/mcp", "--header", "Authorization: Bearer YOUR_TOKEN"]
   ```

3. **Restart Codex** and ask: *"Using GetIntel, give me this week's visibility brief."*

</Steps>

<Aside>
`mcp-remote` runs through `npx`, so Node.js must be installed.
</Aside>
