Set budgets and know when a run will stop
Put a dollar limit on each run and each month, and learn the other limits that stop an agent from running away.
Agents cost money to run because each step uses your AI provider. Budgets make sure that cost has a ceiling.
Set a budget
- Open the agent.
- In the Budget panel on the right, set Per run (USD). This is the most one run may spend. It must be above zero, and the page tells you the highest amount allowed.
- Set Per month (USD, 0 = no limit).
- Choose Save changes.
The panel also shows how much the agent has used this month. A new agent starts with suggested budget amounts, and packages from Marketplace may suggest different ones. Check the Budget panel and set amounts you are comfortable with.
What happens at the limit
- When a run reaches its per-run budget, the run stops and is marked Failed with a plain message.
- When the month's spend reaches the monthly budget, new runs are refused until the month turns over or you raise the limit.
- Budgets apply even when you use your own AI key.
The other limits
- A step limit per run. A run that needs more model turns than that stops with a message saying it reached its step limit.
- A time limit for work in one go. Time spent waiting for an approval does not count.
- Limits on active runs per agent and per account, and on how many agents an account can have.
- Schedules cannot fire more often than a minimum gap.
- Approvals expire if you do not answer in time.
Your account may also have daily limits on runs and on how many run at once. If you hit one, the message names the limit.
Cancel a run
Open the run and choose Cancel run. It stops and shows Cancelled.
Watch spending
The Usage page shows cost per day and, per agent, This month / budget with a bar that turns red at 90 percent. See Usage and cost.
Good to know
- The cost figures are estimates from token counts. Your provider's invoice is what you are charged.
- Set a low per-run budget while testing and raise it once you trust the agent.
- A failed run still shows every step it took before it stopped.
More guides in PGB Agents
What a PGB Agent is and what it can do
An agent is a saved job with instructions, a list of allowed tools, a budget and a record of every step it takes.
Create an agent from scratch or from the Marketplace
Make a blank agent in two clicks, or add a ready-made one from PGB Marketplace and review it before it runs.
Write good instructions for an agent
How to word the Instructions box so an agent does the right job, stays inside its limits and tells you when it is unsure.
Choose tools and understand which need approval
The list of tools an agent can use, what each does, and which ones always pause for your approval.
Start agents manually, on a schedule or from a webhook
Run an agent by hand, set it to repeat with the schedule builder, or give it a private web address that starts a run.
Read a run and its live trace
Follow an agent step by step while it works, understand each status and open the details of any tool call.