259 people reported

All time, since Sep 25, including 204 thumbs-up on GitHub.

401 invalid sk-svcac API key

“[Windows][26.924.20706] ChatGPT-authenticated Codex fails with 401 and reports invalid sk-svcac API key”

Is this your bug? What gets counted gets fixed. Pile on.

Paste this into your agent. It files your report, with your error and version.

I hit this bug: rapsheet.dev/sheets/codex/issues/15497/file
Follow it to file my report. Show me the text before you send.

No install. No account. Public and anonymous. The link asks your agent for one report, nothing else. What it sends

Quiet. No reports and thumbs-up in the last two weeks, down from 295 a week at the late-September peak.

Requests fail with 401 invalid sk-svcac key after ChatGPT login. Both Codex Desktop and CLI hit backend-api/codex/responses and report "Incorrect API key provided" despite "Logged in using ChatGPT".

Is this your bug?

File my report
Where
Codex Desktop and CLI
Error text
unexpected status 401 Unauthorized: Incorrect API key provided: sk-svcac********...fvMA.
unexpected status 401 Unauthorized: Incorrect API key provided…Pasted in 9 reports
401 Unauthorized: Incorrect API key provided: sk-svcac...Pasted in 6 reports
ERROR: Reconnecting... 2/5Pasted in 5 reports
Versions
0.153.4 to 26.924.20706
Platforms
Linux, macOS, Windows
How bad
Stops work: a core feature can't be used. Some reports say it blocks them completely.

Part of: Codex requests fail with 401 "Incorrect API key" (sk-svcac) despite ChatGPT sign-in2 bugs

  1. Remote compaction 401 error46 people

Not quite your bug?

  1. 401 Incorrect API key error8 people
  2. Stuck on Reconnecting1 person

Original reports55, newest first

  1. VS Code Codex intermittently returns 401 Incorrect API key while using ChatGPT Plus loginOn GitHub#48570
  2. [Windows 11] Codex Desktop 26.924.20706: 401 Incorrect API key across all projects with ChatGPT sign-inOn GitHub#48307
  3. Codex /responses returns 401 invalid_api_key with invariant sk-svcacct credential on a ChatGPT Plus accountOn GitHub#48306
  4. URGENT: Codex Completely Unusable After Today’s Update – 401 Unauthorized / Invalid sk-svcacct CredentialOn GitHub#48305
  5. [Windows] Codex 0.157.0 returns 401 with sk-svcac credential; downgrading CLI to 0.148.0 also restores Desktop authOn GitHub#48302
  6. Codex CLI 0.157.0: ChatGPT login succeeds, but requests fail with 401 using stale sk-svcac credentialOn GitHub#48299
  7. [Windows] Codex Desktop/Work returns 401 Incorrect API key (sk-svcac...) while signed in with ChatGPTOn GitHub#48298
  8. ChatGPT Pro OAuth succeeds, but Codex sends sk-svcac... credential and gets 401 — reproducible with clean CODEX_HOMEOn GitHub#48295
  9. ChatGPT OAuth succeeds but Codex inference returns 401 sk-svcac — reproduces with fresh CODEX_HOME across 0.153.4–0.157.0On GitHub#48293
  10. Codex CLI 0.157.0 uses unexpected sk-svcac credential and returns 401 despite valid ChatGPT OAuth loginOn GitHub#48292
