cc-switch Local Proxy FAQ: 502 Bad Gateway, Timeouts, Unable to Delete Configurations, Missing UI, and Inconsistent Failover Status
Quick fix
Proxy issues often stem from unsupported official providers, unapplied settings, or unsynchronized UI state;
Symptom
Section titled “Symptom”unexpected status 502 Bad Gateway:This cluster covers several proxy-related issues. Main causes include: 1) To reduce account-ban risk, the local proxy does not support official providers, so requests to official models may time out or fail when the proxy is enabled; 2) deleting the only remaining provider is restricted by design, so add another provider first; 3) when the proxy is enabled, it takes over the local configuration file, so inspecting that file may not show the actual request destination; 4) in some versions, the failover toggle is decoupled from local proxy takeover, leaving the UI interactive while backend behavior differs; 5) in WSL, the proxy may need to be turned off and back on to take effect. Different error variants—timeouts, 502 errors, missing UI, and inability to delete—have different causes and do not share one fix.
If you use an official provider with OAuth login, turn off the local proxy or switch to a third-party provider; the local proxy does not support official providers.
If you cannot delete the only remaining provider, add an official or third-party provider first, then delete the original provider.
When switching providers with the proxy enabled, do not use the local configuration file to determine whether the switch succeeded. Check actual requests, the usage panel, or provider dashboard data. If the change has not taken effect, turn the proxy off and back on.
If the proxy does not work in WSL, try turning it off and back on. If it still does not work, confirm that the proxy works on Windows, and note the known issue with WSL addresses other than 127.0.0.1.
If the local proxy or failover toggle disappears from the home page, open the local proxy settings and enable the option to show the local proxy toggle on the home page. For failover display issues, upgrade to v3.12.3 or later to verify the fix.
Affected Versions
Section titled “Affected Versions”Source Issues
Section titled “Source Issues”This page is distilled from 27 real issues
- #808怎么删除所有的codex的代理配置;codex的配置无法停用也无法删除
- #632proxy 问题
- #737设置了全局代理后,通过本地代理访问openai官方模型超时
- #1011[BUG] OpenAI 兼容模式代理到服务端时会在 url 加上 ?beta=true,一些服务商会报错
- #912Windows WSL环境 v3.10.0版本,代理无效
- #1560Bug发现:在cloud code里面使用gpt 5.4模型的时候选择open ApI格式,不能调用多个子代理完成任务
- #1169同时支持wsl和window的配置修改
- #1242启动代理服务失败
- #1611[BUG] WebDAV 本地连接问题
- #499skill管理这里访问非常慢,这个访问会走系统代理吗?
- #788Linux虚拟机可以访问主机上CCS代理吗?
- #789claude原生安装,设置里面检测不到版本环境,实际开启代理不影响使用
- #1158本地代理相关 UI 消失
- #1228'在主页面显示本地代理开关',但实际还会显示'故障转移开关'
- #1394首页故障转移开关与本地代理前置条件存在一致性问题(UI 独立显示,命令层也允许写入未接管状态)
- #266开发透明代理的时候,是不是要可以顺便开发一下 429 自动负载均衡 或者有好几种策略 主备啊 随机负载啊
- #390啥时候出本地代理+自动切换啊
- #395添加skill时连接超时
- #776无法自动切换配置
- #844为什么反代理 Claude official 的时候400 报错,单独使用的时候没问题?
- #1151怎么代理gemini,现在报错
- #1712自定义不同模型供应商
- #811codex使用官方代理不能弹出oauth登陆界面,导致官方渠道无法使用
- #1398打开 代理总开关 按钮弹窗错误
- #1444请求未被代理
- #688proxy 设置非127地址会开启失败 wsl
- #6949feat: configurable home page (provider list vs usage dashboard)
- Why do official models time out or return 502 when the proxy is enabled?
- To reduce account-ban risk, the local proxy does not support official providers. Calls using official login methods are unrelated to proxy takeover by cc-switch. Turn off the proxy or switch to a third-party provider.
- How do I delete all Codex proxy configurations?
- You cannot delete the only remaining provider. Add another provider, then delete the current one. If you do not want to use it, add an empty official provider as a placeholder.
- Why did the configuration file not change after I switched providers with the proxy enabled?
- When the proxy is enabled, it takes over the local configuration file. The request address and provider shown in the file may not be meaningful; use actual request data or the usage panel instead.
- What should I do if the local proxy UI disappears from the home page?
- Starting with v3.11.0, you may need to enable “Show local proxy toggle on home page” manually in the local proxy settings. The failover toggle display issue was fixed after v3.12.0; upgrade to v3.12.3 or later to verify.
- What should I do if the proxy does not work in WSL?
- Some users resolved this by turning the proxy off and back on. There is a known issue with configuring a non-127 address in WSL. If the proxy runs on the Windows host, account for WSL network address limitations.
- Why can the failover toggle appear or be usable when the proxy is not enabled?
- In some versions, the home page failover toggle is decoupled from local proxy takeover, which can cause inconsistent state. Most documentation and backend logic still assume that the proxy is running and the application has taken it over. Upgrade and confirm that the fix is present in your version.
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.