CC Switch
Configure UniRoute in CC Switch for Claude and Codex using gateway URLs, API keys, and model mappings.
CC Switch · pay-as-you-go API
Manage UniRoute providers for Claude Code and Codex from one graphical switcher. Enter the native protocol address and map each visible model to its request ID.
Best for: Developers who switch providers for existing Claude Code or Codex installations.
Quick setup
Sign in to create a key and fill it in automatically Sign in
Claude URL: https://api.uniroute.app
Codex URL: https://api.uniroute.app/v1
API Key: YOUR_UNIROUTE_API_KEY
Codex protocol: Responses (native)Claude URL: https://api.uniroute.app
Codex URL: https://api.uniroute.app/v1
API Key: YOUR_UNIROUTE_API_KEY
Codex protocol: Responses (native)Use these values in CC Switch’s Custom provider form. Keep the key private and out of shared screenshots.
Manual configuration
1. Back up the client settings
Quit the clients and save their current settings before switching. Claude Code uses ~/.claude/settings.json on macOS / Linux and $HOME\.claude\settings.json on Windows. Codex uses ~/.codex/config.toml and ~/.codex/auth.json, or $HOME\.codex\config.toml and $HOME\.codex\auth.json on Windows. Custom CLAUDE_CONFIG_DIR or CODEX_HOME changes the active location.
2. Add the Claude provider
Select Claude → Add provider → Custom configuration. Name it uniroute and fill:
URL: https://api.uniroute.app
API Key: YOUR_UNIROUTE_API_KEY
Actual request model: claude-sonnet-5-5In Advanced options → Model mappings, select Fetch model list and choose the matching Actual request model. Keep the display name or use a short label, then save. Use the root URL for Messages.
3. Add the Codex provider
Select Codex → Add provider → Custom configuration. Name it uniroute and fill:
URL: https://api.uniroute.app/v1
API Key: YOUR_UNIROUTE_API_KEY
Protocol: Responses (native)
Actual request model: gpt-6.1-solChoose Responses (native) in Advanced options. Fetch the model list, select the actual request model, and save. Keep one /v1 in the Codex base URL.
4. Activate the provider and open the client
Activate the UniRoute entry, then click Open terminal or reopen the desktop app. When Claude Code asks whether to use the configured key, confirm. Check /status in the client.
What these fields do
| Field | Purpose |
|---|---|
| URL | Claude uses the API root; Codex uses the root plus /v1. |
| API Key | The UniRoute credential for the selected provider. |
| Protocol | Codex uses Responses (native). |
| Actual request model | The exact model ID sent to the API, independent of its display label. |
Choose a model
Confirm the connection
Check status with /status to inspect the active model and service.
Send a short test: Send in the selected client: Reply only: hello
Open usage logs to review the model, request status and charge. The test is a real, billed API request.
For read-only usage queries use GET https://api.uniroute.app/v1/usage with the provider key. Wallet balance / remaining is available account USD; quota.remaining is the key allowance; usage.total.actual_cost is recorded consumption. The wallet calculation includes active reservations and expiry; preserve an unknown state while it synchronizes. An unlimited key still needs available account funds. Preserve the response currency rather than relabeling USD.
Switch back / restore a backup
Switch to the previous provider in CC Switch, then restart the client. If restoring manually, quit the client and restore its matching configuration and credential backups. Preserve unrelated settings changed after the backup.
Not installed yet?
Download CC Switch for your operating system from its official GitHub releases. Install the target client separately: Claude Code or Codex.
FAQ
Is the display name the requested model?
The Actual request model field controls the API model ID. The menu label is for identification.
Can I switch back to a subscription?
Activate the previous provider or restore its credentials, then use the client’s account sign-in flow. UniRoute API usage is billed separately.
Troubleshooting
Codex returns 404
The URL or protocol is incorrect.
Use https://api.uniroute.app/v1 with Responses (native).
Claude opens the old provider
The provider is inactive or the client process is still running.
Activate UniRoute, quit the client completely, then open it from CC Switch.
401 / 403 / model not found
The key, its permissions, the actual model ID, or wallet needs attention.
Check the console, paste the complete key, fetch the model list again, and save.
Related links
Manage API keys
Model prices
