OAuth token expired / refresh failed

The stored OAuth token lapsed and the refresh did not recover it.

399 issues · 84 open · 315 resolved (79%) · first seen May 7, 2025

First response · account

What to do now

Most likely: Authentication, usage state or session size blocked the request.

  1. Check the exact account, organization and usage window currently selected.
  2. Try a new short session before deleting credentials or local history.
  3. If the state is inconsistent across machines, preserve diagnostics and re-authenticate once.

These are conservative triage steps, not an official Anthropic fix. Use the issue and workaround evidence below before making a destructive configuration change.

Is this getting better or worse?

This class of problem is still growing. 121 new reports in the last 90 days vs 89 in the 90 before — +36%. The open backlog peaked at 94 in 2026-08 and sits at 84 today.

0 24 47 71 94 2025-052025-112026-052026-10
2025-05 — First reports2026-03 — Most new reports (52)2026-08 — Peak backlog (94 open)

Derived by counting each matching issue from its creation date until it closed. First-party computation over the anthropics/claude-code tracker — the trend is not published anywhere upstream.

Which builds report this

233 of these reports name the Claude Code build they were running, spanning 126 releases. Heaviest reporters:

Report volume, not a defect count: an issue can mention a build without that build having caused the failure. Versions come from the version string in the bug-report template, matched against real published tags.

Do these get fixed?

Median time to close is 29 days across 315 closures. Of the 315 closures with a recorded reason, 15% were closed as completed and 269 as not-planned or duplicate. The most recent completed fix landed in 2026-10.

Workarounds reported by the community

143 of these issues post a workaround someone says worked. The highest-engagement ones:

[FEATURE] Enable Claude Code to access chat history in Claude App
…opt-in, no sync needed in the other direction. The current workaround (manually summarizing and pasting context) defeats the entire purpose of persistent memory and cross-session continuity that Anthropic is actively bu…
Found in the thread of #15542 · still open
Missing Token Refresh Mechanism for MCP Server Integrations
…ll, it's an option. I notice Linear's MCP server chose that workaround too: their access tokens expire in 7 days by default. But I don't think it's the right solution, and neither do the MCP protocol authors, [who say](…
Found in the thread of #5706 · resolved
Frequent re-authentication required with multiple concurrent Claude Code sessions (OAuth refresh token race condition)
…rocesses share a single token manager that handles refresh. Workaround Currently, the only workaround is to close stale Claude Code sessions to reduce the number of concurrent processes competing for token refresh. This…
Found in the description of #24317 · resolved
[BUG] OAuth token expiration disrupts autonomous workflows – refresh token handling needed
…t working, giving the same error message again Update: Temp workaround is to go to the folder and start Claude CLI with , then continue the session from there.
Found in the thread of #12447 · still open
[BUG] MCP OAuth: Claude doesn't auto-refresh access tokens, daily "Connection expired" despite valid refresh token
…ions stall when access tokens expire mid-workflow. The only workaround is the community local bridge, which requires per-laptop install. Cross-platform — not Windows-specific. Confirmed by multiple colleagues at our org…
Found in the description of #65036 · still open

Excerpts are quoted from the linked issue so you can judge relevance before opening it. Threads that only ask for a workaround, or report that there is none, are excluded. These are community suggestions, not official guidance from Anthropic — read the full thread before applying one.

Matching issues 1–100

Ranked by community engagement (reactions weighted over comments). Listing the top 300 of 399 matches; the statistics above cover all 399.

Related aggregations

  1. Claude usage limit reached

    177 issues
  2. Auto-compact / compaction failed

    393 issues
  3. Prompt is too long (context window exceeded)

    337 issues
  4. Invalid API key (invalid x-api-key)

    100 issues
  5. Your credit balance is too low

    84 issues
  6. API Error 400 (invalid_request_error)

    2,649 issues