@adithya-13/cc-switch
v1.0.6
Published
Switch Claude Code between providers (Claude Pro, z.ai, Kimi, OpenRouter, DeepSeek, and more)
Maintainers
Readme
cc-switch
Switch Claude Code between providers instantly. No manual config editing.
cc-switch use zai # → z.ai (GLM-4.7)
cc-switch use pro # → Claude Pro/Max
cc-switch use kimi # → Kimi K2
cc-switch use openrouter # → OpenRouter (320+ models)Install
npm install -g @adithya-13/cc-switchOr via curl:
curl -fsSL https://raw.githubusercontent.com/adithya-13/cc-switch/main/install.sh | bashWhy
Claude Code's usage limits hit mid-session. Switching providers manually means editing ~/.claude/settings.json, managing API keys, and restarting. cc-switch makes it one command.
Supported Providers
| Provider | Command | Models |
|---|---|---|
| Claude Pro/Max | cc-switch use pro | Claude Sonnet/Opus (OAuth) |
| z.ai | cc-switch use zai | GLM-4.7, GLM-5 |
| Kimi (Moonshot) | cc-switch use kimi | Kimi K2.5 |
| OpenRouter | cc-switch use openrouter | 320+ models |
| DeepSeek | cc-switch use deepseek | DeepSeek V3, R1 |
| Qwen (Alibaba) | cc-switch use qwen | Qwen3.5 |
| Ollama (local) | cc-switch use ollama | Any local model |
| Custom | cc-switch add myprofile | Anything |
Commands
cc-switch use <provider> # switch to provider
cc-switch list # list all providers + key status
cc-switch status # show current active provider
cc-switch add <name> # add a custom provider
cc-switch doctor # check setup and saved keysKey Storage
API keys are saved in ~/.cc-switch/keys.json (chmod 600). Never hardcoded or exposed.
Add Custom Provider
cc-switch add myprovider
# interactive wizard → asks for base URL, API key, model namesLicense
MIT
