XuanShu API
How do I connect Codex CLI to XuanShu API?
Add a custom provider in ~/.codex/config.toml and use the Responses API.
Last verified:
How do I connect Codex CLI to XuanShu API?
Add a custom provider in ~/.codex/config.toml and use the Responses API.
Steps
- Back up the current Codex configuration.
- Set base_url=https://www.xuanshuapi.com/v1, wire_api=responses, and OPENAI_API_KEY.
- Choose a model visible in the console and test it; restore the backup to roll back.
Limits and exceptions
WebSocket and model capabilities are dynamic; do not write the key to auth.json, and not every Codex feature is guaranteed to match the official endpoint.