Claude Code Switch — AI skill for Claude Code
One-command model switcher for Claude Code (Only for Anthropic API).
How to install Claude Code Switch
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open foreveryh/claude-code-switch and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Claude Code Switch does
One-command model switcher for Claude Code (Only for Anthropic API).
Alternatives in AI
- Deepreasoning — A high-performance LLM inference API and Chat UI that integrates DeepSeek R1's CoT reasoning traces with Anthr 5.4k ★
- EchoBird — One-click install + model switch:Claude Code,Codex CLI (OpenAI), Grok Build (xAI), DeepSeek Harness, Kimi Code 3.1k ★
- Anthropic SDK TypeScript — Access to Anthropic's safety-first language model APIs in TypeScript 2.1k ★
README
Claude Code Switch (ccm)
[](LICENSE) [](https://github.com/foreveryh/claude-code-switch/stargazers) [](https://github.com/foreveryh/claude-code-switch/issues)
Switch Claude Code between AI providers with one command.
[中文文档](README_CN.md)
Quick Start
# 1. Install
curl -fsSL https://raw.githubusercontent.com/foreveryh/claude-code-switch/main/quick-install.sh | bash
# 2. Reload shell
source ~/.zshrc # or ~/.bashrc
# 3. Configure your API keys
ccm config
# 4. Switch and use
ccm glm # switch to GLM
ccc glm global # switch + launch Claude Code
# Advanced: User-level settings (highest priority, overrides everything)
ccm user glm global # Set GLM as default for all projects
ccm user reset # Restore environment variable control
# Advanced: Project-only override
ccm project glm china # GLM for this project only
# Advanced: Multiple Claude Pro accounts
ccm save-account work # save current account
ccm switch-account work # switch to saved account
Installation
Quick Install (Recommended)
curl -fsSL https://raw.githubusercontent.com/foreveryh/claude-code-switch/main/quick-install.sh | bash
source ~/.zshrc # or ~/.bashrc
Local Install
git clone https://github.com/foreveryh/claude-code-switch.git
cd claude-code-switch
./install.sh
source ~/.zshrc
Install Modes
| Mode | Command | Use Case |
|---|---|---|
| User (default) | ./install.sh |
Personal use, available everywhere |
| System | ./install.sh --system |
Shared machine, all users |
| Project | ./install.sh --project |
Project-specific, isolated setup |
Install Options
./install.sh --no-rc # Skip shell rc injection
./install.sh
Related Skills
Smart Switch
Multi-app model provider switcher: manage OpenAI/Anthropic-protocol providers (base URL + API key + models) an
Claude Glm Switcher
Claude Code --glm mode switcher - Toggle between Anthropic subscription and z.ai API with one flag
Claude Controller
claude-controller is a bash script that gives you a single command to switch Claude Code between four AI backe
Aisw
AISW AI Switcher - Switch between multiple Claude Code, Codex CLI, Antigravity and Gemini CLI accounts in one
Switcher
One harness, all your AI accounts. Switch Claude Code, Codex and Claude Desktop between your own subscriptions
Claude Model Switch
Use any model with Claude Code. Switch providers instantly, add your own API keys, and run multi-model tmux or
Related Agents
AI Saglayici Uzmani
Anthropic Messages API ve OpenAI Codex App Server entegrasyonunun uzmanı — akış, araç döngüsü, hata/yeniden de
Heavy Task
Executes complex tasks (architecture, multi-file implementation, refactors, deep debugging) delegated by the m
Claude Code Research Agent
Senior Anthropic researcher specializing in Claude Code CLI - researches latest context window and model avail