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
Codex 0.149.0 drops API keys stored in auth.json, causing 401 Unauthorized "Missing API key" #39857
CLIIssues related to the Codex CLIauthIssues related to authentication and accountsbugSomething isn't workingsessionIssues involving session (thread) management, resuming, forking, naming, archivingwindows-osIssues related to Codex on Windows systems
What terminal emulator and version are you using (if applicable)?
PowerShell 7.6.5 in Windows Terminal
Codex doctor report
Now I've downgraded to 0.148.0 and continue my work, so it's not available.
What issue are you seeing?
After updating to 0.149.0, I tried to resume my previous work but encountered the error unexpected status 401 Unauthorized: error:{"Missing API key"}. I hadn't changed any Codex settings. I rolled back to 0.148.0, and then continued working as usual, and everything worked fine.
I logged in with echo $env:OPENAI_API_KEY | codex login --with-api-key.
Latest Codex Desktop also has this bug.
What steps can reproduce the bug?
Upgrade to 0.149.0
Run codex and continue a session
It shows unexpected status 401 Unauthorized and Missing API key error message.
CLIIssues related to the Codex CLIauthIssues related to authentication and accountsbugSomething isn't workingsessionIssues involving session (thread) management, resuming, forking, naming, archivingwindows-osIssues related to Codex on Windows systems
Activity
github-actions commentedon Aug 21, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Hero2633 commentedon Aug 21, 2026
在config.toml文件中的[model_providers.ID] 字段下面添加:
requires_openai_auth = true可以解决