Error: Failed to fetch OIDC configuration

Resolved 💬 5 comments Opened Aug 8, 2025 by JamesMonges Closed Oct 27, 2025
💡 Likely answer: A maintainer (etraut-openai, contributor) responded on this thread — see the highlighted reply below.

I was asked to enter the command "codex" in the terminal and select "Sign in with ChatGPT" and this error occurred.

<img width="898" height="282" alt="Image" src="https://github.com/user-attachments/assets/28318fb8-1256-4425-9a15-645388bfbe62" />

View original on GitHub ↗

5 Comments

OneWalkman · 1 year ago

The same problem, hope to get a solution.

brian95827 · 1 year ago

same

<img width="1291" height="288" alt="Image" src="https://github.com/user-attachments/assets/f96e61d1-3f47-46a8-9032-1bc1e3896aa7" />

JamesMonges · 1 year ago

已经解决了,我把vpn的虚拟网卡打开了,同时关闭系统代理,然后就可以了

<img width="924" height="561" alt="Image" src="https://github.com/user-attachments/assets/12bb7ff6-02e2-4937-bfa9-8cad4a2f2564" />

devikakaka · 10 months ago

亲测把虚拟网卡打开就可以,关了系统代理openai的页面打不开

etraut-openai contributor · 10 months ago

The auth code in the Codex CLI has changed significantly since this bug was filed. I'm guessing that this issue is no longer relevant, so I'm going to close it out. If you see similar issues with the latest version of codex, please let us know.