{"_id":"@alialf/cc-switch","_rev":"2-b7d3376917431f77fef3da5fad4942ba","name":"@alialf/cc-switch","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@alialf/cc-switch","version":"1.0.0","keywords":["claude","anthropic","ai","provider","switch","cli","claude-code"],"license":"MIT","_id":"@alialf/cc-switch@1.0.0","maintainers":[{"name":"alfredjiali","email":"alfredjiali@gmail.com"}],"homepage":"https://github.com/alialfredji/cc-switch#readme","bugs":{"url":"https://github.com/alialfredji/cc-switch/issues"},"bin":{"cc-switch":"dist/cli.js"},"dist":{"shasum":"91fddc801a998bc8e08aeaf553c8f8622fd63f83","tarball":"https://registry.npmjs.org/@alialf/cc-switch/-/cc-switch-1.0.0.tgz","fileCount":4,"integrity":"sha512-irGyRRhid2vLIqjqD7ViyN6+Xa3YklJ/NTMaJmqn3hlxHrbu1by0zHKPV489Gl7Svj6LTyUmK3mqW3gH7KYVWQ==","signatures":[{"sig":"MEQCIAmdFYf7zWptfjgNAr2hyf9T992S4/HEfXulnpsD9/gLAiAWyx6dak7+ylO6ZB9C8ywtdE/+ug1vDf6SVGT55BQZMw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":27272},"type":"module","engines":{"node":">=18.0.0"},"gitHead":"ea7e86f68f1c8ee1ad68acb76391a077ad8d69b3","scripts":{"dev":"tsx src/cli.ts","build":"tsup","typecheck":"tsc --noEmit"},"_npmUser":{"name":"alfredjiali","email":"alfredjiali@gmail.com"},"repository":{"url":"git+https://github.com/alialfredji/cc-switch.git","type":"git"},"_npmVersion":"11.10.1","description":"Switch Claude Code between AI providers","directories":{},"_nodeVersion":"25.7.0","dependencies":{"copilot-api":"^0.7.0"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.3","tsup":"^8.3.6","typescript":"^5.8.2","@types/node":"^22.14.1"},"_npmOperationalInternal":{"tmp":"tmp/cc-switch_1.0.0_1774045295123_0.20017921793508053","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@alialf/cc-switch","version":"1.0.1","description":"Switch Claude Code between AI providers","type":"module","license":"MIT","repository":{"type":"git","url":"git+https://github.com/alialfredji/cc-switch.git"},"keywords":["claude","anthropic","ai","provider","switch","cli","claude-code"],"bin":{"cc-switch":"dist/cli.js"},"engines":{"node":">=18.0.0"},"scripts":{"build":"tsup","dev":"tsx src/cli.ts","typecheck":"tsc --noEmit"},"dependencies":{"copilot-api":"^0.7.0"},"devDependencies":{"@types/node":"^22.14.1","tsup":"^8.3.6","tsx":"^4.19.3","typescript":"^5.8.2"},"gitHead":"67be521f3aa2028a7b7b8a26f476a71d4c0c669d","_id":"@alialf/cc-switch@1.0.1","bugs":{"url":"https://github.com/alialfredji/cc-switch/issues"},"homepage":"https://github.com/alialfredji/cc-switch#readme","_nodeVersion":"25.7.0","_npmVersion":"11.10.1","dist":{"integrity":"sha512-FFN10f7nLXRHY6koIhpH9X19Eb5BUeHNIjZtS8kNZc4lg6zmM7ELJkoSsxAvKiXylkSPVeaeh5o9LViuAjFDXw==","shasum":"ba923f06278f1cde01caf3c58ecef2fd1c5cb151","tarball":"https://registry.npmjs.org/@alialf/cc-switch/-/cc-switch-1.0.1.tgz","fileCount":4,"unpackedSize":38234,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIBu28+O4KusAuiboBNmDVI9sIyWgyARV4xx+o6PDy4sxAiAhdYM9r/FucgqiOH2IVt6nZKDPWzHJJRkuA51xirmluw=="}]},"_npmUser":{"name":"alfredjiali","email":"alfredjiali@gmail.com"},"directories":{},"maintainers":[{"name":"alfredjiali","email":"alfredjiali@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/cc-switch_1.0.1_1774139234446_0.9784734607746779"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-20T22:21:35.034Z","modified":"2026-03-22T00:27:14.763Z","1.0.0":"2026-03-20T22:21:35.327Z","1.0.1":"2026-03-22T00:27:14.606Z"},"bugs":{"url":"https://github.com/alialfredji/cc-switch/issues"},"license":"MIT","homepage":"https://github.com/alialfredji/cc-switch#readme","keywords":["claude","anthropic","ai","provider","switch","cli","claude-code"],"repository":{"type":"git","url":"git+https://github.com/alialfredji/cc-switch.git"},"description":"Switch Claude Code between AI providers","maintainers":[{"name":"alfredjiali","email":"alfredjiali@gmail.com"}],"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 <provider> [model]`\n- `cc-switch auth <provider>`\n- `cc-switch default`\n- `cc-switch status`\n- `cc-switch models [provider]`\n- `cc-switch providers`\n- `cc-switch proxy <start|stop|status>`\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","readmeFilename":"README.md"}