[Ubuntu 26.04] Codex CLI 0.149.0 unexpected status 401 Unauthorized: missing api key
Resolved 💬 3 comments Opened Aug 21, 2026 by rrmmxxuu Closed Aug 21, 2026
What version of Codex CLI is running?
0.149.0
What subscription do you have?
API key
Which model were you using?
_No response_
What platform is your computer?
Linux 7.0.0-30-generic x86_64 unknown
What terminal emulator and version are you using (if applicable)?
_No response_
Codex doctor report
What issue are you seeing?
After updating to 0.149.0, did not change anything to auth.json, it showed unexpected status 401 Unauthorized: missing api key, url: http://127.0.0.1:48760/v1/responses. I am using Codex Manager for account managment. Everything worked fine beofore 0.149.0. After I downgraded to 0.148.0, the problem was gone immediately.
What steps can reproduce the bug?
Use openai api key to login in 0.149.0
What is the expected behavior?
_No response_
Additional information
_No response_
3 Comments
在config.toml文件中的[model_providers.ID] 字段下面添加:
requires_openai_auth = true可以解决
<img width="1241" height="635" alt="Image" src="https://github.com/user-attachments/assets/66c90109-b84c-4421-a236-113d129463f8" />
感谢!!!!