Configuration Not Applied or Lost After Switching Providers - cc-switch
Quick fix
Upgrade cc-switch to v3.16.2+ (v3.18.0 fixes nvm path detection). Put custom settings in “通用配置” to prevent overwrites; Linux save failures require v3.11.1+.
Symptom
Section titled “Symptom”切换路由状态失败{{detail}}Route status switching failed{{detail}}
This issue group covers configuration write defects in cc-switch across versions and platforms. In v3.15.0-v3.16.1, a failed route switch displayed the {{detail}} placeholder instead of a specific cause (#3727); on Windows, a mismatch between localhost and 127.0.0.1 bindings could cause route status switching to fail (#3727). In v3.16.0-v3.16.3, the GUI could not detect Node.js environments managed by nvm because PATH was too limited, preventing Codex/Claude Code upgrades or resulting in env: node: No such file or directory (#4448, #3584). Older versions rewrote entire configuration files when switching providers, causing custom plugin settings, MCP settings, or general configuration to be lost (#1459, #946, #2999). This was fixed in v4.0.0 by replacing only key fields. Linux had a bug that prevented saving edits to an individual provider (#1179). There was also a case where all provider configurations stopped working in the Codex desktop app after an upgrade (#4948).
Upgrade to the latest version. The {{detail}} placeholder shown when route switching fails and the nvm detection issue were fixed in v3.16.2 and v3.18.0.
If you use nvm to manage Node.js and see env: node: No such file or directory during an upgrade, as a temporary workaround run npm i -g @openai/codex@latest manually in a terminal, or create a symlink in a system path.
If saving edits to an individual provider fails on Linux, upgrade to v3.11.1 or later.
To prevent custom settings such as MCP and plugins from being overwritten when switching providers, put general settings in the “通用配置” section instead of an individual provider configuration, or upgrade to v4.0.0, which replaces only key fields such as the address, key, and model.
~/.claude/settings.json 或 Codex 对应配置文件 // 在 cc-switch 的"通用配置"中填入自定义设置,而非依赖单个供应商配置If all configurations are lost after upgrading the Codex desktop app, try reverting to v3.16.4 or reconfigure in cc-switch and ensure the settings are written to “通用配置”.
Affected Versions
Section titled “Affected Versions”Source Issues
Section titled “Source Issues”This page is distilled from 28 real issues
- #797自定义配置是mac的icloud,有问题,无法看到打开的日志. 空格问题吧
- #921codex的api请求地址重视丢失
- #946mcp配置格式问题
- #1179linux 版本下对单个 provider 配置编辑保存失败
- #1430复制命令行启动specific provider的terminal 出错
- #1459cc switch切换供应商,覆盖了claude code的原配置文件,现在官方的插件marketplace已经不显示了,有啥方法能够复原吗?
- #1993OMO改名了,配置还是旧的插件名
- #2125claude code 切换不同供应商后,原来下载的 plugin 无法被激活
- #2161mcp名称不能自己设置
- #2615codex切换配置a到b,会导致a的会话无法使用报错
- #2664codex mac端应用,使用ccs切换到custom配置的API后,无法使用插件
- #2999编辑通用配置,怎么就自动保存了? 我都没点保存!!!!!
- #3037保存配置的时候有几率卡死(无响应)
- #3063oh-my-openagent无法通过json编辑保存
- #3135切换claude 配置的时候,如果其他的agent的配置文件出错,则会切换失败
- #3181设置-路由配置路由启动 Claude 提示切换路由状态失败:{(detail)}
- #3395本地环境检查误报
- #3584软件检测不到nvm安装的node路径
- #37273.16.1 Windows版本提示“切换路由状态失败”,Mac版本正常
- #3769无法切换api
- #4145claude desktop无法识别网关
- #4448在cc-switch内更新codex和claude code版本的时候报错
- #4754如何在 Configure third-party inference 中退出 Organization-managed 配置
- #4906ockpit-tools问题
- #4948升级到版本v3.16.5后之前配置的可用服务商在使用codex桌面端时全部都不能用了,删掉重新配置同样无法使用,天塌了
- #5436[Bug] 无法创建两个及以上的OpenAI官方渠道的供应商配置
- #5612Codex"+"不见了, 无法添加API
- #6543CC switch关闭后codex设置丢失。
- What should I do if Claude Code plugins or marketplaces disappear after switching providers?
- Check whether there is a backup in cc-switch’s “通用配置”, or check the default provider imported after installation. From v4.0.0 onward, switching no longer overwrites the entire configuration, which can reduce this kind of issue.
- Why does “切换路由状态失败” appear without a specific cause?
- This was a bug in v3.16.1 and earlier: the {{detail}} placeholder in the error message was not replaced correctly. Upgrade to v3.16.2 or later to see the specific backend error details.
- What should I do if cc-switch cannot detect Node installed with nvm or cannot upgrade Codex?
- This is a known issue in v3.16.x (the GUI environment’s PATH is too limited). As a temporary workaround, run npm i -g @openai/codex@latest in a terminal to upgrade manually, or create a symlink for node in /usr/local/bin. This issue was fixed in v3.18.0.
- Why do edits to an individual provider configuration have no effect after saving on Linux?
- This was a bug in v3.11.0 and earlier. Upgrade to v3.11.1 or later.
- Why do all provider configurations stop working after upgrading Codex?
- A user reported this issue after upgrading to v3.16.5. Try reverting the version first, or put the settings in cc-switch’s “通用配置” section to prevent them from being reset.
- How can I prevent cc-switch from overwriting my custom MCP settings?
- In older versions, switching providers rewrote the entire configuration. Put custom MCP settings in “通用配置” (which applies to all providers) instead of an individual provider configuration, or upgrade to v4.0.0, which replaces only key fields and preserves other custom settings.
- Why did editing general configuration save automatically?
- Before v4.0.0, the general configuration editor dialog could save automatically under certain actions. This editing method was removed in v4.0.0; switching now replaces only key fields, while other settings remain in the original configuration file.
Related problems
Section titled “Related problems”This is an unofficial community wiki with no affiliation to the cc-switch authors or the project itself. Its content is compiled from the project's public GitHub issues. This site distributes no software.