Set an organization spend limit below your usage tier's monthly cap, give each workspace its own spend and rate limits, and cap every agent run in code. The Console limits stop spending for the month, and none of them stops one runaway run.
When you need this
- Agents run unattended, in pipelines or overnight jobs.
- Several teams or products share one Anthropic organization.
- Finance asks for cost per product, or a bill arrives that nobody can explain.
Evaluation criteria
Organization limit
Is an organization spend limit set below the tier's monthly cap?
Look forA limit under the cap on the Billing page. At a limit you set, requests return HTTP 400 until you raise it or the month resets. At the tier cap they return HTTP 429 with the error code enforced_spend_limit_reached and no retry-after header, so retries fail until access resumes.
Workspace limits
Does each product or team have its own spend and rate limits?
Look forA monthly spend limit with alert thresholds per workspace, set under Settings > Workspaces, and per-model request and token limits per workspace on the Rate limits page.
Agent ceilings
Does every agent loop stop on its own after a set number of turns or dollars?
Look formax_turns and max_budget_usd set on Claude Agent SDK agents, and an equivalent counter in your own loop. One builder left an Agent SDK agent unattended without these settings and came back to a bill too large to say out loud. The builder now sets both, because they catch different failures.
Cache monitoring
Do you track cache reads as a share of input tokens for each workload?
Look forCache hit rate watched on the Usage page or pulled by workspace and API key from the Usage and Cost API, with an alert when it drops. Cache reads cost 5% of the input price on Opus 5.5 and Sonnet 5.5, 2.5% on Fable 5.1, and 10% on most other models, and on most models they do not count toward input rate limits.
Cost per completed task
Do you budget per completed task, or only per million tokens?
Look forA budget that counts tokenizer and prompt-length effects. Claude 4.7 and later models produce about 30% more tokens for the same text, and Haiku 5.5 costs 5x more for prompts over 100,000 tokens.
Cloud billing
If you buy through a cloud provider, whose controls apply?
Look forOn Amazon Bedrock and Google Cloud (Google managed) the provider's budgets and quotas apply. A builder whose agent ran through LiteLLM to Bedrock found budget alerts did not stop a US$37,901.73 bill. Another team found Bedrock double counting cache writes with thinking enabled.
Questions to ask vendors
- What lead time does a Custom tier arrangement need before a launch?
- Which Console organization should receive the monthly API credits included in our Max or Team plan?
- How do we split spend reporting by workspace and API key in the Usage and Cost API?
Red flags
- Credit auto-reload left on with no spend limit, so a runaway agent keeps buying credits.
- Spend reviewed monthly from the invoice when it should be reviewed daily from usage data.
- Caching and batch discounts assumed in the budget but never measured.
- Agent loops with no turn or budget ceiling.
Products in this piece
Sources
- Official documentation
- 7
- Public source
- 5
- Claude API docs: Rate limits
- Claude API docs: Workspaces
- Claude API docs: Usage and Cost API
- Claude API docs: Pricing
- Claude API docs: Prompt caching
- Claude API docs: API credits for subscribers
- Claude Code docs: Agent SDK overview
- Day Dr3am3r: The Claude Agent SDK Settings That Actually Matter in Production (Jun 2, 2026)
- Hacker News: US$38k AWS Bedrock bill caused by a simple prompt caching miss (Apr 28, 2026)
- Hacker News comment on Bedrock cache-write double counting (Apr 8, 2026)
- Simon Willison: Claude Haiku 5.5 (Oct 7, 2026)
- Revefi: How Revefi Reduced Its Data Agent's Spend by 90% (Sep 23, 2026)