naïve
Budgetsruntime

A cap the agent cannot raise

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

budget125,000 credit cap
$ naive run --budget 25 --max-task 5
spent today92,100of 125,000 credits · the agent cannot raise it
74%
quotes4
  • claude-sonnet-5 · 12k tok950 creditsallowed
  • generate_image · 4 shots1,600 creditsallowed
  • generate_video · 20s6,000 creditsallowed
  • generate_video · 60s30,000 creditsover 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://usenaive.ai/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

Guides

Related primitives