User GuideAPI ReferenceAI Applications

CC Switch

CC Switch is an open-source, cross-platform desktop tool for unified AI CLI management. It supports one-click switching of model endpoints for Claude Code, Codex, and Gemini CLI, and centrally manages cross-application MCP servers and system prompts, freeing developers from tedious manual configuration file edits.

CC Switch natively supports the ccswitch:// Deep Link protocol. You do not need to manually copy and paste parameters—endpoint injection can be completed with a single click from the OpenRely console:

On the OpenRely API Key Management Page, click the action menu to the right of any key and select the "CC Switch" option. The system will automatically launch the CC Switch client and pre-fill the Base URL and API key.


🔑 Prerequisites


🚀 Steps

Install CC Switch

Choose an installation method based on your operating system, or go directly to GitHub Releases to download the latest installer:

brew tap farion1231/ccswitch
brew install --cask cc-switch

Download the .msi installer or the ready-to-use portable .zip version from GitHub Releases.

Download the .deb package or .AppImage from GitHub Releases.

Arch Linux users can directly use the AUR:

paru -S cc-switch-bin

Suitable for headless remote development servers or SSH terminal environments:

wget https://github.com/farion1231/cc-switch/releases/latest/download/cc-switch-web-linux-x64.tar.gz
tar -xzf cc-switch-web-linux-x64.tar.gz
cd cc-switch-web/
./cc-switch-web

After starting, access http://<server-ip>:17666 in your local browser to open the Web management dashboard.

Configure OpenRely Provider

You can launch it with one click from the console, or manually add a provider in the CC Switch interface and fill in the following configuration fields:

Configuration FieldRecommended ValueDescription
Target ApplicationClaude / Codex / GeminiSelect the AI CLI tool you currently want to switch
Provider NameOpenRelyCustom identification label
API Base URLhttps://api.openrely.ai/v1Must include the /v1 suffix
API Keysk-...The dedicated access Token created in the OpenRely console
Model ConfigurationFlexible selectionSelect from the dropdown menu or manually enter the model identifier

One-Click Switch and Start Using

  1. Click "Open CC Switch" (or Save) in the bottom-right corner of the popup to persist the configuration into the corresponding CLI configuration environment;
  2. In the CC Switch main dashboard, toggle the switch on the right side of the corresponding Provider to switch the currently active API endpoint with one click;
  3. Open your terminal and run claude or codex to start immersive coding directly through the OpenRely gateway.

💡 Core Management Capabilities

Feature ModuleDescription
🔌 Provider ManagementOne-click switching of API endpoints and keys for Claude Code, Codex, and Gemini, with multi-node latency testing support
🛠️ MCP Server ManagementUnified cross-application management for MCP services, supporting stdio, HTTP, and SSE protocols with bidirectional synchronization
💬 Prompts ManagementCentralized maintenance of cross-application system prompts (CLAUDE.md, AGENTS.md, GEMINI.md) and quick presets
🔄 Cross-Platform Auto-SyncLocal changes are instantly synchronized to the native configuration files of each CLI tool

❓ Frequently Asked Questions

Encountering other API errors or billing questions? Please check the full FAQ & Troubleshooting Guide.

Was this page helpful?

CC Switch | OpenRely Docs