claude-code - 💡(How to fix) Fix [BUG] I am getting out of usage error but already have tokens and limits API Error: 400 - Invalid Request You're out of extra usage. Add more usage credits at: https://claude.ai/settings/usage Then retry your request [8 comments, 8 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#45033Fetched 2026-04-09 08:14:52
View on GitHub
Comments
8
Participants
8
Timeline
20
Reactions
1
Timeline (top)
commented ×8cross-referenced ×8labeled ×4

Error Message

API Error: 400 - Invalid Request

You're out of extra usage. Add more usage credits at: https://claude.ai/settings/usage

Then retry your request. Request ID: req_011CZqmGbtkPZ5vNYZPM5uJL

Claude Code v2.1.15
▝▜█████▛▘ Sonnet 4.5 · Claude Pro
▘▘ ▝▝ ~/MyWork

❯ hi
⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"You're out of extra usage. Add more at claude.ai/settings/usage and keep
going."},"request_id":"req_011CZqkYPPVyAAcLk77qBd4k"}

❯ /usage
⎿ Status dialog dismissed

❯ /status
⎿ Status dialog dismissed

❯ /doctor
⎿ Claude Code diagnostics dismissed

Code Example

API Error: 400 - Invalid Request

You're out of extra usage. 
Add more usage credits at:
https://claude.ai/settings/usage

Then retry your request.
Request ID: req_011CZqmGbtkPZ5vNYZPM5uJL


Claude Code v2.1.15                                                                                                                                                               
▝▜█████▛▘  Sonnet 4.5 · Claude Pro                                                                                                                                                           
  ▘▘ ▝▝    ~/MyWork                                                                                                              
                                                                                                                                                                                             
❯ hi                                                                                                                                                                                         
API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"You're out of extra usage. Add more at claude.ai/settings/usage and keep                               
    going."},"request_id":"req_011CZqkYPPVyAAcLk77qBd4k"}                                                                                                                                    
                                                                                                                                                                                             
/usage                                                                                                                                                                                     
Status dialog dismissed                                                                                                                                                                 
                                                                                                                                                                                             
/status                                                                                                                                                                                    
Status dialog dismissed                                                                                                                                                                 
                                                                                                                                                                                             
/doctor                                                                                                                                                                                    
Claude Code diagnostics dismissed
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?

Claude Code CLI throws a 400 API error with message "You're out of extra usage" even when the user has sufficient Claude.ai Pro plan credits and has not exceeded any usage limits. The error occurs mid-session without warning. Error received: API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"You're out of extra usage. Add more at claude.ai/settings/usage and keep going."},"request_id":"req_011CZqkDa5AAhEqhqrP8xE8s"}

What Should Happen?

Claude Code CLI should continue working normally as long as the user is within their Pro plan limits. If usage is genuinely exhausted, the error message should clearly distinguish between:

Claude.ai chat usage Claude Code CLI usage

And should not show this error when the user still has available credits/quota. Previously, Claude Code worked without hitting this error under the same usage conditions.

Error Messages/Logs

API Error: 400 - Invalid Request

You're out of extra usage. 
Add more usage credits at:
https://claude.ai/settings/usage

Then retry your request.
Request ID: req_011CZqmGbtkPZ5vNYZPM5uJL


Claude Code v2.1.15                                                                                                                                                               
▝▜█████▛▘  Sonnet 4.5 · Claude Pro                                                                                                                                                           
  ▘▘ ▝▝    ~/MyWork                                                                                                              
                                                                                                                                                                                             
❯ hi                                                                                                                                                                                         
  ⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"You're out of extra usage. Add more at claude.ai/settings/usage and keep                               
    going."},"request_id":"req_011CZqkYPPVyAAcLk77qBd4k"}                                                                                                                                    
                                                                                                                                                                                             
❯ /usage                                                                                                                                                                                     
  ⎿  Status dialog dismissed                                                                                                                                                                 
                                                                                                                                                                                             
❯ /status                                                                                                                                                                                    
  ⎿  Status dialog dismissed                                                                                                                                                                 
                                                                                                                                                                                             
❯ /doctor                                                                                                                                                                                    
  ⎿  Claude Code diagnostics dismissed

Steps to Reproduce

  1. Have an active Claude.ai Pro subscription
  2. Open terminal and run Claude Code CLI (claude)
  3. Start a coding task or conversation
  4. After some usage, the following error appears without warning:

API Error: 400 {"type":"error","error":{"type":"invalid_request_error", "message":"You're out of extra usage. Add more at claude.ai/settings/usage and keep going."},"request_id":"req_011CZqkDa5AAhEqhqrP8xE8s"}

  1. Checking claude.ai/settings/usage shows:
    • Weekly limit: only 15% used
    • Session usage: only 2% used
    • Extra usage: $0.00 spent
    • Balance available: $36.07

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

2.1.15

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

Terminal.app (macOS)

Additional Information

  • Error occurs even though usage dashboard shows plenty of remaining quota

  • Extra Usage toggle is OFF — error should not appear when limits aren't hit

  • This behavior was not present in earlier versions

  • The error message is misleading — it suggests buying more credits even when the user has $36.07 balance and low usage

  • Claude.ai chat interface works fine; issue is specific to Claude Code CLI

    Current session
    ███ 6% used
    Resets 3:30pm (Asia/Calcutta)

    Current week (all models)
    ███████▌ 15% used
    Resets Apr 13, 9:30am (Asia/Calcutta)

    Extra usage
    Extra usage not enabled • /extra-usage to enable

extent analysis

TL;DR

The issue can likely be resolved by investigating the discrepancy between the Claude Code CLI's reported usage and the actual usage displayed on the claude.ai/settings/usage page, considering the recent regression and the misleading error message.

Guidance

  1. Verify usage limits: Double-check the usage limits and quotas on the claude.ai/settings/usage page to ensure they are not being exceeded, focusing on the distinction between Claude.ai chat usage and Claude Code CLI usage.
  2. Check for API changes: Investigate if there have been any recent changes to the Anthropic API that could be causing the Claude Code CLI to incorrectly report usage or throw the "You're out of extra usage" error.
  3. Compare with previous versions: Since this is a regression, compare the behavior of the current version (2.1.15) with the last known working version to identify potential changes that might have introduced this issue.
  4. Enable debug logging: If possible, enable debug logging in the Claude Code CLI to gather more detailed information about the requests being made and the responses received from the API, which could help in pinpointing the cause of the error.

Example

No specific code example can be provided without more details on the API interactions, but checking the API documentation for any changes in how usage is reported or calculated could be beneficial.

Notes

The issue seems to be specific to the Claude Code CLI and not present in the Claude.ai chat interface, suggesting a potential issue with how the CLI interacts with the Anthropic API or interprets the API responses.

Recommendation

Apply a workaround by closely monitoring usage through the claude.ai/settings/usage page and manually checking for any discrepancies that might trigger the error, while awaiting a fix or further investigation into the API and CLI interaction.

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] I am getting out of usage error but already have tokens and limits API Error: 400 - Invalid Request You're out of extra usage. Add more usage credits at: https://claude.ai/settings/usage Then retry your request [8 comments, 8 participants]