Before you start
Prepare an enabled NexusAPI key, the exact model ID available to its group, and the correct endpoint. The API and model capability matrix explains why a model visible on the site may still not fit a given protocol.Install CC Switch
- macOS:
brew install --cask cc-switch - Windows / Linux: download the package for your system from official releases.
Add a provider
Open Provider management → Add provider, select the target app, enter the fields below, save, switch to the new provider, and restart the CLI. Interface labels can change between CC Switch releases; the endpoint, key, model, and protocol remain the important values.Claude Code provider
Do not append
/v1 to the Claude endpoint. After switching the provider, run claude, use /status, and send a short message.
Codex provider
After switching the provider, run
codex and make one read-only test request.
Confirm the current model list
Use the selected key to see only models it can access:data[].id; do not guess from a provider name or copied screenshot.
If it does not work
- Confirm the active provider actually changed in CC Switch.
- Restart the terminal or app after switching.
- Check the Base URL rule: Claude has no
/v1; Codex does. - Confirm the token group and exact model ID.
- Keep the Request ID and follow self-check for a persistent error.
