@rezkycodes/ccswitcher
v1.0.0
Published
Terminal UI for switching Claude Code models & env settings
Downloads
35
Maintainers
Readme
ccswitcher
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.
Requirements
- Node.js >= 16
- Claude Code installed (requires
~/.claude/settings.jsonto exist) - 9router running locally (provides the model API endpoint)
Installation
npm (recommended)
npm install -g @rezkycodes/ccswitcherFrom source — Linux / macOS / WSL
git clone [email protected]:rezkycodes/ccswitcher.git
cd ccswitcher
chmod +x install.sh
./install.shFrom source — Windows
git clone [email protected]:rezkycodes/ccswitcher.git
cd ccswitcher
install.batOne-liner (no clone)
npx @rezkycodes/ccswitcherUsage
ccswitcherYou'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 savingMenu Options
| 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 |
Model Selector
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-lowUse arrow keys to navigate, Enter to select.
Provider Labels
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 | 💎 |
Uninstall
npm uninstall -g @rezkycodes/ccswitcherLicense
MIT © 2026 rezkycodes
