Skip to content

Conversation

@ashwin-ant
Copy link
Collaborator

Add support for limiting API costs using the max_budget_usd option, mirroring the TypeScript SDK functionality. When the budget is exceeded, query execution stops and returns a result with subtype 'error_max_budget_usd'.

  • Add max_budget_usd field to ClaudeAgentOptions
  • Pass --max-budget-usd flag to Claude Code CLI
  • Add test coverage for budget limit behavior

🤖 Generated with Claude Code

Add support for limiting API costs using the max_budget_usd option,
mirroring the TypeScript SDK functionality. When the budget is exceeded,
query execution stops and returns a result with subtype 'error_max_budget_usd'.

- Add max_budget_usd field to ClaudeAgentOptions
- Pass --max-budget-usd flag to Claude Code CLI
- Add test coverage for budget limit behavior

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@ashwin-ant ashwin-ant requested a review from a team October 30, 2025 23:45
@ashwin-ant ashwin-ant merged commit ae800c5 into main Oct 30, 2025
30 checks passed
@ashwin-ant ashwin-ant deleted the ashwin/usd branch October 30, 2025 23:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants