Nothing happens, cannot sign in to the official channel - Codex
Quick fix
Upgrade cc-switch to v3.16.2 or newer and delete the .codex and .cc switch folders in your home directory, fixing auth.json being overwritten.
Symptom
Section titled “Symptom”没有任何效果,无法登录官方渠道Nothing happens, cannot sign in to the official channel
When switching provider in cc-switch — especially from a routing proxy to the official API — the takeover logic in older versions wrongly clears or overwrites the official Codex OAuth auth.json file. That makes the login screen appear unexpectedly after a switch, or leaves the login ineffective and the state stuck on the official channel. Separately, uninstalling the software without cleaning the hidden .cc switch and .codex folders in your home directory leaves an authentication cache behind, so the account state never fully resets — producing automatic sign-ins or an inability to sign out.
Upgrade cc-switch to v3.16.2 or newer. Officially, v3.16.1 fixed the preserve-mode takeover path overwriting the official auth.json.
Close Codex and cc-switch completely.
Delete the leftover config folders in your home directory to reset the authentication state fully.
路径: %USERPROFILE%\.codex 和 %USERPROFILE%\.cc switch rmdir /s /q %USERPROFILE%\.codexrmdir /s /q %USERPROFILE%\.cc switchRestart cc-switch and switch to the target provider. On the official channel, sign in to your account again.
Affected Versions
Section titled “Affected Versions”Source Issues
Section titled “Source Issues”This page is distilled from 3 real issues
- I deleted auth.json and even reinstalled — why does Codex still sign in to my previous account automatically?
- Because cc-switch and Codex config and cache live by default in the hidden .cc switch and .codex folders in your home directory. Deleting auth.json alone, or uninstalling the software, does not clear that leftover data — you have to delete both folders by hand to reset the login state fully.
- I signed in to a Codex account in cc-switch, but switching to the official channel still says not logged in. What now?
- Older cc-switch overwrote the official authentication file during proxy takeover. Make sure cc-switch is on v3.16.2 or newer, clear the cache folders, and sign in again.
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.