[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
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
- Have an active Claude.ai Pro subscription
- Open terminal and run Claude Code CLI (
claude) - Start a coding task or conversation
- 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"}
- 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
14 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
Environment
Description
Claude Code CLI returns a
400 API errorstating extra usage is exhausted, even though:Error Message
Usage at Time of Error
| Metric | Value |
|-----------------|-------|
| Current session | 4% |
| Weekly | 19% |
| Extra usage | 0% |
Steps to Reproduce
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
Exactly the same issue here on Ubuntu 24.04.4 LTS with Claude Code 2.1.25
meet the same issue
<img width="603" height="132" alt="Image" src="https://github.com/user-attachments/assets/8fa27e28-ea3d-42b4-bc9f-ce61c773999f" />
As seen here https://github.com/anthropics/claude-code/issues/45020
upgrading v2.1.25 to v2.1.96 solved the problem for me
Same issue here on Claude Max plan (not Pro).
Usage dashboard shows:
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
Same issue here on Claude Max 5x plan (Claude code through terminal in macOS v2.1.7).
Usage dashboard shows:
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.
Same issue here on Claude Max 5x plan
Usage Dashboard shows:
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.
Same issue using Claude Code with the Pro plan
I disabled and re enabled extra usage. I quit and reopened claude desktop, claude code, and browser window.
here's the fix, obfuscated it so anthropic wont know how it is done. https://github.com/vinzabe/opencode-anthropic-max-fix/tree/master
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:
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.
fix:
updated version solved it by calling: brew upgrade claude-code
currently on version 2.1.87 and it is all fine
Closing for now — inactive for too long. Please open a new issue if this is still relevant.
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.