Before you start
Install Codex CLI, then create a key in the console. New verified accounts receive $5 in starting credit. Set your key in the terminal that will launch Codex:Add the provider
Merge this configuration into your user~/.codex/config.toml. Keep the first four settings above any TOML table headers. Provider settings in a project’s .codex/config.toml are ignored by current Codex versions. See the official configuration reference.
Start Codex
Open a project directory and run:This is a compatibility endpoint, not the OpenAI service. Responses are
stateless, and hosted tools, image input, reasoning controls, and server-side
conversation storage are unavailable. Custom tool formats depend on the Codex
version. See Responses compatibility before relying on a
specific agent feature.
If something fails
- Missing key: launch Codex from the terminal where
DERESTRICTED_API_KEYis set. - Wrong provider: check your user configuration and any selected configuration profile. Use the custom
derestrictedprovider ID. - Invalid
wire_api: current Codex supportsresponses; do not change it tochat. - Unsupported tools or oversized requests: use a smaller task and review API compatibility and the error guide.