Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.308 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial
HomeDocsSearch
Search the documentation

72 pages for /cost.

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

Cost Report Claude Developer Platform · path api/beta/organization/analytics/cost_report Get Cost Over Time Claude Developer Platform · path api/beta/organization/analytics/cost_report/list Cost Report Claude Developer Platform · path api/beta/organization/cost_report Get Cost Report Claude Developer Platform · path api/beta/organization/cost_report/retrieve Track cost and usage Claude Code CLI · path agent-sdk/cost-tracking api-credits-for-subscribers Claude Developer Platform · in the page about-claude/api-credits-for-subscribers …ude/pricing) and track spend on the [Cost](https://platform.claude.com/cost) page in the Claude Console. ## Related * [Rate limits and spend limits](https://platform.claude.com/docs/en/api/rate-limi… optimizing-for-cost-and-intelligence Claude Developer Platform · in the page about-claude/models/optimizing-for-cost-and-intelligence …other trades quality for cost](https://platform.claude.com/docs/images/cost-intel/frontier.svg) </Frame> The levers come in two kinds: * **Free wins** cut spend without touching quality: prompt cach… User Cost Report Claude Developer Platform · in the page api/beta/organization/analytics/user_cost_report …and automation traffic, use the bucketed `/v1/organizations/analytics/cost_report` endpoint. Available to organizations on a Claude Enterprise plan. Requires an API key with the `read:analytics` scop… Get Per-User Cost Claude Developer Platform · in the page api/beta/organization/analytics/user_cost_report/list …and automation traffic, use the bucketed `/v1/organizations/analytics/cost_report` endpoint. Available to organizations on a Claude Enterprise plan. Requires an API key with the `read:analytics` scop… First request Claude Developer Platform · in the page manage-claude/usage-cost-api …platform.claude.com/usage`) and the [Cost](https://platform.claude.com/cost) page (`platform.claude.com/cost`) in the Claude Console. This API allows you to better monitor, analyze, and optimize your… overview Claude Developer Platform · in the page release-notes/overview …role can now access the [Cost](https://console.anthropic.com/settings/cost) page. Previously, the Developer role allowed access to the [Usage](https://console.anthropic.com/settings/usage) page, but… Use Claude Code with a screen reader Claude Code CLI · in the page accessibility …summary when Claude Code exits, if your account [shows costs](/docs/en/costs.md) | Claude Code keeps the terminal cursor on the input caret, so your screen reader's read-current-line command reads th… Set up Claude Code for your organization Claude Code CLI · in the page admin-setup …tics.md), [Monitoring](/docs/en/monitoring-usage.md), [Costs](/docs/en/costs.md) | | [Review data handling](#review-data-handling) | Data retention and compliance posture | [Data usage](/docs/en/data-… Escalate hard decisions with the advisor tool Claude Code CLI · in the page advisor …or usage counts toward the session totals shown by [`/usage`](/docs/en/costs#track-your-costs). For how advisor tokens are reported in API responses, see [Usage and billing](https://platform.claude.c… How the agent loop works Claude Code CLI · in the page agent-sdk/agent-loop …ith the `error_max_budget_usd` result. A [`/clear`](/docs/en/agent-sdk/cost-tracking) starts the budget over. #### Budget headroom Claude Code compares spend with the `max_budget_usd` / `maxBudgetUs… Configure your agent Claude Code CLI · in the page agent-sdk/configuration …ation end with the same budget result. A [`/clear`](/docs/en/agent-sdk/cost-tracking) starts the budget over The two caps treat `0` differently: * **`maxTurns` / `max_turns`**: `0` runs the session… Hosting the Agent SDK Claude Code CLI · in the page agent-sdk/hosting …on can spend dollars in tokens. See [Cost tracking](/docs/en/agent-sdk/cost-tracking.md) for per-session token accounting. ### Multi-tenant isolation Default SDK behavior reads settings and `CLAUDE.… Modifying system prompts Claude Code CLI · in the page agent-sdk/modifying-system-prompts …ext] } })) { // ... } ``` [Track cache tokens](/docs/en/agent-sdk/cost-tracking.md#track-cache-tokens) describes the `cache_creation_input_tokens` and `cache_read_input_tokens` fields on each res… Observability with OpenTelemetry Claude Code CLI · in the page agent-sdk/observability …exporting to a backend, see [Track cost and usage](/docs/en/agent-sdk/cost-tracking.md). > [!NOTE] > > For the Claude API or Managed Agents, see [OpenTelemetry for the Claude API](https://platform.c… Agent SDK reference - Python Claude Code CLI · in the page agent-sdk/python …eats and reset behavior, see [Track cost and usage](/docs/en/agent-sdk/cost-tracking.md) | | `disallowed_tools` | `list[str]` | `[]` | Tools to deny. A bare name such as `"Bash"` removes the tool from… Agent SDK reference - TypeScript Claude Code CLI · in the page agent-sdk/typescript …eats and reset behavior, see [Track cost and usage](/docs/en/agent-sdk/cost-tracking.md) | | `maxThinkingTokens` | `number` | `undefined` | *Deprecated:* Use `thinking` instead. Maximum tokens for thi… Orchestrate teams of Claude Code sessions Claude Code CLI · in the page agent-teams …session is more cost-effective. See [agent team token costs](/docs/en/costs.md#agent-team-token-costs) for usage guidance. An in-process teammate's requests fall outside the main conversation's [cac… Run agents in parallel Claude Code CLI · in the page agents …ions or subagents at once multiplies token usage. See [Costs](/docs/en/costs.md) for usage and rate-limit details. ## Choose an approach The right approach depends on who coordinates the work, wheth… Track team usage with analytics Claude Code CLI · in the page analytics …ents to your observability stack * [Manage costs effectively](/docs/en/costs.md): set spend limits and optimize token usage * [Permissions](/docs/en/permissions.md): configure roles and permissions Auto mode classifier request charges Claude Code CLI · in the page auto-mode-classifier-billing …r gives no verdict for an action * [Manage costs effectively](/docs/en/costs.md): track token usage and reduce Claude Code costs Configure auto mode Claude Code CLI · in the page auto-mode-config …actions, but the boundary can be lost if [context compaction](/docs/en/costs.md#reduce-token-usage) removes the message that stated it. Use an ask or deny rule for a durable guarantee. | ## Where the… Best practices for Claude Code Claude Code CLI · in the page best-practices …s line](/docs/en/statusline.md), and see [Reduce token usage](/docs/en/costs.md#reduce-token-usage) for strategies on reducing token usage. *** ## Give Claude a way to verify its work > [!TIP] > >… Claude Code changelog Claude Code CLI · in the page changelog …members with the Claude Tag Admin permission **Changed** * Updated `/cost`, the status line, `--max-budget-usd` and the SDK's cost figures to price Sonnet 5.5 cache reads at $0.10 per million tokens… Explore the .claude directory Claude Code CLI · in the page claude-directory ….html` and timestamped report copies written by [`/insights`](/docs/en/costs#analyze-your-usage-patterns), plus cached per-session analysis data used to build them | | `skills/.trash/`, `plugins/.tras… Let Claude coordinate ongoing work with Projects Claude Code CLI · in the page claude-projects …your plan's limits only if you have turned on [usage credits](/docs/en/costs.md#add-usage-credits-to-your-subscription) for your account. A thread can't turn them on for you. ### What draws on your p… Scan your codebase for vulnerabilities Claude Code CLI · in the page claude-security …dels-and-providers), and each scan counts toward your [usage](/docs/en/costs.md). If you want a managed service that monitors your repositories, or want to run scans on [Claude Mythos](https://platfor… CLI reference Claude Code CLI · in the page cli-reference …or `--resume`, totals [restored from earlier runs](/docs/en/agent-sdk/cost-tracking#accumulate-costs-across-multiple-calls) don't count toward it. Once spend reaches the cap, spawning another subagen… Code Review costs and usage Claude Code CLI · in the page code-review-costs …review checks and what it posts * [Manage costs effectively](/docs/en/costs.md): spend controls and usage tracking for the rest of Claude Code Commands Claude Code CLI · in the page commands …| | `/cost` | Alias for `/usage`… Explore the context window Claude Code CLI · in the page context-window …h actions invalidate the cached prefix * [Reduce token usage](/docs/en/costs#reduce-token-usage): strategies for keeping context usage low Message your other Claude Code sessions Claude Code CLI · in the page cross-session-messaging …vering it. Once delivered, the message counts toward [usage](/docs/en/costs.md) like a prompt you type. The receiving Claude can reply to the sender with `SendMessage`, except in the cases under [Rep… Desktop application Claude Code CLI · in the page desktop …the app. Usage counts toward your [subscription plan limits](/docs/en/costs.md) with no separate compute charges. To add, edit, or [archive](/docs/en/cloud-environments.md#archive-an-environment) a… Environment variables Claude Code CLI · in the page env-vars …` alias resolves to, also used for [background functionality](/docs/en/costs#background-token-usage). See [Model configuration](/docs/en/model-config#environment-variables)… Error reference Claude Code CLI · in the page errors …from draining the org balance. See [Manage costs effectively](/docs/en/costs.md). ### Could not update your spend limit The server rejected a spend limit change you made from the prompt that appears… Speed up responses with fast mode Claude Code CLI · in the page fast-mode …credits. To see your own usage-credits spend, run [`/usage`](/docs/en/costs#check-your-usage-credits-spend). For where your organization sees that spend, see [Claude for Teams and Enterprise](/docs/e… Claude Code GitHub Actions Claude Code CLI · in the page github-actions …-usage.md). For how usage is measured and billed, see [costs](/docs/en/costs.md). ## Use a cloud provider By default, the Claude Code GitHub Action calls the Claude API directly with your API key or… Keep Claude working toward a goal Claude Code CLI · in the page goal …el-aliases) to that model and runs [background functionality](/docs/en/costs.md#background-token-usage), such as conversation summarization, on it. The evaluator runs on whichever provider your sessi… Run Claude Code programmatically Claude Code CLI · in the page headless …lers can track spend without consulting the [usage dashboard](/docs/en/costs.md). When you continue an earlier conversation with `--continue` or `--resume`, the run reports the conversation's whole to… Hooks reference Claude Code CLI · in the page hooks …to the model Claude Code uses for [background functionality](/docs/en/costs.md#background-token-usage) | ### Reference scripts by path Use these placeholders to reference hook scripts relative to t… How Claude Code works Claude Code CLI · in the page how-claude-code-works …-costs) for what each feature costs, and [reduce token usage](/docs/en/costs.md#reduce-token-usage) for tips on managing context. ## Stay safe with checkpoints and permissions Claude has two safety… Interactive mode Claude Code CLI · in the page interactive-mode …its own. * **Early**: when you finish adding [usage credits](/docs/en/costs.md#add-usage-credits-to-your-subscription) with `/usage-credits`, sign back in after `/upgrade`, or switch models with `/mo… Customize keyboard shortcuts Claude Code CLI · in the page keybindings …Usage` | F | Send your session the [`/usage` recommendations](/docs/en/costs#apply-recommendations-with-the-fix-shortcut) Claude Code can apply, when the `/usage` footer offers a fix. Requires v2.1.30… Set up Claude Code in a monorepo or large codebase Claude Code CLI · in the page large-codebases …after Claude edits files * Review [Manage costs effectively](/docs/en/costs.md) to understand how codebase size affects token usage and how to set spend limits before a wider rollout * Read [How Clau… Claude Code gateway compatibility guide Claude Code CLI · in the page llm-gateway-protocol …ig.md#one-hour-prompt-cache) | | Model for [background tasks](/docs/en/costs.md#background-token-usage) unless `ANTHROPIC_DEFAULT_HAIKU_MODEL` pins one | The default Sonnet model, or the main model on… Roll out an LLM gateway for your organization Claude Code CLI · in the page llm-gateway-rollout …aude Code's defaults, or you route [background functionality](/docs/en/costs.md#background-token-usage) to a different model. Route both the override names and the built-in model IDs Claude Code reque…
Feedback