CC-Switch 配置工具教程
图形化 API 配置管理工具,一键切换多个 AI 提供商,推荐所有用户使用
什么是 CC-Switch?
CC-Switch 是一款专为 Claude Code 用户设计的图形化 API 配置管理工具,支持:
一键切换
在多个 API 提供商之间快速切换配置
可视化界面
无需手动编辑 JSON 文件,图形化管理
MCP 支持
可视化管理 MCP 服务器配置
系统托盘
最小化到托盘,随时快速切换
下载安装
访问下载页面
在 GitHub 或官方渠道搜索 CC-Switch 下载最新版本
选择安装包
Windows 用户推荐下载 .msi 安装包,macOS 下载 .dmg,Linux 下载 .AppImage
安装并启动
运行安装程序,完成后启动 CC-Switch
配置 XiDao Api
Add New Config
Click "Add Config" or the "+" button on the main interface
Fill Config Info
Fill in the following information in the popup form:
配置名称: XiDao Api (可自定义)
API Key: sk-你的API_KEY
Base URL: https://api.xidao.online
模型(可选): claude-sonnet-4-5-20250929
Save & Enable
Click "Save", then click the "Enable" button next to the config
Verify Connection
Open terminal and run claude to confirm connection to XiDao Api
Multi-Config Management
CC-Switch's core advantage is managing multiple API configs simultaneously for easy comparison and switching:
Typical Use Cases
XiDao Api Primary
Daily development config, using Claude Sonnet or GPT-5
XiDao Opus
Switch to Claude Opus 4.6 for complex tasks
Test / Backup
Backup config or test other models
MCP Server Management
CC-Switch also supports visual management of MCP (Model Context Protocol) server configs:
- Click the "MCP" tab in the interface
- Click "Add MCP Server"
- Fill in server name and command (e.g., npx, uvx, etc.)
- Auto-sync to Claude Code config after saving
Common MCP servers include: file system, GitHub, database, search engine, etc.
System Tray Usage
CC-Switch stays in the system tray when minimized, providing convenient quick operations:
| Action | Description |
|---|---|
| Left-click | Show current active config info |
| Right-click | Popup menu: switch config, open main window, exit |
| Double-click | Open CC-Switch main window |