cc-switch

Ochiq manbalardan

Claude Code, Codex, OpenCode, OpenClaw, Grok Build va Hermes Agent uchun koʻp platformali stol kompyuteri “hammasi bir joyda” yordamchisi. Faqat rasmiy veb-sayt: ccswitch.io

Mashina tarjimasi · Asl matnni koʻrsatish

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

IlovaKategoriya: Desktop ilovalar · DasturlashOpen sourcemaʼlumot tekshirilgan: 15-okt, 2026

Sharh

  • ai-tools
  • claude-code
  • codex
  • desktop-app
  • grok
  • grokbuild
  • hermes
  • hermes-agent
  • mcp
  • open-source

Oʻrnatish

Buyruqlar faqat koʻrsatiladi, marketpleys ularni bajarmaydi. Rasmiy hujjatlar bilan solishtiring.

Moslik

«Nomaʼlum» dalil topilmaganini bildiradi, mahsulot mos emasligini emas.
PlatformaHolatArxitekturaDalilIshonchlilik
WindowsMosarm64v4.0.21 relizidagi rasmiy yigʻma: CC-Switch-v4.0.21-Windows-arm64-Portable.zip0.70
Mos—v4.0.21 relizidagi rasmiy yigʻma: CC-Switch-v4.0.21-Windows-Portable.zip0.60
macOSMos—v4.0.21 relizidagi rasmiy yigʻma: CC-Switch-v4.0.21-macOS.dmg0.60
LinuxMosarm64v4.0.21 relizidagi rasmiy yigʻma: CC-Switch-v4.0.21-Linux-arm64.AppImage0.70
Mosx86_64v4.0.21 relizidagi rasmiy yigʻma: CC-Switch-v4.0.21-Linux-x86_64.AppImage0.70
Node.jsMos—paket manifesti: package.json name0.60

Relizlar

tekshirilgan: 29-okt, 2026
v4.0.21Oxirgi26-okt, 2026Rasmiy manba ↗

4.0.21 versiyasi fayllari

Marketpleys bu fayllarni saqlamaydi: yuklab olish rasmiy manbadan. Biz ularni skanerlamaganmiz.
FaylPlatformaHajmSHA-256Rasmiy manbadan yuklab olish
CC-Switch-v4.0.21-Linux-arm64.AppImagelinux · arm64 · appimage90,1 MBe551e709a2f4…Rasmiy manba ↗
CC-Switch-v4.0.21-Linux-arm64.deblinux · arm64 · deb16,8 MB5dce53662d87…Rasmiy manba ↗
CC-Switch-v4.0.21-Linux-arm64.rpmlinux · arm64 · rpm16,8 MB6d118246ec8f…Rasmiy manba ↗
CC-Switch-v4.0.21-Linux-x86_64.AppImagelinux · x86_64 · appimage92,6 MB8a69d94e0b94…Rasmiy manba ↗
CC-Switch-v4.0.21-Linux-x86_64.deblinux · x86_64 · deb17,6 MBea2f6ca82da0…Rasmiy manba ↗
CC-Switch-v4.0.21-Linux-x86_64.rpmlinux · x86_64 · rpm17,6 MB1765dcd90af8…Rasmiy manba ↗
CC-Switch-v4.0.21-Windows-Portable.zipwindows · zip17,3 MB6291de97f030…Rasmiy manba ↗
CC-Switch-v4.0.21-Windows-arm64-Portable.zipwindows · arm64 · zip16,5 MB3ebde12cc321…Rasmiy manba ↗
CC-Switch-v4.0.21-Windows-arm64.msiwindows · arm64 · msi16,7 MB6e595c26c318…Rasmiy manba ↗
CC-Switch-v4.0.21-Windows.msiwindows · msi17,4 MB16e990402372…Rasmiy manba ↗
CC-Switch-v4.0.21-macOS.dmgmacos · dmg35,1 MB504a64f9c858…Rasmiy manba ↗
CC-Switch-v4.0.21-macOS.tar.gzmacos · tarball36,1 MB2ecba09beeba…Rasmiy manba ↗
CC-Switch-v4.0.21-macOS.zipmacos · zip35,2 MB2277745abeed…Rasmiy manba ↗
latest.jsonboshqa5,7 KBf6ac55a04748…Rasmiy manba ↗
CC-Switch-v4.0.21-Linux-arm64.AppImage.sigimzo424 Bc66da9dbc0c3…Rasmiy manba ↗
CC-Switch-v4.0.21-Linux-arm64.deb.sigimzo416 B029674c59d3a…Rasmiy manba ↗
CC-Switch-v4.0.21-Linux-arm64.rpm.sigimzo420 B105887a54e4c…Rasmiy manba ↗
CC-Switch-v4.0.21-Linux-x86_64.AppImage.sigimzo424 B37fe01846065…Rasmiy manba ↗
CC-Switch-v4.0.21-Linux-x86_64.deb.sigimzo416 Bf490cf2c34d6…Rasmiy manba ↗
CC-Switch-v4.0.21-Linux-x86_64.rpm.sigimzo420 B930306a7f0a1…Rasmiy manba ↗
CC-Switch-v4.0.21-Windows-arm64.msi.sigimzo424 B17ab11c76a12…Rasmiy manba ↗
CC-Switch-v4.0.21-Windows.msi.sigimzo420 B3951ba7ae45d…Rasmiy manba ↗
CC-Switch-v4.0.21-macOS.tar.gz.sigimzo408 B619aa40e0f2e…Rasmiy manba ↗

