Budgetsruntime

A cap the agent cannot raise

A USD cap quoted before every call. The run stops rather than overspending.

budget$25.00 cap
$ vetta run --budget 25 --max-task 5
spent today$18.42of $25.00 · the agent cannot raise it
74%
quotes4
  • claude-sonnet-5 · 12k tok$0.19allowed
  • generate_image · 4 shots$0.32allowed
  • generate_video · 20s$1.20allowed
  • generate_video · 60s$7.80over cap
stopped, not overspentquoted before every call

Paste and ship

Drop this into Claude Code, Codex, or Cursor. It reads the docs and wires up Budgets for you.

Agent prompt
Read https://vetta.sh/docs/concepts/budgets and use the naïve Budgets primitive in my project. It is part of the runtime layer; wire it through naive.config.ts rather than calling a vendor directly.

Used by

Related primitives