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 Desktop and CLI returning 401 Unauthorized on /backend-api/codex/responses while browser Codex works #13838
CLIIssues related to the Codex CLIappIssues related to the Codex desktop appauthIssues related to authentication and accountsbugSomething isn't working
Additional detail:
The error does not occur at startup.
Codex launches normally, but the 401 error appears immediately after submitting a prompt.
The same behavior occurs with:
codex whoami
What is the expected behavior?
Codex Desktop and Codex CLI should authenticate successfully with the ChatGPT account and process prompts normally, the same way Codex works in the browser.
CLIIssues related to the Codex CLIappIssues related to the Codex desktop appauthIssues related to authentication and accountsbugSomething isn't working
Activity
github-actions commentedon Mar 7, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
nfederman-alt commentedon Sep 25, 2026
same problem today unexpected status 401 Unauthorized: Incorrect API key provided: sk-svcac***********************************************************************************************************************************************************fvMA. You can find your API key at https://platform.openai.com/account/api-keys., url: https://chatgpt.com/backend-api/codex/responses, cf-ray: a40dc187ee861530-EZE, request id: d8e287a7-0159-429f-9817-0a5e089b9569
JanLunge commentedon Sep 25, 2026
same for me "unexpected status 401 Unauthorized: Incorrect API key provided: sk-svcac***********************************************************************************************************************************************************fvMA. You can find your API key at https://platform.openai.com/account/api-keys., url: https://chatgpt.com/backend-api/codex/responses, cf-ray: a40dd1ba9d5b62fe-HAM, request id: 9461b48c-7e50-4f71-aad2-7438d5550817"
on codex in cli and desktop app, web seems to still work...
amr-elsehemy commentedon Sep 25, 2026
Same.
salehelsayed commentedon Sep 25, 2026
same here