Skip to content

rezkycodes/ccswitcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/models endpoint. Make sure 9router is running before using ccswitcher.

Requirements

  • Node.js >= 16
  • Claude Code installed (requires ~/.claude/settings.json to exist)
  • 9router running locally (provides the model API endpoint)

Installation

npm (recommended)

npm install -g @rezkycodes/ccswitcher

From source — Linux / macOS / WSL

git clone git@github.com:rezkycodes/ccswitcher.git
cd ccswitcher
chmod +x install.sh
./install.sh

From source — Windows

git clone git@github.com:rezkycodes/ccswitcher.git
cd ccswitcher
install.bat

One-liner (no clone)

npx @rezkycodes/ccswitcher

Usage

ccswitcher

You'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

Menu 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-low

Use 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/ccswitcher

License

MIT © 2026 rezkycodes

About

Terminal UI for switching Claude Code models

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors