Codex CLI login fails on Windows: auth.openai.com reachable via curl but OAuth/device-auth fail
OpenAI Developer Community
May 25, 2026
Might be worth checking whether Windows, WSL, VPN, or a proxy is interfering with the local OAuth callback rather than the OpenAI auth domain itself.
I’d try disabling VPN/proxy temporarily, make sure localhost , 127.0.0.1 , and ::1 bypass any proxy, then clear the local Codex auth file and run login again.
Discussion in the ATmosphere