Relizlar tarixi

Sifat profili

algoritm quality-v1.0 · baholangan 15-okt, 2026
Sifat bahosi100
Xavf bahosi0
Ishonchlilik 1.00
Sifat bahosi va xavf bahosi — turli koʻrsatkichlar. Yuqori sifat xavfsizlikni kafolatlamaydi.

Baho tarkibi

Qoʻllab-quvvatlash · 2020
last activity 0 days ago
Hujjatlar · 1515
README 67406 chars, description present
Foydalanishga tayyorlik · 1515
install instructions: yes; releases: yes
Metamaʼlumotlar · 1010
4/4 of description, homepage, license, topics
Relizlar · 1010
10 release(s), latest 0 days ago
Kategoriya aniqligi · 1010
classifier confidence 0.97
Ommaboplik · 1010
144716 stars (log-dampened, 10k = max)
Litsenziya aniqligi · 55
SPDX MIT
Hamjamiyat · 55
issues enabled, 9587 forks

Litsenziya

MIT
Litsenziya maʼlumrepozitoriy xostingi maʼlumotlariga koʻra

Bu katalog siyosati holati, yuridik xulosa emas.

Manbalar

github.com/farion1231/cc-switchAsosiy★ 144 716 yulduzfaollik: 15-okt, 2026Asosiy repozitoriy · Ishonchlilik 1.00

Sharhlar

Sharh yozish uchun kiring

Hali sharhlar yoʻq.

Muqobillar

README

farion1231/cc-switch dan · litsenziya MIT · yuklangan 29-okt, 2026

CC Switch

The All-in-One Manager for Claude Code, Claude Desktop, Codex, Gemini CLI, Grok Build, OpenCode, OpenClaw, Hermes Agent, Pi, MiniMax Code, Kimi Code & Oh My Pi

Switch API providers in one click and manage MCP, Skills, and Prompts in one place — no more hand-editing JSON / TOML / YAML config files.

[Version] [Platform] [Built with Tauri] [Downloads]

🌐 The Only Official Website: ccswitch.io

English | 中文 | 日本語 | Deutsch | Changelog

Download · Quick Start · Features · FAQ · User Manual

❤️Sponsor

Want to appear here?

[Kimi K2.7 Code]

Kimi K3 is Moonshot AI's most capable model and the world's first open 3T-class model. With 2.8 trillion parameters, native vision, and a 1-million-token context window, K3 delivers frontier performance across long-horizon coding, knowledge work, and reasoning. CC Switch makes it easy to configure and switch to Kimi across agentic tools.

Try a Kimi Code plan (中文站 | Global), or use the API through the Kimi Open Platform (中文站 | Global).

New user top-up bonus: register and complete your first top-up via the API links above to receive 10% of the amount as bonus API credit, up to CNY ¥1,000.


Why CC Switch?

AI coding tools like Claude Code, Codex, and Gemini CLI each have their own configuration format. Switching API providers means hand-editing JSON, TOML, YAML, or .env files, and MCP, Skills, and prompts have to be maintained separately in every tool.

