cc-switch
by farion1231
Desktop app for Windows, macOS and Linux that manages settings for Claude Code, Codex, OpenCode and similar AI coding tools.
- Stars
- 157,398 stars
- Forks
- 10k forks
- Last push
- today
- Activity
- Active
# Install on macOS with Homebrew$ brew install --cask cc-switch# Install on Arch Linux$ paru -S cc-switch-binCommands from the project's README. Run them after installing (see below).
Overview
Understand cc-switch in 60 seconds
- What it does
- CC Switch is a desktop app for managing AI coding tools such as Claude Code, Codex, Gemini CLI and OpenCode. It lets you switch API providers in one click and manage MCP servers, skills and prompts in one place.
- The problem it solves
- Each AI coding tool keeps its own config in JSON, TOML, YAML or .env files, so changing providers or adding an MCP server means editing several files by hand. CC Switch handles that from one app and only replaces the connection details.
- Why choose it
- Choose it if you juggle several coding agents or providers and want a GUI instead of editing config files. If you use one tool with one account, you probably don't need it.
- Who should use it
- Developers who use several AI coding CLIs
- People who switch between API providers or accounts
- Users who want MCP servers and skills synced across tools
- Anyone who wants to track token usage and quotas
- Setup difficulty
You'll need:
- Windows 10+, macOS 12+, or Linux x86_64/ARM64 with glibc 2.35+ and WebKitGTK 4.1
How cc-switch works
CC Switch is a native desktop app built with Tauri 2 that manages twelve tools, including Claude Code, Claude Desktop, Codex, Gemini CLI, Grok Build, OpenCode, OpenClaw and Hermes Agent. It has more than 90 provider presets, including AWS Bedrock and NVIDIA NIM, and switching changes only the endpoint, key and model.
Besides direct connections, a Routing mode forwards requests through your machine to convert API formats and fail over automatically, and Aggregation mode combines models for Claude Code and Codex. MCP servers and skills are added once and synced to the tools you choose.
It also reads each tool's session logs into a readable view, shows token usage, spending and remaining quotas, and can install or upgrade the coding tools themselves. On first launch it imports your existing configuration as a provider named default.
Features
Key features
One-click provider switching
Pick a preset, enter your key and switch.
Twelve tools in one app
Claude Code, Codex, Gemini CLI, OpenCode, OpenClaw, Hermes and more.
Shared MCP and skills
Add MCP servers and skills once, then sync them to chosen tools.
Routing and failover
Convert API formats locally and fail over between providers.
Readable sessions
See what each turn did, which files changed and which step failed.
Usage and quotas
Track tokens, spending and remaining quota per provider.
Strengths
- Saves hand-editing many config formats
- Cross-platform desktop app
- Keeps your own plugins, hooks and comments when switching
- MIT licensed
Limitations
- Some tools need a restart after switching
- Older enterprise Linux (RHEL/Rocky/Alma 8–9) isn't supported yet
- Third-party relay providers in its presets are separate services; check their terms yourself
Practical use cases
Switch Claude Code providers
Move between an official login and an API provider in one click.
Sync an MCP server
Add it once and enable it for Claude Code, Codex and Gemini CLI.
Review a session
Open the reading view to see what an agent changed.
Installation
Install cc-switch
Commands come from CC Switch's README. AIRepoHub hasn't run them yet. Steps are as of Nov 25, 2026; projects change often, so if a command doesn't work, check the project's latest README. View source
Prerequisites
- A supported OS (see requirements)
Supported systems
- Windows
- macOS
- Linux
- 1
Install
Shellbrew install --cask cc-switch - 2
Update later
Shellbrew upgrade --cask cc-switch
- 1
Download the installer
Get CC-Switch-v{version}-Windows.msi (or the portable .zip, or the arm64 .msi on Windows on ARM) from the GitHub Releases page and run it.
- 1
Arch Linux
Shellparu -S cc-switch-bin - 2
Other distros
Download the .deb, .rpm or .AppImage for your architecture from the Releases page.
Configuration and API keys
| Setting | What it's for |
|---|
First run
- 1
Open CC Switch
It imports your existing Claude Code, Codex, Gemini CLI and Grok Build config as a provider named default.
- 2
Add a provider
Pick a tool in the sidebar, click + and choose a preset.
cc-switch's documentation doesn't include sample output, so we don't show any. Expect the results in your terminal.
Your first project
Switch Claude Code to a different API provider
Add a provider preset and switch Claude Code to it.
Before you start
- CC Switch installed
- An API key for the provider you want
- 1
Select Claude Code in the sidebar
- 2
Click + (Add Provider)
Choose a preset or create a custom configuration and enter your key.
- 3
Click Enable on the provider
Claude Code needs no restart. Codex, Gemini CLI and Grok Build need a terminal restart.
- 4
Go back to the official login anytime
Switch to the built-in Claude Official provider, restart the tool and log in.
What to expect
Claude Code uses the new provider, and your own plugins, hooks and MCP settings are unchanged.
Next steps
- Add an MCP server once and sync it to several tools
- Try Routing mode for automatic failover
- Read the user manual in docs/user-manual
Costs and requirements
What it costs to run
- License
- MIT. Free to use, modify and use commercially.Free
- App
- Free.Free
- Providers
- API providers and subscriptions you connect bill you directly.Depends
Troubleshooting
Common setup issues
Switch didn't take effect
Restart your terminal or the CLI for Codex, Gemini CLI and Grok Build, and restart Claude Desktop itself.
Want the official login back
Switch to the built-in official provider, restart the tool and follow its login flow.
App won't run on Linux
It needs glibc 2.35+ and WebKitGTK 4.1, for example Ubuntu 22.04+ or Debian 12+.
Alternatives
Similar AI repositories
impeccable
pbakaus
Design toolkit for AI coding agents that helps them review, critique and polish the user interfaces they build.
RuView
ruvnet
Project that uses ordinary WiFi signals to detect presence and monitor vital signs without any cameras.
rtk
rtk-ai
Command-line proxy that reduces how many tokens AI coding agents use on common developer commands.
rea
morluto
Connects AI agents to reverse-engineering tools for inspecting binaries, apps and websites.