Stream error: exceeded retry limit, last status: 401 Unauthorized with ChatGPT Signin after account migration

I’m experiencing issues with Codex CLI after my account was migrated from Usage Tier 3 to Tier 4. Codex worked previously with my ChatGPT Pro plan, but now only works with api key.

When using Codex CLI after signed in with ChatGPT, I’m getting: - Stream disconnected errors (1/5 retries) - 403 Forbidden on device auth - Only API key works now.

Is this related to the tier migration and how to make ChatGPT OAuth work again with Codex CLI?

Have also tried method below, but does not work.

  1. Shut down vscode/cursor
  2. mv ~/.codex/auth.json ~/.codex/auth.json.bak
  3. Start vscode/cursor back up, and log back in (Select login with ChatGPT, not with API).

One the reasons I’ve seen this happen is when one starts a chat while using API key for auth, then switches to ChatGPT for Auth and tries to continue the same chat.

thanks, I tried logout, and start a new terminal, and login with ChatGPT, but still not working. Any advice?

Can you confirm if it works for another project directory that you didn’t use it for previously?

confirmed also not working

any fix? having same issue.