Connect CC Switch
Import a Claude Code or Codex route configuration from Orbis, enable it, and verify the actual model and request records.
CC Switch manages client provider configurations. This article covers only connecting Orbis to Claude Code or Codex. For installation, backups, and your first switch, see the illustrated CC Switch beginner tutorial (external source).
1. Choose the Correct Client and Route
Select a model in the model marketplace, create a key for the selected route, and open that route's Quick Connect page.
On narrow screens, scroll the comparison horizontally to read all four columns.
| Client | Required Route Protocol | Example URL | Example Model |
|---|---|---|---|
| Claude Code | Anthropic Messages | https://api.orbiorbi.com | claude-haiku-5-5 |
| Codex CLI | OpenAI Responses | https://api.orbiorbi.com/v1 | gpt-6.1-sol |
A key is bound to a route. If Claude and GPT use different routes, get a separate key for each. You cannot arbitrarily combine one key with any model.
2. Import and Enable
- Install and open CC Switch, keeping a backup of your current client configuration.
- On the Orbis connection page, select a key and go to Tool Setup → Claude Code or Codex CLI → One-Click CC Switch Import.
- Click Fill in CC Switch. In the client, check the URL, model, and key before confirming the import.
- Enable the newly imported Orbis provider, then reopen the corresponding client. Saving a provider alone does not switch to it.
The import link contains your key. Do not share it or paste it into chat. If the application does not open, confirm that CC Switch is installed. You can also configure it manually using the fields below.
Fields to Check When Configuring Manually
- Claude Code: Set
ANTHROPIC_BASE_URLto the root URL andANTHROPIC_AUTH_TOKENto the key. SetANTHROPIC_MODELto the main model. The background small model must also be available on the current route. For the Haiku example, you can also setANTHROPIC_DEFAULT_HAIKU_MODELtoclaude-haiku-5-5. - Codex: Use the editor for your CC Switch version to enter the key (usually
OPENAI_API_KEY), model ID, and URL ending in/v1. Setwire_apitoresponses. - This article uses base URLs. Keep Full URL disabled and do not append
/messagesor/responses. Start with the normal enable workflow. For aggregation mode, see Configure CC Switch Aggregation.
3. Verify the Switch
Run /status in the client to check the model and provider. Send “Reply only with OK,” then check the key, model, and route in usage logs. The request consumes API credit. Do not rely only on the selected state of a provider card or the model's self-reported identity. BadAssModel Usage History opens the existing workspace, not Orbis request records.
| Symptom | What to Check |
|---|---|
| The original service is still used after importing | Check that the provider is enabled, the client was reopened, and no manual profile or environment settings override the configuration. |
| 401 or no available channel | Check the key's assigned route, exact model ID, and protocol. |
| 404 | Use the root URL for Claude and /v1 for Codex. Do not duplicate request paths. |
| You want to restore the original service | Enable the original provider in CC Switch, reopen the client, and check its status again. |
You can also configure clients manually without CC Switch: Connect Claude Code / Connect Codex. For complete interface instructions, see the illustrated tutorial (external source).