@alialf/cc-switch
v1.0.1
Published
Switch Claude Code between AI providers
Maintainers
Readme
cc-switch
Switch Claude Code between different AI providers.
Install
npm install -g @alialf/cc-switchUsage
cc-switch --help
cc-switch providers
cc-switch status
cc-switch auth copilot
cc-switch use copilot
cc-switch copilot
cc-switch auth openrouter
cc-switch use openrouter anthropic/claude-sonnet-4
cc-switch defaultCommands
cc-switch use <provider> [model]cc-switch auth <provider>cc-switch defaultcc-switch statuscc-switch models [provider]cc-switch providerscc-switch proxy <start|stop|status>
Providers
- Copilot — via
copilot-apisubprocess + local proxy - OpenRouter — direct API
- OpenAI — coming soon
- Ollama — coming soon
Config
Stored at ~/.config/cc-switch/config.json.
Notes
- Backward compatible alias:
cc-switch copilot [model] output.tsrespectsNO_COLORand TTY detection.copilot-apiis used only as a spawned subprocess.
