unexpected status 401 Unauthorized: Missing Authentication header, url: https://openrouter.ai/api/v1/responses, cf-ray: 9d8b2dd4eb1d5671-AMS

Resolved 💬 2 comments Opened Mar 7, 2026 by ronithrashmikara Closed Mar 7, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What version of the Codex App are you using (From “About Codex” dialog)?

latest

What subscription do you have?

free

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What issue are you seeing?

Just Installed the codex application it tries to reconnect and also tried the cli same error

unexpected status 401 Unauthorized: Missing Authentication header, url: https://openrouter.ai/api/v1/responses, cf-ray: 9d8b2dd4eb1d5671-AMS

<img width="575" height="420" alt="Image" src="https://github.com/user-attachments/assets/6e56a6cb-fd90-444f-bc80-2e7fa1e5b5ac" />

What steps can reproduce the bug?

Don't know
I tried clearing all the env variables related to api keys , tried deleting the auth file too didn't work relogged in many times error persists

What is the expected behavior?

_No response_

Additional information

_No response_

View original on GitHub ↗

2 Comments

github-actions[bot] contributor · 5 months ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #13838
  • #13118
  • #12764

Powered by Codex Action

etraut-openai contributor · 5 months ago

This may be an issue with openrouter, but it might also be #12764.