7 pages for --max-budget-usd.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Claude Code changelog
Claude Code CLI · in the page
changelog
…e end of every turn keeping a headless run going past `--max-turns`, `--max-budget-usd`, an interrupt, or the end of the host's conversation * Fixed cloud sessions sometimes showing the model's follow…
CLI reference
Claude Code CLI · in the page
cli-reference
…| | `--max-budget-usd` | Maximum dollar amount to spend on API calls before stopping (print mode only). Sp…
Manage costs effectively
Claude Code CLI · in the page
costs
…nd-duration-tracking), and the multiplied figure also counts toward [`--max-budget-usd`](/docs/en/cli-reference#cli-flags). #### Prompt cache statistics After the main conversation's first API respo…
Run Claude Code programmatically
Claude Code CLI · in the page
headless
…he JSON your script reads never carries it. If the run reaches its [`--max-budget-usd`](/docs/en/cli-reference#cli-flags) cap, Claude Code stops the remaining background work instead of waiting. Whe…
Manage sessions
Claude Code CLI · in the page
sessions
…ma` * Flags that limit or rewind the run, such as `--max-turns` or `--max-budget-usd` With any of these, or when [agent view is turned off](/docs/en/agent-view#turn-off-agent-view), Claude Code s…
All settings
Claude Code CLI · in the page
settings-reference
…s line](/docs/en/statusline), the Agent SDK's `total_cost_usd`, the [`--max-budget-usd`](/docs/en/cli-reference) limit, and the [OpenTelemetry](/docs/en/monitoring-usage) cost metric and events. You s…
Week 30 · July 20–24, 2026
Claude Code CLI · in the page
whats-new/2026-w30
…oncurrent-subagent-limit) with `CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTS``--max-budget-usd` now enforces the cap on subagents: once spend reaches it, Claude can't start more and running background subagen…