cc-switch

farion1231MIT活跃维护

跨平台桌面客户端,把 Claude Code、Codex、OpenCode、DeepSeek Harness 等多个 AI 编程助手集中到一个界面里统一管理和切换,省去来回折腾配置。

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode,DeepSeek Harness and more. Only official website: ccswitch.io

v4.0.28发布于 2026-11-08 15:56 UTC153,244star +788 / 7 天10,069fork同步于 2026-11-10 11:17 UTC

怎么上手

由 README 提炼,执行前请确认
从 GitHub Releases 下载对应平台安装包:https://github.com/farion1231/cc-switch/releases/latest
硬件要求按 README 说明

README 未说明硬件要求;支持 Windows、macOS、Linux 三个平台,基于 Tauri 2 构建。

支持 Apple Silicon
下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

跨平台桌面工具,一键切换 Claude Code、Codex 等 AI 编程工具的 API 供应商,免去手动修改配置文件

跨平台桌面客户端,把 Claude Code、Codex、OpenCode、DeepSeek Harness 等多个 AI 编程助手集中到一个界面里统一管理和切换,省去来回折腾配置。

核心能力

  • 一键切换 Claude Code、Codex、Gemini CLI 等工具的 API 供应商
  • 集中管理 MCP 服务器、Skills 与 Prompts,并同步到各工具
  • 支持本地路由与聚合,可在 Claude Code 中使用 OpenAI 或 Gemini 格式的供应商
  • 通过系统托盘按工具快速切换供应商并查看配额
  • 首次启动自动导入已有配置为 default 供应商,不丢失原有设置

容易踩的坑

切换 Codex、Gemini CLI、Grok Build 后需重启终端或 CLI 工具,Claude Desktop 需重启应用才生效;路由与聚合标签页只是切换视图,需点击「Start routing」或「Switch to Aggregation」才真正生效;项目切换器需先在「Settings → General」中开启「Show project switcher」才会显示。

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

