Cannot use "Sign in with ChatGPT" to login on ubuntu server
Resolved 💬 3 comments Opened Aug 13, 2025 by applepig Closed Aug 19, 2025
What version of Codex is running?
codex-cli 0.21.0
Which model were you using?
gpt-5 hopefully
What platform is your computer?
Linux 6.8.0-71-generic #71-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 16:52:38 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
What steps can reproduce the bug?
Hi, my situation is a little bit complex. I think it's not the Python path issue.
- Exec codex on Ubuntu server.
- Select "Sign in with ChatGPT"
- It shows me a url for login. ( https://auth.openai.com/oauth/authorize?... , with redirect_uri=http://localhost:1455...
- Copy the url, and paste on to Windows Chrome.
- Login with my account successful.
- Redirect to http://localhost:1455...
- Since the localhost is on a diffrent machine, it would not work.
--
2rd attempt:
1,2,3. as above
- Modify the url width http://toybox:1455, and copy on to Windows Chrome
- as above.
- Redirect to http://toybox:1455...
- Timeout after a several seconds.
--
3rd attempt:
1,2,3 as above
- Open the url in lynx.
- Cannot login
What is the expected behavior?
Other platforms behavior:
gemini-cli
- shows a key phrase
- copy the key phrase and paste back to ubuntu.
cursor-agent
- shows "login success"
- and cursor-agent automatically grant for login
What do you see instead?
_No response_
Additional information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