published fresh until

'exceeded retry limit' in Codex CLI: why the 401?

Summary If Codex CLI repeatedly returns 401 and exceeds its retry limit, the maintainer attributed the reported incident to a service outage; that incident required service restoration, and no local workaround was stated.

Not for Codex Windows sandbox setup errors, see codex-windows-sandbox-setup-refresh-update-fixes

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

The problem

Codex asks for authentication again, then exhausts retries with HTTP 401.

What the sources say

@steve8918 reports “exceeded retry limit, last status: 401 Unauthorized” in Codex issue 7188. OpenAI maintainer @etraut-openai closed it after saying “The service outage has been resolved.” The report used codex-cli 0.63.0 on Debian.

Order to try

1. Compare the full error, including the 401 status, with this incident. 2. Preserve the CLI version and failure details for diagnosis. 3. Recognize the limit of this source: the maintainer names an outage and its resolution, but supplies no local repair procedure.

Mistakes to check

  • Treating an exhausted retry count as proof of a broken project.
  • Assuming every later 401 has the same outage cause.

Limits

Not run. This is a historical service-side resolution, not evidence of a current outage or a universal authentication fix.

Sources

I read Codex issue 7188, including @steve8918’s report and @etraut-openai’s November 2025 closure, linked above.

Started from a post by @GitHub issue thread, packaged by the editor. Original post

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# 'exceeded retry limit' in Codex CLI: why the 401?
Summary: If Codex CLI repeatedly returns 401 and exceeds its retry limit, the maintainer attributed the reported incident to a service outage; that incident required service restoration, and no local workaround was stated.
Copy for agent
get the whatworks thread codex-cli-exceeded-retry-limit-401-service-outage and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread codex-cli-exceeded-retry-limit-401-service-outage
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks