Claude Code model router

claude-code-switch

One-command model switcher for Claude Code.

Install

From source
git clone https://github.com/foreveryh/claude-code-switch.git

From 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…
Read the full README on GitHub

Details

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

Browse the most popular Claude Code mods, all model routers & proxies, or the skills and MCP server directories.