An open API service indexing awesome lists of open source software.

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

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.