425 pages for budget.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
overview
Claude Developer Platform · in the page
release-notes/overview
…e Haiku 4.5 can break on Claude Haiku 5.5. Manual extended thinking (`budget_tokens`), the sampling parameters `temperature`, `top_p`, and `top_k`, and assistant message prefill can each return a 400…
develop-tests
Claude Developer Platform · in the page
test-and-evaluate/develop-tests
…tations. </Accordion> <Accordion title="Price"> What is your budget for running the model? Consider factors such as the cost for each API call, the size of the model, and the frequency of usa…
increase-consistency
Claude Developer Platform · in the page
test-and-evaluate/strengthen-guardrails/increase-consistency
…rvices.</overview> <swot> <strengths> - Massive R&D budget fuels continuous innovation - Loyal customer base and powerful brand recognition - Synergistic product ecos…
Set up Claude Code for your organization
Claude Code CLI · in the page
admin-setup
…nterprise, workspace limits for Console; on third-party clouds, cloud budget controls or a [Claude apps gateway](/docs/en/claude-apps-gateway) with per-user [spend limits](/docs/en/claude-apps-gateway…
How the agent loop works
Claude Code CLI · in the page
agent-sdk/agent-loop
…above would have 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…
Configure your agent
Claude Code CLI · in the page
agent-sdk/configuration
…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 whose s…
Track cost and usage
Claude Code CLI · in the page
agent-sdk/cost-tracking
…r later. > > Use these fields for development insight and approximate budgeting. For authoritative billing, use the [Usage and Cost API](https://platform.claude.com/docs/en/build-with-claude/usage-cos…
Intercept and control agent behavior with hooks
Claude Code CLI · in the page
agent-sdk/hooks
…nEnd` callbacks during shutdown under the shorter [SessionEnd timeout budget](/docs/en/hooks.md#sessionend-input), 1.5 seconds by default. When a callback exceeds its timeout, Claude Code cancels it…
Agent SDK reference - Python
Claude Code CLI · in the page
agent-sdk/python
…put`) are **plain dicts at runtime** and require key access: `config["budget_tokens"]`, not `config.budget_tokens`. The `ClassName(field=value)` call syntax works for both, but only dataclasses produc…
Work with sessions
Claude Code CLI · in the page
agent-sdk/sessions
…m a limit.** The first run ended with `error_max_turns` or `error_max_budget_usd` (see [Handle the result](/docs/en/agent-sdk/agent-loop.md#handle-the-result)); resume with a higher limit. In a single…
Subagents in the SDK
Claude Code CLI · in the page
agent-sdk/subagents
…[environment variable reference](/docs/en/env-vars.md) and [turns and budget](/docs/en/agent-sdk/agent-loop.md#turns-and-budget) record the Claude Code version that added each variable and the spend c…
Agent SDK reference - TypeScript
Claude Code CLI · in the page
agent-sdk/typescript
…, 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 can p…
Claude Code changelog
Claude Code CLI · in the page
changelog
…iew **Changed** * Changed the notice Claude gets when the WebSearch budget is used up to also tell it not to query search engines in a browser or through computer use * Changed the `axScreenReader`…
Claude apps gateway configuration
Claude Code CLI · in the page
claude-apps-gateway-config
…nstead of failing over to the next upstream, so your proxy's per-user budget or rate limit holds. The proxy's other responses follow the ordinary [failover rules](#upstreams). If a developer's IdP tok…
Claude apps gateway deployment and operations
Claude Code CLI · in the page
claude-apps-gateway-deploy
…-idle-watchdogs) ends it and Claude Code retries it within the [retry budget](/docs/en/errors.md#tune-retry-behavior). If you lowered `API_TIMEOUT_MS` only to retry sooner, remove that value, or one u…
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). Spend fr…
Code Review
Claude Code CLI · in the page
code-review
…without subscribing the PR. ### Review didn't run and the PR shows a budget message When your organization's monthly spend cap for Code Review is reached or its usage-credits balance is used up, Cod…
Code Review costs and usage
Claude Code CLI · in the page
code-review-costs
…n/code-review-troubleshooting.md#review-didn’t-run-and-the-pr-shows-a-budget-message) that names the cause and links to the usage settings. To monitor spend, use the [analytics dashboard](#view-usage…
Read and request reviews on a pull request
Claude Code CLI · in the page
code-review-pull-requests
…eshooting.md): a review that didn't start, failed, or was skipped for budget * [Code Review](/docs/en/code-review.md): what the service is and how a review runs * [Set up Code Review](/docs/en/code-re…
Troubleshoot Code Review
Claude Code CLI · in the page
code-review-troubleshooting
…ew > Fix a Code Review that didn't start, failed, or was skipped for budget, find missing findings, and resolve setup and `REVIEW.md` problems. When [Code Review](/docs/en/code-review.md) doesn't do…
Explore the context window
Claude Code CLI · in the page
context-window
…r-skill cap, and the oldest invoked skills are dropped once the total budget is exceeded. Truncation keeps the start of the file, so put the most important instructions near the top of `SKILL.md`. ##…
Manage costs effectively
Claude Code CLI · in the page
costs
…ation-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 response, C…
Desktop application
Claude Code CLI · in the page
desktop
…igher level, start a new one at `high` or lower. #### Fixed thinking budgets On models with [adaptive reasoning](/docs/en/model-config.md#adjust-effort-level), Claude Code ignores the number itself…
Environment variables
Claude Code CLI · in the page
env-vars
…ings-files). ## Variables Numeric variables such as timeouts, token budgets, and retry counts accept scientific notation and digit-separator spellings in addition to plain digits, except where a var…
Error reference
Claude Code CLI · in the page
errors
…your channel's monthly spend limit` / `You've hit your team's shared budget` / `You've hit your individual usage limit` | [Usage limits](#youve-hit-your-monthly-spend-limit) | | `Could not update you…
Run Claude Code through a gateway
Claude Code CLI · in the page
gateways
…than holding provider credentials, so authentication, usage tracking, budgets, and audit logging happen in one place you control. Claude Code includes a self-hosted gateway, [Claude apps gateway](/do…
Glossary
Claude Code CLI · in the page
glossary
…ing tokens with `MAX_THINKING_TOKENS` on models with a fixed thinking budget. Thinking appears in gray italic text in the terminal. Learn more: [Use extended thinking](/docs/en/model-config.md#extend…
Keep Claude working toward a goal
Claude Code CLI · in the page
goal
…plitting a large file into focused modules until each is under a size budget * Working through a labeled issue backlog until the queue is empty ## Compare ways to keep a session running Three approa…
Run Claude Code programmatically
Claude Code CLI · in the page
headless
…N 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. When back…
Hooks reference
Claude Code CLI · in the page
hooks
…messagedisplay). [`SessionEnd`](#sessionend) hooks share a 1.5-second budget; if your settings set a longer per-hook `timeout`, Claude Code raises the budget to match, up to 60 seconds | | `statusMess…
Automate actions with hooks
Claude Code CLI · in the page
hooks-guide
…End`](/docs/en/hooks#sessionend) hooks of any type share a 1.5-second budget. If your settings set a longer per-hook `timeout`, Claude Code raises the budget to match, up to 60 seconds. * `PostToolUse…
Other LLM gateways
Claude Code CLI · in the page
llm-gateway
…ess of which provider serves the request * **Cost controls**: enforce budgets and rate limits in one place * **Audit logging**: log every model request for compliance * **Provider switching**: change…
Claude Code gateway compatibility guide
Claude Code CLI · in the page
llm-gateway-protocol
…de doesn't recognize, such as a gateway alias | Thinking with a fixed budget rather than adaptive reasoning, and no effort or context management fields. Claude Code still sends [mid-conversation syste…
Roll out an LLM gateway for your organization
Claude Code CLI · in the page
llm-gateway-rollout
…oning](/docs/en/model-config.md#adaptive-reasoning-and-fixed-thinking-budgets), the effort parameter, and the [context window](/docs/en/model-config.md#correct-the-window-for-a-gateway-or-custom-model…
Connect Claude Code to tools via MCP
Claude Code CLI · in the page
mcp
…fixed per-server tool cap; the practical limit is your context window budget. > [!NOTE] > > Tool search isn't supported on Microsoft Foundry [deployments hosted on Azure](https://platform.claude.com/…
How Claude remembers your project
Claude Code CLI · in the page
memory
…ht. To keep expansion bounded, a rule's whole `paths` list shares one budget of 1,000 expanded patterns and 4 MiB, and patterns without braces don't count against it. Claude Code uses any pattern tha…
Model configuration
Claude Code CLI · in the page
model-config
…rtup and when it changes. #### Adaptive reasoning and fixed thinking budgets Adaptive reasoning makes thinking optional on each step, so Claude can respond faster to routine prompts and reserve deep…
Test plugins with evals
Claude Code CLI · in the page
plugin-evals
…server from instructions in the body. Calls to agent mocks share one [budget per run](#mock-call-budget-exceeded) of four times the case's `max_turns`, and a call past it aborts the run with score 0.…
Mods reference
Claude Code CLI · in the page
plugins/mods/reference
…er-mods-run-in): `prepend`, `user`, `append`, or `builtin`. | | `next.budget` | The hook's time limit in milliseconds: `next.budget.ms` is the whole limit, and `next.budget.remainingMs` is what's left…
Troubleshoot plugins
Claude Code CLI · in the page
plugins/troubleshooting
…led, Claude Code shortens descriptions to fit the listing's character budget, which can strip the keywords Claude needs to match a request. See [Skill descriptions are cut short](/docs/en/skills.md#sk…
Deploy self-hosted environments to production
Claude Code CLI · in the page
self-hosted-environments-deploy
…adopts orphans, it finishes on its own, but unsupervised: its timeout budget no longer applies, and a write to the closed log pipe can kill it with `SIGPIPE`, so a hook that needs to survive a forced…
Self-hosted environments reference
Claude Code CLI · in the page
self-hosted-environments-reference
…sec <n>` | `SELF_HOSTED_RUNNER_POST_SESSION_HOOK_TIMEOUT_MS` | `60` | Budget for the [`post-session` hook](/docs/en/self-hosted-environments-configuration#post-session) on every session end, including…
Configure server-managed settings
Claude Code CLI · in the page
server-managed-settings
…1M_CONTEXT` * Terminal UI and accessibility options * Numeric limits, budgets, and timeouts Other delivered variables can require the user's approval before they take effect. For example, in interact…
Manage sessions
Claude Code CLI · in the page
sessions
…* 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.md#turn-off-agent-view), Claude Code send…
Claude Code settings
Claude Code CLI · in the page
settings
…e, not what the model generates: to reduce thinking spend, [lower the budget or disable thinking](/docs/en/model-config#extended-thinking) instead. This setting has no effect in non-interactive mode (…
All settings
Claude Code CLI · in the page
settings-reference
…r each response | Interface and terminal | Any file | | [`skillListingBudgetFraction`](#skilllistingbudgetfraction) | Reserve more or less context for the [skill listing](/docs/en/skills.md#skill-desc…
Extend Claude with skills
Claude Code CLI · in the page
skills
…#when-context-fills-up) carries invoked skills forward within a token budget. When the conversation is summarized to free context, Claude Code re-attaches the most recent invocation of each skill afte…
Customize your status line
Claude Code CLI · in the page
statusline
…vocation: `low`, `medium`, `high`, `xhigh`, `max`, or a numeric token budget. This is the configured value, and the effort Claude Code applies can differ when the model doesn't support that level. Omi…
Create custom subagents
Claude Code CLI · in the page
sub-agents
…agent, and keep the combined set within the [15,000-token description budget](#understand-automatic-delegation) > * **Limit tool access:** grant only necessary permissions for security and focus > * *…
Enterprise deployment overview
Claude Code CLI · in the page
third-party-integrations
…need centralized usage tracking across teams, custom rate limiting or budgets, or centralized authentication management. Configure with the `ANTHROPIC_BASE_URL`, `ANTHROPIC_BEDROCK_BASE_URL`, `ANTHROP…