Login error on "Sign in with ChatGPT"

Resolved 💬 3 comments Opened Aug 14, 2025 by edwinzhang88 Closed Aug 24, 2025
💡 Likely answer: A maintainer (seratch, member) responded on this thread — see the highlighted reply below.

What version of Codex is running?

codex-cli 0.21.0

Which model were you using?

_No response_

What platform is your computer?

Darwin 24.6.0 arm64 arm

What steps can reproduce the bug?

when use "Sign in with ChatGPT", i typed in the login account information, the url (https://auth.openai.com/log-in/password) shows:

Oops, an error occurred!
Unexpected token '<', "<!DOCTYPE "... is not valid JSON

What is the expected behavior?

_No response_

What do you see instead?

_No response_

Additional information

_No response_

View original on GitHub ↗

3 Comments

Shaurya-Sethi · 1 year ago

I'm getting login issues too. I'm on windows though and it says this:

<img width="759" height="480" alt="Image" src="https://github.com/user-attachments/assets/e5d78bcd-6126-4341-a011-966faa4d7e9c" />

seratch member · 1 year ago

Upgrading to 0.22.0 may help. Could you try again after installing the latest one by npm -g i @openai/codex@latest?

xxz7909 · 9 months ago

I have the same problem. I use vscode extension CodeX.
My notebook is Windows10