Connect the Codex App to Agent Authority

Connect OpenAI's Codex App to SecureAuth Agent Authority so every MCP tool call is checked and audited

When you finish, every MCP tool call the Codex App makes is checked against your policies and recorded in the audit log. OpenAI's Codex App reaches your approved tools through one SecureAuth Agent Authority gateway URL, and each developer signs in as themselves.

Setup

  1. Add the MCP server. Add the following to ~/.codex/config.toml:

    [mcp_servers.secureauth]
    url = "https://your-gateway-url/gateway/mcp"
  2. Authenticate.

    codex mcp login secureauth
  3. Open Codex App. Launch the Codex desktop app.

    The agent is auto-registered on first connect.

Connecting to just one MCP? To stay under an agent's tool limit, point the URL at a single MCP — /gateway/mcp/{slug} instead of /gateway/mcp. Grab the exact URL from the resource's detail page; see Scope a connection.

Next steps

On this page