[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

Status Closed — not planned
Reported on v2.1.15
Maintainer reply None cached
Activity 14 comments · opened Apr 8, 2026 · closed May 24, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] 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

View original on GitHub ↗

14 Comments

github-actions[bot] · 4 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/45020
  2. https://github.com/anthropics/claude-code/issues/45018
  3. https://github.com/anthropics/claude-code/issues/44995

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

swaff-y · 4 months ago

Environment

  • Platform: macOS (Darwin 25.3.0)
  • Claude Code: CLI (terminal)
  • Plan: Pro/Max (subscription active)

Description

Claude Code CLI returns a 400 API error stating extra usage is exhausted, even though:

  • Extra usage is disabled in settings
  • Plan usage is well within limits

Error Message

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_011CZqsMxybZAo8NdsSKtgjH"
}

Usage at Time of Error

| Metric | Value |
|-----------------|-------|
| Current session | 4% |
| Weekly | 19% |
| Extra usage | 0% |

Steps to Reproduce

  1. Have an active Claude subscription with extra usage disabled
  2. Open Claude Code CLI in terminal
  3. Send any message
  4. Receive the "out of extra usage" error

Expected Behavior

The CLI should use the regular plan allowance (which has plenty of remaining capacity) and respond normally.

Actual Behavior

The CLI rejects all requests with a 400 error referencing extra usage, even though extra usage is disabled and plan limits are not reached.

Notes

  • Claude Code in VS Code extension works fine with the same account at the same time
  • Restarting the CLI does not resolve the issue
  • The error persists across new sessions
tomtom83870 · 4 months ago

Exactly the same issue here on Ubuntu 24.04.4 LTS with Claude Code 2.1.25

FredJiang0324 · 4 months ago

meet the same issue

<img width="603" height="132" alt="Image" src="https://github.com/user-attachments/assets/8fa27e28-ea3d-42b4-bc9f-ce61c773999f" />

tomtom83870 · 4 months ago

As seen here https://github.com/anthropics/claude-code/issues/45020
upgrading v2.1.25 to v2.1.96 solved the problem for me

leonardobissoli · 4 months ago

Same issue here on Claude Max plan (not Pro).

Usage dashboard shows:

  • Current session: ~25% used
  • Weekly (all models): ~49% used
  • Extra usage: OFF, $0.00 spent, $199.98 balance

Claude Code v2.1.96 on Windows throws the same 400 error immediately on the first message of a new session even on claude logout.

Workaround that worked: enabling the Extra Usage toggle. After turning it ON, Claude Code cli worked normally.

This should not be required for Max plan users who are well within their limits. The error message is misleading and the behavior appears to be a regression

Edark94 · 4 months ago

Same issue here on Claude Max 5x plan (Claude code through terminal in macOS v2.1.7).

Usage dashboard shows:

  • Current session: 1% used
  • Weekly (all models): 3% used
  • Extra usage: $0.28 / $75.00 spent ($74.72 remaining)

Claude Code throws the 400 error immediately regardless of usage levels. Logout/login does not resolve it.Turning extra usage on works, but it then drains my extra usage credits rather than my normal usage tokens.

StackItHigh · 4 months ago

Same issue here on Claude Max 5x plan
Usage Dashboard shows:

  • Current session : 14% used
  • Weekly limits (All models) 36% used
  • Extra usage : £64.90 spent (£10.09)

I've been reinstall Claude Code, tried lower version and go back to the latest version v2.1.96. Logged in and out. Nothing worked.

sakarettm07 · 4 months ago

Same issue using Claude Code with the Pro plan

  • current session: 100% used
  • weekly limits 16% used
  • extra usage: $19.99 current balance, $0 used

I disabled and re enabled extra usage. I quit and reopened claude desktop, claude code, and browser window.

vinzabe · 4 months ago

here's the fix, obfuscated it so anthropic wont know how it is done. https://github.com/vinzabe/opencode-anthropic-max-fix/tree/master

multinomi · 4 months ago

fix:
nuked ~/.config/Claude/, reinstalled with official native install script, everything's back to normal and working again!

UPD: reinstalling worked for 1-2 sessions, now this again:

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_..."}

UPD2: working again in a different projects directory. I have a suspicion that claude-mem MCP spammed the OAuth too much, but i don't care to test this hypothesis.

my config:
Pro account, Linux (Arch/CachyOS): API error 400 until i turn on Extra usage.
Logging out/in, clearing ~/.claude and ~/.claude.json was not enough.

Edark94 · 4 months ago

fix:
updated version solved it by calling: brew upgrade claude-code
currently on version 2.1.87 and it is all fine

github-actions[bot] · 3 months ago

Closing for now — inactive for too long. Please open a new issue if this is still relevant.

github-actions[bot] · 1 month ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.