Clients
Codex setup
OpenAI's official coding assistant for the terminal. The config applies to both the Codex CLI and the desktop app.
- Groups
- Any Codex / GPT group
- Config file
~/.codex/config.toml(Windows:%USERPROFILE%\.codex\config.toml)- Endpoint
https://api.yuzuapi.com/v1
Install
npm install -g @openai/codex@latest
If
codex --versionprints a version, it's installed.Write the config
Open the config file above (create it if missing) and paste the following as is:
model_provider = "yuzu" model = "gpt-6.2-sol" model_reasoning_effort = "high" [model_providers.yuzu] name = "Yuzu" base_url = "https://api.yuzuapi.com/v1" env_key = "YUZU_API_KEY" wire_api = "responses"
What each setting meansWorks as is; read this to change models
Field Example Notes modelgpt-6.2-solDefault model, e.g. gpt-6.2-astra(stronger). See Pricingmodel_reasoning_efforthighReasoning effort: low/medium/highbase_urlhttps://api.yuzuapi.com/v1Yuzu endpoint env_keyYUZU_API_KEYEnvironment variable that holds your key (next step) wire_apiresponsesCodex only supports the Responses API; keep it Save your key
Codex reads the key from the
YUZU_API_KEYenvironment variable. Run this with your key in place ofsk-your-key, then reopen the terminal:setx YUZU_API_KEY "sk-your-key"
echo 'export YUZU_API_KEY="sk-your-key"' >> ~/.zshrc source ~/.zshrc
Start
cd your-project codex