{"id":51029320,"url":"https://github.com/alialfredji/cc-switch","last_synced_at":"2026-06-21T22:31:09.579Z","repository":{"id":345828015,"uuid":"1187151579","full_name":"alialfredji/cc-switch","owner":"alialfredji","description":"Multi-provider model switching for Claude Code — Copilot, OpenAI, Ollama, OpenRouter and more","archived":false,"fork":false,"pushed_at":"2026-03-20T22:24:19.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-21T12:58:05.969Z","etag":null,"topics":["ai","claude-code","cli","developer-tools","github-copilot","ollama","openai"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alialfredji.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-20T11:57:45.000Z","updated_at":"2026-03-20T22:24:22.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/alialfredji/cc-switch","commit_stats":null,"previous_names":["alialfredji/clswitch"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/alialfredji/cc-switch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alialfredji%2Fcc-switch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alialfredji%2Fcc-switch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alialfredji%2Fcc-switch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alialfredji%2Fcc-switch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alialfredji","download_url":"https://codeload.github.com/alialfredji/cc-switch/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alialfredji%2Fcc-switch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34628453,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-21T02:00:05.568Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","claude-code","cli","developer-tools","github-copilot","ollama","openai"],"created_at":"2026-06-21T22:31:08.742Z","updated_at":"2026-06-21T22:31:09.574Z","avatar_url":"https://github.com/alialfredji.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cc-switch\n\nSwitch Claude Code between different AI providers.\n\n## Install\n\n```bash\nnpm install -g @alialf/cc-switch\n```\n\n## Usage\n\n```bash\ncc-switch --help\ncc-switch providers\ncc-switch status\n\ncc-switch auth copilot\ncc-switch use copilot\ncc-switch copilot\n\ncc-switch auth openrouter\ncc-switch use openrouter anthropic/claude-sonnet-4\n\ncc-switch default\n```\n\n## Commands\n\n- `cc-switch use \u003cprovider\u003e [model]`\n- `cc-switch auth \u003cprovider\u003e`\n- `cc-switch default`\n- `cc-switch status`\n- `cc-switch models [provider]`\n- `cc-switch providers`\n- `cc-switch proxy \u003cstart|stop|status\u003e`\n\n## Providers\n\n- **Copilot** — via `copilot-api` subprocess + local proxy\n- **OpenRouter** — direct API\n- **OpenAI** — coming soon\n- **Ollama** — coming soon\n\n## Config\n\nStored at `~/.config/cc-switch/config.json`.\n\n## Notes\n\n- Backward compatible alias: `cc-switch copilot [model]`\n- `output.ts` respects `NO_COLOR` and TTY detection.\n- `copilot-api` is used only as a spawned subprocess.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falialfredji%2Fcc-switch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falialfredji%2Fcc-switch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falialfredji%2Fcc-switch/lists"}