claude-code - 💡(How to fix) Fix [BUG] Claude Code CLI v2.1.104 returning 400 errors [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#47066Fetched 2026-04-13 05:42:23
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Author
Timeline (top)
labeled ×3commented ×1

Error Message

The error occurs because our classifier is misidentifying your legitimate subscription usage. This can happen when there are server-side changes to how third-party tools are handled - we may draw use of third-party tools from extra usage rather than subscription limits at our discretion.

Error Messages/Logs

Root Cause

This is a known authentication classification issue where our system is incorrectly treating your Max 20x subscription requests as third-party API calls, even though you're properly authenticated. The error occurs because our classifier is misidentifying your legitimate subscription usage. This can happen when there are server-side changes to how third-party tools are handled - we may draw use of third-party tools from extra usage rather than subscription limits at our discretion. Since you've confirmed no API key is set and /doctor shows normal configuration, this appears to be a backend classification problem that requires investigation using your request IDs. Your best option is to file a GitHub issue at https://github.com/anthropics/claude-code/issues with these details: Claude Code CLI v2.1.104 returning 400 errors Max 20x subscription with 11% session / 21% weekly usage No ANTHROPIC_API_KEY set anywhere Request IDs: req_011CZzH5P4nvVCsgwXxEgL7A, req_011CZzHrxANWMdNiQ5UZBwiW, req_011CZzJ17YtwEW5dYa8WzsTu, req_011CZzJ1Ze2yffqZRWZduAiU, req_011CZzKhVXiHnUPK2DcTqiaQ These request IDs contain the server-side details needed to investigate why the authentication classifier is failing despite your valid subscription.

Code Example

Claude Code CLI v2.1.104 returning 400 errors
Max 20x subscription with 11% session / 21% weekly usage
No ANTHROPIC_API_KEY set anywhere
Request IDs: req_011CZzH5P4nvVCsgwXxEgL7A, req_011CZzHrxANWMdNiQ5UZBwiW, req_011CZzJ17YtwEW5dYa8WzsTu, req_011CZzJ1Ze2yffqZRWZduAiU, req_011CZzKhVXiHnUPK2DcTqiaQ
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

This is a known authentication classification issue where our system is incorrectly treating your Max 20x subscription requests as third-party API calls, even though you're properly authenticated. The error occurs because our classifier is misidentifying your legitimate subscription usage. This can happen when there are server-side changes to how third-party tools are handled - we may draw use of third-party tools from extra usage rather than subscription limits at our discretion. Since you've confirmed no API key is set and /doctor shows normal configuration, this appears to be a backend classification problem that requires investigation using your request IDs. Your best option is to file a GitHub issue at https://github.com/anthropics/claude-code/issues with these details: Claude Code CLI v2.1.104 returning 400 errors Max 20x subscription with 11% session / 21% weekly usage No ANTHROPIC_API_KEY set anywhere Request IDs: req_011CZzH5P4nvVCsgwXxEgL7A, req_011CZzHrxANWMdNiQ5UZBwiW, req_011CZzJ17YtwEW5dYa8WzsTu, req_011CZzJ1Ze2yffqZRWZduAiU, req_011CZzKhVXiHnUPK2DcTqiaQ These request IDs contain the server-side details needed to investigate why the authentication classifier is failing despite your valid subscription.

What Should Happen?

Claude should not be treating Claude MAX subscription as 'third-party use'. Backend classification issue is preventing legitimate use and the terminal is completely unusable due to constant 400 errors about claiming third-party usage credits. There is zero third-party use, everything is via claude code cli and claude max subscription. /help, /feedback, /bug, /debug all produce 400's. /doctor doesn't fix anything. WebUI still works, usage is 11% session/21% weekly, but claude code cli in terminal unusable.

Error Messages/Logs

Claude Code CLI v2.1.104 returning 400 errors
Max 20x subscription with 11% session / 21% weekly usage
No ANTHROPIC_API_KEY set anywhere
Request IDs: req_011CZzH5P4nvVCsgwXxEgL7A, req_011CZzHrxANWMdNiQ5UZBwiW, req_011CZzJ17YtwEW5dYa8WzsTu, req_011CZzJ1Ze2yffqZRWZduAiU, req_011CZzKhVXiHnUPK2DcTqiaQ

Steps to Reproduce

any / command produces 400's.

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

2.1.104 (Claude Code)

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

PowerShell

Additional Information

this started after clearing session context to start a fresh session, and is no longer usable. Please fix ASAP. Request IDs: req_011CZzH5P4nvVCsgwXxEgL7A, req_011CZzHrxANWMdNiQ5UZBwiW, req_011CZzJ17YtwEW5dYa8WzsTu, req_011CZzJ1Ze2yffqZRWZduAiU, req_011CZzKhVXiHnUPK2DcTqiaQ

extent analysis

TL;DR

The most likely fix is to wait for the backend classification issue to be investigated and resolved by the developers, as it is a known issue with the authentication classifier misidentifying legitimate subscription usage.

Guidance

  • The issue is likely caused by a backend classification problem, where the system is incorrectly treating Max 20x subscription requests as third-party API calls.
  • To mitigate the issue, try using the WebUI instead of the CLI, as it is still working despite the error.
  • Provide the request IDs (req_011CZzH5P4nvVCsgwXxEgL7A, req_011CZzHrxANWMdNiQ5UZBwiW, req_011CZzJ17YtwEW5dYa8WzsTu, req_011CZzJ1Ze2yffqZRWZduAiU, req_011CZzKhVXiHnUPK2DcTqiaQ) to the developers for further investigation.
  • Check the GitHub issue tracker for updates on the status of the fix.

Notes

The issue is specific to the Claude Code CLI v2.1.104 and the Anthropics API, and is not related to the ANTHROPIC_API_KEY or third-party tools.

Recommendation

Apply workaround: use the WebUI until the backend classification issue is resolved, as it is still functional despite the CLI errors.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] Claude Code CLI v2.1.104 returning 400 errors [1 comments, 2 participants]