--max-budget-usd
Halts print mode execution when client-side estimated API expenses reach the given dollar threshold.
Syntax
--max-budget-usdExample
Terminal
claude -p --max-budget-usd 5.00 "query"Progress will not be saved. This browser is blocking storage (often private browsing). You can still learn, but closing the tab loses your progress.
--max-budget-usdHalts print mode execution when client-side estimated API expenses reach the given dollar threshold.
--max-budget-usdclaude -p --max-budget-usd 5.00 "query"