School · Module 6 · Lesson 2 of 4
Cap AI spend and set billing alerts
A loop in an agent or a leaked key can empty a wallet overnight.
Set hard spend caps and billing alerts on OpenAI, Anthropic, Vercel, Supabase, Stripe and every other paid API you use.
Give coding agents and background jobs their own restricted keys with low ceilings when the provider supports it.
Alert on anomalous usage, not only on the monthly invoice.