Skip to main content

Codex setup (Grok 4.5)

Route OpenAI Codex CLI through the gateway with grok-4.5.

1. Set API key

2. Edit ~/.codex/config.toml

Windows:

Fallback: Chat Completions

3. Verify

Notes

  • base_url must include /v1
  • The env var named by env_key must be visible in the shell that launches Codex
  • Model ID must exist in the key’s group; check GET /v1/models
  • If an official OpenAI provider is also configured, ensure model_provider = "arona"

Minimal working snippet

FAQ