Skip to content

401 Unauthorized across Codex Desktop and CLI after working normally all day #48235

Description

@cantrellsolutions

Summary

Codex Desktop and Codex CLI both began failing suddenly with 401 Unauthorized after working normally all day. Re-authenticating in both clients does not resolve the issue.

Environment

  • Codex CLI: 0.155.1
  • Login status: Logged in using ChatGPT
  • Remote Linux server for CLI
  • ChatGPT desktop app also affected
  • User had been actively authenticated and using Codex successfully before the failure began

Desktop error

unexpected status 401 Unauthorized: Incorrect API key provided: sk-svcac[REDACTED].
url: https://chatgpt.com/backend-api/codex/responses

The error included a Cloudflare ray ID and request ID, but the credential itself is intentionally redacted here.

What has been tried

  1. Verified CLI version
  2. Confirmed codex login status reports Logged in using ChatGPT
  3. Logged out and back in on Codex CLI
  4. Logged out and back in on the desktop app
  5. Same 401 persists in both environments

Why this looks server-side/account-routing related

  • Both Desktop and CLI started failing at roughly the same time
  • Both had been working normally earlier the same day
  • Fresh ChatGPT authentication does not resolve the failure
  • The failing endpoint is the ChatGPT Codex backend: /backend-api/codex/responses

Please investigate whether there is an auth-routing/session issue affecting ChatGPT-authenticated Codex traffic even though the public status page currently shows green.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appIssues related to the Codex desktop appauthIssues related to authentication and accountsbugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions