Lessons
General practices for limiting a surprise charge. Each step links to the vendor's own documentation. These are not findings about a company.
Bot or AI-crawler traffic
Automated clients can send far more requests than a person. These are the controls each vendor documents for that traffic, or for the spend it can create.
Protect yourself
Cloudflare's AI Crawler and Agent access policies set an action for Search, Agent, and Training traffic. Block stops matching requests across the zone. For Training, Disallow writes a robots.txt rule, and those directives are voluntary. When Bot Preference Sync is enabled, Disallow also blocks AI training crawlers at the edge. Mixed-purpose crawlers used for both Search and Training are excluded from that edge block. New domains default to Allow (do not block).
Cloudflare: AI Crawler and Agent access policies · Last checked 2026-12-05
Vercel Spend Management can notify, send a webhook, or, on a team or project budget, pause production deployments. Setting a budget does not stop usage on its own. Pause has to be turned on, and the check runs every few minutes, so a pause can lag. Pausing stops production traffic with a 503 DEPLOYMENT_PAUSED response and blocks new builds. It does not stop AI Gateway API key usage or v0 usage, and storage charges continue. On Pro, AI Gateway and v0 usage does not count toward these budgets. The page says Spend Management cannot block AI Gateway requests.
Vercel: Spend Management · Last checked 2026-12-05
OpenAI documents a hard spend limit, separate from its approved monthly usage limit. At the configured amount, affected API requests return a 429. A spend alert only sends a notification, and API traffic continues.
OpenAI: Rate limits · Last checked 2026-12-05
Anthropic documents a monthly spend cap on the Start ($500), Build ($1,000), and Scale ($200,000) tiers. At the tier cap, API usage pauses until 00:00 UTC on the first day of the next month, and requests return HTTP 429 with error code enforced_spend_limit_reached. The Custom tier has no monthly spend cap. A limit you set yourself cannot exceed the tier cap. When that limit is reached, requests return HTTP 400.
Anthropic: Rate limits · Last checked 2026-12-05
Receipts
The author says AI bots ran the bill $1,366.58 over a $20 limit that was not a spending cap.
Alerts, not a hard spend cap
A budget alert says spend crossed a line. On several of these products the alert does not stop the service or the bill. Where a hard stop exists, the vendor documents it as a separate setting.
Protect yourself
Neon's spending notifications, on Launch and Scale, email organization admins at 80% and 100% of a whole-dollar threshold. Neon checks every 15 minutes. The page says email alerts are the only action available, and that automatic project suspension is coming soon. Projects continue to run, and charges continue to accumulate, until you raise the threshold or the billing cycle resets. The same page says per-project consumption quotas can suspend computes, and that those quotas apply per metric (compute, storage, and data transfer) rather than to total dollar spend.
Neon: Spending notifications · Last checked 2026-12-05
Google Cloud says an alerts-only budget does not automatically cap Google Cloud or Google Maps Platform usage or spending. It triggers email alerts. Pub/Sub notifications can automate a response, including programmatically disabling Cloud Billing on a project. A spend cap budget is a different type. When a spend cap is enforced, the specified services are paused until you manually lift the cap. After the cap is lifted, those services can take up to an hour to resume.
Google Cloud: Budgets · Last checked 2026-12-05
AWS Budgets can run an action when a budget exceeds a cost or usage threshold, either automatically or after manual approval. Actions include applying an IAM policy or a service control policy, or targeting specific EC2 or RDS instances in the same account. For an AI budget, the action can block new Amazon Bedrock requests when spend reaches the limit. Blocking is not available for AI cost budgets for users or groups. Those budgets send alerts.
AWS: Configuring budget actions · Last checked 2026-12-05
Vercel says setting a budget does not stop usage on its own. Pause production deployments is a separate switch, and only team and project budgets can pause. Product and organization budgets cannot. Notifications go out at 50%, 75%, and 100%. SMS is only at 100%. Because checks run every few minutes, spend can pass the amount before the pause or the notice.
Vercel: Spend Management · Last checked 2026-12-05
Supabase Spend Cap is on the Pro plan. When it is on, further use of a covered item is disallowed after that item's quota until the next billing cycle, and that over-usage is not charged. Covered items include egress, disk size, and storage size. Compute is not covered. The page says the Spend Cap is not fine-grained budgets and does not send notifications when a cost is reached. When the cap is off, projects keep running and extra usage is charged.
Supabase: Spend Cap · Last checked 2026-12-05
OpenAI documents two separate controls. A spend alert sends a notification and API traffic continues. A hard spend limit makes affected API requests return a 429. OpenAI also sets its own approved monthly usage limit for each organization.
OpenAI: Rate limits · Last checked 2026-12-05
Receipts
The author says AI bots ran the bill $1,366.58 over a $20 limit that was not a spending cap.
Leaked or committed API keys
A key committed to a repository can be copied and used. GitHub documents secret scanning for finding those keys. The API pages below document spend limits that apply to usage of a key.
Protect yourself
GitHub secret scanning looks through the entire Git history on all branches for hardcoded credentials, including API keys, passwords, and tokens. It also scans issues, pull requests, discussions, wikis, and secret gists. An alert appears on the repository's Security and quality tab. GitHub's guidance is to rotate the credential immediately. Public repositories are scanned automatically at no charge. Organization-owned private and internal repositories need GitHub Secret Protection on GitHub Team or GitHub Enterprise Cloud. Partner secrets are reported to the provider and are not shown in repository alerts.
GitHub: About secret scanning · Last checked 2026-12-05
OpenAI's hard spend limit is separate from the monthly usage limit OpenAI sets. At the amount you configure for an organization or a project, affected API requests return a 429. A spend alert does not stop traffic.
OpenAI: Rate limits · Last checked 2026-12-05
Anthropic's Start, Build, and Scale tiers each have a monthly spend cap. At that cap, API requests return HTTP 429 until 00:00 UTC on the first day of the next month, unless the limit is raised. You can set a lower spend limit in the Claude Console. When a limit you set is reached, requests return HTTP 400. The Custom tier has no monthly spend cap.
Anthropic: Rate limits · Last checked 2026-12-05
Receipts
No receipt in the archive is tagged with this pattern.
Forgotten or idle resources
A resource left running after a test, or a plan left in place, can keep accruing charges. These are the pauses, quotas, and alerts the vendors document. None of them, by itself, deletes something that was left behind.
Protect yourself
Neon's endpoint setting suspend_timeout_seconds is how long a compute stays active with no demand before it suspends, until demand returns. autoscaling_limit_max_cu is a ceiling on how large that compute can grow. Separate project quotas, set with the API, suspend all active computes for the project when active time, compute time, data written, or data transfer reaches the quota. That suspension lasts until the next billing period unless you raise the quota. It does not restart on the next connection.
Neon: Configure consumption limits · Last checked 2026-12-05
Vercel can pause production deployments when a team or project budget is reached. Pausing stops production traffic and new builds. Stored resources are not deleted, so storage charges continue, including deployment and function storage, Vercel Blob, and container images. The page says to shorten the deployment retention policy or delete old deployments to reduce deployment storage charges. Projects have to be resumed one by one.
Vercel: Spend Management · Last checked 2026-12-05
An AWS Budgets action can target specific EC2 or RDS instances in the same account when a threshold is crossed, or apply an IAM policy or a service control policy. From the management account you can apply a service control policy to another account, but you cannot target EC2 or RDS instances in another account. An action runs automatically or after manual approval.
AWS: Configuring budget actions · Last checked 2026-12-05
A Google Cloud budget can be scoped to one project, or to selected services. An alerts-only budget does not stop usage or spending. Pub/Sub notifications can be used to disable Cloud Billing on a project. When a spend cap budget is enforced, the specified services are paused until you lift the cap.
Google Cloud: Budgets · Last checked 2026-12-05
On the Supabase Pro plan, Spend Cap covers disk size and storage size, among other items. After the quota for a covered item, further use of that item is disallowed until the next billing cycle. Compute, branching compute, and read replica compute are not covered. The cap does not send a notification.
Supabase: Spend Cap · Last checked 2026-12-05
Receipts
Runaway autoscaling or loops
A scaling rule can add capacity as load rises, including load from a loop. These pages document a maximum size, a compute ceiling, or an action that runs when a budget threshold is crossed.
Protect yourself
An EC2 Auto Scaling group has a minimum and a maximum size. Desired capacity has to sit inside that range. When scaling policies are set, they cannot raise desired capacity above the maximum, and they cannot lower it below the minimum. The same limits apply when you change desired capacity by hand or with a scheduled action. The group still launches a replacement if an instance stops unexpectedly, so it can return to the desired capacity.
AWS: Set scaling limits for your Auto Scaling group · Last checked 2026-12-05
Neon documents autoscaling_limit_max_cu as a hard limit on how much compute an endpoint can use as demand rises, and autoscaling_limit_min_cu as the floor. On a Free plan account, a request that sets different minimum and maximum CU values fails unless they are equal. A project quota on compute_time_seconds or active_time_seconds suspends the project's computes when the quota is met, until the next billing period or until the quota is raised.
Neon: Configure consumption limits · Last checked 2026-12-05
AWS documents a budget action that, at one threshold, applies a Deny IAM policy restricting who can provision more EC2 resources, and can also target specific EC2 instances. The action can run automatically or wait for approval. For an AI budget, new Amazon Bedrock requests can be blocked at the limit. That block is not available for AI cost budgets for users or groups.
AWS: Configuring budget actions · Last checked 2026-12-05
A Vercel team or project budget can pause production deployments when spend reaches the amount, which stops production traffic and blocks new builds. The page says the check is every few minutes, not continuous, so usage can continue for several minutes after the amount is reached. Product and organization budgets cannot pause deployments.
Vercel: Spend Management · Last checked 2026-12-05
Receipts
No receipt in the archive is tagged with this pattern.
Egress or data-transfer surprises
Outbound data is often billed apart from compute. These pages document a transfer quota, a product budget, or a spend cap that includes egress.
Protect yourself
Neon's data_transfer_bytes quota is the maximum egress, in bytes, transferred out of a project through the proxy during the billing period. When that project quota is met, all active computes for the project are suspended until the next billing period, unless you raise the quota. The page warns that this limit can block a cleanup that has to move data across the network, such as an offsite backup before a delete.
Neon: Configure consumption limits · Last checked 2026-12-05
Supabase lists Egress among the usage items covered by the Pro plan Spend Cap. After the egress quota, further egress is disallowed until the next billing cycle and is not charged as over-usage. Compute is not covered by the cap. With the cap off, extra usage is charged and projects keep running.
Supabase: Spend Cap · Last checked 2026-12-05
A Vercel product budget counts metered usage of one product across the team. The page gives Fast Data Transfer as an example. A product budget cannot pause deployments. On Pro, a product budget counts usage before the monthly credit. Checks run every few minutes.
Vercel: Spend Management · Last checked 2026-12-05
A Google Cloud budget can be scoped to one or more services. An alerts-only budget triggers email, and the page says it does not cap usage or spending. A spend cap budget, when enforced, pauses the specified services until you lift the cap.
Google Cloud: Budgets · Last checked 2026-12-05
Receipts
No receipt in the archive is tagged with this pattern.
Compromised accounts
A stolen password or key can create charges the account owner did not make. These pages document a second sign-in factor, secret scanning, and API spend limits. They are general controls.
Protect yourself
AWS recommends MFA for the account root user and for IAM users, and prefers passkeys and security keys. MFA is enforced for the root user of every account type. MFA on the root user does not cover IAM users. Each of those identities can register up to eight MFA devices. AWS ended support for enabling SMS MFA. A passkey or security key can be enabled from the console, not from the CLI or the API.
AWS: Multi-factor authentication in IAM · Last checked 2026-12-05
GitHub secret scanning alerts when it finds a hardcoded credential in Git history or in issues, pull requests, discussions, wikis, and secret gists. The documented next step is to rotate the credential. Public repositories are scanned automatically.
GitHub: About secret scanning · Last checked 2026-12-05
OpenAI's hard spend limit makes affected API requests return a 429 at the monthly amount set for an organization or a project. A spend alert does not interrupt traffic. This is separate from the monthly usage limit OpenAI sets.
OpenAI: Rate limits · Last checked 2026-12-05
Anthropic pauses API usage at the monthly spend cap for the Start, Build, and Scale tiers. Requests then return HTTP 429 until the next month or a higher limit. A lower limit you set returns HTTP 400 when it is reached. The Custom tier has no monthly spend cap.
Anthropic: Rate limits · Last checked 2026-12-05
Receipts
The author says hackers hijacked the account and racked up $109,063 in charges.
Duplicate or accidental purchases
The API pages below document monthly spend limits that stop requests at a configured amount. They do not describe a switch that blocks buying a prepaid credit pack.
Protect yourself
OpenAI says to consider spend limits for an organization or a project, separate from the monthly usage limits on the usage tiers. A hard spend limit makes affected API requests return a 429. A spend alert only notifies, and traffic continues. The page does not describe a control that blocks the purchase of prepaid credits.
OpenAI: Rate limits · Last checked 2026-12-05
Anthropic lets you set a monthly spend limit under the tier cap from Spend limits in the Claude Console. The limit cannot exceed the tier cap. When usage reaches a limit you set, requests return HTTP 400 until you raise or remove it. Reaching the tier cap returns HTTP 429 until 00:00 UTC on the first day of the next month. The page describes API usage limits. It does not describe a control that blocks buying prepaid credits.
Anthropic: Rate limits · Last checked 2026-12-05
Receipts
The author says he accidentally bought extra credits.