Show all 55Show only the newest 10
  1. ChatGPT-authenticated Codex repeatedly reconnects and previously returned 401 with unexpected sk-svcac credentialOn GitHub#48291
  2. ChatGPT-authenticated Codex disconnects, falls back to HTTPS, then returns 401On GitHub#48289
  3. Codex CLI 0.157.0: ChatGPT OAuth succeeds but inference disconnects across Windows, macOS, and LinuxOn GitHub#48288
  4. [Windows] Codex Desktop/CLI returns 401 sk-svcac despite valid ChatGPT OAuth token; direct bearer request is acceptedOn GitHub#48286
  5. Codex macOS app stuck reconnecting and returns 401 Unauthorized / incorrect sk-svcac API keyOn GitHub#48285
  6. [Windows] Codex Desktop/CLI returns 401 'Incorrect API key provided' after successful ChatGPT loginOn GitHub#48283
  7. ChatGPT auth succeeds but Codex CLI sends invalid sk-svcac credential and /codex/responses returns 401On GitHub#48282
  8. [Windows] Codex CLI/Desktop keeps using revoked sk-svcac credential despite ChatGPT authOn GitHub#48281
  9. Windows Codex 401 with ChatGPT login: stale/incorrect sk-svcac API keyOn GitHub#48279
  10. 401 UnauthorizedOn GitHub#48278
  11. [Windows] ChatGPT-authenticated Codex sends/reports invalid sk-svcac API key and returns 401On GitHub#48276
  12. [Backend][ChatGPT OAuth] GPT-5.6 requests return 401 for internal sk-svcacct credential across Codex CLI and OpenCodeOn GitHub#48275
  13. 401 api errorOn GitHub#48274
  14. Codex Desktop on macOS returns 401 with stale sk-svcac credential on every new chatOn GitHub#48273
  15. Connecting, won't let me connect, an error appearsOn GitHub#48271
  16. [Windows] ChatGPT Plus OAuth returns 401 incorrect sk-svcac key after 5-hour usage resetOn GitHub#48270
  17. Codex CLI and Desktop Fail After Available Reset – WebSocket Disconnection and 401 Unauthorized (Windows)On GitHub#48267
  18. [macOS] Codex CLI 0.157.0 returns 401 "Incorrect API key provided" after successful ChatGPT OAuth login auth Issues related to authentication and accounts bug Something isn't working CLI Issues related to the Codex CLIOn GitHub#48266
  19. ChatGPT Plus OAuth suddenly returns 401 "Incorrect API key provided: sk-svcac..." on Codex backendOn GitHub#48265
  20. Windows ChatGPT auth returns 401 invalid_api_key after fresh OAuth login across 0.156.0–0.157.0On GitHub#48264
  21. Codex CLI 0.157.0 uses an invalid sk-svc API key despite ChatGPT authenticationOn GitHub#48263
  22. 401 with valid ChatGPT auth in CLI/Desktop; direct bearer-token request is acceptedOn GitHub#48262
  23. [macOS] Codex CLI 0.157.0 returns 401 "Incorrect API key provided" after successful ChatGPT OAuth loginOn GitHub#48260
  24. Codex CLI 0.157.0 returns 401 "Incorrect API key" with ChatGPT auth despite valid ChatGPT tokensOn GitHub#48259
  25. Gives error saying wrong API key even though I'm not using an API keyOn GitHub#48258
  26. Unexpected status 401On GitHub#48257
  27. unexpected status 401 Unauthorized: Incorrect API key providedOn GitHub#48256
  28. ChatGPT macOS app Codex returns 401 Incorrect API key on backend-api/codex/responsesOn GitHub#48255
  29. Codex 401 "Incorrect API key" despite ChatGPT auth and no configured API key on WindowsOn GitHub#48253
  30. [Linux Desktop] ChatGPT login recreates OPENAI_API_KEY and requests fail 401 with incorrect API keyOn GitHub#48252
  31. ChatGPT OAuth login succeeds, but Codex inference fails with 401 "Incorrect API key provided"On GitHub#48251
  32. 972e7251cb54On GitHub#48248
  33. Codex 401 Unauthorized: Incorrect API errorOn GitHub#48247
  34. Codex api key errorOn GitHub#48246
  35. Mid answering lost connection - multiple stream disconnect then 401sOn GitHub#48245
  36. ERROR-unexpected status 401 Unauthorized: Incorrect API key provided: sk-svcacOn GitHub#48244
  37. Random 401 API key errors on CodexOn GitHub#48243
  38. 401 Unauthorized after automatic switch back to GPT-6 AstraOn GitHub#48242
  39. unexpected status 401 Unauthorized: Incorrect API key provided:On GitHub#48241
  40. Codex throwing an API errprOn GitHub#48240
  41. unexpected status 401 UnauthorizedOn GitHub#48239
  42. unexpected status 401 Unauthorized issueOn GitHub#48237
  43. 401 Unauthorized across Codex Desktop and CLI after working normally all dayOn GitHub#48235
  44. Total OutageOn GitHub#48234
  45. Error unexpected status 401 Unauthorized when trying to resume a threadOn GitHub#48230

Do you work on Codex?

Claim its RAP Sheet to see what your users report and answer them in one place.