Integration guide
Codex CLI Integration Guide
Add ZHUAN as a Codex CLI provider and use gpt-6.2-sol with the Responses API.
Add a provider from the Codex menu
- Install Codex CLI. Set ZHUAN_API_KEY in your terminal using the quickstart, then run codex.
- Enter /config, open Sessions → Model providers, and select the option to create a custom provider.
- Use ZHUAN as the name and https://key.zhuan.xyz/v1 as the Base URL. Enter the variable name ZHUAN_API_KEY in the API key variable field.
- Save and select ZHUAN as the current provider. Start a new session with /new and select gpt-6.2-sol in the model picker.
Configure config.toml manually
If the custom provider menu is unavailable, open .codex/config.toml in your home folder. Put model and model_provider before the first table header, then add the provider block. Update existing settings or tables with the same names.
model = "gpt-6.2-sol"
model_provider = "zhuan"
[model_providers.zhuan]
name = "ZHUAN"
base_url = "https://key.zhuan.xyz/v1"
wire_api = "responses"
env_key = "ZHUAN_API_KEY"
requires_openai_auth = false
supports_websockets = false
Send a short message
Restart Codex from the terminal where you set ZHUAN_API_KEY. Ask it to reply only with OK. After it responds, look for the gpt-6.2-sol request under Usage in the ZHUAN console.