Skip to content

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.

Error output
没有任何效果,无法登录官方渠道
English translation

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.

  1. Upgrade cc-switch to v3.16.2 or newer. Officially, v3.16.1 fixed the preserve-mode takeover path overwriting the official auth.json.

  2. Close Codex and cc-switch completely.

  3. Delete the leftover config folders in your home directory to reset the authentication state fully.

    路径: %USERPROFILE%\.codex 和 %USERPROFILE%\.cc switch
    rmdir /s /q %USERPROFILE%\.codex
    rmdir /s /q %USERPROFILE%\.cc switch
  4. Restart cc-switch and switch to the target provider. On the official channel, sign in to your account again.

ToolCodex
Version3.16.0 - 3.19.2
PlatformsWindows
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.

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.