You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unable to use codex at all – neither via API keys nor via web login #3409
(See the link opened in the browser, OR click it manually, both lead to the same outcome)
Log in with Google
Redirects go brrr
Token exchange failed: error sending request for url (https://auth.openai.com/oauth/token). The CLI continues to wait for a confirmation which never arrives.
API LOGIN
Set OPENAI_API_KEY either to OPENAI_API_KEY=sk-proj-… or OPENAI_API_KEY=sk-mym…
Launch codex
Use preferred_auth_method="apikey" in config.toml OR confirm that yes I want to use pay as I go payment method associated with API keys
Prompt "test"
Wait around 30 s
⚠️ stream error: error sending request for url (https://api.openai.com/v1/responses); retrying 1/5 in 188ms…
I solved the problem, because of some reasons in China, we cannot use the full Internet, after I open the TUN mode of my clash Verge, codex login succeeded and works fine, thanks for that
Activity
rr- commentedon Sep 10, 2025
ISP issue on my part. Changing my DNS to 8.8.8.8 fixed the issue. Found this out with the help of
tcpdump.Harry-maximum commentedon Sep 26, 2025
lol the same, has nothing to do with this OAuth shit
kevit-ashish-chandpa commentedon Oct 9, 2025
Thanks @rr- ,
It’s working as expected for me. If you’re facing issues, please ensure that port 443 is open on your system.
steveepreston commentedon Nov 30, 2025
Issue still exists and not resolved by setting DNS or opening 443 port
Update: Resolved by turning off the WSL mode
pickmao commentedon Feb 23, 2026
maybe your system env is wrong.
Harry-maximum commentedon Feb 24, 2026
I solved the problem, because of some reasons in China, we cannot use the full Internet, after I open the TUN mode of my clash Verge, codex login succeeded and works fine, thanks for that
andreykaone commentedon Jun 5, 2026
Also have this issue. I use Happ app, and selecting TUN mode in a client helps me resolve this one