Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

CC Switch One-Click API Switching

CC Switch One-Click API Switching

With the popularity of AI coding tools such as Claude Code, OpenAI Codex, and Gemini CLI, developers often need to frequently switch between multiple API providers - official APIs, domestic mirrors, third-party proxies... Manually editing the configuration file each time is both tedious and error-prone.

CC Switch is a desktop tool that solves this pain point. It provides a unified graphical interface that lets you:

Function Description
🔄 One-Click Provider Switching Save multiple sets of API configurations and switch with a single click, no need to manually edit JSON
🖥️ Unified Management of Multiple Applications Manage five tools at the same time: Claude Code, Codex, Gemini CLI, OpenCode, and OpenClaw
🛡️ Local API Proxy Built-in high-performance HTTP proxy with automatic failover and request monitoring
🔌 MCP Server Management Visually add, edit, and sync MCP server configurations
📊 Usage Statistics View Token consumption and API costs in real time
💾 Backup and Restore Automatically back up configurations to prevent data loss from misoperations

Supported applications


Installation

Go to GitHub Releases: https://github.com/farion1231/cc-switch/releases/latest Download the installer for your platform.

Scroll to the very bottom of the page, to the assets section, and download the installer for your platform:

System Requirements

System Minimum version Architecture
Windows Windows 10 and above x64
macOS macOS 10.15 (Catalina) and above Intel (x64) / Apple Silicon (arm64)
Linux See the table below x64 / arm64

Windows

file Description
CC-Switch-vX.X.X-Windows.msi ✅ Recommend-- MSI installer, supports automatic updates
CC-Switch-vX.X.X-Windows-Portable.zip Portable version, ready to use after extraction, does not write to the registry

Double-click the MSI file, follow the wizard to complete installation, then search for "CC Switch" in the Start menu to launch it.

⚠️ The Windows version has disabled the "one-click install" feature to avoid side effects of the protocol handler. To install tools such as Claude Code, install them manually first and then manage them through CC Switch.

macOS

Method 1: Direct download (recommended)

  1. Download CC-Switch-vX.X.X-macOS.zip
  2. After extraction, drag CC Switch.app into the "Applications" folder
  3. On first launch, right-click and choose Open, or go to "System Settings -> Privacy & Security -> Open Anyway"

⚠️ Because the author does not have an Apple developer account, macOS may show an "unknown developer" warning. After dismissing the prompt, go to "System Settings -> Privacy & Security" and click "Open Anyway"; it will then launch normally every time.

Method 2: Homebrew

# 添加 tap 并安装

brew tap farion1231/ccswitch

brew install --cask cc-switch

# 更新

brew upgrade --cask cc-switch

Linux

Choose the corresponding format according to your distribution:

Distribution Recommended format Install Command
Ubuntu / Debian / Mint .deb sudo apt install ./CC-Switch-*.deb
Fedora / RHEL / Rocky .rpm sudo dnf install ./CC-Switch-*.rpm
openSUSE .rpm sudo zypper install ./CC-Switch-*.rpm
Arch / Manjaro / Others .AppImage See below

How to use AppImage:

chmod +x CC-Switch-*.AppImage

./CC-Switch-*.AppImage


Quick Start

After installation, follow these steps to complete the initial configuration:

Step 1: Launch CC Switch

On first launch, CC Switch automatically detects installed CLI tools and tries to import existing configurations; a CC Switch icon will appear in the system tray.

Step 2: Select the application to manage

At the top of the main interface is the application switch bar; click the corresponding icon (Claude Code / Codex / Gemini CLI, etc.) to switch the currently managed application. You can hide unneeded applications in the settings.

Step 3: Add the first Provider

Click the + in the upper-right corner and choose from built-in presets (such as the official Anthropic API, DeepSeek, Alibaba Bailian, etc.), or manually fill in the following information:

Step 4: Switch Provider

Click the target Provider in the list, then click "Enable"; CC Switch will automatically write the configuration into the corresponding CLI tool's config file:

When you run directly in the terminal claude the command, the new configuration will be used.

Step 5: Verify the configuration (optional)

Click the "Health Check" button next to the Provider to send a test request to verify the API Key and network connectivity.

💡 Press Cmd/Ctrl + , to quickly open settings; press ESC to close the current panel.


Advanced features

MCP Server Management

In the "MCP" panel, visually add, edit, and delete MCP (Model Context Protocol) servers. Configurations are automatically synced to the corresponding CLI tools, and you can import existing MCP configurations from installed applications with one click.

Skills Management

Skills is a prompt-enhancement feature of Claude Code. CC Switch supports:

Session Manager

On the "Sessions" page, you can browse the conversation history of all five applications, with directory navigation and in-session search, and it automatically filters by the current application.

Backup Management

CC Switch periodically backs up the database automatically and also backs up before database migrations. In "Settings -> Backup Management" you can: view all backups, rename, delete, and manually create backups.

Usage Statistics and Billing

The "Usage" page shows Token consumption statistics, with auto-refresh, cache hit rate analysis, and cost breakdown by model and Provider, helping you keep API spending under control.

Claude Rectifier (thinking signature fix)

When using certain third-party API gateways, Claude's thinking block format may be incompatible. After enabling Rectifier, the proxy layer fixes this issue automatically. You can toggle it in "Settings -> Advanced".

WebDAV Automatic Sync

Supports syncing the database to WebDAV services (such as Jianguoyun) for configuration sharing across multiple devices. Built-in large-file protection prevents accidental uploads.