Error logging in using a gpt account on Windows
Resolved 💬 9 comments Opened Aug 20, 2025 by lwh316658735 Closed Nov 21, 2025
💡 Likely answer: A maintainer (seratch, member)
responded on this thread — see the highlighted reply below.
What version of Codex is running?
_No response_
Which model were you using?
_No response_
What platform is your computer?
_No response_
What steps can reproduce the bug?
<img width="654" height="267" alt="Image" src="https://github.com/user-attachments/assets/094ca414-11ec-4f1e-934a-332d60385b13" />
What is the expected behavior?
_No response_
What do you see instead?
_No response_
Additional information
_No response_
9 Comments
Can you share the output of
codex --version?Sorry, I forgot. The version is.
PS C:\Users\31665\Desktop> .\codex-x86_64-pc-windows-msvc.exe --version
codex-cli 0.23.0-alpha.6
PS C:\Users\31665\Desktop>
I am also experiencing a similar issue. After updating to the latest version, I am no longer able to log in via the browser.
codex --version
codex-cli 0.22.0
<img width="400" alt="Image" src="https://github.com/user-attachments/assets/b9a0f333-3219-48e3-88a2-6538972c4109" />
A 400 error means there is an invalid request from the client, so there may be an error in the generated link.
You are most likely running into an issue with the conversion between ASCII characters and URL encoding. The
:was being converted to%3Aand the/to%2F. I manually corrected this, and I was able to log in.@Isaka-code Thanks for sharing this! Do you mean the
redirect_uriparameter inhttps://auth.openai.com/oauth/authorize?...URL? If so, a URL-encoded parameter in the query string should generally work fine. Which browser are you using?@seratch
Yes, I was referring to the
redirect_uri. I use Chrome as well. I'm wondering if a recent version update might have caused a change, as I was able to log in without any issues before.Thanks for your reply. The localhost server part was recently fully rewritten, but I haven’t noticed any issues with the current code so far, and I haven’t encountered the error myself. We’ll need to identify the reproduction steps or the root cause of this error pattern.
<img width="940" height="318" alt="Image" src="https://github.com/user-attachments/assets/a3ad9de8-dd03-4013-97db-a64936c20419" />
Fresh 0.23 install after running
npm install -g @openai/codexthis morningI suspect this issue is no longer relevant. @lwh316658735 and @Isaka-code, were you able to successfully log in with more recent versions of codex?