Claude Code model router
claude-code-switch
One-command model switcher for Claude Code.
Install
git clone https://github.com/foreveryh/claude-code-switch.gitFrom the README
Claude Code Switch (ccm) Switch Claude Code between AI providers with one command. 中文文档 Quick Start Installation Quick Install (Recommended) Local Install Install Modes Install Options Uninstall First-Time Setup 1. Configure API Keys This opens ~/.ccm_config in your editor. Add your API keys: 2. Verify Setup Basic Usage Switch Provider (in current shell) Switch + Launch Claude Code Check Status Update Config When model IDs change in new versions, update your config: Get Help Providers Reference Direct Providers (API Key Required) GLM Coding Plan: bigmodel.cn/glm-coding Doubao Coding Plan: volcengine.com (Invite code: ZP5PZMEY) Seed Variants OpenRouter Available providers: claude, glm, kimi, deepseek, qwen, minimax, stepfun Free tier: stepfun-free or sf-free for StepFun's free model Advanced Features Claude Pro Account Management Switch between multiple Claude Pro subscriptions: User-Level Settings (Highest Priority) Write settings directly to ~/.claude/settings.json. This overrides everything including environment variables and is useful when you have other tools (like Quotio) that also modify this file. When to use: - You have Quotio or another proxy that sets ~/.claude/settings.json - You want a persistent default that survives shell restarts - Environment variables are being overridden by something else Project-Only Override Override settings for a specific project (keeps global settings intact): This creates/removes .claude/settings.local.json in the current project. Launch with Account Configuration Priority Order (highest to lowest) 1. ~/.claude/settings.json (env section) - User-level settings 2. .claude/settings.local.json - Project-level settings 3. ~/.ccm_config file - Always reloads on each ccm command 4. Environment…
Details
- Repository
- foreveryh/claude-code-switch
- Website
- cc.deeptoai.com
- Language
- Shell
- License
- MIT
- Last updated
- 19 February 2026
FAQ
What is claude-code-switch?
One-command model switcher for Claude Code. It is a model router for Claude Code, from foreveryh/claude-code-switch on GitHub.
How do I install claude-code-switch?
Clone foreveryh/claude-code-switch from GitHub and follow the setup steps in its README.
Is claude-code-switch popular?
foreveryh/claude-code-switch has 666 GitHub stars and 91 forks. It was last updated on 19 February 2026.
More model routers & proxies
claude-code-proxy
692raine/claude-code-proxy
Local proxy to use Claude Code with ChatGPT, Kimi, Cursor or Grok subscriptions.
jev-router
652gargpratyush/jev-router
Routes each Claude Code task to the cheapest suitable model.
Code Switch
826daodao97/code-switch
Desktop tool for switching Claude Code and Codex between API providers.
Mcpc
1.1kapify/mcpc
The most compatible MCP CLI client. Supports: tools, resources, prompts, completions, async tasks, skills, stdio and streamable HTTP (MCP 2026-07-28 and 2025-11-25), persistent sessions, OAuth 2.1 with DCR, CIMD, client credentials, and ID-JAG, OS keychain, --json for code mode, grep for tool discovery, proxy for AI sandboxes, x402, and more.
Routatic Proxy
982routatic/proxy
Routes Claude Code requests through multiple upstream providers with automatic model selection.
Wesight
966freestylefly/wesight
Open-source desktop AI agent workspace with one-click Claude Code, Codex, OpenClaw, Hermes Agent setup and custom LLM model routing.
Browse the most popular Claude Code mods, all model routers & proxies, or the skills and MCP server directories.