Difference between revisions of "Anthropic Gotchas"
PeterHarding (talk | contribs) |
PeterHarding (talk | contribs) |
||
| (One intermediate revision by the same user not shown) | |||
| Line 35: | Line 35: | ||
[[Category:Anthropic]] | [[Category:Anthropic]] | ||
[[Category:Claude]] | [[Category:Claude]] | ||
[[Category:AI]] | |||
Latest revision as of 20:30, 28 July 2026
Why am I getting this error in claude code - API Error: 400 You have reached your specified API usage limits. You will regain access on 2026-08-01 at 00:00 UTC.
Identified API spend limit issue and recommended unsetting key
That error isn't a Claude Code bug or a subscription rate limit — it's the Console API spend limit on your organization/workspace. Spend limits set a maximum monthly cost an organization can incur for API usage, and each usage tier has a limit on how much you can spend per calendar month. The 2026-08-01 00:00 UTC reset date is just the start of the next calendar month (10am Aug 1 your time). anthropic
The important implication: Claude Code is billing through an API key, not your Claude subscription. That's almost certainly the same auth mix-up you hit before. If you have an active Claude subscription but also have ANTHROPIC_API_KEY set in your environment, the API key takes precedence once approved.
Claude Code Docs
To check which route is active, run /status inside Claude Code — the Login method row shows your subscription account, and an API key row appears when an API key is in use. Claude Code Docs
If you meant to use your subscription:
echo "$ANTHROPIC_API_KEY" # if this prints anything, that's your culprit unset ANTHROPIC_API_KEY
Then grep your shell startup files, since it'll come straight back otherwise:
grep -rn "ANTHROPIC_API_KEY" ~/.zshrc ~/.zprofile ~/.bash_profile ~/.bashrc ~/.config 2>/dev/null
Also check project-level .env files and any devcontainer config. Then /logout and /login, picking the subscription option.
One gotcha specific to your VS Code workflow: VS Code often inherits a different environment than your interactive shell (especially if launched from Dock/Spotlight rather than code . from a terminal), so a key can be set in one and not the other — verify with /status from inside the VS Code integrated terminal specifically.
If you did intend to use the API key, then go to the Anthropic Console → Limits (or the workspace's spend limit setting) and raise the monthly cap, and check Usage to see what burned through it. Worth also confirming you haven't been paying twice all along.