Codex cannot login to chatgpt plus account if created with email/password and then used google auth
Resolved 💬 17 comments Opened Sep 21, 2025 by ilkerhk Closed Nov 18, 2025
What version of Codex is running?
0.39.0
Which model were you using?
N/A
What platform is your computer?
ubuntu
What steps can reproduce the bug?
I created a plus account using email/password then I also used google auth to login to same account.
I can login to chatgpt website using both however "codex login" gives "get_chatgpt_account_error" error. See below for the detailed error message.
What is the expected behavior?
At least one of the authentication methods should work.
What do you see instead?
# If I use email/password to authenticate after "codex login"
Oops, an error occurred!
Route Error (500 ): {
"error": {
"message": "Error looking up ChatGPT account.",
"type": "server_error",
"param": null,
"code": "get_chatgpt_account_error"
}
}
# If I use goole auth after "codex login"
Authentication Error
An error occurred during authentication (get_chatgpt_account_error). Please try again.
You can contact us through our help center at help.openai.com if you keep seeing this error. (Please include the request ID 2bb93171c0496d3ec4d9e57df29f6ea4 in your email.)
Additional information
_No response_
17 Comments
<img width="1710" height="943" alt="Image" src="https://github.com/user-attachments/assets/f2085add-26be-4b75-97cc-3289930d2e35" />
I have the same problem too. On my friend’s account, Codex can log in even if they log in on my PC. But my account can’t log in anywhere, not on my PC or my friend’s PC.
+1, and the url provided with "Starting local login server on http://localhost:1455. If your browser did not open, navigate to this URL to authenticate:" does not lead to a valid endpoint (at least for me) ("https://auth.openai.com/oauth/authorize?response_type=code&client_id...")
+1
An update,
I've tried the below suggestions that help.openai.com suggested but none worked, still giving get_chatgpt_account_error :
+1
+1
+1
hold the phone - instead of letting it open the link auto, i copied it from terminal and pasted into browser and it worked - not sure if it was just luck
+1
+1.
I'm getting "localhost refused to connect" when redirected to http://localhost:1455/
I had this issue with the latest binary release (codex-x86_64-pc-windows-msvc.exe) but when I installed it with npm it worked, don't know which one others tried, but try the npm one
I have the same issue.
Here's the redirect URL:
When I open this URL in the browser, I get a "Not Found" error.
It seems like the extension isn't working properly because it requires Codex to be running on localhost. From what I understand, Codex requires a Linux environment. But I am not sure how to connect the Codex extension in VS Code with the Codex app, since the app still only works with an API key.
+1
<img width="655" height="589" alt="Image" src="https://github.com/user-attachments/assets/fc98ac8a-c057-4f8b-8576-f30c85a6d20f" />
+1
it works now. I have tested on windows and macOS. Both is fine. It seemst that they fixed the bug
+1
Solved!