From cc-switch
Install and configure the cc provider/key switcher for Claude Code. Use when setting up a new machine to quickly switch between multiple API keys/providers with a single command.
How this skill is triggered — by the user, by Claude, or both
Slash command
/cc-switch:cc-switchThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
This skill installs `cc`, a shell function that lets you switch between multiple API keys and providers when launching Claude Code.
This skill installs cc, a shell function that lets you switch between multiple API keys and providers when launching Claude Code.
cc xcode1 # launch with specific provider
cc # interactive selection
cc --list # show all providers
Run these steps to install cc-switch on this machine:
cc.sh to ~/.claude/cc.sh:curl -fsSL https://raw.githubusercontent.com/Huaer02/cc-switch/main/cc.sh -o ~/.claude/cc.sh
chmod +x ~/.claude/cc.sh
~/.zshrc (if not already present):grep -q 'source ~/.claude/cc.sh' ~/.zshrc || echo '\n# Claude Code provider switcher\nsource ~/.claude/cc.sh' >> ~/.zshrc
~/.claude/providers.json from template:cp providers.example.json ~/.claude/providers.json
~/.claude/providers.json to add your actual keys:{
"providers": {
"my-key": {
"description": "My API provider",
"base_url": "https://api.example.com",
"auth_token": "sk-your-key-here"
}
},
"default": "my-key"
}
For providers with custom model names (like mimo), add model fields:
{
"providers": {
"mimo": {
"description": "xiaomimimo",
"base_url": "https://token-plan-cn.xiaomimimo.com/anthropic",
"auth_token": "tp-your-token",
"model": "mimo-v2.5-pro",
"sonnet_model": "mimo-v2.5-pro",
"opus_model": "mimo-v2.5",
"haiku_model": "mimo-v2.5-flash"
}
}
}
source ~/.zshrc
cc --list
All providers live in ~/.claude/providers.json. To add/rename/remove a provider, just edit that file. Changes take effect on next cc invocation.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub huaer02/cc-switch --plugin cc-switch