Terminal UI for switching Claude Code models and editing environment settings.
Quickly change models fetched from your local API, apply one model to all keys, or edit base URL and auth token — all from an interactive terminal menu.
Note: This tool is designed specifically for use with 9router — a local API router/proxy that provides the
/v1/modelsendpoint. Make sure 9router is running before using ccswitcher.
- Node.js >= 16
- Claude Code installed (requires
~/.claude/settings.jsonto exist) - 9router running locally (provides the model API endpoint)
npm install -g @rezkycodes/ccswitchergit clone git@github.com:rezkycodes/ccswitcher.git
cd ccswitcher
chmod +x install.sh
./install.shgit clone git@github.com:rezkycodes/ccswitcher.git
cd ccswitcher
install.batnpx @rezkycodes/ccswitcherccswitcherYou'll see a menu like:
╔═══════════════════════════════════════════╗
║ ⚡ ccswitcher v1.0.0 ║
║ Claude Code Model Switcher ║
╚═══════════════════════════════════════════╝
📁 ~/.claude/settings.json
╭────────────────────────────────────────┬──────────────────────────────────────────────────────────╮
│ Key │ Value │
├────────────────────────────────────────┼──────────────────────────────────────────────────────────┤
│ 🌐 ANTHROPIC_BASE_URL │ http://localhost:20128/v1 │
│ 🔑 ANTHROPIC_AUTH_TOKEN │ sk-xxx... │
│ 🤖 MODEL │ kr/claude-sonnet-4.5 ● │
│ 🧠 OPUS_MODEL │ kr/claude-sonnet-4.5 │
│ 🎵 SONNET_MODEL │ kr/claude-sonnet-4.5 │
│ 🌸 HAIKU_MODEL │ kr/claude-sonnet-4.5 │
╰────────────────────────────────────────┴──────────────────────────────────────────────────────────╯
❯ 🤖 Edit Default Model
🧠 Edit Opus Model
🎵 Edit Sonnet Model
🌸 Edit Haiku Model
───────────────────────────────────
🔄 Apply same model to ALL keys
───────────────────────────────────
🌐 Edit Base URL
🔑 Edit Auth Token
───────────────────────────────────
💾 Save & Exit
🚪 Quit without saving
| Key | Action |
|---|---|
1 |
Choose model for ANTHROPIC_MODEL |
2 |
Choose model for ANTHROPIC_DEFAULT_OPUS_MODEL |
3 |
Choose model for ANTHROPIC_DEFAULT_SONNET_MODEL |
4 |
Choose model for ANTHROPIC_DEFAULT_HAIKU_MODEL |
a |
Apply the same model to all 4 keys at once |
u |
Edit ANTHROPIC_BASE_URL |
t |
Edit ANTHROPIC_AUTH_TOKEN |
s |
Save changes and exit |
q |
Quit without saving |
Models are fetched from {ANTHROPIC_BASE_URL}/models and grouped by provider:
🔷 Kiro (6)
claude-sonnet-4.5 ● current
claude-haiku-4.5
deepseek-3.2
🐙 Github Copilot (24)
gpt-4o
gpt-5.2
claude-sonnet-4.6
🌀 Antigravity (6)
gemini-3.1-pro-high
gemini-3.1-pro-low
Use arrow keys to navigate, Enter to select.
Known providers are mapped automatically. Unknown providers get auto-generated labels from their prefix.
| Prefix | Label | Icon |
|---|---|---|
kr |
Kiro | 🔷 |
gh |
Github Copilot | 🐙 |
kc |
KiloCode | ⚡ |
ag |
Antigravity | 🌀 |
cl |
CLine | 🟣 |
cx |
Codex | 🧬 |
if |
IFlow | 🌊 |
nvidia |
NVIDIA | 💚 |
ollama |
Ollama | 🦙 |
glm |
GLM | 🔮 |
gc |
Gemini CLI | 💎 |
npm uninstall -g @rezkycodes/ccswitcherMIT © 2026 rezkycodes