To cap an AI agent's spending, set limits in two places: at the model provider (OpenAI's hard spend limit, a Claude Console spend limit or a Gemini project spend cap) and in the automation tool (turn off Zapier pay-per-task billing and Make credit auto-purchasing). Add an alert below each cap, and expect a capped agent to stop, not slow down.
AI agents don’t get tired or suspicious of their own behavior. When a step fails and retries, or a loop misfires, a person would notice after the third try. An agent running unattended has no such instinct: it keeps going, one paid call after another, until something stops it.
A public bug report against Claude Code, Anthropic’s coding agent, shows how that plays out: the agent “entered an infinite loop, repeatedly sending the same requests for several hours”, about a minute apart, after the user left it running. The reporter put the damage at “$500+ of unexpected token usage.” Spending limits exist to catch exactly this.
This is a researched guide built from vendor documentation, not a hands-on test: we have not tripped these caps ourselves. Limits and prices checked October 19, 2026.
The two-layer rule
Most agent setups have two places money can leak: the model provider (OpenAI, Anthropic’s Claude, Google’s Gemini), which charges per token, and the automation tool (Zapier, Make, n8n, Lindy), which charges per task, run or credit. Capping only one leaves the other open. A loop that OpenAI’s hard limit stops can still use up Zapier tasks or Make credits, and a tool that pauses at its plan limit does nothing about a model key used somewhere else.
So the rule is simple: cap the provider and cap the automation tool, separately. Set an alert below each cap so you hear about it before anything blocks. And when a cap trips, expect the agent to go quiet. None of these systems ask you for more money politely; they pause, fail or hold runs, and the agent simply stops producing output.
Spending limits compared
| Tool | Cap you can set | What happens at the limit | Overage risk to watch | Where to set it |
|---|---|---|---|---|
| OpenAI API | Monthly spend limit per organization or project, with “Enforce a hard limit” | Affected requests return a 429 error until the monthly reset or you raise the limit | Alerts alone don’t stop traffic; enforcement “is not instantaneous,” so spend can slightly exceed the cap | Organization limits, or Project settings > Limits > Spend > Edit spend limit |
| Claude API | Your own monthly spend limit, below your tier’s cap; per-Workspace limits | Your limit: HTTP 400 until you raise it. Tier cap: HTTP 429 until 00:00 UTC on the 1st | Tier caps are $500 (Start), $1,000 (Build), $200,000 (Scale); your own limit can’t exceed them | Claude Console > Billing > Spend limits |
| Gemini API | Monthly project spend cap (labeled “Experimental”) | The cap applies with about a 10-minute billing lag; tier caps pause all linked projects until the 1st | Agent sessions and batch jobs “may incur overages beyond your project spend cap” | Google AI Studio > Spend > Monthly spend cap > Edit spend cap |
| Zapier (Zaps) | Your plan’s task limit, with pay-per-task billing on or off | Off: Zaps pause and runs are held until the next period. On: extra tasks at a higher rate, up to 3x your plan, then Zaps stop | Pay-per-task is on by default for accounts that joined after January 2024 | Billing and usage > Billing settings > Per-task billing (account owner) |
| Zapier Agents | No custom cap; plan limits of 400 (Free) or 1,500 (Pro) activities a month, plus 10 or 40 per run | Agents stop at the monthly limit; a run that hits its per-run cap asks for your input | Low: extra activities to finish a run aren’t charged; emails at 80% and 100% | Fixed by plan; usage under Activities in the Agents sidebar |
| Make | Your plan’s credits, with auto-purchasing on or off | Off: scenarios stop until credits are added; webhooks are queued | Auto-purchase buys 10,000-credit blocks at 25% extra, and running out of data transfer can trigger it | Org > Subscription > Enable credits auto-purchasing |
| n8n Cloud | Your plan’s monthly executions (2,500 on Starter, 10,000 on Pro) | New executions fail immediately; nothing is queued or retried | No overage billing, but triggers keep firing and failing until the 1st | Nothing to switch off; add a timeout and error workflow per workflow |
| Lindy | Shared credit pool; admins set credit allocations per seat | Lindy “pauses and tells you”; credit-using actions wait for the reset | Top-ups are $10 per 1,000 credits; the listed plan price changed several times in October | Admin seat and credit-allocation settings |
Sources: OpenAI spend limits, Claude API rate and spend limits, Gemini API billing, Zapier pay-per-task billing, Zapier pricing, Zapier Zap limits, Zapier Agents usage, Make pricing, Make extra credits, n8n pricing, n8n Cloud execution-limit FAQ, Lindy pricing. All checked October 19, 2026.
Step by step: model providers
If your automation tool lets you bring your own OpenAI, Claude or Gemini API key, the provider bills you directly, so cap it there.
OpenAI API
- Give the agent its own project, so its cap can’t take down anything else that uses your account.
- Go to Project settings > Limits, and under Spend select Edit spend limit. (For an account-wide cap, use Organization limits > Spend > Edit spend limit instead.)
- Enter the Monthly spend limit, turn on Enforce a hard limit, and select Save.
- Add a spend alert at a lower amount.
The toggle in step 3 is the important part. OpenAI’s own wording is that “spend alerts do not enforce a cap”: an alert sends a notification while API traffic continues. A hard limit makes affected requests fail with a 429 error and the code project_spend_limit_exceeded (or organization_spend_limit_exceeded). The limit resets with the next monthly cycle, or when you raise or remove it. Enforcement “is not instantaneous,” so recorded spend can slightly exceed the amount you set. OpenAI also assigns your organization its own monthly usage limit based on your usage tier, separate from yours (OpenAI spend limits).
Claude API (Anthropic)
- Create a separate Workspace for the agent and use an API key from it. You can’t set limits on the default Workspace.
- Go to the Claude Console Billing page (
platform.claude.com/settings/billing), find Spend limits, and click Set limit (or Adjust limit) to set an organization-wide monthly limit. - Set a lower spend limit on the agent’s Workspace, so it hits its own ceiling first.
Every Start, Build and Scale tier carries a monthly spend cap of $500, $1,000 and $200,000 respectively, and the limit you set can’t exceed it. Hit your own limit and requests return HTTP 400 with a message beginning “You have reached your specified API usage limits” (or “workspace API usage limits”); raise or remove the limit to restore access sooner. Hit the tier cap and usage pauses until 00:00 UTC on the first day of the next month (unless you get a higher limit sooner), with a 429 error that has no retry-after header, so automatic retries keep failing. Organization limits always apply, even if your Workspace limits add up to more (Claude API rate and spend limits).
Gemini API (Google)
- Use a dedicated Google AI Studio project for the agent.
- In AI Studio, open the Spend page and choose Monthly spend cap > Edit spend cap (you need the project editor, owner or admin role).
- If you use auto-reload on a prepaid balance, also set a Monthly auto-charge limit under Manage auto-reload on the Billing page.
Google labels project spend caps “Experimental.” Billing data can lag by about 10 minutes, so you can be charged for overages in that window, and “long-running tasks like batch mode completions and agent sessions may incur overages beyond your project spend cap.” Billing accounts also have tier caps: $250 on Tier 1, $2,000 on Tier 2 and $20,000 to $100,000 on Tier 3. Reach one and service pauses for every linked project until the 1st of the month. New users default to Prepay billing: when the prepaid balance hits $0, all keys in all linked projects stop with an HTTP 402 error until you add credits. The monthly auto-charge limit caps automatic reloads per billing cycle; manual purchases don’t count toward it (Gemini API billing).
Step by step: automation tools
Zapier
- Go to Billing and usage > Billing settings.
- In the Per-task billing section, turn the toggle off.
On Professional and Team plans, only the account owner can change this; Enterprise accounts created after June 2025 have to ask their account manager. Pay-per-task is on by default if you joined Zapier after January 2024. With it on, you switch to pay-per-task billing once you pass your plan’s task limit, charged at a higher per-task rate that depends on your plan and billing cycle. It isn’t unlimited: Zaps stop at 3x your plan’s task limit. On a Professional plan with 750 tasks, that’s 750 plus 1,500 extra, or 2,250 tasks in total. Turning it off stops pay-per-task immediately, but usage before that still goes on your next invoice (Zapier pay-per-task billing).
With it off, Zaps pause at your plan’s task limit until the next usage period, and Zapier emails you when you’re close and when you hit it (Zapier pricing). Paused runs are held, not lost: Zapier stores the trigger data, and you can replay held runs from Zap History once you have tasks available (Zapier Zap limits). For scale, Zapier Free includes 100 tasks a month, and Professional is listed “starting from $19.99/month” (Zapier pricing).
Zapier Agents
Zapier Agents is billed separately from Zaps, in “activities” (each trigger, action, knowledge lookup, web search or page visit counts as one). There’s no custom cap to set, but the plan limits act as one. Free includes 400 activities a month and Pro 1,500, at $33.33 a month billed annually (Zapier pricing). Each run is also capped at 10 activities on Free and 40 on Pro or Enterprise, a safeguard that “prevents a single run from consuming your entire monthly quota.” If an agent reaches that cap with work left, it asks for your input before continuing.
At the monthly limit, agents stop running and can’t use actions or receive triggers. Zapier emails you at 80% and 100% of the limit, and doesn’t charge for extra activities an agent needs to finish a run that was already underway. Zapier also says it is moving Agents to AI by Zapier, so names may change (Zapier Agents usage).
Make
- Go to Org in the left sidebar, then the Subscription tab in My Plan.
- Leave Enable credits auto-purchasing off, or turn it off if it’s on.
With auto-purchasing off, when credits run out “your scenarios won’t continue to run, until credits are added again.” Incoming webhooks are queued up to your plan’s webhook queue storage, and polling scenarios pick up records since their last successful run once they resume (Make pricing).
With auto-purchasing on, Make buys 10,000 extra credits each time you run out, up to the number of credits in your plan (an 80,000-credit plan allows at most 8 auto-purchases). Extra credits cost 25% more than plan credits: on a $9 plan with 10,000 credits, 10,000 extra credits cost $11.25. One catch: “exhausting data transfer can trigger an auto-purchase even if there are still credits left” (Make extra credits).
n8n Cloud
n8n Cloud has no overage billing to turn off, and that is the main thing to know. At your plan’s execution limit, new executions fail at once with “Execution limit reached. Consider upgrading your plan.” They are not queued, held or retried automatically, and your triggers keep firing (and failing) until the limit resets at the start of each calendar month. Failed executions don’t count against your quota, and you re-run anything important by hand from Overview > Executions (n8n Cloud execution-limit FAQ). Starter is 20€ a month billed annually for 2,500 executions and Pro 50€ for 10,000, counted per full workflow run (n8n pricing).
If your n8n workflow calls a model with your own API key, that usage is billed by the provider, so set the provider cap above too.
Lindy
Lindy pools credits across your team. If the pool runs low, “Lindy pauses and tells you,” and admins can set credit allocations per seat. When credits run out, Lindy pauses credit-using actions until the next cycle unless an admin tops up, at $10 per 1,000 credits. Paid plans are listed from $29.99 per user per month for 3,000 credits (5,000 credits is $49.99) as of October 21, 2026. Lindy has changed this several times this month and is currently showing some visitors plans that start at $49.99 for 5,000 credits, so check Lindy’s pricing page before you budget. Separately, Lindy says anything with outside impact, such as sending an email, “waits for approval” (Lindy pricing), but its guardrails docs say approval guardrails apply only in shared Slack threads; web app chat, Slack DMs and iMessage/SMS aren’t guarded.
Runaway-loop guards (caps per run, not per month)
Monthly caps limit the bill. These settings stop a loop early, before it eats the month’s allowance.
| Guard | Tool | What it does | Default |
|---|---|---|---|
| Flood protection | Zapier | Holds runs when a polling trigger brings in 100+ events at once and emails you to confirm | 100 events; adjustable per Zap on paid plans |
| Activities per run | Zapier Agents | Caps one run, then asks for your input before continuing | 10 on Free, 40 on Pro and Enterprise |
| Errors before deactivation | Make | Turns a scenario off after this many errors in a row; scenarios with instant triggers turn off after the first error | 3 |
| Cycles per run | Make | Sets the maximum number of cycles in one scenario run | Set per scenario |
| Timeout Workflow | n8n | Cancels an execution after a time you choose | Optional; n8n Cloud also caps run time at 5 minutes on Starter and 40 on Pro |
| Error Workflow | n8n | Runs a second workflow (for example, a notification) when this one fails | None until you pick one |
Sources: Zapier Zap limits, Zapier Agents usage, Make scenario settings, Make error handling overview, n8n workflow settings, n8n pricing.
Zapier itself warns about Zap loops, where workflows run “over and over again from the same data, quickly using up your plan tasks” (Zapier Zap limits). In the Claude Code bug report, commenters described their own workaround: abort when the same tool call repeats more than three times in a row (GitHub issue). That’s their fix, not one we’ve tested, but the principle carries over: limit the retries, not just the dollars.
What a tripped cap looks like
- OpenAI: requests fail with a 429 error and the code
organization_spend_limit_exceededorproject_spend_limit_exceeded. - Claude: your own limit returns HTTP 400 (“You have reached your specified API usage limits”); the tier cap returns a 429 with no
retry-afterheader, and retries fail until the 1st or a tier increase. - Gemini: a prepaid balance at $0 returns HTTP 402 for every linked project; a tier cap pauses linked projects until the 1st.
- Zapier: Zap runs show as held, and you get an email near and at the limit.
- Zapier Agents: agents stop running; a run at its per-run cap waits for your input.
- Make: scenarios stop; webhooks wait in the queue until credits return.
- n8n Cloud: a list of failed executions reading “Execution limit reached.”
- Lindy: credit-using actions pause and Lindy tells you.
Most of these are quiet failures. Add a failure notification wherever your tool supports one (n8n’s Error Workflow, or an error-handling route in Make that sends you a message, per Make’s error handling overview). Otherwise a tripped cap looks like an ordinary quiet day, and you can’t tell “no new emails” from “the agent has been blocked since 3 a.m.”
A starter budget for one inbox agent
Our AI agent cost guide estimates that drafting about 300 email replies a month costs roughly $0.17 to $3.30 in model usage, depending on the model. That estimate rests on our own token assumptions, not a measured bill, but it gives a sensible anchor.
For a single draft-only inbox agent, here is a starting checklist. The dollar figures are our suggestion, not a vendor rule or a tested number.
- Give the agent its own OpenAI project, Claude Workspace (not the default one) or AI Studio project.
- Set a provider spend cap of about $10 a month, with “Enforce a hard limit” on in OpenAI.
- Set an alert at about $5, below the cap.
- In the automation tool, turn off Zapier pay-per-task billing or Make credit auto-purchasing.
- Add a timeout or loop guard (n8n Timeout Workflow, Make errors before deactivation) and a failure notification.
- Check usage once a week for the first month.
- After a month of real numbers, move the cap to about twice your actual usage, or whatever headroom you’re comfortable with.
Caps don’t replace approval
A spending cap limits what a runaway agent can cost. It does nothing about what the agent does while it’s under budget. A draft-only design, where the agent prepares a reply and you approve it before anything is sent, limits mistakes rather than dollars, and you want both. Our approval ladder guide shows how to add an approve-before-it-acts step in Zapier, n8n, Make, Lindy and Claude Code. Our recipe for an AI email assistant that drafts but never sends shows that design, and What Is an AI Agent? explains why a first agent should be narrow and supervised. If you’re still choosing a platform, the limit behavior is worth weighing: Zapier holds runs you can replay, n8n Cloud fails them, and Make stops scenarios but queues webhooks. Our Zapier vs Make vs n8n comparison covers the rest: price, AI features and approval steps.
Get it set up
Everything above is free to set up yourself. If you want a structured start, the $49 Small Business Agent Playbook in our shop includes a 30-day rollout plan that ends with a 15-minute Friday check of run history for errors and usage. The $29 Inbox Agent Starter Pack covers just the inbox agent. Our packs are built from vendor documentation and labeled untested until we’ve run them end to end. If you’d rather not build it, our $299 done-for-you setup builds one approval-first workflow in your own Zapier, Make or n8n account; you can ask for the caps in this guide to be part of the written scope. Tool and AI usage stay billed to you by the vendors.
The bottom line
Spending limits on AI agents work best in pairs: one cap at the model provider and one in the automation tool, each with an alert set below it. Among the automation tools here, Zapier (pay-per-task) and Make (auto-purchasing) are the two that can automatically bill past your plan, and both let you turn that off. On the provider side, OpenAI’s cap only blocks traffic with “Enforce a hard limit” on, and Gemini’s auto-reload needs its own monthly limit.
Verdict: Cap both layers, put alerts below each cap, add a failure notification, and treat a suddenly quiet agent as something to check, not a day off.
Frequently asked questions
How do I set a spending limit on the OpenAI API?
In the API Platform, open Organization limits (or a project's Settings > Limits), choose Edit spend limit, enter a monthly amount and turn on 'Enforce a hard limit.' Without that toggle it works only as an alert and traffic continues. Requests over a hard limit return a 429 error, and OpenAI notes enforcement isn't instantaneous, so spend can slightly exceed the cap. Checked October 19, 2026.
Can I cap Claude API spending?
Yes. The Start, Build and Scale tiers carry monthly caps of $500, $1,000 and $200,000, and you can set your own lower limit on the Claude Console Billing page under Spend limits. Requests over your own limit return HTTP 400 until you raise it or the month resets. Workspaces other than the default one can have their own spend limits. Checked October 19, 2026.
Does Zapier charge extra if I go over my task limit?
For accounts that joined after January 2024, pay-per-task billing is on by default: Zaps keep running at a higher per-task rate, up to 3x your plan's task limit. The account owner can turn it off under Billing and usage > Billing settings; Zaps then pause at the limit, and held runs can be replayed once you have tasks again.
What happens when n8n Cloud or Make runs out?
On n8n Cloud, executions over the monthly limit fail immediately, aren't queued and don't retry on their own; limits reset at the start of each calendar month. Make scenarios stop until credits are added, with incoming webhooks queued up to your plan's webhook storage. Make only buys more credits automatically if auto-purchasing is on, and extra credits cost 25% more.
What spending limit should I set for a small-business agent?
No vendor publishes a rule. For one draft-only inbox agent, our cost guide estimates about $0.17 to $3.30 a month in model usage for 300 drafts, so a provider cap around $10 a month with an alert around $5 leaves headroom while stopping a runaway loop early. That is our suggestion, not a tested figure; check real usage after the first month.
Can Lindy surprise me with a big bill?
Lindy says no: if the shared credit pool runs low, Lindy pauses and tells you, and admins can set credit allocations per seat. Paid plans are listed from $29.99 per user per month for 3,000 credits (5,000 credits is $49.99), with top-ups at $10 per 1,000 credits, as of October 21, 2026. Lindy has changed this several times this month, so check Lindy's pricing page before you buy.
Prices and features change often. We checked every linked source on the date above; confirm on the vendor's page before you buy. We have no affiliate relationships yet, so no link here earns us a commission — see our disclosure.
Get The Tested Agent
One agent recipe a week, in plain English: what it costs, where you approve, what broke. Tuesdays, about a 5-minute read.