CC Switch brings all of this into a single desktop app: pick a preset, enter your key, and switch in one click. Switching replaces only the connection details — endpoint, key, and model — so plugins, hooks, MCP, and comments you added yourself stay as they are.

  • One App, Twelve Tools — Claude Code, Claude Desktop, Codex, Gemini CLI, Grok Build, OpenCode, OpenClaw, Hermes, Pi, MiniMax Code, Kimi Code, and Oh My Pi
  • No More Manual Editing — 90+ provider presets including AWS Bedrock, NVIDIA NIM, and community relays
  • Direct, Routing, or Aggregation — Your Choice — Direct connects the tool straight to the provider; Routing forwards requests through your machine, converting API formats and failing over automatically, so you can use GPT in Claude Code and Claude in Codex; Aggregation puts models from several providers into one model list in Claude Code or Codex, and each request goes to the provider of the model you pick
  • Centralized MCP, Skills & Prompts — Add MCP servers and Skills once, then choose which tools to sync them to; prompts are maintained separately for each tool
  • Sessions You Can Read — Turns each tool's session logs into a reading view: what each turn did, which files changed, and which step failed, all at a glance
  • Usage & Quotas at a Glance — Track token usage and spending even without local routing; remaining subscription quota and account balances show right on provider cards and in the tray
  • Cross-Platform — Native desktop app for Windows, macOS, and Linux, built with Tauri 2

Screenshots

Download & Installation

System Requirements

  • Windows: Windows 10 and above
  • macOS: macOS 12 (Monterey) and above
  • Linux: x86_64 or ARM64 with glibc 2.35+ and WebKitGTK 4.1 — e.g. Ubuntu 22.04+, Debian 12+, and recent Fedora releases; RHEL / Rocky / Alma 8–9 are not supported yet

Windows Users

Download the latest CC-Switch-v{version}-Windows.msi installer or CC-Switch-v{version}-Windows-Portable.zip portable version from the Releases page. On Windows on ARM, download CC-Switch-v{version}-Windows-arm64.msi or CC-Switch-v{version}-Windows-arm64-Portable.zip.

macOS Users

Method 1: Install via Homebrew (Recommended)

brew install --cask cc-switch

Update:

brew upgrade --cask cc-switch

Method 2: Manual Download

Download CC-Switch-v{version}-macOS.dmg (recommended) or .zip from the Releases page. It's a Universal build that runs natively on both Apple Silicon and Intel Macs.

Note: CC Switch for macOS is code-signed and notarized by Apple. You can install and open it directly.

Arch Linux Users

Install via paru (Recommended)

paru -S cc-switch-bin

Linux Users

Download the latest Linux build from the Releases page:

  • CC-Switch-v{version}-Linux-x86_64.deb / -Linux-arm64.deb (Debian/Ubuntu)
  • CC-Switch-v{version}-Linux-x86_64.rpm / -Linux-arm64.rpm (Fedora and other RPM distros that ship WebKitGTK 4.1)
  • CC-Switch-v{version}-Linux-x86_64.AppImage / -Linux-arm64.AppImage (any distro meeting the requirements above)

Flatpak: Not included in official releases. You can build it yourself from the .deb — see flatpak/README.md for instructions.

Quick Start

