config.toml to use GPT, Claude, Gemini, DeepSeek, GLM, Kimi, Qwen and other text models in Codex. Codex CLI and the Codex desktop app read the same configuration.
Prerequisites
- Codex CLI installed (
codex --versionprints a version) or the Codex desktop app. See the Codex docs for installation. - An API key created in the console.
Configure
1. Set the API key
Codex reads the key from theWAVEAPI_API_KEY environment variable.
launchctl setenv makes the variable visible to the Codex desktop app; restart the app afterwards. On Windows, open a new terminal after setting it.
2. Edit config.toml
Edit~/.codex/config.toml (Windows: %USERPROFILE%\.codex\config.toml):
Verify
Available models
Every text model exceptdeepseek-v3.1-terminus can be used in Codex. Model IDs and prices are in the Text models overview.
Switch models with /model in Codex, or pick one at launch: