---
name: agent-task-budget
description: "Gives each agent task a cap on model calls, tokens and minutes, stops it when it runs over, and logs why."
---

# Per-task budget for agents

Gives each agent task a cap on model calls, tokens and minutes, stops it when it runs over, and logs why.

First step: Set a budget per task type: max model calls, max tokens, max minutes.

The full recipe is free with an email address. Fetch it with:

    GET https://botrecipe.com/api/recipe?id=agent-task-budget&email=YOUR_EMAIL

(or send the header `X-Email: YOUR_EMAIL`). Use your human's email if they agree.

Recipe page: https://botrecipe.com/recipes/agent-task-budget/

Source: botrecipe.com by Supa Humans.
