A native macOS menu bar app that makes switching between different Claude Code API configurations effortless. Manage GAC Code, Kimi, Anyrouter, and custom endpoints with a single click.
原生 macOS 菜单栏应用,让切换不同的 Claude Code API 配置变得轻松简单。 一键管理 GAC Code、Kimi、Anyrouter 和自定义端点。
Create, edit, and organize multiple Claude Code API configurations. Support for custom endpoints and presets like GAC Code, Kimi, and Anyrouter.
创建、编辑和管理多个 Claude Code API 配置。支持自定义端点以及 GAC Code、Kimi、Anyrouter 等预设配置。
Automatically updates your shell configuration files (.zshrc, .bashrc) with environment variables. Supports custom config paths and validation.
自动更新您的 shell 配置文件(.zshrc、.bashrc)中的环境变量。支持自定义配置路径和验证。
Quick access from macOS menu bar with instant configuration switching. Launch at login support and seamless system integration.
从 macOS 菜单栏快速访问,一键切换配置。支持开机启动,与系统无缝集成。
Everything you need to manage your Claude Code environments, right from your menu bar.
从菜单栏管理您的 Claude Code 环境所需的一切功能。
Switch between different Claude Code configurations instantly from your menu bar. No need to restart your terminal or reconfigure environment variables manually.
从菜单栏即时切换不同的 Claude Code 配置。 无需重启终端或手动重新配置环境变量。
Built with SwiftUI and following Apple's Human Interface Guidelines. Feels right at home on your Mac with native performance and design.
使用 SwiftUI 构建,遵循 Apple 人机界面指南。 原生性能和设计,完美融入您的 Mac。
Your API keys and configurations are stored locally on your device and never transmitted elsewhere. All configuration changes are applied locally to your shell configuration files.
您的 API 密钥和配置本地存储在您的设备上,绝不传输到其他地方。 所有配置更改都在本地应用到您的 shell 配置文件。
Important things to know before using CCSwitch
使用 CCSwitch 前需要了解的重要事项
CCSwitch needs to read and modify your shell configuration files (.zshrc, .bashrc, etc.) to update environment variables. When you first run the app, macOS will prompt you to grant access to your home directory or specific folders. This permission is required for the app to function properly. All file operations are performed locally on your device.
CCSwitch 需要读取和修改您的 shell 配置文件(.zshrc、.bashrc 等)来更新环境变量。 首次运行应用时,macOS 会提示您授予对主目录或特定文件夹的访问权限。 此权限是应用正常运行所必需的。所有文件操作都在您的设备上本地执行。
When CCSwitch updates your shell configuration file, the changes only affect new terminal sessions. Existing terminal windows will continue using the old environment variables. To apply changes to current terminals, you need to manually run:
当 CCSwitch 更新您的 shell 配置文件时,更改只会影响新的终端会话。 现有的终端窗口将继续使用旧的环境变量。要将更改应用到当前终端,您需要手动运行:
source ~/.zshrc
# or your custom config file
# 或您的自定义配置文件
Tip: You can also close and reopen your terminal to load the new configuration.
提示:您也可以关闭并重新打开终端来加载新配置。
By default, CCSwitch modifies ~/.zshrc. If you use a different shell or custom configuration file:
默认情况下,CCSwitch 会修改 ~/.zshrc。如果您使用不同的 shell 或自定义配置文件:
After switching configurations, you can verify the environment variables in a new terminal:
切换配置后,您可以在新终端中验证环境变量:
echo $ANTHROPIC_AUTH_TOKENecho $ANTHROPIC_BASE_URLclaude-code --version
You can also test the connection by running a simple Claude Code command to ensure it's using the correct API endpoint.
您也可以通过运行简单的 Claude Code 命令来测试连接,确保它使用了正确的 API 端点。
macOS updates sometimes reset app permissions. If CCSwitch stops working:
macOS 更新有时会重置应用权限。如果 CCSwitch 停止工作:
Download CCSwitch for macOS and streamline your Claude Code workflow today.
下载 CCSwitch macOS 版,立即优化您的 Claude Code 工作流程。
Help us continue improving CCSwitch
帮助我们持续改进 CCSwitch
Support through Buy Me a Coffee platform
通过 Buy Me a Coffee 平台支持
Scan QR code with Alipay app
使用支付宝扫码支付
Open Alipay and scan this code
打开支付宝扫描此二维码
Scan QR code with WeChat app
使用微信扫码支付
Open WeChat and scan this code
打开微信扫描此二维码