Work

cc‑switch

One command switches Claude Code between Anthropic and open model providers.

cc-switch is a profile manager for Claude Code. Keep a profile for your Claude subscription, one for Kimi, one for a local Ollama model, one for work on Bedrock, and move between them without editing settings.json by hand.

Licence
MIT
First published
February 2026
npm install -g @aravhawk/cc-switch

Install. Or pnpm add -g @aravhawk/cc-switch. It needs Node.js 22.12 or newer.

cc-switch --create kimi --template kimi

Create. cc-switch --create kimi --template kimi makes a profile from a provider template. More than 40 providers are covered: Anthropic, open model labs, gateways, local servers and cloud platforms.

cc-switch work

Switch. cc-switch work switches back. Creating a profile saves the one you were on, so nothing is lost.

cc-switch --test

Test. cc-switch --test sends one tiny request to check the endpoint, the key and the model.

cc-switch --list
cc-switch --current
cc-switch --providers

Where it lives. Each profile is a saved settings.json under ~/.cc-switch/profiles. state.json records the active one.

What cc-switch work writes

  1. live settings.jsontoprofiles/kimi/settings.jsonThe live settings are saved into the active profile.
  2. profiles/work/settings.jsontolive settings.jsonThe target’s settings are written.
  3. worktostate.jsonstate.json is updated.

If it fails. Writes are atomic, symlinked settings.json files are updated in place, and a failed switch or create restores the previous profile.

Keys. Stored in the profile’s settings.json with 0600 permissions, never printed, and only sent to the profile’s own base URL. The cloud platform templates store no secret.

Full profiles. With --full a profile also swaps chosen files: CLAUDE.md, agents, skills, rules, commands and more.

41 provider templates, in six groups

  • Anthropic 2

  • Model labs 12

    Z.ai GLM, Moonshot Kimi, Kimi Code, MiniMax, DeepSeek, Alibaba Qwen, Xiaomi MiMo, StepFun, Volcengine, Tencent, Baidu Qianfan, Meituan LongCat

  • Local 6

    Ollama, LM Studio, llama.cpp, vLLM, SGLang, Docker Model Runner

  • Gateways and routers 9

    OpenRouter, Vercel AI Gateway, Hugging Face, ZenMux, AIHubMix, Requesty, OpenCode, LiteLLM, custom

  • Inference hosts 8

  • Cloud platforms 4

    Amazon Bedrock, Vertex AI, Microsoft Foundry, Claude Platform on AWS

“Templates replace everything tied to the previous provider so settings never leak between providers.”
cc-switch README
“Anthropic does not support running Claude Code against non-Claude models. Each template follows the provider’s own Claude Code documentation, and that provider is who supports it.”
cc-switch README