5 个版本v4.0.28
  1. v4.0.28CC Switch v4.0.28最新正式版2026-11-08 · 2026-11-08 15:56 UTC

    CC Switch v4.0.28

    本版本主要应对 Codex 11 月 8 日的不兼容更新。

    ⚠️ Codex 桌面版 26.1103、CLI 0.167 起,官方订阅和第三方供应商的会话彻底分开了。 直连模式下在两者之间切换,以前只是两边的会话分开显示,现在另一边的会话直接变成只读:能查看,不能继续,继续时提示「模型提供商不匹配」。要来回切换并继续旧会话,有两个办法:

    1. 改用路由或聚合模式:本版本起,路由或聚合模式下切到第三方,会话和官方订阅留在同一组,来回切换都能继续。
    2. 打开「统一 Codex 会话历史」(「设置 → 应用配置 → Codex」):官方和第三方的会话归到同一组,直连模式下也能来回切换。

    此外,直连切换让会话变成只读时会提示数量;开启「统一 Codex 会话历史」并勾选迁入现有会话后,会持续把官方会话迁进来。官方额度用完、Codex 锁住发送键时,可以在路由或聚合设置里打开「暂停使用官方登录」,继续用第三方模型;官方额度保护改为默认开启。应用页的安装和升级会显示排队状态和实时进度。另外修复了 Codex 故障转移到别家时仍带着上一家的模型名、Kimi For Coding 上压缩失败、在 Kimi 或 DeepSeek 上续接工具调用后会话一直报 400 等问题。

    English → | 日本語版 →


    新增

    适配新版 Codex 的会话分组

    Codex 按供应商标识记录会话:官方订阅记在内置的 openai 下,CC Switch 写入的第三方供应商记在 custom 下。新版 Codex 只能继续与当前供应商同一组的会话,另一组只读(#7974)。本版本围绕这一点做了以下改动:

    • 路由或聚合模式下切到第三方,会话不再分成两组:本机登录了 ChatGPT、且没有开「统一 Codex 会话历史」时,路由到第三方也和官方一样写成内置的 openai,请求照常经本地路由发往第三方,所有会话都在 openai 这一组。第三方的 Key 由本地路由替换,ChatGPT 的账号 ID、组织等请求头会被去掉,第三方收不到你的账号信息。
      • 以下情况仍写成 custom:本机没有 ChatGPT 登录、开着统一会话历史、打开了「暂停使用官方登录」,或者供应商配置里写了请求重试、流重试、流空闲超时、远程压缩这些内置 openai 表达不了的设置。
      • 已经在用路由模式的不用操作,CC Switch 下次接上路由时会自动改写一次。直连模式不变。
    • 直连切换后提示有多少会话只能查看:没开统一会话历史时,直连模式下在官方订阅和第三方之间切换,切换成功的提示里会多一行,例如「之前在官方订阅下的 12 个会话现在只能查看」。从托盘切换不提示。
    • 统一 Codex 会话历史(「设置 → 应用配置 → Codex」):开启后官方订阅也改用 custom 标识,两边的会话在同一组,新版 Codex 里都能继续。经常在官方和第三方之间切换时建议开启。
      • 「同时迁入现有官方会话历史」改为默认勾选。勾选后,之后每次启动 CC Switch 都会把又出现在官方组的会话迁进来,比如关掉再打开过这个开关,或者不经 CC Switch 用过 Codex。
      • 迁移和还原前都要备份 Codex 的会话数据库,以前 42 MB 的数据库要备份约 90 秒,现在不到 1 秒。
      • 后台迁移完成后会提示迁入了多少个会话,重启 Codex 后就能继续。

    暂停使用官方登录(Codex)

    官方 ChatGPT 额度用完后,Codex 会自己查额度,锁住模型选择和发送键,选了第三方模型也发不出去(#7974、#7962)。这一步在 Codex 客户端里,本地路由管不到;以前手动把 requires_openai_auth 改成 false 的办法,现在切换一次就会被覆盖。

    现在 Codex 的「路由设置」和「聚合设置」(路由或聚合模式生效时,模式标签栏右端的齿轮按钮)最上面多了「暂停使用官方登录」开关:

    • 打开后 Codex 不再使用官方登录,不会因为官方额度锁住发送键,聚合和路由里的第三方模型可以继续用。官方登录仍保存在本机,不会退出。
    • 打开期间,官方模型发不出去,会提示改用第三方模型;Codex 里不显示账号和用量信息,第一次打开可能弹出新手问卷;侧栏「项目」里原来的会话暂时看不到,关掉开关后会回来;新会话记在 custom 组,切回官方后只能查看。
    • 打开期间 Codex 页面顶部会一直有提示,官方额度恢复后点「恢复官方登录」即可。
    • 打开和关闭后都要彻底退出并重新打开 Codex。只在路由和聚合模式下生效,直连不受影响。

    应用页显示安装进度

    应用页的安装、升级和卸载一次只跑一个,以前慢的时候每一行都在转圈,分不清是在下载、在排队还是卡住了(MiniMax Code 的安装包约 100 MB,网络慢时要十几分钟)。现在排队的那一行会写「排队中,等前一个应用完成」,正在跑的那一行显示已用时间和命令输出的最新一行。离开应用页再回来,进度还在。


    变更

    • 官方额度保护改为默认开启:经本地路由的 Codex 官方请求,在五小时使用率达到 95% 或每周使用率达到 98% 时就会暂停,第三方模型照常可用,避免走到 Codex 锁住发送键那一步。升级后会自动打开一次;之后手动关掉,不会再被打开。阈值在「设置 → 应用配置 → Codex → 官方额度保护」里改。
    • 不再写入 disable_response_storage(#7524):新版 Codex 删掉了这个设置,每次启动都会提示有一个无法识别的配置项。预设、模板、统一供应商和一键导入链接都不再写它,已有 config.toml 里的这一行在下次切换时清掉。
    • Antigravity 显示 Argon 每周额度(#8913):Pro 套餐的 Argon 每周额度以前不显示。现在卡片上把它并进 Gemini 那一行,下拉菜单和授权中心单独列出。
    • Windows 上第一次启动更快:新建数据库时建表和写入内置模型价格各合成一次提交,第一次启动快了约 6 秒。

    修复

    • Codex 故障转移到别家时,仍带着上一家的模型名,备用供应商报模型不存在(#7547)。现在开着故障转移时,换到备用供应商前会先看它认不认请求里的模型(是它自己的模型,或在它的模型列表里),不认就换成它自己的模型;同一个模型的中转队列照原样发。图片生成、图片编辑和搜索请求不换模型。
    • Codex 经路由连 Kimi For Coding 时,压缩上下文总是失败(HTTP 400)。Kimi 不接受压缩请求里的 tool_choice: "none";现在第三方原生 Responses 上游拒绝压缩请求时,会去掉 tool_choice 再试一次。
    • Codex 在 Kimi 或 DeepSeek 的原生 Responses 上续接工具调用后,这个会话之后每一轮都报 400。工具调用和它的结果之间夹了一条助手消息,Kimi 和 DeepSeek 都会拒绝整段历史;Kimi 还会拒绝空的助手消息。现在只对 Kimi(Moonshot)和 DeepSeek 的地址整理这类历史,其他请求原样发出。
    • Windows 上 Codex 目录在 WSL 里(\\wsl.localhost)时,分叉出来的会话用量一直不导入。

    致谢

    感谢 @allen546(Antigravity Argon 每周额度)、@fisHarly0(SSE 分隔符说明)的贡献。

    特别感谢以下贡献者:你们的 PR 发现并修复了真实的问题,只是同样的问题后来在主线上另行修好,PR 因此关闭。@SailingLoong(Codex 故障转移时更换模型,本版的修复参考了这个 PR 的思路)、@xiajiahang(聚合模式拖动排序后重排聚合模型)。

    感谢 @erickksun、@Juddd、@EMnian、@shidao-ap5、@LeenixP 报告问题、提

  2. v4.0.27CC Switch v4.0.272026-11-07 · 2026-11-07 09:08 UTC
    查看更新说明

    CC Switch v4.0.27

    本版本让会话管理可以搜索消息正文,新增界面密度和界面缩放设置,模型定价表可以搜索,Grok Build 正在使用的供应商也能打开终端了。Skills 的已安装页重新排了版,供应商图标会跟随深浅色主题。另外修复了配置文件是软链接时被替换成普通文件或写入失败、取消请求后供应商卡在熔断恢复中直到重启、Codex 设置了自定义权限后 plan 模式报错、运行过的 Skill 被误报有更新、Skills 仓库显示 0 个 Skill、Windows 上把 Python 的 pi.exe 认成 Pi、模型价格同步超时、打开对话框时窗口拖不动、右键弹出浏览器菜单,以及 Linux 快捷面板显示异常等问题。4.0 完整的更新内容请见 v4.0 发布说明。

    English → | 日本語版 →


    新增

    搜索会话的消息正文

    以前会话管理页的搜索只能找标题、目录和会话 ID,记得聊过什么、却想不起是哪个会话时找不到(#7896、#7420)。

    现在可以打开「搜索消息正文」:在页面右上角的「⋯」菜单里打开,或者搜索没有结果时直接点提示里的按钮。打开后,搜索结果会列出命中的正文片段和命中了几条消息。

    • 默认关闭。打开后 CC Switch 会在本地为消息正文建立索引,建立期间会显示进度,这时正文结果可能还不全。
    • 索引是单独的本地文件 session-index.db,不参与云同步,也不进备份;关闭这个开关会删除它。

    界面密度和界面缩放

    「设置 → 通用 → 外观」里新增两项(#9209):

    • 界面密度:「紧凑」就是原来的尺寸,也是默认值;「舒适」的字号大一档,按钮和输入框更高一些。
    • 界面缩放:90%、100%、110%、125% 四档,也可以按 Ctrl(macOS 上是 ⌘)加 +、- 调整,按 Ctrl/⌘ 加 0 复原。

    两项设置只保存在本机,和主题一样。托盘快捷面板始终保持紧凑尺寸。

    模型定价表可以搜索

    模型定价表上方加了搜索框,按模型 ID 或名称筛选(#9205)。按回车会编辑第一个结果;没有匹配的模型时,回车会为输入的模型新增定价。

    Grok Build 打开终端

    Grok Build 的供应商卡片也有「打开终端」按钮了(#9234)。Grok CLI 不能只让某一个终端换供应商,所以这个按钮只出现在正在使用的供应商上,打开的终端直接用 CC Switch 管理的这份 Grok 配置;选择跳过权限确认时会加上 --always-approve。


    变更

    • Skills 已安装页重新排版(#9210):
      • 名称列固定在左侧,窗口窄时各应用的列在它下面横向滚动。
      • 状态和来源筛选移到和「发现」页一样的工具栏里,选中 Skill 后也不会被挡住;批量操作保留更新、卸载和按应用「启用到」/「停用」。
      • 去掉了页头的「N 个可更新」链接,工具栏的「全部更新」已经写了数量;点每行的「可更新」标记就能更新这个 Skill。
      • 每行的「…」菜单保留打开文档、打开目录和卸载;写入失败时,错误信息显示在描述的位置。
    • 供应商图标跟随主题(#8438):去掉了卡片图标后面固定的白底。单色的深色图标会跟着文字颜色变化,深色模式下也看得清;带深色笔画的多色图标、图片图标和你上传的图标在深色模式下仍然带浅色底。
    • 右键不再弹出浏览器菜单(#8919、#8921):以前在主窗口和托盘面板里点右键,会弹出浏览器自带的菜单(Windows 上是「后退」「重新加载」「另存为」「打印」等)。现在不会了;输入框、代码编辑器和选中的文字仍然可以右键复制粘贴。
    • 熔断日志写明是哪家供应商(#9292):熔断器的日志(CB-001 到 CB-006)都带上了「应用:供应商 id」;熔断器拒绝某家供应商时也会记一行 FWD-004,写明供应商名称,不再悄悄跳过。只改了日志,路由和熔断行为不变。
    • 预设: Mistral AI 预设的默认模型改为 mistral-large-4(Mistral Medium 3.5 已被 Mistral 宣布弃用),Claude Code、Codex 和 Claude Desktop 的 Mistral AI 预设不再隐藏。Mistral Vibe 套餐和 API 共用额度,「获取 API Key」改为打开 Vibe CLI 的密钥页,免费、订阅和按量付费都能用;添加供应商时搜「Vibe」也能找到它。新增 Genesis(#9269)、TokenPlus(#9296)。已添加的供应商不受影响。

    修复

    • 配置文件是软链接时,切换供应商会把它替换成普通文件,Windows 上直接报错(#6764、#9283)。用 dotfiles 工具或同步文件夹管理 ~/.claude/settings.json、~/.codex/config.toml、opencode.json 等文件时,它们通常是软链接。以前写入时会把链接本身替换掉,macOS 和 Linux 上链接变成普通文件、和原文件脱钩,Windows 上报错「原子替换失败」(os error 1464)。现在会写到链接指向的真实文件,链接保持不变。
    • 请求中途被取消后,供应商可能一直处在熔断恢复中,直到重启(#7206、#9292)。熔断恢复期间,熔断器只放一个探测请求过去;如果这个请求还没结束客户端就断开了,名额不会还回去,之后发给这家供应商的请求全被拒绝。现在无论请求怎么结束,名额都会还回去。
    • Codex 设置了自定义权限后,用 plan 模式报错(#7349、#7294)。较新的 Codex 读取自定义权限时要求 model_catalog_json 是绝对路径,以前 CC Switch 写的是文件名,Codex 报 AbsolutePathBuf deserialized without a base path。现在写成绝对路径;配置目录在 WSL 里时仍写文件名。
    • 运行过一次的 Skill 被显示为「可更新」,点更新会覆盖整个目录(#7780、[#7772](https://github.com/farion1231/cc-switch/issue
  3. v4.0.26CC Switch v4.0.262026-11-05 · 2026-11-05 15:25 UTC
    查看更新说明

    CC Switch v4.0.26

    本版本让授权中心和官方供应商卡片显示每个账号的订阅计划,GitHub Copilot 账号会列出所有有上限的额度;一键导入链接现在也能导入 Claude Desktop、MiniMax Code、Kimi Code、DeepSeek Harness 和 Oh My Pi 的供应商。Codex 卡片可以选择保留 GPT 模型的官方 Fast 档;系统代理把 Codex、Grok Build 发往本地路由的请求接走时,CC Switch 会提醒你。DeepSeek Harness 可以设置配置目录,装在 WSL 里也能管理。这一版还做了一轮性能优化:供应商列表、主窗口加载、启动、会话读取和路由转发都更快,会话同步占着数据库时界面也不再卡住。另外修复了 IPv6 不通时经路由请求先卡两分多钟、需要登录的 MCP 服务器显示连接失败、Claude Desktop 路由卡片改了模型不生效、Codex 经路由转 Chat 时缓存命中率下降、GitHub Copilot 的 Grok 请求报 422 和回复重复显示、非 Retina 显示器上弹窗模糊等问题。4.0 完整的更新内容请见 v4.0 发布说明。

    English → | 日本語版 →


    新增

    账号订阅计划

    以前授权中心里只有 Claude 账号会写订阅计划,其他账号只显示登录日期,同一个服务的 Max 账号和 Free 账号看起来一模一样。

    现在 GitHub Copilot、ChatGPT、Kimi、Antigravity、xAI 账号的第二行开头也会写订阅计划。Codex、Kimi、Antigravity、Gemini CLI 的官方卡片,以及 Copilot、xAI 账号卡片,副标题后面也会加上「· 计划名」。

    • 卡片上的计划名直接用额度查询的结果,不会多发请求(Kimi、Antigravity、xAI 查额度时会多一个并行请求取计划名);额度加载出来后计划名才出现,不查额度的卡片不显示。
    • 计划名查不到时只是不显示,额度照常显示;刷新失败时保留上次查到的计划。
    • 跟随 Grok CLI 登录的 Grok Build 卡片、没绑账号的 Antigravity 卡片暂时还没有计划名,它们查额度的方式拿不到这项信息。

    GitHub Copilot 显示全部额度

    Copilot 账号以前只显示高级请求的百分比。现在每一项有上限的额度各占一行,悬停可以看到「剩余 / 共」,Free 账号的代码补全和聊天次数也能看到了。

    • 高级请求改叫 Credits,和 Codex 的叫法一致,托盘里也一样。
    • Free 账号没有 Credits,以前会显示成「还剩 100%」,现在写「当前计划不含」,供应商卡片上不再显示这一项。

    一键导入支持更多应用

    以前 Claude Desktop、MiniMax Code、Kimi Code、DeepSeek Harness 和 Oh My Pi 的供应商链接会直接被拒绝。现在这些应用的链接也能导入了。

    • Claude Desktop:链接是 Anthropic 格式、模型名都以 claude- 开头(或没写模型)时,导入成直连卡片;其他情况导入成模型映射卡片,四个档位按链接里的模型填好。
    • MiniMax Code、Kimi Code、DeepSeek Harness、Oh My Pi:和 Pi 一样导入成单个模型,链接里必须带模型。
    • Oh My Pi 会把某些写法的 Key 当成环境变量名或命令来读,导入后可能把你本机的密钥发到链接里的地址。所以这类 Key(以 ! 开头、没有小写字母等)会被拒绝导入。

    Codex 卡片保留官方 Fast 档

    Codex 第三方卡片模型列表里的 GPT 模型以前一律去掉了官方的 Fast 速度档,选不了 Fast(#5234)。转发官方 ChatGPT 账号的中转(如 CPA)其实支持 Fast。

    现在 Codex 供应商表单「高级选项」里,「上游格式」下面多了「保留官方 Fast 档」,默认关闭,只在上游格式为 Responses 时显示。打开后 Codex 选了 Fast 时请求会带 service_tier=priority。

    • 只有转发官方 ChatGPT 账号的中转才认,会更快消耗额度;其他上游可能报错或按更高价格计费。
    • 以前在官方卡片下选过 Fast 的,打开后会马上在这家生效。聚合模式下不生效,改完需要重启 Codex。

    系统代理接走本地路由时提醒

    开着 Clash 这类代理工具时,Codex 和 Grok Build 发往本地路由(http://127.0.0.1:<port>)的请求可能被系统代理接走,转到远程节点后返回一个空的 502(#9221)。Codex 只显示「502 Bad Gateway」,CC Switch 这边也收不到请求,没有任何日志,很难查。

    现在 Codex 或 Grok Build 进入路由模式后,CC Switch 会在后台按客户端同样的代理规则给本地路由发一次请求。请求回不来时,日志里会记一条警告;如果是你手动进入路由模式,界面上也会弹出提示,说明怎么在代理工具里让本机地址直连(例如在 Clash 规则最前面加 IP-CIDR,127.0.0.0/8,DIRECT,no-resolve)。

    DeepSeek Harness 配置目录

    以前 DeepSeek Harness 只认 DSH_HOME 或 ~/.dsh,装在 WSL 里的 DSH 在 Windows 版 CC Switch 里管不了(#9239)。

    现在「设置 → 应用配置」里多了 DeepSeek Harness 一栏,可以设置配置目录。供应商、Skills、指令文件、会话和用量导入都会跟着这个目录走。填 WSL 里的路径时,版本检测、安装和升级也会在那个 WSL 发行版里进行。


    变更

    • 性能优化:
      • 供应商列表读取更快,供应商越多越明显;没改动的供应商不再重复写入数据库,也就不会因此触发云同步(#9180)。
      • 次要页面和供应商编辑器改为用到时才加载,主窗口启动要加载的脚本少了一半(#9181)。
      • 启动时的日志清理挪到后台进行;窗口隐藏或最小化时暂停定时刷新,窗口可见但不在前台时照常刷新(#9182)。
      • 读取会话记录时少复制一遍数据,进入轻量模式后会释放会话缓存(#9183)。
      • 路由转发流式响应时少了大量内存复制,响应很长时尤其明显;故障转移读数据库的次数也更少(#9161)。
    • 会话同步时界面不再卡住(#9178):大会话文件同步时会占着数据库几十秒,这期间打开 Skills 页、切到 Pi 或 Oh My Pi、打开网络或数据设置、图标选择、统一供应商面板、测速等操作会让整个窗口和托盘卡住,直到同步结束。现在这些操作都在后台等待,界面照常响应。
    • 会话阅读页的工具栏重新排版(#9109):第一行放路径和阅读工具,第二行放时间、会话统计、模型和用量;去掉了容易落在行首行尾的分隔点,模型名太长时换行显示,悬停可看完整名称。
    • 预设: Grok Build 默认模型改为 grok-4.7,Kimi 预设(Codex 的除外)默认模型改为 kimi-k3.1-pro,Hermes 的千问 Coding Plan 默认模型改为 qwen3.7-plus([
  4. v4.0.25CC Switch v4.0.252026-11-02 · 2026-11-02 15:08 UTC
    查看更新说明

    CC Switch v4.0.25

    本版本为 MCP 页面增加了连通性检查,可以一键检查所有已启用的 MCP 服务器能不能连上;Codex 经本地路由用官方账号时,可以在额度快用完前自动暂停官方请求,第三方模型照常可用。另外,用量页的汇率可以自动获取,Codex 供应商表单可以设置子代理并发上限,Claude Code 和 Claude Desktop 经路由或聚合时,模型菜单会写明每个模型来自哪个供应商、实际是哪个模型,会话管理里也能删除 Kimi Code 会话了。还修复了「打开终端」混入路由和聚合设置、路由模式下 OpenCode Go 等供应商让 Claude Code 要求重新登录、给纯文本模型发过一个文件后之后每轮都报错、Windows 上供应商表单内容来回闪、启动时托盘面板打不开、Codex 用了模型映射时用量算两遍等问题。4.0 完整的更新内容请见 v4.0 发布说明。

    English → | 日本語版 →


    新增

    MCP 连通性检查

    以前 MCP 服务器配好以后,只有在编程工具里用到时才知道能不能连上(#4498)。

    现在 MCP 页面顶部多了「检查连通性」按钮,会检查所有已启用的服务器;每一行的菜单里也有「测试连接」,只检查这一个。

    • 打开页面时不会自动检查,没检查过的显示「未检查」;改了某个服务器的连接配置后,它的结果会重置。
    • 检查方式是和服务器完成一次 MCP 握手,本地命令(stdio)、HTTP 和旧版 SSE 三种连接方式都支持。每个服务器最多等 30 秒,整个应用同时最多检查 3 个。
    • 本地命令启动的服务器检查完会连同它启动的子进程一起结束,不会留下后台进程。macOS 和 Linux 上不从终端启动 CC Switch 时,也能找到 npx、uvx 这类命令。

    Codex 官方额度保护

    Codex 用官方 ChatGPT 账号时,五小时或每周额度用完会进入 Reserve 模式。现在可以在额度快用完时先暂停官方请求,留着额度,第三方模型照常可用。

    在「设置 → 应用配置 → Codex 应用增强」里打开「官方额度保护」,可以设置五小时和每周使用率的阈值(默认 95% 和 98%),任一达到就暂停新的官方请求。

    • 只对经过 CC Switch 本地路由的 Codex 官方请求生效,默认关闭。
    • 使用率直接读官方响应里自带的额度信息,正常使用时不会多发请求;刚开始用或空闲约 5 分钟后,才会先单独查询一次。
    • 查不到额度(网络问题、登录过期等)时照常放行,不会误挡。被暂停的请求会直接返回错误,不会转到故障转移队列里的其他供应商。

    用量页汇率自动获取

    用量页「用量设置」里的「显示」区多了「汇率来源」,可以选「手动填写」(默认)或「自动获取」。选了自动获取才会联网,汇率超过 12 小时会自动更新,获取失败时继续用上次的汇率。自动获取的汇率和手动填的分开保存,切回手动填写时你自己填的值还在。费用仍按美元记录,只在显示时换算。

    Codex 子代理并发上限

    Codex 供应商表单的「子代理模型」下面多了「子代理并发上限」,设置一个 Codex 会话里最多同时开多少个子代理(#9055)。这是 Codex 的全局设置,写进 config.toml 的 [agents] max_threads,切换供应商时保持不变,官方卡片上也能改;留空就用 Codex 的默认值。

    模型菜单写明供应商和实际模型

    Claude Code 在路由模式下,/model 菜单里每一档以前只写「Custom Sonnet model」,看不出对应哪家供应商的哪个模型。现在会写成「供应商 · 实际模型 · 窗口」(窗口只在上游标了 1M 时显示),聚合模式下的模型也一样。供应商里自己写过模型说明的,以你写的为准。

    Claude Desktop 在路由和聚合模式下,模型下面的说明以前按名字里的 Opus、Sonnet 套用官方文案,聚合模型一律显示同一句。现在也改成「供应商 · 实际模型 · 窗口」。

    删除 Kimi Code 会话

    会话管理里可以直接删除 Kimi Code 会话了,以前只能去 Kimi Code 里删。删除方式和 Kimi Code 自己的一样,子代理的历史会一起删掉。

    定价: 内置价格表新增 GPT-6.1 Terra。


    变更

    • 本地路由不再接受网页发来的请求。本地路由会把请求换成你保存的供应商凭据再转发,所以网页如果能把请求发到本地路由,就能用掉你的额度。现在带浏览器来源标记的请求会被拒绝,通过普通域名指向本机的访问也不再接受。编程工具发的请求不受影响。
    • Skills「发现」页的工具栏和「已安装」页对齐(#9125):搜索框位置和宽度一致,刷新按钮改为「刷新仓库」文字按钮,来源、仓库筛选和「只看未安装」挪进表头,「安装到」放在表头右侧。少了一行,功能不变。
    • Windows 上首选终端是 PowerShell 时,装了 PowerShell 7 就用它打开(#8992、#3271),没装才用系统自带的 Windows PowerShell。供应商卡片的「打开终端」和应用的安装、升级都是这样。
    • 预设: 千问 AI 平台和 QwenCloud 的按量付费、Token Plan 改用新的 MaaS 域名,Coding Plan 不变。

    修复

    • 在路由或聚合模式下,Claude Code 卡片的「打开终端」混入了路由和聚合的设置。终端里的 Claude Code 会同时带上路由的占位凭据和这张卡片的 Key,这张卡片没配的模型档位会用上聚合里的模型名,发到这张卡片的地址上用不了;/model 菜单里也会出现其他供应商的模型。现在终端里只用这张卡片自己的设置,你的其他全局设置照常保留。
    • 路由模式下,OpenCode Go 等用 ANTHROPIC_API_KEY 存 Key 的供应商会让 Claude Code 要求确认自定义 Key,默认选「否」后就是未登录(#8111、#8104)。现在路由模式下占位凭据一律写进 ANTHROPIC_AUTH_TOKEN,发给上游的请求不变。
    • 给纯文本模型发过一个文件或音频后,之后每一轮都报 400(#6274、#6151)。现在经路由发给纯文本模型时,对话里的文件和音频会换成一段文字说明;智谱 GLM 的中文报错也能认出来。图片的处理不变。
    • Windows 上供应商表单里的名称等内容来回闪(#6420、#6349)。这是 WebView2 的自动填充在覆盖表单内容,现在已对主窗口关掉。
    • 启动后的一段时间里托盘面板打不开,也没法从托盘退出(#9154)。启动时导入会话用量会占着数据库,托盘面板要等数据。现在面板会先弹出,「打开主窗口」和「退出」马上能用,列表随后加载。
    • Codex 经路由用了模型映射时,同一个请求的用量被算两遍(#7643、[#5526](https://github.com/farion1231
  5. v4.0.24CC Switch v4.0.242026-11-01 · 2026-11-01 15:05 UTC
    查看更新说明

    CC Switch v4.0.24

    本版本在授权中心加了「登录时自动打开浏览器」开关,关掉后登录账号只复制登录链接,由你自己选浏览器打开,适合每个账号用独立浏览器环境的用户。另外修复了 Claude Code、Claude Desktop 经路由用 GPT 6.1 Sol / Terra 时 max 思考档位被降成 xhigh、DeepSeek Harness 选了支持 PDF 输入的模型后第三方供应商全部不显示、WSL 上 CC Switch 启动就退出、Codex 的 Chat 供应商重开「支持思考等级」后思考档位发不出去等问题。4.0 完整的更新内容请见 v4.0 发布说明。

    English → | 日本語版 →


    新增

    登录账号时可以只复制链接

    以前在授权中心登录账号,一律用系统默认浏览器打开登录页。用 AdsPower 这类工具给每个账号单独开浏览器环境的话,登录会落到错误的浏览器里。

    现在授权中心顶部多了「登录时自动打开浏览器」开关,Claude、ChatGPT、Copilot、xAI、Antigravity、Kimi、DeepSeek 账号登录都受它控制,包括在添加供应商表单里发起的登录。关掉后:

    • 点登录只把登录链接复制到剪贴板,在你要用的浏览器里打开、登录并同意授权,CC Switch 会自动更新。
    • 需要输入验证码的登录不再自动复制验证码,免得把剪贴板里的链接顶掉。
    • 等待登录时可以点「复制登录链接」再复制一次,打开登录页的按钮不显示。

    Windows 上 Claude Code 会自己打开浏览器,开关关掉时 CC Switch 会让它只输出登录链接。

    开关默认打开,只记在这台电脑上,不随云同步。

    预设: A6API 改用新域名 a6api.vip。


    修复

    • Claude Code、Claude Desktop 经路由连 OpenAI 格式的上游、模型是 gpt-6.1-sol 或 gpt-6.1-terra 时,max 思考档位被降成 xhigh 发出(#9122)。现在 GPT 5.6 及以后的版本,不带后缀或带 sol、terra、luna、astra 后缀的模型都保留 max;pro、codex、mini 等其他后缀仍按 xhigh 发。
    • DeepSeek Harness 从拉取到的模型列表里选了支持 PDF 输入的模型后,第三方供应商全部不显示(#9116)。DeepSeek Harness 的模型输入类型只认文字和图片,写进去一个 PDF 就会让这一条配置整体失效。现在只写文字和图片。
    • WSL 上 CC Switch 启动后直接退出,报托盘图标「Permission denied」(#9021、#9020)。Linux 的托盘图标改为放在应用的缓存目录。
    • Codex 的 Chat 供应商关掉再打开「支持思考等级」后,选的思考档位不再发给上游(#8998、#8954)。GitHub Copilot 等上游因此收不到任何思考档位。以前保存过的供应商不用重新编辑,也会恢复正常。
    • DeepSeek Harness 的「DeepSeek 官方登录」卡片写着「用 Claude 账号登录」(#9058)。现在是「用 DeepSeek 账号登录」。

    致谢

    感谢 @gddg(WSL 托盘)、@guishiw(Codex 思考等级)、@iSanae233(DeepSeek 登录文案)的贡献。

    感谢 @Xinyu-Li-1997、@clickwzy、@mhsbz、@ggbdpq 报告问题、提供复现信息和修复思路。

    完整的技术细节请见 CHANGELOG。

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    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 K3.1 Pro

    Kimi K3.1 Pro is Moonshot AI's most capable 3T-class open-weight model to date, with a 1-million-token context window. Built on Kimi K3 with substantially larger post-training compute, it delivers consistent gains across coding, agentic workflows, 3D creation, and reasoning. CC Switch makes it easy to configure and switch to Kimi K3.1 Pro 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 Offici