https://github.com/alialfredji/cc-switch
Multi-provider model switching for Claude Code — Copilot, OpenAI, Ollama, OpenRouter and more
https://github.com/alialfredji/cc-switch
ai claude-code cli developer-tools github-copilot ollama openai
Last synced: 4 days ago
JSON representation
Multi-provider model switching for Claude Code — Copilot, OpenAI, Ollama, OpenRouter and more
- Host: GitHub
- URL: https://github.com/alialfredji/cc-switch
- Owner: alialfredji
- License: mit
- Created: 2026-03-20T11:57:45.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2026-03-20T22:24:19.000Z (3 months ago)
- Last Synced: 2026-03-21T12:58:05.969Z (3 months ago)
- Topics: ai, claude-code, cli, developer-tools, github-copilot, ollama, openai
- Language: TypeScript
- Size: 37.1 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cc-switch
Switch Claude Code between different AI providers.
## Install
```bash
npm install -g @alialf/cc-switch
```
## Usage
```bash
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 default
```
## Commands
- `cc-switch use [model]`
- `cc-switch auth `
- `cc-switch default`
- `cc-switch status`
- `cc-switch models [provider]`
- `cc-switch providers`
- `cc-switch proxy `
## Providers
- **Copilot** — via `copilot-api` subprocess + 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.ts` respects `NO_COLOR` and TTY detection.
- `copilot-api` is used only as a spawned subprocess.