CC Switch for Codex and Claude Code
Use CC Switch to manage your client's provider configuration.
Official CC Switch website and download →
1. Prepare a key and model
Create an API key, then copy a supported model ID from Model Square.
2. Add a Codex provider
Select Codex in CC Switch, add a provider and choose a custom or third-party API configuration.
| Setting | Value |
|---|---|
| Provider name | Xuo |
| API Key | Your full Xuo API key |
| Base URL / endpoint | https://api.xuo.cc/v1 |
| Model | A model ID supported by your group |
| Upstream format | Responses for a model supporting Responses |
Codex requires compatible Responses support in the model and channel. A model appearing in the platform list does not by itself establish Codex compatibility.
If your version uses a configuration editor, replace the model placeholder in this example:
model_provider = "xuo"
model = "YOUR_AVAILABLE_MODEL_ID"
[model_providers.xuo]
name = "Xuo"
base_url = "https://api.xuo.cc/v1"
wire_api = "responses"Enter your key in CC Switch's API Key field. Do not manually overwrite existing login credentials.
3. Save and enable
Save and enable the Xuo provider, then reopen the corresponding Codex client. Send a short test request and verify it in Xuo Usage Logs. The domain cannot be used to test live calls until the production server is deployed.
Configure Claude Code with CC Switch
First install Claude Code, then:
- Select Claude Code in CC Switch and add a custom provider.
- Fill in the settings below with your Xuo key and an available Claude model.
- Save and enable the provider, close the old Claude Code session and reopen it.
- Run
/statusin Claude Code to check the address and credential source. Send a short test message and check Xuo Usage Logs.
| Setting | Value |
|---|---|
| API Key / credential | Your Xuo API key |
| Base URL | https://api.xuo.cc |
| Model | An available Claude model supported by your group |
| Upstream format | Anthropic Messages for compatible channels |
Do not reuse the Codex /v1 URL for every client; clients build request paths differently.
Claude Code needs compatible Anthropic Messages and tool calling. A successful plain chat request does not establish support for every Claude Code feature. Existing terminal variables or other provider settings may override the new configuration; check /status and error details.
Official reference
See the Codex FAQ for reconnects, approvals and tools, and models, context and caching for context and caching questions.
CC Switch: adding a provider. Field names depend on the installed version. Configure optional usage queries, MCP or routing only when needed.
