#6720·cc 开关

通过 CC Switch 安装 Claude 后无法启动路由: 切换路由状态失败: Claude 配置文件不存在(重启后仍会出现此问题)

作者: Dazzle-sys创建于 2026年8月22日更新于 2026年9月17日

CC Switch Version / Version Number v3.20.0 ### Operating System / Operating System Windows ### Related App / Related App Claude Code ### Steps to Reproduce / Reproduction Steps 1. Install CC Switch for the first time (Claude is not installed on the machine yet) 2. Install Claude through the built-in method of CC Switch 3. Go to Settings → Routing, turn on the "Routing Switch" (the status shows running, the service address is "http://127.0.0.1:15721", and "Current Provider: Waiting for the first request...") 4. Click the Claude switch in the "Routing Enabled" area 5. An error message appears: "Failed to switch routing status: Claude configuration file does not exist" 6. After restarting CC Switch, click the Claude routing switch again, and the same error still appears. > Note: In the English interface, this error is displayed as "Failed to switch routing status: The Claude configuration file does not exist." ### Expected Behavior / Expected Behavior Clicking the Claude routing switch should enable the local routing normally; if the Claude configuration file does not exist, it is expected that CC Switch will automatically complete the initialization (create the corresponding configuration file) and take over, rather than directly reporting an error. ### Actual Behavior / Actual Behavior The Claude routing switch cannot be turned on, and it always reports an error of "Failed to switch routing status: Claude configuration file does not exist". After restarting CC Switch, the problem persists, and it is suspected that there is a state mismatch between the installation guide process and the routing takeover (the Claude installed through CC Switch has not created the configuration file required for routing). ### Additional Context / Additional Information - The triggering scenario is special: Claude is installed through CC Switch, not installed by the user separately, and it is suspected that the files under the Claude configuration path have not been created. - There are reports of similar symptoms for reference: #5217, #2864. The difference between this and those is that the reproduction path is "new environment + CC Switch built-in installation of Claude + reproduction after restart". - Attached screenshot: Settings → Routing page, the error message appears when the Claude switch is turned on.

内容来源: farion1231/cc-switch