[BUG] /usage command fails with rate_limit_error when checking usage data
Open 💬 9 comments Opened Mar 9, 2026 by jaried
What's Wrong?
When running the /usage command to check current usage and limits in Claude Code, the UI displays an error:
Error: Failed to load usage data: {"error":{"message":"Rate limited. Please try again later.","type":"rate_limit_error"}}
The /usage dialog opens but immediately fails to load any data, making it impossible to monitor current token usage or remaining quota.
What Should Happen?
The /usage dialog should successfully load and display current session usage statistics, token consumption, and remaining quota without being rate limited by the usage data endpoint itself.
Steps to Reproduce
- Open Claude Code in an active session
- Type
/usageand press Enter - Observe the error: "Error: Failed to load usage data: rate_limit_error"
Additional Context
This appears related to #31637 where the /api/oauth/usage endpoint aggressively rate limits usage monitoring requests. The error occurs on the Anthropic Max plan.
Environment
- Claude Code version: 2.1.71 (Claude Code)
- OS: Windows 10 Pro (Build 19045)
- Terminal: Windows Terminal 1.23.20211.0
- Platform: Anthropic Max
This issue has 9 comments on GitHub. Read the full discussion on GitHub ↗