Summary
Set a hard monthly spend cap on the Anthropic API key that powers the AI agent. Every agent
message costs Claude tokens; without a ceiling, abuse or a bug could run up a surprise bill.
The rate limiter on /api/agent (separate issue) slows abuse — this spend cap is the actual
guarantee against a runaway bill. We want both.
⚠️ Owner-only task. Requires access to the Anthropic billing console. No code change.
Tasks
Acceptance criteria
- A monthly spend limit is visibly set in the Anthropic console.
- Usage/billing alert emails are enabled.
Notes
- Pair with the
/api/agent rate-limit issue. Rate limit = first line of defense; spend cap =
the hard ceiling behind it.
- This is our single biggest variable cost — worth watching in the first weeks of traffic.
Summary
Set a hard monthly spend cap on the Anthropic API key that powers the AI agent. Every agent
message costs Claude tokens; without a ceiling, abuse or a bug could run up a surprise bill.
The rate limiter on
/api/agent(separate issue) slows abuse — this spend cap is the actualguarantee against a runaway bill. We want both.
Tasks
raised anytime).
Acceptance criteria
Notes
/api/agentrate-limit issue. Rate limit = first line of defense; spend cap =the hard ceiling behind it.