Codex CLI

Codex CLI can use a custom Chat Completions provider. Two fields matter: wire_api = "chat" and requires_openai_auth = false.

Depaza API key
Model

Your key stays in this browser (local storage) and is sent only to depaza.eu. Every config block on this page fills in automatically. Don’t do this on a shared machine.

Don’t run bare codex first — it opens OpenAI’s login. Add the provider block, export DEPAZA_API_KEY, then start Codex. There is no gpt-4o alias; use a Depaza id.

Install

shell
npm install -g @openai/codex

Configure

~/.codex/config.toml
model_provider = "depaza"
model = "{{MODEL}}"

[model_providers.depaza]
name = "Depaza"
base_url = "{{BASE_URL}}"
env_key = "DEPAZA_API_KEY"
wire_api = "chat"
requires_openai_auth = false
shell
export DEPAZA_API_KEY={{KEY}}
codex

wire_api = "chat" is required — Depaza is a Chat Completions API, not the Responses API. The model must be a Depaza id; there is no gpt-4o alias.