OAuth token expired / refresh failed

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

344 issues · 91 open · 253 resolved (74%) · 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 holding steady. 119 new reports in the last 90 days vs 116 in the 90 before — +3%. The open backlog peaked at 91 in 2026-08 and sits at 91 today.

0 23 46 68 91 2025-052025-102026-032026-08
2025-05 — First reports2026-03 — Most new reports (52)2026-08 — Peak backlog (91 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

191 of these reports name the Claude Code build they were running, spanning 103 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 7 days across 253 closures. Of the 253 closures with a recorded reason, 17% were closed as completed and 210 as not-planned or duplicate. The most recent completed fix landed in 2026-08.

Workarounds reported by the community

116 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] OAuth error: timeout of 15000ms exceeded can not login it keeps timout even though I tried token too
I found a workaround for this issue. I used the binary from a previous version (2.1.50), which can be found in ~/.local/share/claude/versions. I logged in using that version, and once the authentication was successful, I…
Found in the thread of #33214 · 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 344 matches; the statistics above cover all 344.

Related aggregations

  1. Claude usage limit reached

    173 issues
  2. Auto-compact / compaction failed

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

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

    99 issues
  5. Your credit balance is too low

    76 issues
  6. API Error 400 (invalid_request_error)

    2,591 issues