Follow Discord
Sweep 27 Oct 2026 · 19:04Z Build v2.1.312 531 read Stable v2.1.308 Latest v2.1.312 Next v2.1.312 Feeds RSS JSON llms.txt llms-full.txt Unofficial
HomeDocsSearch
Search the documentation

6 pages for maxbudgetusd.

Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.

prompting-claude-opus-5 Claude Developer Platform · in the page build-with-claude/prompt-engineering/prompting-claude-opus-5 …S` environment variables and the SDK’s `max_budget_usd` (typescript: `maxBudgetUsd`) option. Older versions of Claude Code don’t have them, so update Claude Code and any pinned SDK before pointing you… How the agent loop works Claude Code CLI · in the page agent-sdk/agent-loop …ve stopped before the edit step. You can also use `max_budget_usd` / `maxBudgetUsd` to cap turns based on a spend threshold. Without limits, the loop runs until Claude finishes on its own, which is f… Configure your agent Claude Code CLI · in the page agent-sdk/configuration …rns and spend Cap turns and spend with `maxTurns` / `max_turns` and `maxBudgetUsd` / `max_budget_usd`. Both caps are off when unset. When a session hits a cap, the run ends with a result message whos… Track cost and usage Claude Code CLI · in the page agent-sdk/cost-tracking …s count the resets yourself from the `/clear` turns your app sends. `maxBudgetUsd` (TypeScript) or `max_budget_usd` (Python) counts only the call's own spend: totals restored from a resumed session d… Subagents in the SDK Claude Code CLI · in the page agent-sdk/subagents …ude.com/docs/en/sub-agents.md#concurrent-subagent-limit) | | Spend | `maxBudgetUsd` in TypeScript, `max_budget_usd` in Python | No limit. Counts the call's own spend, subagent requests included | Enfo… Agent SDK reference - TypeScript Claude Code CLI · in the page agent-sdk/typescript …ter, and its `ENABLE_TOOL_SEARCH` env entry on v2.1.247 or later | | `maxBudgetUsd` | `number` | `undefined` | Stop the query when the client-side cost estimate reaches this USD value. The estimate ca…
Feedback