1. Install CC Switch
Open official downloads and choose your system:- Windows: use a Windows
.msi; ARM computers need thearm64.msi. - macOS: download the macOS
.dmgand follow the installer. - Linux: choose the appropriate
.debor.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.
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.


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:- Claude Code
- Codex
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.
Import from the website
With CC Switch installed, you can start an import from the website instead of entering every field:- Find the key in API Keys, open its row’s more menu and choose CC Switch.
- 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.
- 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.
- 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.
