SecureAuth AI Gateway
IntegrationsAgents

Codex CLI

Connect OpenAI Codex CLI to SecureAuth AI Gateway

OpenAI's agentic coding CLI for software engineering tasks.

Setup

  1. Add the MCP server — Add the following to ~/.codex/config.toml:
[mcp_servers.secureauth]
url = "https://your-gateway-url/gateway/mcp"
  1. Authenticate
codex mcp login secureauth
  1. Start Codex
codex

The agent is auto-registered on first connect.

On this page