Skip to main content
CC Switch manages settings. First install Claude Code or Codex CLI, completing only that guide’s installation step, then return here. Skip if installed. No separate manual configuration is needed.

1. Install CC Switch

Open official downloads and choose your system:
  • Windows: use a Windows .msi; ARM computers need the arm64 .msi.
  • macOS: download the macOS .dmg and follow the installer.
  • Linux: choose the appropriate .deb or .AppImage.

2. Add a custom provider

Select Claude Code or Codex in the sidebar, click + / Add provider at the top right, then choose Custom configuration. Do not choose Claude Desktop or another site’s preset. CC Switch 4.0.21: Custom configuration (Chinese UI)

3. Fill in the settings

Create a key, select its group in Model Square, and copy a model for your target tool. Enter the NexusAPI values in the table below: Claude Code: open advanced options. Put the copied main model in “默认兜底模型” (default fallback model). For Haiku, use an auxiliary model confirmed by support in the actual request model field. Replace all placeholders shown below. Codex: use the model in the table; the Claude Code model mappings do not apply. Configure only your app, choose Direct, leave other options at defaults, then click Add / Save. Claude Code form example. Replace placeholders; this draft was not saved or connected. Claude Code form example. Replace placeholders; this draft was not saved or connected. Claude Code model mapping example (Chinese UI)

4. Enable and test

Click Switch / Enable for this NexusAPI provider. Saving alone does not switch the tool. Reopen the terminal and start the matching tool:
Send “Reply only: connection successful. Do not modify files.” Check a complete reply and the model and group in Usage Logs. The test uses a little credit. Command not found: install the CLI first. Still using the official service: check Enable and restart. Unavailable model: recopy one for your group. If the error names an auxiliary model, confirm eligible Haiku / Sonnet / Opus names. Send other errors to support with the key hidden. Official project: CC Switch. Button labels can vary by version.

Change settings or switch back

  • Change model: edit the active NexusAPI provider’s primary model, save, confirm it remains active and restart. The new model must be available in your key’s group; see change model.
  • Switch back: under the correct app, select the previously saved provider, click Switch, then restart. If it was deleted or never backed up, recover the configuration first; do not guess credentials.
  • Manual setup: restore only the settings you changed from your own backup. Without a backup, ask support first. Do not delete the whole configuration directory or publish keys from backups.
Verify with a new request and the relevant service’s usage records, not the AI’s self-description.

Import from the website

With CC Switch installed, you can start an import from the website instead of entering every field:
  1. Find the key in API Keys, open its row’s more menu and choose CC Switch.
  2. In Import to CC Switch, select Claude or Codex, enter a recognizable name and select a primary model compatible with the app and the key’s group. If missing, check the group rather than choosing randomly.
  3. Click Open CC Switch and confirm the import as prompted by the browser and local app. If it does not open, check installation or use this page’s manual method.
  4. In CC Switch, check the address, model and active configuration, then restart and verify using section 4. Opening the import dialog is not proof the service switched.
Import passes the selected key to your local CC Switch app. The generated import link may contain the complete key. Do not share, screenshot or publish it. For Claude, fill the Haiku, Sonnet and Opus auxiliary model fields only when the models are confirmed necessary and available. If unsure of the names, ask support rather than copying placeholders. If the key has model restrictions, allow the required primary and auxiliary models too.