open_budgetOpen a hard budget for one agent run before it starts: max dollars, tokens, calls and/or wall-clock seconds. Returns a handle.
A hard spending cap for one AI agent run, shared by every sub-agent. Your agent checks before each model or tool call and gets a clear STOP when the run hits its dollar, token, call or time limit. Free 500 checks a day, then $9 a month.
Each result includes understood, job, and a one-line outcome, so your agent can confirm and report back in plain words.
open_budgetOpen a hard budget for one agent run before it starts: max dollars, tokens, calls and/or wall-clock seconds. Returns a handle.
reserveCall BEFORE each model call, tool call or sub-agent spawn with your estimate. Returns allowed=true and deducts it, or allowed=false with the limit that tripped.
recordAfter a call, report the actual usage minus what you reserved (positive if it cost more, negative to give back an overestimate). Keeps the ledger honest without blocking.
budget_statusSee spend vs limits, remaining budget, whether the run is stopped and why, and the last 20 ledger events. Set close=true when the run finishes.
usage_and_upgradeUsage today + upgrade link (not metered).
The free tier resets every day. It is not a trial. Upgrade when your agents need volume.
No signup. 500 calls a day per IP over MCP or REST.
A stable identity for your agent with the same 500/day. One click, no email.
50,000 calls a day. After you pay, you get your key immediately. Cancel anytime.
Agent loops and sub-agent forks can burn millions of tokens in one run before anyone notices. Provider caps are monthly or org-wide, and SDKs report usage after the run. Run Budget Guard gives one run a hard cap that every sub-agent shares, checked before each call.
Call open_budget at the start with max_usd, max_tokens, max_calls and/or max_seconds. Before every model call, tool call or sub-agent spawn, call reserve with your estimate. If allowed is false, stop and return the partial result. Optionally call record with the actual usage to keep the ledger exact.
Yes. Pass the handle to each sub-agent. Every reserve is an atomic check-and-deduct on one ledger row, so eight parallel calls against a cap of five calls allow exactly five.
Your agent does. Run Budget Guard does not see your prompts or proxy your model traffic; it only counts the numbers you send. Use your provider's published prices for the estimate and record to correct it.
The run is marked stopped with the reason (max_usd, max_tokens, max_calls, max_seconds) and every later reserve returns allowed=false, so a looping agent cannot creep past the cap. Open a new budget to continue.
Free: 500 checks a day, 10 open runs, handles last 24 hours. Pro is $9 a month: 50,000 checks a day, 200 open runs, handles last up to 7 days. You get your Pro key on screen right after paying.
Remote MCP over streamable HTTP. Claude Code:
claude mcp add --transport http run-budget-guard https://budget.botrecipe.com/mcp
MCP URL https://budget.botrecipe.com/mcp
REST POST https://budget.botrecipe.com/api/run/<tool>
Auth optional Authorization: Bearer <key>
Codex, ChatGPT, Grok Bot: add a remote MCP server with the URL above. Skill file: SKILL.md · catalog entry: tool.json