The cc-switch Claude config is overwritten - Claude Code
Quick fix
Sign out of the official account in cc-switch and clear the login state to restore your developer mode proxy config.
Symptom
Section titled “Symptom”今天注册claude账号被官方强制覆盖了,导致cc-switch接入claude的配置被覆盖,然后登录进去一直都是官方账号的claude登录I registered a claude account today and it was forcibly overwritten officially, which overwrote the cc-switch Claude config, and after logging in it is always the official account claude login
When you register or sign in to an official account in Claude Code, the official client forcibly overwrites the config cc-switch injected, so some traffic still goes to official Claude even after switching provider. Newer clients also removed the "skip login" button in favour of third-party gateway login, invalidating the older configuration approach.
For the Codex app, config not applying is because newer versions moved the SQLite database path from ~/.codex/state_5.sqlite to ~/.codex/sqlite/state_5.sqlite, so older cc-switch still modifies the wrong path.
Sign out of the current official account in cc-switch to stop the anomalous traffic continuing to official Claude.
Clear the official login state and set up access again through developer mode.
If Codex session history is not syncing, update cc-switch to the latest version to support the new SQLite path.
Affected Versions
Section titled “Affected Versions”Source Issues
Section titled “Source Issues”This page is distilled from 4 real issues
- After switching provider it still runs Claude.
- Once signed in to an official account, switching to another provider with cc switch still sends some traffic to claude. Signing out in cc makes it stop.
- Why is there no skip login button?
- It has all been updated — there used to be a skip login, and now it is third-party gateway login.
- After unifying Codex session history, switching the login-state account to API Key mode does not restore the session history.
- It looks like newer codex moved SQLite to ~/.codex/sqlite/state_5.sqlite, while cc still modifies the old ~/.codex/state_5.sqlite.
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.