claude-code - 💡(How to fix) Fix [Bug] Anthropic API Error: Third-party app routing for Claude Max OAuth sessions [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#45123Fetched 2026-04-09 08:12:43
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
1
Timeline (top)
labeled ×4closed ×1commented ×1

Error Message

Getting the 400 error immediately on any prompt, despite primary quota being available and limit having reset. Clean reinstall + cache wipe did not help. Error only disappears when using /extra-usage flag, which draws from the $100 credit instead of the Max subscription. API Error: 400 {"type":"error","error":{"type":"invalid_request_error",

RAW_BUFFERClick to expand / collapse

Bug Description Claude Code version: 2.1.29 Platform: macOS, zsh Login method: Claude Max Account (OAuth) — confirmed via /status

Getting the 400 error immediately on any prompt, despite primary quota being available and limit having reset. Clean reinstall + cache wipe did not help. Error only disappears when using /extra-usage flag, which draws from the $100 credit instead of the Max subscription.

API Error: 400 {"type":"error","error":{"type":"invalid_request_error", "message":"Third-party apps now draw from your extra usage, not your plan limits. We've added a $100 credit to get you started. Claim it at claude.ai/settings/usage and keep going."},"request_id":"req_011CZqv9gVfycaS3p2jbG5aC"} Session ID: 4d5a1b2f-9225-4d65-8b74-7f722de7ba94

Note: Claude.ai chat works fine with the same account — issue appears specific to Claude Code API routing treating a Max OAuth session as a third-party app.

Environment Info

  • Platform: darwin
  • Terminal: vscode
  • Version: 2.1.29
  • Feedback ID: b3f7494f-1756-4c9f-b762-57f59fc00864

extent analysis

TL;DR

The issue can be worked around by using the /extra-usage flag, which draws from the $100 credit instead of the Max subscription.

Guidance

  • The error message suggests that the Claude Code API is treating the Max OAuth session as a third-party app, which is causing the 400 error.
  • To verify this, try using the /extra-usage flag and see if the error disappears.
  • If the error only occurs when not using the /extra-usage flag, it may indicate a problem with the API routing for Max OAuth sessions.
  • Check the Claude.ai settings at claude.ai/settings/usage to claim the $100 credit and see if it resolves the issue.

Notes

The issue appears to be specific to the Claude Code API and may not be related to the Claude.ai chat or other services.

Recommendation

Apply workaround: Use the /extra-usage flag to draw from the $100 credit instead of the Max subscription, as this has been confirmed to resolve the error.

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