Basic Usage

  1. Add Provider: Select the tool you want to manage in the sidebar, then click "+" (Add Provider) in the top-right corner of the page → Choose a preset or create a custom configuration
  2. Switch Provider:
    • Main UI: Select provider → Click "Enable" (for OpenCode, OpenClaw, Hermes, MiniMax Code, and Kimi Code the button is "Add", and for Pi and Oh My Pi it's "Enable" / "Remove"; these seven are coexist-mode tools, so you can add several providers at once)
    • System Tray: One row per tool showing "name · mode · provider · quota"; click a provider name in its submenu to switch (Claude Code, Claude Desktop, Codex, Gemini CLI, and Grok Build)
  3. Takes Effect: Claude Code needs no restart; for Codex, Gemini CLI, and Grok Build, restart your terminal or the CLI tool; for Claude Desktop, restart the app itself (see FAQ)
  4. Back to Official Login: Switch to the built-in official provider in the list (e.g. "Claude Official"), restart the tool, then follow its login/OAuth flow
  5. Routing & Aggregation (optional): The Claude Code, Codex, Gemini CLI, and Grok Build pages have "Direct" / "Routing" tabs at the top, and Claude Code and Codex also have "Aggregation". Clicking a tab only changes what you're looking at and doesn't touch your configuration; to actually switch, click "Start routing" or "Switch to Aggregation" on the page, and click "Back to direct" to return. Use Routing to use OpenAI- or Gemini-format providers in Claude Code, or Claude in Codex; use Aggregation to mix models from several providers in one model list
  6. Manage Tools: The "Apps" page in the sidebar shows each AI coding tool's version, install location, and source in one place; you can install, upgrade, or upgrade all, and choose which tools appear in the sidebar

MCP, Prompts, Skills, Projects & Sessions

  • MCP: Click "MCP" in the sidebar → Add servers via templates or custom config (or "Import Existing") → Toggle sync for each tool
  • Prompts: Click "Prompts" in the sidebar → Create prompts with the Markdown editor → Enable one to write it to that tool's prompt file
  • Skills: Click "Skills" in the sidebar → "Discover Skills" → Search skills.sh or browse GitHub repos → One-click install to supported tools
  • Projects: First turn on "Show project switcher" in "Settings → General", then on the Claude Code, Claude Desktop, or Codex page, open the project switcher at the top → "New project" to save the current configuration; later, pick it from the switcher to switch the whole setup at once
  • Sessions: Click "Sessions" in the sidebar → Browse and search conversation history, open the reading view, or restore each tool's sessions
  • Accounts: Click "Accounts" in the sidebar to sign in to GitHub Copilot, ChatGPT, xAI (Grok), and Kimi Code accounts and use your subscriptions as providers. Kimi Code supports multiple official accounts, each with separate credentials and a native provider; the first login uses Kimi's native default credential slot. Manage sign-in, reauthentication and sign-out here. Official Kimi OAuth nodes still present in the native configuration are protected on the provider page; saved profiles can be deleted after their native nodes are removed.

Note: On first launch, CC Switch automatically imports your existing Claude Code, Codex, Gemini CLI, and Grok Build configuration as a provider named default and adds an official provider for each of these tools and Claude Desktop, so nothing you had configured is lost.

For detailed guides on every feature, check out the User Manual, covering provider management, MCP/Prompts/Skills, local routing & failover, and more.

Features

Full Changelog | v4.0 Release Notes

Supported Features by Tool

ToolProvidersLocal RoutingAggregationTray SwitchingMCPSkillsPromptsSessionsUsage Stats
Claude CodeSwitch✓✓✓✓✓CLAUDE.md✓✓
Claude DesktopSwitchModel Mapping only–✓––––Model Mapping only
CodexSwitch✓✓✓✓✓AGENTS.md✓✓
Gemini CLISwitch✓–✓✓✓GEMINI.md✓✓
Grok BuildSwitch✓–✓✓✓AGENTS.md✓✓
OpenCodeCoexist–––✓✓AGENTS.md✓✓
OpenClawCoexist–––––Workspace editor✓–
HermesCoexist–––✓✓Memory✓–
PiCoexist–––✓✓AGENTS.md, SYSTEM.md, prompt templates✓✓
MiniMax CodeCoexist–––✓✓AGENTS.md✓✓
Kimi CodeCoexist–––✓✓AGENTS.md✓✓
Oh My PiCoexist–––✓✓AGENTS.md✓–
  • Switch: only one provider is active at a time; Coexist: multiple providers are written into the tool's own config at the same time, and you pick one inside the tool.
  • Local Routing: CC Switch forwards requests on your machine and converts API formats; see Local Routing & Failover below. Claude Desktop providers can use "Direct" or "Model Mapping"; with "Model Mapping", requests go through local routing.
  • Aggregation: Puts models from several providers into one model list and sends each request to the provider of the model you pick; see Aggregation Mode below.
  • Sessions: Browse and search conversation history, open the reading view, and copy a resume command to continue a conversation (resuming OpenClaw and Hermes sessions isn't supported yet). Hermes shows only the 500 most recent sessions.
  • Usage Stats: Without local routing, usage is collected from each tool's local session logs; requests that go through local routing are counted as well.
  • The MCP, Skills, Prompts, and Sessions panels opened from the Claude Desktop page apply to Claude Code.

Provider Management

  • 90+ provider presets — Pick a preset and enter your key to add a provider, or create a custom configuration. The add panel lets you search by name (including Chinese names) and domain, and a vendor's different plans and regions are merged into one row
  • Key fields only — Switching replaces only the connection details such as the endpoint, key, and model; plugins, hooks, MCP, settings you added yourself, and comments stay as they are. The editor shows what the config file will look like after switching, and CC Switch automatically backs up each config file before rewriting it for the first time
  • Projects — Save Claude Code's or Codex's current provider, MCP, Skills, and prompt files as a project (for Claude Desktop, only the provider is saved), then switch the whole setup in one click from the project switcher at the top of the page or from the tray; when you switch to another project, the current state is automatically saved back to the previous project. The project switcher is hidden by default; turn on "Show project switcher" in "Settings → General"
  • Accounts (Beta) — Sign in to multiple GitHub Copilot, ChatGPT, and xAI (Grok) accounts under "Accounts" in the sidebar and use those subscriptions as providers in Claude Code, Claude Desktop, and Codex (everything except Codex's OpenAI Official has to be used in Routing mode). Using a subscription outside the official client may violate the vendor's terms of service; assess the risk yourself
  • Third-party providers for Claude Desktop — Connect directly to Anthropic-compatible endpoints; for non-Claude models, choose "Model Mapping" to map tiers like Sonnet, Opus, and Haiku to the provider's actual models through local routing
  • Universal providers — One config syncs to Claude Code, Codex, and Gemini CLI
  • One-click switching, system tray quick switching (Claude Code, Claude Desktop, Codex, Gemini CLI, Grok Build), drag-and-drop sorting, import/export

Local Routing & Failover

  • API format conversion — Local routing converts requests between Anthropic Messages, OpenAI Chat Completions, OpenAI Responses, and Gemini Native: Claude Code and Claude Desktop can use OpenAI- or Gemini-format providers, and Codex and Grok Build can use Chat Completions or Anthropic Messages providers
  • Per-tool toggle — Claude Code, Codex, Gemini CLI, and Grok Build can each enter Routing mode separately: click "Start routing" on the "Routing" tab at the top of the page. In Routing mode, switching providers takes effect immediately for subsequent requests (Codex, Gemini CLI, and Grok Build may still need a restart if the switch changes the model). When you quit CC Switch, it writes the direct configuration back first and reconnects the next time it starts
  • Auto-failover — Configure a failover queue for each tool; when a request fails, CC Switch automatically moves on to the next provider in the queue, backed by a circuit breaker and provider health monitoring
  • Rectifier — Automatically fixes certain requests that some upstreams can't handle (e.g. Thinking signatures, or falling back when images aren't supported)
  • Official providers (e.g. Claude Official) can't go through local routing (except Codex's OpenAI Official)
  • The routing service's status, listen address, and failover settings are all in "Settings → Local routing"
  • Guides: Using GPT in Claude Code · Using Claude in Codex

Aggregation Mode

  • One model list, many providers — On the Claude Code or Codex page, switch to "Aggregation" and add a few providers; their models all appear in the client's model picker. Each request goes to the provider of the model you pick, with no need to switch in CC Switch
  • Add and remove anytime — Click "Add" or "Remove" on a provider card, then pick one provider as the default; requests that don't name an aggregated model go to it. Codex's OpenAI Official can only be the default provider; Claude official subscriptions are currently unsupported in Aggregation
  • Notes — Aggregation doesn't provide failover; Claude Code requires version 2.1.243 or later; Codex needs a restart after the aggregated list changes, while Claude Code doesn't. When you switch models within a session, the new model has to rebuild its prompt cache, so the first turn costs a bit more
  • Much of Aggregation mode's design draws on opencodex — thanks to its author and contributors
  • Documentation: Aggregation mode manual · Illustrated guide (Chinese)

MCP, Prompts & Skills

  • Unified MCP panel — Manage all MCP servers in one place, choose which tools to sync each one to (Claude Code, Codex, Gemini CLI, Grok Build, OpenCode, Hermes, Pi, MiniMax Code, Kimi Code, Oh My Pi), import existing configs from each tool, and import via Deep Link
  • Prompts — A per-tool prompt library with a Markdown editor; enabling a prompt writes it to that tool's prompt file (CLAUDE.md / AGENTS.md / GEMINI.md), and the file's existing content is saved back to the library first, so nothing is lost. Pi can also edit SYSTEM.md, APPEND_SYSTEM.md, and prompt templates
  • Skills — Search skills.sh, or install in one click from GitHub repos or ZIP files; check for updates and update all in one click; sync to each tool automatically, via symlinks only, or via copies only; you can optionally store them in ~/.agents/skills
  • All three panels support search, and MCP and Skills can also be enabled or disabled all at once per tool; providers, MCP servers, and prompts are edited full-page in the content area, and you're warned before leaving with unsaved changes

Usage & Cost Tracking

  • Usage dashboard — Works without local routing: by default it automatically scans each tool's local session logs and tracks requests, tokens, cache hit rate, output speed, and spending by provider and model, with trend charts, a full-year heatmap, and per-request logs
  • Quotas & balances — Provider cards and the tray show what's left and the reset countdown, e.g. "5h 94% left": official subscription quotas (Claude, ChatGPT, Gemini, SuperGrok), Coding Plan 5-hour / weekly / monthly quotas (Kimi, Zhipu GLM, MiniMax, Volcengine Ark, etc.), and account balances (DeepSeek, OpenRouter, SiliconFlow, etc.); some need to be turned on first via "Configure usage query" on the provider card, and for other providers you can write a custom usage script. ChatGPT subscriptions also show remaining limit resets and the Codex Credits balance
  • Custom pricing — Set per-model prices, or import them from models.dev

Session Manager & Workspace

  • Session reading view — Parses each tool's session logs into structured content: text, thinking, tool calls, tool results, and images are shown separately; each turn of work collapses into a one-line summary (how many steps, how many files changed, how many failures), with failed steps marked in red; a conversation outline sits on the right, with in-session search, Markdown export, and copying a single turn or the whole conversation
  • List & resume — Group by project or time, search titles, directories, messages, or session IDs, and delete in bulk; copy a resume command to continue a conversation, and on macOS resume in a terminal with one click
  • Workspace editor (OpenClaw) — Edit agent files (AGENTS.md, SOUL.md, etc.) and daily memory
  • Memory (Hermes) — Edit Hermes's MEMORY.md and USER.md

System & Platform

  • Cloud sync — Sync across devices via WebDAV (Jianguoyun, Nextcloud, Synology NAS, etc.) or S3-compatible storage (AWS S3, Cloudflare R2, Alibaba Cloud OSS, Tencent Cloud COS, etc.); you can also put the CC Switch configuration directory in a cloud drive folder such as Dropbox, OneDrive, or iCloud
  • CLI tool management — On the "Apps" page in the sidebar, see the current and latest versions of command-line tools like Claude Code and Codex, install, upgrade, or upgrade all in one click, and diagnose duplicate installations; on Windows it can also manage tools inside WSL (see FAQ)
  • Deep Link (ccswitch://) — Import providers, MCP servers, and prompts, or add skill repositories, in one click via a link; create links with the online generator; site owners who want an import button can follow the integration guide
  • Built-in utilities — Skip Claude Code's first-run confirmation, hide AI attribution, have the VS Code Claude Code extension follow CC Switch's provider switches, and more
  • Dark / Light / System theme, auto-launch, auto-updater, atomic writes, auto-backups (see where every backup lives and how much space it takes in "Settings → Data"), i18n (zh/zh-TW/en/ja, plus community-translated Turkish)

FAQ

CC Switch supports twelve tools: Claude Code, Claude Desktop, Codex, Gemini CLI, Grok Build, OpenCode, OpenClaw, Hermes, Pi, MiniMax Code, Kimi Code, Oh My Pi. Each tool has dedicated provider presets and configuration management; see Supported Features by Tool for what each one supports.

It depends on the tool:

  • Claude Code: supports hot-switching of provider data — no restart needed.
  • Codex, Gemini CLI, Grok Build: restart your terminal or the CLI tool for changes to take effect (CC Switch reminds you after switching). In Routing mode, requests go to the new provider immediately, but all three tools may still need a restart if the switch changes the model.
  • Aggregation mode: changes to Claude Code's aggregated models take effect immediately; for Codex, entering or leaving Aggregation and changing the aggregated model list all require a full restart — see the next entry.
  • Claude Desktop: fully quit and reopen Claude Desktop; when using "Model Mapping", also keep CC Switch running.
  • OpenCode, OpenClaw, Hermes, Pi, MiniMax Code, Kimi Code, Oh My Pi: these are coexist-mode tools — clicking "Add" ("Enable" for Pi and Oh My Pi) writes the provider into the tool's own config alongside the others; you then pick the model you want inside the tool. Kimi Code also provides a "Switch" button to select a provider's model; models still referenced as primary or secondary models cannot be removed. See the Kimi Code integration guide (Chinese) for configuration and account details.

Codex reads its model list only at startup. After entering or leaving Aggregation mode, adding or removing an aggregated provider, or changing a provider's aggregated models, fully restart Codex to see the new list:

  • Codex CLI: Closing the terminal and running codex again isn't enough. Every codex in every terminal shares one background daemon, and it has to be restarted to pick up the new list. When CC Switch detects that Codex is still using the old list, it shows a notice at the top of the Codex page; click "Restart Codex daemon" in the notice. Restarting interrupts any tasks running in the daemon.
  • Codex desktop app: Quit it completely and reopen it (press ⌘Q on macOS; closing the window isn't enough).
  • Editor extensions: Reopen the editor window.

Claude Code isn't affected: changes to aggregated models take effect immediately.

No. When you switch providers for Claude Code, Codex, Gemini CLI, or Grok Build, CC Switch replaces only the key fields in the config file: the endpoint, key, model name, and API protocol (plus the reasoning effort for Codex and the auth method for Gemini CLI), along with a few compatibility options that belong to the provider (such as Claude Code's "Disable Artifact Tool" and the context window). Plugins, hooks, permissions, MCP, environment variables you added yourself, comments, and formatting all stay as they are and apply to every provider.

You can change these shared settings in the tool itself or by editing the config file by hand. You can also edit any provider in CC Switch: the editor shows "what the config file will look like after switching to this provider". When you save, the key fields are stored in that provider, and every other change is written to the config file and applies to every provider.

So the old "Common Config Snippet" is no longer needed, and its buttons have been removed. Settings that were in your snippet before the upgrade were already written into the config file when you switched, so they stay. Before CC Switch rewrites each config file for the first time, it also backs up the original to ~/.cc-switch/backups/live-first-write/.

The model is a key field and belongs to the provider. A model you pick inside the tool (such as with /model in Claude Code) stays in effect until the next switch; when you switch, the model in the config file is replaced with the one saved in the target provider, and CC Switch doesn't save the model you picked back to the previous provider. To keep using a model long-term, edit that provider in CC Switch.

Older versions saved the whole config file back to the provider when you switched away. That no longer happens: it froze plugins and other shared settings into one provider, so they were lost when you switched to another one.

CC Switch follows a "minimal intrusion" design principle — even if you uninstall the app, your tools will continue to work normally.

So for tools that use one active provider at a time (Claude Code, Claude Desktop, Codex, Gemini CLI, Grok Build), the system always keeps one configuration in use, because deleting all configurations would make the corresponding tool unusable; to delete it, switch to another provider first. Likewise, the default provider in Aggregation mode can't be removed; make another provider the default first. Coexist-mode tools (OpenCode, OpenClaw, Hermes, Pi, and MiniMax Code) aren't subject to this restriction — you can delete any provider directly. If you rarely use a tool, you can hide it from the sidebar on the "Apps" page. To switch back to official login, see the next question.

In CC Switch, the provider lists for Claude Code, Claude Desktop, Codex, Gemini CLI, and Grok Build each include a built-in official provider (Claude Official, Claude Desktop Official, OpenAI Official, Google Official, Grok Official); if you deleted it, add it back from the presets. After switching to the official provider, follow the tool's own login flow (e.g. /login in Claude Code, codex login for Codex), and then you can freely switch between the official provider and third-party providers.

For Codex, you can also sign in to multiple ChatGPT accounts inside CC Switch via "Sign in with ChatGPT" and choose an "Account to use" for each OpenAI Official card, so switching between multiple Plus, Pro, or Team accounts takes one click; cards set to "Follow Codex login" keep using the Codex CLI's own login.

Note: official subscriptions use the tool's own login and don't go through local routing. Official providers can't be selected in Routing mode (Codex's OpenAI Official cards are the exception); switch back to Direct first.

In Routing mode, the tool's requests first go to CC Switch's local routing (http://127.0.0.1:15721 by default), and CC Switch then forwards them to the provider you selected. That's why the tool's config file only contains the local address and the placeholder key PROXY_MANAGED; for Claude Code, the model name is also written as a fixed alias such as claude-sonnet-5 (the /model menu still shows the real model name). The real provider address, key, and model are all stored in CC Switch. Aggregation mode works the same way.

In the request logs under "Usage" in the sidebar, you can see "requested model → actual model" for each request.

In Routing mode, switching changes the provider that routing uses; the provider you were using before you entered Routing stays the same and is labeled "Direct" on its card. When you click "Back to direct", the config file is written back to this direct provider's configuration. Quitting CC Switch also writes back the direct provider first, and it reconnects the next time CC Switch starts.

Yes, but you need to use Routing. When editing the provider, set "Upstream Format" under "Advanced Options" to match the provider's API: choose "OpenAI Chat Completions" for services that only offer a Chat Completions endpoint (as many local model servers do), "OpenAI Responses API" for services that offer a Responses endpoint, and "Gemini Native generateContent" for Gemini. Then click "Start routing" on the "Routing" tab of the Claude Code page. Choosing the wrong format or not starting routing usually results in a 404 or 405 error.

Conversely, choosing "Anthropic Messages" as the "Upstream Format" in Codex or Grok Build lets you use Claude-format providers; this also requires Routing. See Using GPT in Claude Code and Using Claude in Codex for details.

The "Connectivity check" on a provider card only checks whether the provider address is reachable; it doesn't send a real model request, so it can't verify whether the API key and model name are correct. When requests fail, check the key, model name, and upstream format; for requests that go through Routing, you can also see the exact error in the request logs under "Usage" in the sidebar.

By default, everything is stored in the .cc-switch folder in your home directory (C:\Users\<user>\.cc-switch on Windows):

  • Database: cc-switch.db (SQLite — providers, MCP, prompts, Skills, projects, usage records, etc.)
  • Local settings: settings.json (device-level settings such as each tool's config directory, backup policy, and cloud sync connection details)
  • Backups: backups/ (backed up automatically every 24 hours by default, keeping the 10 most recent; adjustable in "Settings → Data → Backup & Restore"; "Other Backups" below it lists the location and size of every other backup, which you can clean up by category)
  • Skills: skills/ (can be changed to ~/.agents/skills in Settings), synced to each tool via symlinks by default, falling back to copying if that fails
  • Skill Backups: skill-backups/ (created automatically before uninstalling or updating a skill, keeping the 20 most recent)
  • OAuth login credentials: copilot_auth.json, codex_oauth_auth.json, xai_oauth_auth.json
  • Logs: logs/cc-switch.log and crash.log — please attach them when reporting an issue
  • Device state: live-state.json (whether each tool is currently in Direct, Routing, or Aggregation mode, and what was last written), codex-login-stash.json (the official Codex login moved aside when you switch to a third-party provider, restored when you switch back to an official one)
  • Original config files: backups/live-first-write/ (each tool's config file as it was before CC Switch first rewrote it)

After you change "CC Switch Configuration Directory" in "Settings → Data → Location", all of the files above except settings.json, the device state, and the original config files are stored in the new directory. CC Switch doesn't move existing files automatically, so copy them over manually first. settings.json, the device state, and the original config files belong to this computer only: they always stay in the default directory and are not included in cloud sync.

CC Switch doesn't detect WSL automatically. In "Settings → App config", change the config directory for the corresponding tool to a path inside WSL, e.g. \\wsl.localhost\Ubuntu\home\<user>\.claude; after you save, CC Switch reads and writes the config inside WSL (supported for Claude Code, Codex, Gemini CLI, Grok Build, OpenCode, OpenClaw, Hermes, and Pi). Once this is set, the "Apps" page in the sidebar also detects and upgrades that tool in the corresponding WSL distribution.

Note: Routing and Aggregation write 127.0.0.1 as the address into the config. In WSL2's default NAT networking mode, 127.0.0.1 inside WSL can't reach local routing on Windows; switch WSL to mirrored networking mode instead.

CC Switch itself only ships as a desktop app that requires a graphical interface (see Download & Installation for system requirements). For servers, SSH sessions, or machines without a desktop environment, we recommend the community-maintained CC Switch CLI: it offers both an interactive terminal UI (TUI) and a command-line mode, supports Claude Code, Codex, Gemini CLI, OpenCode, OpenClaw, Hermes, and Pi, and can be installed via Homebrew (brew install cc-switch-cli) or an install script.

By default, CC Switch CLI shares the ~/.cc-switch data directory with the desktop app and is compatible with the desktop app's WebDAV sync. The two projects are released separately, and the database version the CLI supports sometimes lags behind the desktop app; if you see a "database version is too new" message, upgrade the CLI or wait for it to catch up.

The AppImage forces GDK_BACKEND=x11 (XWayland) to avoid a historical native-Wayland crash. On newer Wayland + NVIDIA setups this can leave the web content area unclickable (the title-bar buttons still work) and black-screen on resize. Launch with the opt-in escape hatch to switch back to native Wayland:

CC_SWITCH_GDK_BACKEND=wayland ./CC-Switch-*.AppImage

If you launch from a desktop icon, add it to the .desktop Exec= line (e.g. env CC_SWITCH_GDK_BACKEND=wayland /path/to/AppImage) or set it in your session environment. The variable is generic: on tiling Wayland compositors (sway/Hyprland) where clicks don't register, try CC_SWITCH_GDK_BACKEND=x11 instead. Leaving it unset keeps the default behavior.

For more questions, see the FAQ in the User Manual.

Contributing

Issues and suggestions are welcome! Before developing a new feature, please open an issue to discuss the approach first; feature PRs that aren't a good fit for the project may be closed.

For development setup, pre-submit checks, and architecture notes, see CONTRIBUTING.md; for usage questions, check SUPPORT.md first; report security vulnerabilities privately as described in SECURITY.md.

Tech stack: Tauri 2 · Rust · React 18 · TypeScript · SQLite

Star History

[Star History Chart]

License

MIT © Jason Young

Repozitoriyni ochish ↗