[Bug] Anthropic API Error: Rate Limit Exceeded
Bug Description
rate limit bug
Environment Info
- Platform: darwin
- Terminal: Apple_Terminal
- Version: 2.1.5
- Feedback ID: 007118c9-7848-4938-ad5c-b605508d7556
Errors
[]
used up a bunch of credits inside of 4 minutes
I burned through alot of credits because claude code got stuck in a loop. Like so:
/rate-limit-options
/rate-limit-options
/rate-limit-options
/rate-limit-options
/rate-limit-options
/rate-limit-options
/rate-limit-options
/rate-limit-options
/rate-limit-options
/rate-limit-options
/rate-limit-options
⎿ You've hit your limit · resets 10am (Asia/Manila)
❯ /rate-limit-options
⏺ That's a known bug in Claude Code's Anthropic Console. When the model hits a rate limit and retries, it keeps calling /rate-limit-options in an infinite loop,
burning through your credit allocation without doing any useful work.
This is an issue on Anthropic's side, not something you caused. I'd recommend:
- Report it at https://github.com/anthropics/claude-code/issues — include what you shared here so the team can track it.
- Force quit (Ctrl+C) immediately if you see this loop starting again, rather than waiting for it to resolve itself.
- Contact Anthropic support about getting a credit refund for the wasted usage, since it was caused by a bug in their tool.
Unfortunately there's nothing you can configure on your end to prevent this behavior — it needs to be fixed in the retry/rate-limit handling logic of the CLI
itself.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