One read of Claude Developer Platformapi-20261120T193709Z
650 pages moved out of 936 read.
Pages moved
650
significant first
Pages read
936
in this capture
Captured
19:37 UTC
Corpus hash
721918d8c137
corpus-hash
What this read moved
1-25 of 650, page 1 of 26This capture is too large to show at once. Changes 1-25 of 650 are below, significant first; the rest are on the following screens.
about-claude/api-credits-for-subscribers Changed · +34 / -34 lines
from line 12
1212
1313## Summary
1414
15| Topic | Details |
16| -------------------------------------- | ------------------------------------------------------------------------- |
17| **Eligible plans** | Max, Ultra, and Team, including discounted Team plans |
18| **Monthly amount** | $100 USD (Max), $200 USD (Ultra), up to $500 USD (Team, pooled\*) |
19| **Covers** | Claude API, Claude Managed Agents, the Claude Agent SDK, and playground |
20| **Doesn’t cover** | Claude Code, extra usage in the Claude apps |
21| **Refresh** | Each billing cycle (or monthly for annual plans) |
22| **Expiry** | End of each billing cycle (or monthly for annual plans), with no rollover |
23| **Payment method for Claude Platform** | Not required |
15| Topic | Details |
16| ----- | ----- |
17| **Eligible plans** | Max, Ultra, and Team, including discounted Team plans |
18| **Monthly amount** | $100 USD (Max), $200 USD (Ultra), up to $500 USD (Team, pooled\*) |
19| **Covers** | Claude API, Claude Managed Agents, the Claude Agent SDK, and playground |
20| **Doesn’t cover** | Claude Code, extra usage in the Claude apps |
21| **Refresh** | Each billing cycle (or monthly for annual plans) |
22| **Expiry** | End of each billing cycle (or monthly for annual plans), with no rollover |
23| **Payment method for Claude Platform** | Not required |
2424
2525## API credit amounts
2626
27| Plan | Monthly credit |
28| --------------------------------------------- | -------------------------------------------------------------------- |
29| Max | $100 USD |
30| Ultra | $200 USD |
31| Team, Standard seat | $20 USD per seat\* |
32| Team, Premium seat | $100 USD per seat\* |
27| Plan | Monthly credit |
28| ----- | ----- |
29| Max | $100 USD |
30| Ultra | $200 USD |
31| Team, Standard seat | $20 USD per seat\* |
32| Team, Premium seat | $100 USD per seat\* |
3333| Discounted Team plans (Nonprofit, Scientists) | Same as Team: $20 USD per Standard seat, $100 USD per Premium seat\* |
3434
3535\*On Team plans, credits for all seats are pooled into one monthly balance, capped at $500 USD. Each monthly credit, including the first, is based on the seats on your plan at the start of that billing month. For example, a team with three Standard seats and two Premium seats receives $260 USD a month. Adding another Premium seat raises the next month’s credit to $360 USD.
from line 47
4747
4848You need both of the following roles:
4949
50| Where | Required role |
51| ------------------------------- | ------------------------------------------------------------ |
52| **Claude plan** | Max or Ultra: the subscriber<br />Team: Primary Owner, Owner |
53| **Claude Console organization** | Admin or Billing |
50| Where | Required role |
51| ----- | ----- |
52| **Claude plan** | Max or Ultra: the subscriber<br />Team: Primary Owner, Owner |
53| **Claude Console organization** | Admin or Billing |
5454
5555If you don’t have a Claude Console organization, create one in the Console at [platform.claude.com](https://platform.claude.com/) first, or create one during the claim flow.
5656
from line 80
8080
8181These API credits can only be used on the Claude Platform. The following table shows which products are covered:
8282
83| Product | Covered |
84| ------------------------------------------------------------------------------------------ | ------- |
85| [Claude API](https://platform.claude.com/docs/en/api/overview) | Yes |
86| [Claude Managed Agents](https://platform.claude.com/docs/en/managed-agents/overview) | Yes |
87| [Claude Agent SDK](https://code.claude.com/docs/en/agent-sdk/overview) | Yes |
88| [Playground](https://platform.claude.com/playground) in the Claude Console | Yes |
89| Claude Code | No |
90| Extra usage in the Claude apps | No |
91| Any [cloud platform](https://platform.claude.com/docs/en/api/overview#cloud-platform-apis) | No |
83| Product | Covered |
84| ----- | ----- |
85| [Claude API](https://platform.claude.com/docs/en/api/overview) | Yes |
86| [Claude Managed Agents](https://platform.claude.com/docs/en/managed-agents/overview) | Yes |
87| [Claude Agent SDK](https://code.claude.com/docs/en/agent-sdk/overview) | Yes |
88| [Playground](https://platform.claude.com/playground) in the Claude Console | Yes |
89| Claude Code | No |
90| Extra usage in the Claude apps | No |
91| Any [cloud platform](https://platform.claude.com/docs/en/api/overview#cloud-platform-apis) | No |
9292
9393## How credits are applied
9494
from line 127
127127
128128## If your plan changes
129129
130| Change | What happens |
131| -------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
132| Cancel, downgrade to an ineligible plan, or refund | New credits stop when your plan ends. Credits you already have stay usable until they expire. |
133| Upgrade from Max to Ultra | You receive prorated API credits right away, then $200 USD each billing cycle. If you subscribe through Google Play, the $200 USD credit arrives later, by your next renewal at the latest. |
134| Upgrade from Max or Ultra to Team | The link to your Max or Ultra plan ends. A Team owner can claim the team’s credits after the Team plan has been active for 7 days. |
135| Add or remove Team seats | Seats added to your plan count from the next billing month’s credit. Seats you remove stay on your plan until it renews, so the credit might be lower after that. The pool stays capped at $500 USD. |
130| Change | What happens |
131| ----- | ----- |
132| Cancel, downgrade to an ineligible plan, or refund | New credits stop when your plan ends. Credits you already have stay usable until they expire. |
133| Upgrade from Max to Ultra | You receive prorated API credits right away, then $200 USD each billing cycle. If you subscribe through Google Play, the $200 USD credit arrives later, by your next renewal at the latest. |
134| Upgrade from Max or Ultra to Team | The link to your Max or Ultra plan ends. A Team owner can claim the team’s credits after the Team plan has been active for 7 days. |
135| Add or remove Team seats | Seats added to your plan count from the next billing month’s credit. Seats you remove stay on your plan until it renews, so the credit might be lower after that. The pool stays capped at $500 USD. |
136136
137137## Use your credits efficiently
138138
about-claude/model-deprecations Changed · +65 / -65 lines
from line 70
7070
7171Current and recently retired models are listed in the following table with their status:
7272
73| API model name | Current state | Deprecated | Tentative retirement date |
74| :------------------------- | :------------ | :----------------- | :--------------------------------- |
75| claude-fable-5-2 | Active | N/A | Not sooner than November 9, 2027 |
76| claude-mythos-5-2 | Active | N/A | Not sooner than November 9, 2027 |
77| claude-fable-5-1 | Active | N/A | Not sooner than September 1, 2027 |
78| claude-mythos-5-1 | Active | N/A | Not sooner than September 1, 2027 |
79| claude-fable-5 | Active | N/A | Not sooner than June 9, 2027 |
80| claude-mythos-5 | Active | N/A | Not sooner than June 9, 2027 |
81| claude-mythos-preview | Deprecated | June 9, 2026 | To be announced |
82| claude-opus-5-5 | Active | N/A | Not sooner than September 22, 2027 |
83| claude-opus-5 | Active | N/A | Not sooner than July 24, 2027 |
84| claude-opus-4-8 | Active | N/A | Not sooner than May 28, 2027 |
85| claude-opus-4-7 | Active | N/A | Not sooner than April 16, 2027 |
86| claude-opus-4-6 | Active | N/A | Not sooner than February 5, 2027 |
87| claude-opus-4-5-20251101 | Active | N/A | Not sooner than November 24, 2026 |
88| claude-opus-4-1-20250805 | Retired | June 5, 2026 | August 5, 2026 |
89| claude-opus-4-20250514 | Retired | April 14, 2026 | June 15, 2026 |
90| claude-sonnet-5-5 | Active | N/A | Not sooner than September 28, 2027 |
91| claude-sonnet-5 | Active | N/A | Not sooner than June 30, 2027 |
92| claude-sonnet-4-6 | Active | N/A | Not sooner than February 17, 2027 |
93| claude-sonnet-4-5-20250929 | Deprecated | September 30, 2026 | November 30, 2026 |
94| claude-sonnet-4-20250514 | Retired | April 14, 2026 | June 15, 2026 |
95| claude-3-7-sonnet-20250219 | Retired | October 28, 2025 | February 19, 2026 |
96| claude-haiku-5-5 | Active | N/A | Not sooner than October 7, 2027 |
97| claude-haiku-4-5-20251001 | Active | N/A | Not sooner than October 15, 2026 |
98| claude-3-5-haiku-20241022 | Retired | December 19, 2025 | February 19, 2026 |
99| claude-3-haiku-20240307 | Retired | February 19, 2026 | April 20, 2026 |
73| API model name | Current state | Deprecated | Tentative retirement date |
74| :---- | :---- | :---- | :---- |
75| claude-fable-5-2 | Active | N/A | Not sooner than November 9, 2027 |
76| claude-mythos-5-2 | Active | N/A | Not sooner than November 9, 2027 |
77| claude-fable-5-1 | Active | N/A | Not sooner than September 1, 2027 |
78| claude-mythos-5-1 | Active | N/A | Not sooner than September 1, 2027 |
79| claude-fable-5 | Active | N/A | Not sooner than June 9, 2027 |
80| claude-mythos-5 | Active | N/A | Not sooner than June 9, 2027 |
81| claude-mythos-preview | Deprecated | June 9, 2026 | To be announced |
82| claude-opus-5-5 | Active | N/A | Not sooner than September 22, 2027 |
83| claude-opus-5 | Active | N/A | Not sooner than July 24, 2027 |
84| claude-opus-4-8 | Active | N/A | Not sooner than May 28, 2027 |
85| claude-opus-4-7 | Active | N/A | Not sooner than April 16, 2027 |
86| claude-opus-4-6 | Active | N/A | Not sooner than February 5, 2027 |
87| claude-opus-4-5-20251101 | Active | N/A | Not sooner than November 24, 2026 |
88| claude-opus-4-1-20250805 | Retired | June 5, 2026 | August 5, 2026 |
89| claude-opus-4-20250514 | Retired | April 14, 2026 | June 15, 2026 |
90| claude-sonnet-5-5 | Active | N/A | Not sooner than September 28, 2027 |
91| claude-sonnet-5 | Active | N/A | Not sooner than June 30, 2027 |
92| claude-sonnet-4-6 | Active | N/A | Not sooner than February 17, 2027 |
93| claude-sonnet-4-5-20250929 | Deprecated | September 30, 2026 | November 30, 2026 |
94| claude-sonnet-4-20250514 | Retired | April 14, 2026 | June 15, 2026 |
95| claude-3-7-sonnet-20250219 | Retired | October 28, 2025 | February 19, 2026 |
96| claude-haiku-5-5 | Active | N/A | Not sooner than October 7, 2027 |
97| claude-haiku-4-5-20251001 | Active | N/A | Not sooner than October 15, 2026 |
98| claude-3-5-haiku-20241022 | Retired | December 19, 2025 | February 19, 2026 |
99| claude-3-haiku-20240307 | Retired | February 19, 2026 | April 20, 2026 |
100100
101101## Deprecation history
102102
from line 106
106106
107107On September 30, 2026, Anthropic notified developers using Claude Sonnet 4.5 of its upcoming retirement on the Claude API.
108108
109| Retirement date | Deprecated model | Recommended replacement |
110| ----------------- | ---------------------------- | ----------------------- |
111| November 30, 2026 | `claude-sonnet-4-5-20250929` | `claude-sonnet-5-5` |
109| Retirement date | Deprecated model | Recommended replacement |
110| ----- | ----- | ----- |
111| November 30, 2026 | `claude-sonnet-4-5-20250929` | `claude-sonnet-5-5` |
112112
113113This retirement includes `claude-sonnet-4-5`, the same model’s ID without a date.
114114
from line 122
122122
123123On June 5, 2026, Anthropic notified developers using Claude Opus 4.1 of its upcoming retirement on the Claude API.
124124
125| Retirement date | Deprecated model | Recommended replacement |
126| --------------- | -------------------------- | ----------------------- |
127| August 5, 2026 | `claude-opus-4-1-20250805` | `claude-opus-4-8` |
125| Retirement date | Deprecated model | Recommended replacement |
126| ----- | ----- | ----- |
127| August 5, 2026 | `claude-opus-4-1-20250805` | `claude-opus-4-8` |
128128
129129### 2026-04-14: Claude Sonnet 4 and Claude Opus 4 models
130130
from line 134
134134
135135On April 14, 2026, Anthropic notified developers using Claude Sonnet 4 and Claude Opus 4 models of their upcoming retirement on the Claude API.
136136
137| Retirement date | Deprecated model | Recommended replacement |
138| --------------- | -------------------------- | ----------------------- |
139| June 15, 2026 | `claude-sonnet-4-20250514` | `claude-sonnet-5-5` |
140| June 15, 2026 | `claude-opus-4-20250514` | `claude-opus-4-8` |
137| Retirement date | Deprecated model | Recommended replacement |
138| ----- | ----- | ----- |
139| June 15, 2026 | `claude-sonnet-4-20250514` | `claude-sonnet-5-5` |
140| June 15, 2026 | `claude-opus-4-20250514` | `claude-opus-4-8` |
141141
142142### 2026-02-19: Claude Haiku 3 model
143143
from line 147
147147
148148On February 19, 2026, Anthropic notified developers using Claude Haiku 3 of its upcoming retirement on the Claude API.
149149
150| Retirement date | Deprecated model | Recommended replacement |
151| --------------- | ------------------------- | --------------------------- |
152| April 20, 2026 | `claude-3-haiku-20240307` | `claude-haiku-4-5-20251001` |
150| Retirement date | Deprecated model | Recommended replacement |
151| ----- | ----- | ----- |
152| April 20, 2026 | `claude-3-haiku-20240307` | `claude-haiku-4-5-20251001` |
153153
154154### 2025-12-19: Claude Haiku 3.5 model
155155
from line 159
159159
160160On December 19, 2025, Anthropic notified developers using Claude Haiku 3.5 of its upcoming retirement on the Claude API.
161161
162| Retirement date | Deprecated model | Recommended replacement |
163| ----------------- | --------------------------- | --------------------------- |
162| Retirement date | Deprecated model | Recommended replacement |
163| ----- | ----- | ----- |
164164| February 19, 2026 | `claude-3-5-haiku-20241022` | `claude-haiku-4-5-20251001` |
165165
166166### 2025-10-28: Claude Sonnet 3.7 model
from line 171
171171
172172On October 28, 2025, Anthropic notified developers using Claude Sonnet 3.7 of its upcoming retirement on the Claude API.
173173
174| Retirement date | Deprecated model | Recommended replacement |
175| ----------------- | ---------------------------- | ----------------------- |
176| February 19, 2026 | `claude-3-7-sonnet-20250219` | `claude-sonnet-5-5` |
174| Retirement date | Deprecated model | Recommended replacement |
175| ----- | ----- | ----- |
176| February 19, 2026 | `claude-3-7-sonnet-20250219` | `claude-sonnet-5-5` |
177177
178178### 2025-08-13: Claude Sonnet 3.5 models
179179
from line 183
183183
184184On August 13, 2025, Anthropic notified developers using Claude Sonnet 3.5 models of their upcoming retirement.
185185
186| Retirement date | Deprecated model | Recommended replacement |
187| ---------------- | ---------------------------- | ----------------------- |
188| October 28, 2025 | `claude-3-5-sonnet-20240620` | `claude-sonnet-5-5` |
189| October 28, 2025 | `claude-3-5-sonnet-20241022` | `claude-sonnet-5-5` |
186| Retirement date | Deprecated model | Recommended replacement |
187| ----- | ----- | ----- |
188| October 28, 2025 | `claude-3-5-sonnet-20240620` | `claude-sonnet-5-5` |
189| October 28, 2025 | `claude-3-5-sonnet-20241022` | `claude-sonnet-5-5` |
190190
191191### 2025-06-30: Claude Opus 3 model
192192
from line 196
196196
197197On June 30, 2025, Anthropic notified developers using Claude Opus 3 of its upcoming retirement.
198198
199| Retirement date | Deprecated model | Recommended replacement |
200| --------------- | ------------------------ | ----------------------- |
201| January 5, 2026 | `claude-3-opus-20240229` | `claude-opus-4-8` |
199| Retirement date | Deprecated model | Recommended replacement |
200| ----- | ----- | ----- |
201| January 5, 2026 | `claude-3-opus-20240229` | `claude-opus-4-8` |
202202
203203### 2025-01-21: Claude 2, Claude 2.1, and Claude Sonnet 3 models
204204
from line 208
208208
209209On January 21, 2025, Anthropic notified developers using Claude 2, Claude 2.1, and Claude Sonnet 3 models of their upcoming retirements.
210210
211| Retirement date | Deprecated model | Recommended replacement |
212| --------------- | -------------------------- | ----------------------- |
213| July 21, 2025 | `claude-2.0` | `claude-opus-4-8` |
214| July 21, 2025 | `claude-2.1` | `claude-opus-4-8` |
215| July 21, 2025 | `claude-3-sonnet-20240229` | `claude-sonnet-5-5` |
211| Retirement date | Deprecated model | Recommended replacement |
212| ----- | ----- | ----- |
213| July 21, 2025 | `claude-2.0` | `claude-opus-4-8` |
214| July 21, 2025 | `claude-2.1` | `claude-opus-4-8` |
215| July 21, 2025 | `claude-3-sonnet-20240229` | `claude-sonnet-5-5` |
216216
217217### 2024-09-04: Claude 1 and Instant models
218218
from line 222
222222
223223On September 4, 2024, Anthropic notified developers using Claude 1 and Instant models of their upcoming retirements.
224224
225| Retirement date | Deprecated model | Recommended replacement |
226| ---------------- | -------------------- | --------------------------- |
227| November 6, 2024 | `claude-1.0` | `claude-haiku-4-5-20251001` |
228| November 6, 2024 | `claude-1.1` | `claude-haiku-4-5-20251001` |
229| November 6, 2024 | `claude-1.2` | `claude-haiku-4-5-20251001` |
230| November 6, 2024 | `claude-1.3` | `claude-haiku-4-5-20251001` |
225| Retirement date | Deprecated model | Recommended replacement |
226| ----- | ----- | ----- |
227| November 6, 2024 | `claude-1.0` | `claude-haiku-4-5-20251001` |
228| November 6, 2024 | `claude-1.1` | `claude-haiku-4-5-20251001` |
229| November 6, 2024 | `claude-1.2` | `claude-haiku-4-5-20251001` |
230| November 6, 2024 | `claude-1.3` | `claude-haiku-4-5-20251001` |
231231| November 6, 2024 | `claude-instant-1.0` | `claude-haiku-4-5-20251001` |
232232| November 6, 2024 | `claude-instant-1.1` | `claude-haiku-4-5-20251001` |
233233| November 6, 2024 | `claude-instant-1.2` | `claude-haiku-4-5-20251001` |
from line 236
236236
237237Anthropic occasionally deprecates request parameters that no longer apply to current models. A new model can reject a deprecated parameter, and a new [API version](https://platform.claude.com/docs/en/api/versioning) can remove it for every model.
238238
239| Parameter | Status | Behavior | Recommended replacement |
240| ------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
239| Parameter | Status | Behavior | Recommended replacement |
240| ----- | ----- | ----- | ----- |
241241| `temperature`, `top_p`, `top_k` | Removed in [API version `2026-10-21`](https://platform.claude.com/docs/en/api/migration-2026-10-21#sampling-parameters) | Returns a 400 error. Earlier API versions return it when set to a non-default value on Claude 4.7 and later models and [Claude Mythos Preview](https://anthropic.com/glasswing). | Omit and use [prompting](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices) to guide model behavior. |
242242
243243For migration steps, see [Migration guides](https://platform.claude.com/docs/en/about-claude/models/migration-guide).
about-claude/models/choosing-a-model Changed · +6 / -6 lines
from line 63
6363
6464Most workloads start with Claude Opus 5.5.
6565
66| When you need... | Consider starting with... | Example use cases |
67| ------------------------------------------------------------------------- | ------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
68| The highest available capability | Claude Fable 5.2 | Agent sessions that run for hours, multistep deep research, analysis carried through to a finished document, spreadsheet, or deck |
69| Complex agentic coding and enterprise work | Claude Opus 5.5 | Multihour autonomous coding agents, large-scale refactoring, complex systems engineering, vision-heavy workflows, computer use |
70| Speed and capability for everyday coding, agent, and enterprise workloads | Claude Sonnet 5.5 | Code generation, data analysis, content creation, visual understanding, agentic tool use |
71| The lowest latency and price | Claude Haiku 5.5 | Real-time applications, high-volume intelligent processing, cost-sensitive deployments needing strong reasoning, subagent tasks |
66| When you need... | Consider starting with... | Example use cases |
67| ----- | ----- | ----- |
68| The highest available capability | Claude Fable 5.2 | Agent sessions that run for hours, multistep deep research, analysis carried through to a finished document, spreadsheet, or deck |
69| Complex agentic coding and enterprise work | Claude Opus 5.5 | Multihour autonomous coding agents, large-scale refactoring, complex systems engineering, vision-heavy workflows, computer use |
70| Speed and capability for everyday coding, agent, and enterprise workloads | Claude Sonnet 5.5 | Code generation, data analysis, content creation, visual understanding, agentic tool use |
71| The lowest latency and price | Claude Haiku 5.5 | Real-time applications, high-volume intelligent processing, cost-sensitive deployments needing strong reasoning, subagent tasks |
7272
7373***
7474
about-claude/models/optimizing-for-cost-and-intelligence Changed · +95 / -95 lines
from line 25
2525
2626Match your situation to a row.
2727
28| Your situation | Do this | Where |
29| ------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
30| Any workload, any model | Turn on prompt caching and trim unneeded tokens; both are free | [Cache repeated context](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#cache-repeated-context) · [Trim tokens](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#trim-input-and-context-tokens) |
31| A person waits between turns | Count the gaps between your requests, then pick the cache duration from the table in that section | [Pick the cache duration](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#pick-the-cache-duration) |
32| Costs are too high; quality is fine | Try lower effort on the model you use now | [Tune effort](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#tune-effort) |
33| You are not on the latest model | Upgrade; on the coding benchmarks in that section each newer model solved at least as many tasks as the one before it, usually for less per solved task | [Upgrade the model](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#upgrade-the-model) |
34| You are choosing or switching models | Compare on cost per completed task, not per token | [Compare models](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#compare-models-on-cost-per-task) |
35| High-volume work with outputs you can check | Try Claude Haiku 5.5 first | [Compare models](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#compare-models-on-cost-per-task) |
36| Quality isn’t good enough | If you lowered effort, restore it; otherwise try the next tier up at its default effort | [Tune effort](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#tune-effort) · [Compare models](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#compare-models-on-cost-per-task) |
37| Attempts end with `stop_reason: max_tokens` | Raise `max_tokens` to 64,000: in Anthropic’s tests only 7 of about 18,000 turns were longer, and cost per solved task did not rise | [Set budgets](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#set-budgets-and-output-caps) |
38| You can check outputs (tests, a verifier) | Run at `low` effort and re-run failures at `high`: in Anthropic’s tests, about 40% lower cost than everything at `high`, at the same pass rate | [Re-run failures](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#re-run-failures-at-higher-effort) |
39| Agent loops with a few very costly runs | Set a Claude Managed Agents session budget and a workspace spend limit | [Set budgets](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#set-budgets-and-output-caps) |
40| You want agent runs to finish sooner | Tell the model time matters and show it the elapsed time: 7% to 47% less time in Anthropic’s tests, for a few points of score | [Show the model elapsed time](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#show-the-model-elapsed-time) |
41| A lower-cost model stalls only on hard decisions | Try an advisor. It can help only when your model consults it; first price its model alone at low effort and measure the consult rate | [Advisor strategy](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#advisor-strategy-escalate-hard-decisions) |
42| The work exceeds one context window | Split the work and hand the parts to lower-cost models | [Orchestrator strategy](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#orchestrator-strategy-delegate-bulk-work) |
28| Your situation | Do this | Where |
29| ----- | ----- | ----- |
30| Any workload, any model | Turn on prompt caching and trim unneeded tokens; both are free | [Cache repeated context](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#cache-repeated-context) · [Trim tokens](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#trim-input-and-context-tokens) |
31| A person waits between turns | Count the gaps between your requests, then pick the cache duration from the table in that section | [Pick the cache duration](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#pick-the-cache-duration) |
32| Costs are too high; quality is fine | Try lower effort on the model you use now | [Tune effort](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#tune-effort) |
33| You are not on the latest model | Upgrade; on the coding benchmarks in that section each newer model solved at least as many tasks as the one before it, usually for less per solved task | [Upgrade the model](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#upgrade-the-model) |
34| You are choosing or switching models | Compare on cost per completed task, not per token | [Compare models](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#compare-models-on-cost-per-task) |
35| High-volume work with outputs you can check | Try Claude Haiku 5.5 first | [Compare models](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#compare-models-on-cost-per-task) |
36| Quality isn’t good enough | If you lowered effort, restore it; otherwise try the next tier up at its default effort | [Tune effort](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#tune-effort) · [Compare models](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#compare-models-on-cost-per-task) |
37| Attempts end with `stop_reason: max_tokens` | Raise `max_tokens` to 64,000: in Anthropic’s tests only 7 of about 18,000 turns were longer, and cost per solved task did not rise | [Set budgets](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#set-budgets-and-output-caps) |
38| You can check outputs (tests, a verifier) | Run at `low` effort and re-run failures at `high`: in Anthropic’s tests, about 40% lower cost than everything at `high`, at the same pass rate | [Re-run failures](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#re-run-failures-at-higher-effort) |
39| Agent loops with a few very costly runs | Set a Claude Managed Agents session budget and a workspace spend limit | [Set budgets](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#set-budgets-and-output-caps) |
40| You want agent runs to finish sooner | Tell the model time matters and show it the elapsed time: 7% to 47% less time in Anthropic’s tests, for a few points of score | [Show the model elapsed time](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#show-the-model-elapsed-time) |
41| A lower-cost model stalls only on hard decisions | Try an advisor. It can help only when your model consults it; first price its model alone at low effort and measure the consult rate | [Advisor strategy](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#advisor-strategy-escalate-hard-decisions) |
42| The work exceeds one context window | Split the work and hand the parts to lower-cost models | [Orchestrator strategy](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#orchestrator-strategy-delegate-bulk-work) |
4343
4444These results are Anthropic-internal ([Benchmarks referenced](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#refs)) and directional, not guarantees, so measure on your own workload with the [four-step method](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#measure-on-your-own-workload).
4545
from line 75
7575
7676Pricing other runs’ recorded token counts the same way, each model at its default effort, gives the average token cost per task without caching:
7777
78| Benchmark | Model | Without caching |
79| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------- | ------------------------------- |
80| SWE-bench Pro<sup>[3](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#refs)</sup> | Claude Opus 5.5 | 3.3 times the cost with caching |
81| SWE-bench Pro | Claude Sonnet 5.5 | 3.1 times the cost with caching |
82| Claude Managed Agents task set<sup>[25](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#refs)</sup>, whose sessions are short | Claude Haiku 5.5 | 1.7 times the cost with caching |
78| Benchmark | Model | Without caching |
79| ----- | ----- | ----- |
80| SWE-bench Pro<sup>[3](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#refs)</sup> | Claude Opus 5.5 | 3.3 times the cost with caching |
81| SWE-bench Pro | Claude Sonnet 5.5 | 3.1 times the cost with caching |
82| Claude Managed Agents task set<sup>[25](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#refs)</sup>, whose sessions are short | Claude Haiku 5.5 | 1.7 times the cost with caching |
8383| A small agent that triages bug reports ([Trim input and context tokens](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#trim-input-and-context-tokens))<sup>[16](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#refs)</sup> | Claude Sonnet 5.5 | 7.3 times the cost with caching |
8484
8585The saving varies with how many turns a task takes, because shorter loops re-read less.
from line 102
102102
103103To decide, count the gaps between consecutive requests in a conversation, and find your row in the following table. A row that names your model takes precedence over a row with “Any” in the Model column:
104104
105| Your gaps between requests | Model | Use |
106| ---------------------------------------------------------------------------------------------------------- | ------------------------------------- | -------------------------------------------------------- |
107| Turns arrive seconds apart | Any | 5-minute default |
108| About 1 gap in 20 or more falls between 5 minutes and an hour, and few gaps run over an hour | Any | 1-hour duration |
109| Gaps over an hour are common: about 60% or more of your pauses longer than 5 minutes also run past an hour | Any | 5-minute default |
110| Only 1 or 2 gaps in 20 fall between 5 minutes and an hour, and none lasts more than about half an hour | Claude Opus 5.5 and Claude Sonnet 5.5 | 5-minute cache kept warm, instead of the 1-hour duration |
111| A pause of more than 5 minutes comes before every turn, and few pauses run over an hour | Claude Opus 5.5 and Claude Sonnet 5.5 | 1-hour duration |
112| Pauses run for minutes | Claude Fable 5.1 and Claude Fable 5.2 | 5-minute cache kept warm, instead of the 1-hour duration |
113| Pauses run toward an hour, and few run over an hour | Claude Fable 5.1 and Claude Fable 5.2 | 1-hour duration |
105| Your gaps between requests | Model | Use |
106| ----- | ----- | ----- |
107| Turns arrive seconds apart | Any | 5-minute default |
108| About 1 gap in 20 or more falls between 5 minutes and an hour, and few gaps run over an hour | Any | 1-hour duration |
109| Gaps over an hour are common: about 60% or more of your pauses longer than 5 minutes also run past an hour | Any | 5-minute default |
110| Only 1 or 2 gaps in 20 fall between 5 minutes and an hour, and none lasts more than about half an hour | Claude Opus 5.5 and Claude Sonnet 5.5 | 5-minute cache kept warm, instead of the 1-hour duration |
111| A pause of more than 5 minutes comes before every turn, and few pauses run over an hour | Claude Opus 5.5 and Claude Sonnet 5.5 | 1-hour duration |
112| Pauses run for minutes | Claude Fable 5.1 and Claude Fable 5.2 | 5-minute cache kept warm, instead of the 1-hour duration |
113| Pauses run toward an hour, and few run over an hour | Claude Fable 5.1 and Claude Fable 5.2 | 1-hour duration |
114114
115115On Claude Haiku 5.5, use the “Any” rows: it reads the cache at the standard 0.1x the input price, twice the 0.05x of Claude Opus 5.5 and Claude Sonnet 5.5, so by list prices each keep-alive request costs twice as much, relative to the input price, as on those two models. A `max_tokens: 0` request refreshed its cache in a separate test (reference 16).
116116
from line 369
369369
370370The following table lists the results:
371371
372| Benchmark | Model | Effort | Score | Cost |
373| ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------- | ------------------ | --------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- |
374| SWE-bench Pro<sup>[3](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#refs)</sup> subset | Claude Sonnet 5.5 | `high` (default) | 87.6% of tasks solved | $0.11 USD per solved task |
375| SWE-bench Pro subset | Claude Opus 5.5 | `low` | 87.4% of tasks solved | $0.12 USD per solved task |
376| SWE-bench Pro subset | Claude Opus 5.5 | `medium` (default) | 92.8% of tasks solved | $0.22 USD per solved task |
377| SWE-bench Pro subset | Claude Fable 5.1 | `high` (default) | 92.3% of tasks solved (a single run) | $1.19 USD per solved task |
378| Internal agentic-coding benchmark<sup>[11](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#refs)</sup> | Claude Opus 5.5 | `medium` (default) | 86.6% | $0.84 USD per attempt |
379| Internal agentic-coding benchmark | Claude Fable 5.2 | `medium` | 88.9% (a single run) | $1.34 USD per attempt |
380| GPQA Diamond<sup>[9](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#refs)</sup> | Claude Haiku 5.5 | `medium` (default) | 85% accuracy, compared with 91% for each of Claude Opus 5.5 and Claude Sonnet 5.5 | About a twentieth of Claude Opus 5.5’s cost per correct answer and about a tenth of Claude Sonnet 5.5’s |
381| Claude Managed Agents task set<sup>[25](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#refs)</sup>, 79 tasks | Claude Haiku 5.5 | `medium` | 93% of attempts passed (a single run) | About $0.011 USD per passed attempt |
372| Benchmark | Model | Effort | Score | Cost |
373| ----- | ----- | ----- | ----- | ----- |
374| SWE-bench Pro<sup>[3](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#refs)</sup> subset | Claude Sonnet 5.5 | `high` (default) | 87.6% of tasks solved | $0.11 USD per solved task |
375| SWE-bench Pro subset | Claude Opus 5.5 | `low` | 87.4% of tasks solved | $0.12 USD per solved task |
376| SWE-bench Pro subset | Claude Opus 5.5 | `medium` (default) | 92.8% of tasks solved | $0.22 USD per solved task |
377| SWE-bench Pro subset | Claude Fable 5.1 | `high` (default) | 92.3% of tasks solved (a single run) | $1.19 USD per solved task |
378| Internal agentic-coding benchmark<sup>[11](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#refs)</sup> | Claude Opus 5.5 | `medium` (default) | 86.6% | $0.84 USD per attempt |
379| Internal agentic-coding benchmark | Claude Fable 5.2 | `medium` | 88.9% (a single run) | $1.34 USD per attempt |
380| GPQA Diamond<sup>[9](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#refs)</sup> | Claude Haiku 5.5 | `medium` (default) | 85% accuracy, compared with 91% for each of Claude Opus 5.5 and Claude Sonnet 5.5 | About a twentieth of Claude Opus 5.5’s cost per correct answer and about a tenth of Claude Sonnet 5.5’s |
381| Claude Managed Agents task set<sup>[25](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#refs)</sup>, 79 tasks | Claude Haiku 5.5 | `medium` | 93% of attempts passed (a single run) | About $0.011 USD per passed attempt |
382382
383383On 463 of the 478 problems in the SWE-bench Pro subset, the ones whose reference solutions also pass with no network access (reference 3), Claude Fable 5.2 at `high`, its default on the Messages API, solved 96.3% of tasks for $1.39 USD per solved task. The same Claude Fable 5.1 run at its default, counted over these 463 problems, solved 92.4% for $1.17 USD. At `low`, Fable 5.2 solved 94.6% for $0.39 USD per solved task: more tasks than Fable 5.1 at its default, for about a third of the cost. At a similar pass rate, Claude Opus 5.5 still costs less per solved task on these problems: at its default it solved 93.1% for $0.22 USD, at `high` 95.5% for $0.30 USD, and at `xhigh` 96.5% for $0.75 USD, level with Fable 5.2 at `high` for a little over half the cost.
384384
from line 406
406406 
407407</Frame>
408408
409| Benchmark | Upgrade | Effort | Score | Cost |
410| ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------ | --------------------------------------- | ----------------------------------------------------- | ------------------------------------------------------------------------------------------------ |
411| SWE-bench Pro<sup>[3](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#refs)</sup> subset | Claude Sonnet 4.6 to Claude Sonnet 5 | Default | 5 more points | 16% less per solved task |
412| SWE-bench Pro subset | Claude Sonnet 5 to Claude Sonnet 5.5 | Default | About 10 more points | 87% less per solved task; 85% less at Claude Sonnet 5’s prices |
413| SWE-bench Pro subset | Claude Opus 5 to Claude Opus 5.5 | Default: `high` to `medium` | About the same: 91.9% to 92.8% of tasks solved | 78% less per solved task; about 69% less at Claude Opus 5’s prices |
414| SWE-bench Pro subset | Claude Fable 5 to Claude Fable 5.1 | Default | About the same score | 43% less per solved task |
415| Terminal-Bench 3<sup>[20](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#refs)</sup> | Claude Opus 4.7 to Claude Opus 4.8 | `high` | From 7% to 15% of tasks solved | From $183 USD to $63 USD per solved task |
416| Terminal-Bench 3 | Claude Opus 4.8 to Claude Opus 5 | `high` | From 15% to 41% of tasks solved | From $63 USD to $28 USD per solved task, a 56% saving |
409| Benchmark | Upgrade | Effort | Score | Cost |
410| ----- | ----- | ----- | ----- | ----- |
411| SWE-bench Pro<sup>[3](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#refs)</sup> subset | Claude Sonnet 4.6 to Claude Sonnet 5 | Default | 5 more points | 16% less per solved task |
412| SWE-bench Pro subset | Claude Sonnet 5 to Claude Sonnet 5.5 | Default | About 10 more points | 87% less per solved task; 85% less at Claude Sonnet 5’s prices |
413| SWE-bench Pro subset | Claude Opus 5 to Claude Opus 5.5 | Default: `high` to `medium` | About the same: 91.9% to 92.8% of tasks solved | 78% less per solved task; about 69% less at Claude Opus 5’s prices |
414| SWE-bench Pro subset | Claude Fable 5 to Claude Fable 5.1 | Default | About the same score | 43% less per solved task |
415| Terminal-Bench 3<sup>[20](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#refs)</sup> | Claude Opus 4.7 to Claude Opus 4.8 | `high` | From 7% to 15% of tasks solved | From $183 USD to $63 USD per solved task |
416| Terminal-Bench 3 | Claude Opus 4.8 to Claude Opus 5 | `high` | From 15% to 41% of tasks solved | From $63 USD to $28 USD per solved task, a 56% saving |
417417| Claude Managed Agents task set<sup>[25](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#refs)</sup> | Claude Haiku 4.5 to Claude Haiku 5.5 | As served; `medium` on Claude Haiku 5.5 | From 62% to 93% of attempts passed, one run per model | From $0.041 USD to about $0.010 USD in token cost per attempt; about 84% less per passed attempt |
418418
419419**When it pays.**
from line 429
429429
430430The following table lists Anthropic’s measurements on two benchmarks with current models; scores and costs are not comparable between the two benchmarks. Costs are per task, not per solved task as in [Compare models on cost per task](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#compare-models-on-cost-per-task). Each score pools two runs on SWE-bench Pro and three on DeepResearch Bench II, unless its cell says otherwise:
431431
432| Benchmark | Model | Effort | Score | Cost per task |
433| -------------------------------------------------------------------------------------------------------------------------------------- | ---------------- | ------------------------------------ | ------------------------------------ | ------------- |
434| SWE-bench Pro<sup>[3](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#refs)</sup> subset | Claude Opus 5.5 | `low` | 87.4% of tasks solved | $0.11 USD |
435| SWE-bench Pro subset | Claude Opus 5.5 | `medium` (default) | 92.8% of tasks solved | $0.21 USD |
436| SWE-bench Pro subset | Claude Opus 5.5 | `high` | 95.3% of tasks solved | $0.29 USD |
437| SWE-bench Pro subset | Claude Opus 5.5 | `xhigh` | 96.7% of tasks solved (a single run) | $0.74 USD |
438| DeepResearch Bench II<sup>[7](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#refs)</sup> | Claude Fable 5.2 | `low` | Rubric score 54.5% | $1.49 USD |
439| DeepResearch Bench II | Claude Fable 5.2 | `medium` | Rubric score 55.0% | $2.16 USD |
440| DeepResearch Bench II | Claude Fable 5.2 | `high` (default on the Messages API) | Rubric score 57.7% | $4.82 USD |
432| Benchmark | Model | Effort | Score | Cost per task |
433| ----- | ----- | ----- | ----- | ----- |
434| SWE-bench Pro<sup>[3](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#refs)</sup> subset | Claude Opus 5.5 | `low` | 87.4% of tasks solved | $0.11 USD |
435| SWE-bench Pro subset | Claude Opus 5.5 | `medium` (default) | 92.8% of tasks solved | $0.21 USD |
436| SWE-bench Pro subset | Claude Opus 5.5 | `high` | 95.3% of tasks solved | $0.29 USD |
437| SWE-bench Pro subset | Claude Opus 5.5 | `xhigh` | 96.7% of tasks solved (a single run) | $0.74 USD |
438| DeepResearch Bench II<sup>[7](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#refs)</sup> | Claude Fable 5.2 | `low` | Rubric score 54.5% | $1.49 USD |
439| DeepResearch Bench II | Claude Fable 5.2 | `medium` | Rubric score 55.0% | $2.16 USD |
440| DeepResearch Bench II | Claude Fable 5.2 | `high` (default on the Messages API) | Rubric score 57.7% | $4.82 USD |
441441
442442The following chart plots accuracy against cost per task for Claude Opus 5.5 on the SWE-bench Pro<sup>[3](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#refs)</sup> subset:
443443
from line 472
472472
473473In the following table, the re-run costs count the failed cheap attempts:
474474
475| Policy | Tasks solved | Cost per task |
476| ----------------------------------- | ------------ | --------------- |
477| `low`, failures re-run at `high` | About 97% | About $0.17 USD |
478| `medium`, failures re-run at `high` | About 97% | About $0.24 USD |
479| Everything at `high` | 95.3% | $0.29 USD |
475| Policy | Tasks solved | Cost per task |
476| ----- | ----- | ----- |
477| `low`, failures re-run at `high` | About 97% | About $0.17 USD |
478| `medium`, failures re-run at `high` | About 97% | About $0.24 USD |
479| Everything at `high` | 95.3% | $0.29 USD |
480480
481481* At `low`, 13% of tasks failed. With those re-run at `high`, the pass rate was slightly higher than with everything at `high`, for a little over half the cost.
482482* Use this policy for the saving, not the lift. Most of the small lift is the second attempt: re-running the failures of one `high` run at `high` scores about the same, for more money.
from line 495
495495
496496The following table shows what each model solved and what a solved task cost at each cap on an internal repository-task benchmark<sup>[12](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#refs)</sup>, one attempt per task, each model at its default effort on the Messages API. The rows at 16,384 average two runs, and the other rows are one run each:
497497
498| Model | `max_tokens` | Attempts ended by the cap | Tasks solved | Cost per solved task |
499| ---------------- | ------------ | ------------------------- | ------------ | ------------------------- |
500| Claude Opus 5.5 | 16,384 | 25% | 57.6% | $5.38 USD at list prices |
501| Claude Opus 5.5 | 64,000 | 0% | 75.6% | $5.38 USD at list prices |
502| Claude Opus 5.5 | 128,000 | 0% | 68.9% | $5.94 USD at list prices |
503| Claude Fable 5.2 | 16,384 | 85% | 20.3% | $27.96 USD at list prices |
504| Claude Fable 5.2 | 64,000 | 2% | 77.4% | $24.42 USD at list prices |
505| Claude Fable 5.2 | 128,000 | 0% | 78.2% | $24.52 USD at list prices |
498| Model | `max_tokens` | Attempts ended by the cap | Tasks solved | Cost per solved task |
499| ----- | ----- | ----- | ----- | ----- |
500| Claude Opus 5.5 | 16,384 | 25% | 57.6% | $5.38 USD at list prices |
501| Claude Opus 5.5 | 64,000 | 0% | 75.6% | $5.38 USD at list prices |
502| Claude Opus 5.5 | 128,000 | 0% | 68.9% | $5.94 USD at list prices |
503| Claude Fable 5.2 | 16,384 | 85% | 20.3% | $27.96 USD at list prices |
504| Claude Fable 5.2 | 64,000 | 2% | 77.4% | $24.42 USD at list prices |
505| Claude Fable 5.2 | 128,000 | 0% | 78.2% | $24.52 USD at list prices |
506506
507507**Claude Opus 5.5 at 64,000 and 128,000:** No attempt was cut off at either cap, so the cap does not explain why these two rows differ in tasks solved or in cost per solved task. Each row is one run.
508508
from line 552
552552
553553The following table compares the two strategies:
554554
555| Strategy | Control flow | Frontier model’s role | Fits | Frontier cost scales with |
556| ---------------- | ----------------------------------------------------- | ----------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------- |
557| **Advisor** | Smaller model runs the loop, escalates on demand | Consulted for plans and corrections | Serial work that is hard in spots, such as a coding agent’s many turns between a few real decisions | How often the executor gets stuck |
558| **Orchestrator** | Frontier model runs the loop, delegates the bulk work | Plans, dispatches, and synthesizes | Work that fans out across genuinely independent files, documents, or cases, especially more than one context window of it | How hard the pieces are to coordinate |
555| Strategy | Control flow | Frontier model’s role | Fits | Frontier cost scales with |
556| ----- | ----- | ----- | ----- | ----- |
557| **Advisor** | Smaller model runs the loop, escalates on demand | Consulted for plans and corrections | Serial work that is hard in spots, such as a coding agent’s many turns between a few real decisions | How often the executor gets stuck |
558| **Orchestrator** | Frontier model runs the loop, delegates the bulk work | Plans, dispatches, and synthesizes | Work that fans out across genuinely independent files, documents, or cases, especially more than one context window of it | How hard the pieces are to coordinate |
559559
560560### Advisor strategy: escalate hard decisions
561561
from line 571
571571
572572The following table compares each pairing with its executor alone at the same effort:
573573
574| Benchmark | Score | Cost | Advisor consulted |
575| --------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
576| Internal agentic-coding benchmark<sup>[11](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#refs)</sup> | 90.1%, 1.7 points over the executor alone, at the edge of run-to-run noise | $2.92 USD per attempt, about 2.1 times the executor alone | About 1.4 times per attempt; 4% of attempts received no advice |
577| GPQA Diamond<sup>[9](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#refs)</sup> | Within run-to-run noise of the executor alone | 12% more per question for Claude Haiku 5.5, 25% more for Claude Sonnet 5.5 | On none of the 198 questions, in two runs each; no system prompt asked for consultations |
578| Chartography<sup>[13](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#refs)</sup> | 61.7, 7 points below the executor alone and beyond run-to-run noise | About the same as the executor alone | On 1 of 300 tasks |
574| Benchmark | Score | Cost | Advisor consulted |
575| ----- | ----- | ----- | ----- |
576| Internal agentic-coding benchmark<sup>[11](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#refs)</sup> | 90.1%, 1.7 points over the executor alone, at the edge of run-to-run noise | $2.92 USD per attempt, about 2.1 times the executor alone | About 1.4 times per attempt; 4% of attempts received no advice |
577| GPQA Diamond<sup>[9](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#refs)</sup> | Within run-to-run noise of the executor alone | 12% more per question for Claude Haiku 5.5, 25% more for Claude Sonnet 5.5 | On none of the 198 questions, in two runs each; no system prompt asked for consultations |
578| Chartography<sup>[13](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#refs)</sup> | 61.7, 7 points below the executor alone and beyond run-to-run noise | About the same as the executor alone | On 1 of 300 tasks |
579579
580580* **Internal agentic-coding benchmark.** Claude Opus 5.5 at `high`, with a Claude Fable 5.1 advisor.
581581* **GPQA Diamond.** Claude Haiku 5.5 or Claude Sonnet 5.5 at each model’s default (`medium` and `high`), with a Claude Opus 5.5 advisor.
from line 828
828828
829829The following table lists the levers in the order to try them. The figures come from Anthropic’s tests, launch posts, and published prices and speeds:
830830
831| Lever | Saving | Quality cost | Latency | Where |
832| -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
833| Prompt caching | Cost cut by a factor of 4.8 to 7.2 on a research agent, and by 83% to 86% on a small triage agent | None | Faster | [Cache repeated context](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#cache-repeated-context) |
834| 1-hour cache duration | With 1 turn in 10 after a pause, the 5-minute default cost 54% more; with 1 in 20, about the same | None | On earlier models, stayed warm after a pause<sup>[16](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#refs)</sup> | [Pick the cache duration](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#pick-the-cache-duration) |
835| Input trimming | A further 21% to 26% off a small triage agent’s bill | With tool search, accuracy in the same range as without<sup>[27](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#refs)</sup> | Neutral | [Trim input and context tokens](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#trim-input-and-context-tokens) |
836| Tool search | 45% with 500 tool definitions attached; 20% from deferring a GitHub MCP server’s toolset | None for tools the task never needs | Neutral | [Trim input and context tokens](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#trim-input-and-context-tokens) |
837| Data files through code execution | 92% on a data task of 25 questions, with prompt caching off | A gain: 25 of 25 correct instead of 7 | Faster | [Trim input and context tokens](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#trim-input-and-context-tokens) |
838| Batch API | 50% | None | Results within 24 hours | [Batch work that can wait](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#batch-work-that-can-wait) |
839| Prompt audit against the current model | 14% on both model upgrades tested | None; a gain on one | Faster (fewer tool rounds) | [Audit prompts against the current model](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#audit-prompts-against-the-current-model) |
840| Upgrade the model | Usually less: up to 40% less on typical workloads, and up to 87% less per solved task on a coding benchmark | None on coding, a gain on most; lower on one research benchmark for Claude Fable 5.2 | Neutral | [Upgrade the model](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#upgrade-the-model) |
841| Lower effort | On long coding tasks, `medium` cost about 30% to 52% less than `high`, and `low` about two thirds less | Up to 34 points lower, depending on the task and the model; 3.3 on one research agent | Faster | [Tune effort](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#tune-effort) |
842| Re-run failures | About 40% less than running everything at `high`, at the same pass rate or slightly better | None | A second attempt on the tasks that fail | [Re-run failures at higher effort](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#re-run-failures-at-higher-effort) |
843| Ask for shorter answers | About 13% less, from 39% fewer output tokens | None | Faster | [Set budgets and output caps](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#set-budgets-and-output-caps) |
844| Raise `max_tokens` | None: cost per solved task did not rise at 64,000 | A gain: up to 57 points more tasks solved at 64,000 on one coding benchmark; none on another | Neutral | [Set budgets and output caps](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#set-budgets-and-output-caps) |
845| Advisor | None: about 2.1 times the cost of the model alone, on a coding benchmark | On coding, a small gain that may be chance; on chart reading, a loss | About 1.4 extra calls per attempt, on coding | [Advisor strategy](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#advisor-strategy-escalate-hard-decisions) |
846| Orchestrator | With subagents on the next model down, about a third less than the orchestrator’s model alone at its default effort, on work larger than one context window; on routine work, measure first | No measurable loss on that work | Up to 25 subagents at a time | [Orchestrator strategy](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#orchestrator-strategy-delegate-bulk-work) |
847| Fast mode | None: twice the standard token prices | None | Up to 2.5x higher output tokens per second | [Show the model elapsed time](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#show-the-model-elapsed-time) |
831| Lever | Saving | Quality cost | Latency | Where |
832| ----- | ----- | ----- | ----- | ----- |
833| Prompt caching | Cost cut by a factor of 4.8 to 7.2 on a research agent, and by 83% to 86% on a small triage agent | None | Faster | [Cache repeated context](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#cache-repeated-context) |
834| 1-hour cache duration | With 1 turn in 10 after a pause, the 5-minute default cost 54% more; with 1 in 20, about the same | None | On earlier models, stayed warm after a pause<sup>[16](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#refs)</sup> | [Pick the cache duration](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#pick-the-cache-duration) |
835| Input trimming | A further 21% to 26% off a small triage agent’s bill | With tool search, accuracy in the same range as without<sup>[27](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#refs)</sup> | Neutral | [Trim input and context tokens](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#trim-input-and-context-tokens) |
836| Tool search | 45% with 500 tool definitions attached; 20% from deferring a GitHub MCP server’s toolset | None for tools the task never needs | Neutral | [Trim input and context tokens](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#trim-input-and-context-tokens) |
837| Data files through code execution | 92% on a data task of 25 questions, with prompt caching off | A gain: 25 of 25 correct instead of 7 | Faster | [Trim input and context tokens](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#trim-input-and-context-tokens) |
838| Batch API | 50% | None | Results within 24 hours | [Batch work that can wait](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#batch-work-that-can-wait) |
839| Prompt audit against the current model | 14% on both model upgrades tested | None; a gain on one | Faster (fewer tool rounds) | [Audit prompts against the current model](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#audit-prompts-against-the-current-model) |
840| Upgrade the model | Usually less: up to 40% less on typical workloads, and up to 87% less per solved task on a coding benchmark | None on coding, a gain on most; lower on one research benchmark for Claude Fable 5.2 | Neutral | [Upgrade the model](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#upgrade-the-model) |
841| Lower effort | On long coding tasks, `medium` cost about 30% to 52% less than `high`, and `low` about two thirds less | Up to 34 points lower, depending on the task and the model; 3.3 on one research agent | Faster | [Tune effort](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#tune-effort) |
842| Re-run failures | About 40% less than running everything at `high`, at the same pass rate or slightly better | None | A second attempt on the tasks that fail | [Re-run failures at higher effort](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#re-run-failures-at-higher-effort) |
843| Ask for shorter answers | About 13% less, from 39% fewer output tokens | None | Faster | [Set budgets and output caps](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#set-budgets-and-output-caps) |
844| Raise `max_tokens` | None: cost per solved task did not rise at 64,000 | A gain: up to 57 points more tasks solved at 64,000 on one coding benchmark; none on another | Neutral | [Set budgets and output caps](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#set-budgets-and-output-caps) |
845| Advisor | None: about 2.1 times the cost of the model alone, on a coding benchmark | On coding, a small gain that may be chance; on chart reading, a loss | About 1.4 extra calls per attempt, on coding | [Advisor strategy](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#advisor-strategy-escalate-hard-decisions) |
846| Orchestrator | With subagents on the next model down, about a third less than the orchestrator’s model alone at its default effort, on work larger than one context window; on routine work, measure first | No measurable loss on that work | Up to 25 subagents at a time | [Orchestrator strategy](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#orchestrator-strategy-delegate-bulk-work) |
847| Fast mode | None: twice the standard token prices | None | Up to 2.5x higher output tokens per second | [Show the model elapsed time](https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence#show-the-model-elapsed-time) |
848848
849849### Automate the search with the Claude API skill
850850
about-claude/pricing Changed · +128 / -128 lines
from line 12
1212
1313The following table shows pricing for all Claude models:
1414
15| Model | Base input tokens | 5m cache writes | 1h cache writes | Cache hits and refreshes | Output tokens |
16| :--------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :-------------------- | :-------------- | :-------------- | :----------------------- | :--------------------- |
17| Claude Fable 5.2 | $8 / MTok | $10 / MTok | $16 / MTok | $0.20 / MTok<sup>1</sup> | $40 / MTok |
18| Claude Mythos 5.2 ([limited availability](https://support.claude.com/en/articles/14604842)) | $8 / MTok | $10 / MTok | $16 / MTok | $0.20 / MTok<sup>1</sup> | $40 / MTok |
19| Claude Fable 5.1 | $10 / MTok | $12.50 / MTok | $20 / MTok | $0.25 / MTok<sup>1</sup> | $50 / MTok |
20| Claude Mythos 5.1 ([limited availability](https://support.claude.com/en/articles/14604842)) | $10 / MTok | $12.50 / MTok | $20 / MTok | $0.25 / MTok<sup>1</sup> | $50 / MTok |
21| Claude Fable 5 | $10 / MTok | $12.50 / MTok | $20 / MTok | $1 / MTok | $50 / MTok |
22| Claude Mythos 5 ([limited availability](https://support.claude.com/en/articles/14604842)) | $10 / MTok | $12.50 / MTok | $20 / MTok | $1 / MTok | $50 / MTok |
23| Claude Opus 5.5 | $4 / MTok | $5 / MTok | $8 / MTok | $0.20 / MTok<sup>2</sup> | $20 / MTok |
24| Claude Opus 5 | $5 / MTok | $6.25 / MTok | $10 / MTok | $0.50 / MTok | $25 / MTok |
25| Claude Opus 4.8 | $5 / MTok | $6.25 / MTok | $10 / MTok | $0.50 / MTok | $25 / MTok |
26| Claude Opus 4.7 | $5 / MTok | $6.25 / MTok | $10 / MTok | $0.50 / MTok | $25 / MTok |
27| Claude Opus 4.6 | $5 / MTok | $6.25 / MTok | $10 / MTok | $0.50 / MTok | $25 / MTok |
28| Claude Opus 4.5 | $5 / MTok | $6.25 / MTok | $10 / MTok | $0.50 / MTok | $25 / MTok |
29| Claude Opus 4.1 ([retired, except on Claude Models on Google Cloud (Google managed) and Bedrock](https://platform.claude.com/docs/en/about-claude/model-deprecations)) | $15 / MTok | $18.75 / MTok | $30 / MTok | $1.50 / MTok | $75 / MTok |
30| Claude Opus 4 ([retired, except on Claude Models on Google Cloud (Google managed)](https://platform.claude.com/docs/en/about-claude/model-deprecations)) | $15 / MTok | $18.75 / MTok | $30 / MTok | $1.50 / MTok | $75 / MTok |
31| Claude Sonnet 5.5 | $2 / MTok | $2.50 / MTok | $4 / MTok | $0.10 / MTok<sup>2</sup> | $10 / MTok |
32| Claude Sonnet 5 | $2 / MTok<sup>3</sup> | $2.50 / MTok | $4 / MTok | $0.20 / MTok | $10 / MTok<sup>3</sup> |
33| Claude Sonnet 4.6 | $3 / MTok | $3.75 / MTok | $6 / MTok | $0.30 / MTok | $15 / MTok |
34| Claude Sonnet 4.5 | $3 / MTok | $3.75 / MTok | $6 / MTok | $0.30 / MTok | $15 / MTok |
35| Claude Sonnet 4 ([retired, except on Claude Models on Google Cloud (Google managed) and Bedrock](https://platform.claude.com/docs/en/about-claude/model-deprecations)) | $3 / MTok | $3.75 / MTok | $6 / MTok | $0.30 / MTok | $15 / MTok |
36| Claude Haiku 5.5 (for prompts up to 100,000 tokens) | $0.10 / MTok | $0.125 / MTok | $0.20 / MTok | $0.01 / MTok | $0.50 / MTok |
37| Claude Haiku 5.5 (for prompts over 100,000 tokens) | $0.50 / MTok | $0.625 / MTok | $1 / MTok | $0.05 / MTok | $2.50 / MTok |
38| Claude Haiku 4.5 | $1 / MTok | $1.25 / MTok | $2 / MTok | $0.10 / MTok | $5 / MTok |
15| Model | Base input tokens | 5m cache writes | 1h cache writes | Cache hits and refreshes | Output tokens |
16| :---- | :---- | :---- | :---- | :---- | :---- |
17| Claude Fable 5.2 | $8 / MTok | $10 / MTok | $16 / MTok | $0.20 / MTok<sup>1</sup> | $40 / MTok |
18| Claude Mythos 5.2 ([limited availability](https://support.claude.com/en/articles/14604842)) | $8 / MTok | $10 / MTok | $16 / MTok | $0.20 / MTok<sup>1</sup> | $40 / MTok |
19| Claude Fable 5.1 | $10 / MTok | $12.50 / MTok | $20 / MTok | $0.25 / MTok<sup>1</sup> | $50 / MTok |
20| Claude Mythos 5.1 ([limited availability](https://support.claude.com/en/articles/14604842)) | $10 / MTok | $12.50 / MTok | $20 / MTok | $0.25 / MTok<sup>1</sup> | $50 / MTok |
21| Claude Fable 5 | $10 / MTok | $12.50 / MTok | $20 / MTok | $1 / MTok | $50 / MTok |
22| Claude Mythos 5 ([limited availability](https://support.claude.com/en/articles/14604842)) | $10 / MTok | $12.50 / MTok | $20 / MTok | $1 / MTok | $50 / MTok |
23| Claude Opus 5.5 | $4 / MTok | $5 / MTok | $8 / MTok | $0.20 / MTok<sup>2</sup> | $20 / MTok |
24| Claude Opus 5 | $5 / MTok | $6.25 / MTok | $10 / MTok | $0.50 / MTok | $25 / MTok |
25| Claude Opus 4.8 | $5 / MTok | $6.25 / MTok | $10 / MTok | $0.50 / MTok | $25 / MTok |
26| Claude Opus 4.7 | $5 / MTok | $6.25 / MTok | $10 / MTok | $0.50 / MTok | $25 / MTok |
27| Claude Opus 4.6 | $5 / MTok | $6.25 / MTok | $10 / MTok | $0.50 / MTok | $25 / MTok |
28| Claude Opus 4.5 | $5 / MTok | $6.25 / MTok | $10 / MTok | $0.50 / MTok | $25 / MTok |
29| Claude Opus 4.1 ([retired, except on Claude Models on Google Cloud (Google managed) and Bedrock](https://platform.claude.com/docs/en/about-claude/model-deprecations)) | $15 / MTok | $18.75 / MTok | $30 / MTok | $1.50 / MTok | $75 / MTok |
30| Claude Opus 4 ([retired, except on Claude Models on Google Cloud (Google managed)](https://platform.claude.com/docs/en/about-claude/model-deprecations)) | $15 / MTok | $18.75 / MTok | $30 / MTok | $1.50 / MTok | $75 / MTok |
31| Claude Sonnet 5.5 | $2 / MTok | $2.50 / MTok | $4 / MTok | $0.10 / MTok<sup>2</sup> | $10 / MTok |
32| Claude Sonnet 5 | $2 / MTok<sup>3</sup> | $2.50 / MTok | $4 / MTok | $0.20 / MTok | $10 / MTok<sup>3</sup> |
33| Claude Sonnet 4.6 | $3 / MTok | $3.75 / MTok | $6 / MTok | $0.30 / MTok | $15 / MTok |
34| Claude Sonnet 4.5 | $3 / MTok | $3.75 / MTok | $6 / MTok | $0.30 / MTok | $15 / MTok |
35| Claude Sonnet 4 ([retired, except on Claude Models on Google Cloud (Google managed) and Bedrock](https://platform.claude.com/docs/en/about-claude/model-deprecations)) | $3 / MTok | $3.75 / MTok | $6 / MTok | $0.30 / MTok | $15 / MTok |
36| Claude Haiku 5.5 (for prompts up to 100,000 tokens) | $0.10 / MTok | $0.125 / MTok | $0.20 / MTok | $0.01 / MTok | $0.50 / MTok |
37| Claude Haiku 5.5 (for prompts over 100,000 tokens) | $0.50 / MTok | $0.625 / MTok | $1 / MTok | $0.05 / MTok | $2.50 / MTok |
38| Claude Haiku 4.5 | $1 / MTok | $1.25 / MTok | $2 / MTok | $0.10 / MTok | $5 / MTok |
3939
4040*<sup>1 Cache hits and refreshes on Claude Fable 5.2, Claude Mythos 5.2, Claude Fable 5.1, and Claude Mythos 5.1 are priced at 0.025x the base input price.</sup>*
4141
from line 85
8585
8686[Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws) bills through AWS Marketplace using Claude Consumption Units (CCUs). Anthropic rates your token usage in USD at standard per-model, per-feature rates, applies any negotiated discount, converts the result to CCUs at $0.01 USD per CCU, and reports the CCU quantity to AWS Marketplace hourly. Your AWS bill shows a single CCU line item.
8787
88| Concept | Details |
89| ------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
90| **Billing unit** | Claude Consumption Unit (CCU) |
91| **CCU price** | $0.01 USD per CCU (fixed; discounts apply at token-to-CCU conversion, not to the CCU price) |
92| **Conversion** | Token usage rated in USD at standard per-model, per-feature rates (same as [Model pricing](https://platform.claude.com/docs/en/about-claude/pricing#model-pricing)), then converted to CCUs at $0.01 USD per CCU |
93| **Billing cadence** | Hourly metering to AWS Marketplace; monthly invoices |
94| **Payment model** | Arrears only (postpaid); no prepaid credits |
95| **Discounts** | Applied as fewer CCUs metered |
96| **Tax** | Pre-tax metering; AWS Marketplace handles tax |
97| **Cost visibility** | Real-time breakdown in the Claude Console (access through the AWS Console); AWS Cost Explorer shows aggregated CCU |
88| Concept | Details |
89| ----- | ----- |
90| **Billing unit** | Claude Consumption Unit (CCU) |
91| **CCU price** | $0.01 USD per CCU (fixed; discounts apply at token-to-CCU conversion, not to the CCU price) |
92| **Conversion** | Token usage rated in USD at standard per-model, per-feature rates (same as [Model pricing](https://platform.claude.com/docs/en/about-claude/pricing#model-pricing)), then converted to CCUs at $0.01 USD per CCU |
93| **Billing cadence** | Hourly metering to AWS Marketplace; monthly invoices |
94| **Payment model** | Arrears only (postpaid); no prepaid credits |
95| **Discounts** | Applied as fewer CCUs metered |
96| **Tax** | Pre-tax metering; AWS Marketplace handles tax |
97| **Cost visibility** | Real-time breakdown in the Claude Console (access through the AWS Console); AWS Cost Explorer shows aggregated CCU |
9898
9999**CCU:** Claude Consumption Unit. A CCU is a unit of measure used solely for Marketplace Platform invoicing. If Customer accesses the Services through certain Marketplace Platforms (for example, Claude Platform on AWS), usage is invoiced in Claude Consumption Units (“CCU”) rather than per MTok. One hundred (100) CCU represents $1.00 USD of fees owed for the Services, calculated at the applicable prices in the [API section of the Claude pricing page](https://claude.com/pricing#api), after application of any discounts.
100100
from line 114
114114
115115[Claude in Microsoft Foundry](https://platform.claude.com/docs/en/build-with-claude/claude-in-microsoft-foundry) bills through the Azure Marketplace using Claude Consumption Units (CCUs). Anthropic rates your token usage in USD at standard per-model, per-feature rates, applies any negotiated discount, converts the result to CCUs at $0.01 USD per CCU, and reports the CCU quantity to the Azure Marketplace hourly. Your Azure bill shows a single CCU line item.
116116
117| Concept | Details |
118| ------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
119| **Billing unit** | Claude Consumption Unit (CCU) |
120| **CCU price** | $0.01 USD per CCU (fixed; discounts apply at token-to-CCU conversion, not to the CCU price) |
121| **Conversion** | Token usage rated in USD at standard per-model, per-feature rates (same as [Model pricing](https://platform.claude.com/docs/en/about-claude/pricing#model-pricing)), then converted to CCUs at $0.01 USD per CCU |
122| **Billing cadence** | Hourly metering to the Azure Marketplace; monthly invoices |
123| **Payment model** | Arrears only (postpaid); no prepaid credits |
124| **Discounts** | Applied as fewer CCUs metered |
125| **Tax** | Pre-tax metering; Azure Marketplace handles tax |
126| **Cost visibility** | Azure Cost Management shows aggregated CCU |
117| Concept | Details |
118| ----- | ----- |
119| **Billing unit** | Claude Consumption Unit (CCU) |
120| **CCU price** | $0.01 USD per CCU (fixed; discounts apply at token-to-CCU conversion, not to the CCU price) |
121| **Conversion** | Token usage rated in USD at standard per-model, per-feature rates (same as [Model pricing](https://platform.claude.com/docs/en/about-claude/pricing#model-pricing)), then converted to CCUs at $0.01 USD per CCU |
122| **Billing cadence** | Hourly metering to the Azure Marketplace; monthly invoices |
123| **Payment model** | Arrears only (postpaid); no prepaid credits |
124| **Discounts** | Applied as fewer CCUs metered |
125| **Tax** | Pre-tax metering; Azure Marketplace handles tax |
126| **Cost visibility** | Azure Cost Management shows aggregated CCU |
127127
128128**CCU:** Claude Consumption Unit. A CCU is a unit of measure used solely for Marketplace Platform invoicing. If Customer accesses the Services through certain Marketplace Platforms (for example, Claude Platform on AWS, Claude in Microsoft Foundry), usage is invoiced in Claude Consumption Units (“CCU”) rather than per MTok. One hundred (100) CCU represents $1.00 USD of fees owed for the Services, calculated at the applicable prices in the [API section of the Claude pricing page](https://claude.com/pricing#api), after application of any discounts.
129129
from line 144
144144
145145Prompt caching uses the following pricing multipliers relative to base input token rates:
146146
147| Cache operation | Multiplier | Duration |
148| -------------------- | ------------------------------------ | ------------------------------------ |
149| 5-minute cache write | 1.25x base input price | Cache valid for 5 minutes |
150| 1-hour cache write | 2x base input price | Cache valid for 1 hour |
151| Cache read (hit) | 0.1x base input price on most models | Same duration as the preceding write |
147| Cache operation | Multiplier | Duration |
148| ----- | ----- | ----- |
149| 5-minute cache write | 1.25x base input price | Cache valid for 5 minutes |
150| 1-hour cache write | 2x base input price | Cache valid for 1 hour |
151| Cache read (hit) | 0.1x base input price on most models | Same duration as the preceding write |
152152
153153Cache write tokens are charged when content is first stored. Cache read tokens are charged when a subsequent request retrieves the cached content.
154154
from line 159
159159
160160What a cache hit costs depends on the model:
161161
162| Model | Cache hit multiplier | Cache hit price per million tokens |
163| -------------------------------------- | -------------------- | ------------------------------------------------------------------------------------------- |
164| Claude Fable 5.2 and Claude Mythos 5.2 | 0.025x | $0.20 USD |
165| Claude Fable 5.1 and Claude Mythos 5.1 | 0.025x | $0.25 USD |
166| Claude Opus 5.5 | 0.05x | $0.20 USD |
167| Claude Sonnet 5.5 | 0.05x | $0.10 USD |
168| All other models | 0.1x | See [Model pricing](https://platform.claude.com/docs/en/about-claude/pricing#model-pricing) |
162| Model | Cache hit multiplier | Cache hit price per million tokens |
163| ----- | ----- | ----- |
164| Claude Fable 5.2 and Claude Mythos 5.2 | 0.025x | $0.20 USD |
165| Claude Fable 5.1 and Claude Mythos 5.1 | 0.025x | $0.25 USD |
166| Claude Opus 5.5 | 0.05x | $0.20 USD |
167| Claude Sonnet 5.5 | 0.05x | $0.10 USD |
168| All other models | 0.1x | See [Model pricing](https://platform.claude.com/docs/en/about-claude/pricing#model-pricing) |
169169
170170These multipliers stack with other pricing modifiers, including the Batch API discount and data residency.
171171
from line 201
201201
202202Fast mode is also available for Claude Mythos 5.2 on the Claude API. [Availability of fast mode](https://platform.claude.com/docs/en/build-with-claude/fast-mode#feature-availability) lists every platform where Claude Mythos 5.2 has fast mode.
203203
204| Model | Input | Output |
205| ------------------------------- | -------------- | -------------- |
206| Claude Fable 5.2 | $16 USD / MTok | $80 USD / MTok |
207| Claude Mythos 5.2 | $16 USD / MTok | $80 USD / MTok |
208| Claude Opus 5.5 | $8 USD / MTok | $40 USD / MTok |
204| Model | Input | Output |
205| ----- | ----- | ----- |
206| Claude Fable 5.2 | $16 USD / MTok | $80 USD / MTok |
207| Claude Mythos 5.2 | $16 USD / MTok | $80 USD / MTok |
208| Claude Opus 5.5 | $8 USD / MTok | $40 USD / MTok |
209209| Claude Opus 5 / Claude Opus 4.8 | $10 USD / MTok | $50 USD / MTok |
210210
211211Fast mode pricing stacks with other pricing modifiers:
from line 221
221221
222222The Batch API allows asynchronous processing of large volumes of requests with a 50 percent discount on both input and output tokens.
223223
224| Model | Batch input | Batch output |
225| :--------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :----------- | :------------ |
226| Claude Fable 5.2 | $4 / MTok | $20 / MTok |
227| Claude Mythos 5.2 ([limited availability](https://support.claude.com/en/articles/14604842)) | $4 / MTok | $20 / MTok |
228| Claude Fable 5.1 | $5 / MTok | $25 / MTok |
229| Claude Mythos 5.1 ([limited availability](https://support.claude.com/en/articles/14604842)) | $5 / MTok | $25 / MTok |
230| Claude Fable 5 | $5 / MTok | $25 / MTok |
231| Claude Mythos 5 ([limited availability](https://support.claude.com/en/articles/14604842)) | $5 / MTok | $25 / MTok |
232| Claude Opus 5.5 | $2 / MTok | $10 / MTok |
233| Claude Opus 5 | $2.50 / MTok | $12.50 / MTok |
234| Claude Opus 4.8 | $2.50 / MTok | $12.50 / MTok |
235| Claude Opus 4.7 | $2.50 / MTok | $12.50 / MTok |
236| Claude Opus 4.6 | $2.50 / MTok | $12.50 / MTok |
237| Claude Opus 4.5 | $2.50 / MTok | $12.50 / MTok |
224| Model | Batch input | Batch output |
225| :---- | :---- | :---- |
226| Claude Fable 5.2 | $4 / MTok | $20 / MTok |
227| Claude Mythos 5.2 ([limited availability](https://support.claude.com/en/articles/14604842)) | $4 / MTok | $20 / MTok |
228| Claude Fable 5.1 | $5 / MTok | $25 / MTok |
229| Claude Mythos 5.1 ([limited availability](https://support.claude.com/en/articles/14604842)) | $5 / MTok | $25 / MTok |
230| Claude Fable 5 | $5 / MTok | $25 / MTok |
231| Claude Mythos 5 ([limited availability](https://support.claude.com/en/articles/14604842)) | $5 / MTok | $25 / MTok |
232| Claude Opus 5.5 | $2 / MTok | $10 / MTok |
233| Claude Opus 5 | $2.50 / MTok | $12.50 / MTok |
234| Claude Opus 4.8 | $2.50 / MTok | $12.50 / MTok |
235| Claude Opus 4.7 | $2.50 / MTok | $12.50 / MTok |
236| Claude Opus 4.6 | $2.50 / MTok | $12.50 / MTok |
237| Claude Opus 4.5 | $2.50 / MTok | $12.50 / MTok |
238238| Claude Opus 4.1 ([retired, except on Claude Models on Google Cloud (Google managed) and Bedrock](https://platform.claude.com/docs/en/about-claude/model-deprecations)) | $7.50 / MTok | $37.50 / MTok |
239| Claude Opus 4 ([retired, except on Claude Models on Google Cloud (Google managed)](https://platform.claude.com/docs/en/about-claude/model-deprecations)) | $7.50 / MTok | $37.50 / MTok |
240| Claude Sonnet 5.5 | $1 / MTok | $5 / MTok |
241| Claude Sonnet 5 | $1 / MTok | $5 / MTok |
242| Claude Sonnet 4.6 | $1.50 / MTok | $7.50 / MTok |
243| Claude Sonnet 4.5 | $1.50 / MTok | $7.50 / MTok |
244| Claude Sonnet 4 ([retired, except on Claude Models on Google Cloud (Google managed) and Bedrock](https://platform.claude.com/docs/en/about-claude/model-deprecations)) | $1.50 / MTok | $7.50 / MTok |
245| Claude Haiku 5.5 (for prompts up to 100,000 tokens) | $0.05 / MTok | $0.25 / MTok |
246| Claude Haiku 5.5 (for prompts over 100,000 tokens) | $0.25 / MTok | $1.25 / MTok |
247| Claude Haiku 4.5 | $0.50 / MTok | $2.50 / MTok |
239| Claude Opus 4 ([retired, except on Claude Models on Google Cloud (Google managed)](https://platform.claude.com/docs/en/about-claude/model-deprecations)) | $7.50 / MTok | $37.50 / MTok |
240| Claude Sonnet 5.5 | $1 / MTok | $5 / MTok |
241| Claude Sonnet 5 | $1 / MTok | $5 / MTok |
242| Claude Sonnet 4.6 | $1.50 / MTok | $7.50 / MTok |
243| Claude Sonnet 4.5 | $1.50 / MTok | $7.50 / MTok |
244| Claude Sonnet 4 ([retired, except on Claude Models on Google Cloud (Google managed) and Bedrock](https://platform.claude.com/docs/en/about-claude/model-deprecations)) | $1.50 / MTok | $7.50 / MTok |
245| Claude Haiku 5.5 (for prompts up to 100,000 tokens) | $0.05 / MTok | $0.25 / MTok |
246| Claude Haiku 5.5 (for prompts over 100,000 tokens) | $0.25 / MTok | $1.25 / MTok |
247| Claude Haiku 4.5 | $0.50 / MTok | $2.50 / MTok |
248248
249249* **MTok:** Million tokens. $5 / MTok is $5 for every million tokens.
250250* **Limited access:** Available only to organizations verified through Anthropic’s verification programs, such as the [Cyber Verification Program](https://support.claude.com/en/articles/14604842). To request access, apply to the program that covers your use case.
from line 276
276276
277277When you use `tools`, the API also automatically includes a special system prompt for the model that enables tool use. The following table lists the number of tool use tokens that each model requires (excluding the additional tokens listed earlier). The table assumes that you provide at least one tool. If you provide no `tools`, a tool choice of `none` uses 0 additional system prompt tokens.
278278
279| Model | Tool use system prompt tokens: auto, none | Tool use system prompt tokens: any, tool |
280| :--------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :---------------------------------------- | :--------------------------------------- |
281| Claude Opus 5.5 | 286 tokens | |
282| Claude Opus 5 | 286 tokens | 406 tokens |
283| Claude Opus 4.8 | 290 tokens | 410 tokens |
284| Claude Opus 4.7 | 675 tokens | 804 tokens |
285| Claude Opus 4.6 | 497 tokens | 589 tokens |
286| Claude Opus 4.5 | 496 tokens | 588 tokens |
287| Claude Opus 4.1 ([retired, except on Claude Models on Google Cloud (Google managed) and Bedrock](https://platform.claude.com/docs/en/about-claude/model-deprecations)) | 313 tokens | 315 tokens |
288| Claude Opus 4 ([retired, except on Claude Models on Google Cloud (Google managed)](https://platform.claude.com/docs/en/about-claude/model-deprecations)) | 313 tokens | 315 tokens |
289| Claude Sonnet 5.5 | 286 tokens | |
290| Claude Sonnet 5 | 354 tokens | 474 tokens |
291| Claude Sonnet 4.6 | 497 tokens | 589 tokens |
292| Claude Sonnet 4.5 | 496 tokens | 588 tokens |
293| Claude Sonnet 4 ([retired, except on Claude Models on Google Cloud (Google managed) and Bedrock](https://platform.claude.com/docs/en/about-claude/model-deprecations)) | 313 tokens | 315 tokens |
294| Claude Haiku 5.5 | 286 tokens | 406 tokens |
295| Claude Haiku 4.5 | 496 tokens | 588 tokens |
279| Model | Tool use system prompt tokens: auto, none | Tool use system prompt tokens: any, tool |
280| :---- | :---- | :---- |
281| Claude Opus 5.5 | 286 tokens | |
282| Claude Opus 5 | 286 tokens | 406 tokens |
283| Claude Opus 4.8 | 290 tokens | 410 tokens |
284| Claude Opus 4.7 | 675 tokens | 804 tokens |
285| Claude Opus 4.6 | 497 tokens | 589 tokens |
286| Claude Opus 4.5 | 496 tokens | 588 tokens |
287| Claude Opus 4.1 ([retired, except on Claude Models on Google Cloud (Google managed) and Bedrock](https://platform.claude.com/docs/en/about-claude/model-deprecations)) | 313 tokens | 315 tokens |
288| Claude Opus 4 ([retired, except on Claude Models on Google Cloud (Google managed)](https://platform.claude.com/docs/en/about-claude/model-deprecations)) | 313 tokens | 315 tokens |
289| Claude Sonnet 5.5 | 286 tokens | |
290| Claude Sonnet 5 | 354 tokens | 474 tokens |
291| Claude Sonnet 4.6 | 497 tokens | 589 tokens |
292| Claude Sonnet 4.5 | 496 tokens | 588 tokens |
293| Claude Sonnet 4 ([retired, except on Claude Models on Google Cloud (Google managed) and Bedrock](https://platform.claude.com/docs/en/about-claude/model-deprecations)) | 313 tokens | 315 tokens |
294| Claude Haiku 5.5 | 286 tokens | 406 tokens |
295| Claude Haiku 4.5 | 496 tokens | 588 tokens |
296296
297297* **auto, none:** The count when tool\_choice is auto or none.
298298* **any, tool:** The count when tool\_choice is any or tool.
from line 310
310310
311311The bash tool definition adds the following input tokens to your request. This is in addition to the per-model [tool use system prompt](https://platform.claude.com/docs/en/agents-and-tools/tool-use/overview#pricing) that applies whenever any tool is present.
312312
313| Model | Additional input tokens |
314| ----------------------------------------------------- | ----------------------- |
315| Claude 4.7 and later models and Claude Mythos Preview | 325 tokens |
316| Claude 4.6 and earlier models | 244 tokens |
313| Model | Additional input tokens |
314| ----- | ----- |
315| Claude 4.7 and later models and Claude Mythos Preview | 325 tokens |
316| Claude 4.6 and earlier models | 244 tokens |
317317
318318Additional tokens are consumed by:
319319
from line 354
354354
355355In addition to the base tokens, the following additional input tokens are needed for the text editor tool:
356356
357| Tool | Additional input tokens |
358| ------------------------------------------------------------------------------ | ----------------------- |
359| `text_editor_20250728` (Claude 4.7 and later models and Claude Mythos Preview) | 974 tokens |
360| `text_editor_20250728` (Claude 4.6 and earlier models) | 745 tokens |
357| Tool | Additional input tokens |
358| ----- | ----- |
359| `text_editor_20250728` (Claude 4.7 and later models and Claude Mythos Preview) | 974 tokens |
360| `text_editor_20250728` (Claude 4.6 and earlier models) | 745 tokens |
361361
362362See [tool use pricing](https://platform.claude.com/docs/en/about-claude/pricing#tool-use-pricing) for complete pricing details.
363363
from line 466
466466
467467The following Messages API modifiers do **not** apply to Claude Managed Agents sessions:
468468
469| Modifier | Why it doesn’t apply |
470| --------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------- |
471| [Batch API discount](https://platform.claude.com/docs/en/about-claude/pricing#batch-processing) | Sessions are stateful and interactive. There is no batch mode. |
472| [Cloud platform pricing](https://platform.claude.com/docs/en/about-claude/pricing#cloud-platform-pricing) | Not available on partner-operated cloud platforms. |
469| Modifier | Why it doesn’t apply |
470| ----- | ----- |
471| [Batch API discount](https://platform.claude.com/docs/en/about-claude/pricing#batch-processing) | Sessions are stateful and interactive. There is no batch mode. |
472| [Cloud platform pricing](https://platform.claude.com/docs/en/about-claude/pricing#cloud-platform-pricing) | Not available on partner-operated cloud platforms. |
473473
474474### Session runtime
475475
476| SKU | Rate | Metering |
477| --------------- | -------------------------- | ------------------------- |
476| SKU | Rate | Metering |
477| ----- | ----- | ----- |
478478| Session runtime | $0.08 USD per session-hour | `running` status duration |
479479
480480Runtime is measured to the millisecond and accrues only while the session’s status is `running`. Time spent `idle` (waiting for your next message or a tool confirmation), `rescheduling`, or `terminated` does not count toward runtime.
from line 487
487487
488488A 1-hour coding session using Claude Opus 5.5 that consumes 50,000 input tokens and 15,000 output tokens:
489489
490| Line item | Calculation | Cost |
491| --------------- | ------------------------ | ------------- |
492| Input tokens | 50,000 × $4 / 1,000,000 | $0.20 USD |
493| Output tokens | 15,000 × $20 / 1,000,000 | $0.30 USD |
494| Session runtime | 1.0 hour × $0.08 | $0.08 USD |
495| **Total** | | **$0.58 USD** |
490| Line item | Calculation | Cost |
491| ----- | ----- | ----- |
492| Input tokens | 50,000 × $4 / 1,000,000 | $0.20 USD |
493| Output tokens | 15,000 × $20 / 1,000,000 | $0.30 USD |
494| Session runtime | 1.0 hour × $0.08 | $0.08 USD |
495| **Total** | | **$0.58 USD** |
496496
497497If prompt caching is active and 40,000 of the input tokens are cache reads:
498498
499| Line item | Calculation | Cost |
500| --------------------- | ------------------------------ | -------------- |
501| Uncached input tokens | 10,000 × $4 / 1,000,000 | $0.04 USD |
502| Cache read tokens | 40,000 × $4 × 0.05 / 1,000,000 | $0.008 USD |
503| Output tokens | 15,000 × $20 / 1,000,000 | $0.30 USD |
504| Session runtime | 1.0 hour × $0.08 | $0.08 USD |
505| **Total** | | **$0.428 USD** |
499| Line item | Calculation | Cost |
500| ----- | ----- | ----- |
501| Uncached input tokens | 10,000 × $4 / 1,000,000 | $0.04 USD |
502| Cache read tokens | 40,000 × $4 × 0.05 / 1,000,000 | $0.008 USD |
503| Output tokens | 15,000 × $20 / 1,000,000 | $0.30 USD |
504| Session runtime | 1.0 hour × $0.08 | $0.08 USD |
505| **Total** | | **$0.428 USD** |
506506
507507## Additional pricing considerations
508508
about-claude/use-case-guides/commerce-agents Changed · +11 / -11 lines
from line 49
4949
5050Each example includes a customer storefront and a merchant portal over fictional data.
5151
52| Vertical | Storefront | Merchant portal |
53| ------------- | ---------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------ |
54| Retail | Search, comparison, plans, cart, checkout, and memory over the built-in components | Daily digest, staged restocks and listing fixes, and the analysis delegate over a SQL view |
55| Travel | Date-bound inventory and an itinerary component | Occupancy calendar and date-window rate moves |
56| Telecom | Account context, a plan matrix, and server-authored fee disclosures | Plan mix, price moves that state the lines affected, and protected regulated fees |
57| Entertainment | Timed holds, waitlists, transfers, a venue map, and all-in fee disclosures | Event pacing, hold releases that add real capacity, and fee-preserving price moves |
52| Vertical | Storefront | Merchant portal |
53| ----- | ----- | ----- |
54| Retail | Search, comparison, plans, cart, checkout, and memory over the built-in components | Daily digest, staged restocks and listing fixes, and the analysis delegate over a SQL view |
55| Travel | Date-bound inventory and an itinerary component | Occupancy calendar and date-window rate moves |
56| Telecom | Account context, a plan matrix, and server-authored fee disclosures | Plan mix, price moves that state the lines affected, and protected regulated fees |
57| Entertainment | Timed holds, waitlists, transfers, a venue map, and all-in fee disclosures | Event pacing, hold releases that add real capacity, and fee-preserving price moves |
5858
5959## Where it runs
6060
from line 64
6464
6565The blueprint ships with a [Claude Code](https://code.claude.com/docs/en/overview) plugin that reads the cloned repository as its reference and builds an agent against your own systems. Its four commands cover the path from nothing to a tested agent:
6666
67| Command | What it does |
68| -------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
67| Command | What it does |
68| ----- | ----- |
6969| `/scaffold-commerce-agent` | Interviews you about your stack, plays the plan back, and scaffolds a shopping agent, a merchant agent, or both on the reference packages |
70| `/add-commerce-flow` | Adds one flow to an existing agent by copying its skill, wiring the tools it calls, and writing its first eval cases |
71| `/author-commerce-evals` | Builds an eval suite with a runner, the first cases against your own catalog, and a replay gate for CI |
72| `/review-commerce-agent` | Maps an agent you already run, compares it with the reference, and converts the parts you pick |
70| `/add-commerce-flow` | Adds one flow to an existing agent by copying its skill, wiring the tools it calls, and writing its first eval cases |
71| `/author-commerce-evals` | Builds an eval suite with a runner, the first cases against your own catalog, and a replay gate for CI |
72| `/review-commerce-agent` | Maps an agent you already run, compares it with the reference, and converts the parts you pick |
7373
7474The plugin also carries six skills on the architecture, prompt caching, UI as tools, trust and safety, evals, and merchant operations, which load whenever a Claude Code conversation matches them. Installation instructions are in the repository README.
7575
agents-and-tools/agent-skills/claude-api-skill Changed · +10 / -10 lines
from line 57
5757
5858The skill detects your project’s language automatically by examining project files (for example, `requirements.txt` for Python, `tsconfig.json` for TypeScript, `go.mod` for Go) and loads the appropriate documentation.
5959
60| Language | Messages API SDK | Tool runner | Managed Agents |
61| ---------- | ---------------- | ----------- | -------------- |
62| Python | Yes | Yes (beta) | Yes (beta) |
63| TypeScript | Yes | Yes (beta) | Yes (beta) |
64| C# | Yes | Yes (beta) | Yes (beta) |
65| Go | Yes | Yes (beta) | Yes (beta) |
66| Java | Yes | Yes (beta) | Yes (beta) |
67| PHP | Yes | Yes (beta) | Yes (beta) |
68| Ruby | Yes | Yes (beta) | Yes (beta) |
69| cURL | Yes | N/A | Yes (beta) |
60| Language | Messages API SDK | Tool runner | Managed Agents |
61| ----- | ----- | ----- | ----- |
62| Python | Yes | Yes (beta) | Yes (beta) |
63| TypeScript | Yes | Yes (beta) | Yes (beta) |
64| C# | Yes | Yes (beta) | Yes (beta) |
65| Go | Yes | Yes (beta) | Yes (beta) |
66| Java | Yes | Yes (beta) | Yes (beta) |
67| PHP | Yes | Yes (beta) | Yes (beta) |
68| Ruby | Yes | Yes (beta) | Yes (beta) |
69| cURL | Yes | N/A | Yes (beta) |
7070
7171If your project uses multiple languages, Claude asks which one applies. For unsupported languages (Rust, Swift, C++), the skill provides cURL/raw HTTP examples.
7272
agents-and-tools/agent-skills/enterprise Changed · +16 / -16 lines
from line 17
1717
1818Evaluate each Skill against these risk indicators before approving deployment:
1919
20| Risk indicator | What to look for | Concern level |
21| ------------------------ | ---------------------------------------------------------------------------------------------------- | ------------------------------------------------------- |
22| Code execution | Scripts in the Skill directory (`*.py`, `*.sh`, `*.js`) | High: scripts run with full environment access |
23| Instruction manipulation | Directives to ignore safety rules, hide actions from users, or alter Claude’s behavior conditionally | High: can bypass security controls |
24| MCP server references | Instructions referencing MCP tools (`ServerName:tool_name`) | High: extends access beyond the Skill itself |
25| Network access patterns | URLs, API endpoints, `fetch`, `curl`, or `requests` calls | High: potential data exfiltration vector |
26| Hardcoded credentials | API keys, tokens, or passwords in Skill files or scripts | High: secrets exposed in Git history and context window |
27| Filesystem access scope | Paths outside the Skill directory, broad glob patterns, path traversal (`../`) | Medium: might access unintended data |
28| Tool calls | Instructions directing Claude to use bash, file operations, or other tools | Medium: review what operations are performed |
20| Risk indicator | What to look for | Concern level |
21| ----- | ----- | ----- |
22| Code execution | Scripts in the Skill directory (`*.py`, `*.sh`, `*.js`) | High: scripts run with full environment access |
23| Instruction manipulation | Directives to ignore safety rules, hide actions from users, or alter Claude’s behavior conditionally | High: can bypass security controls |
24| MCP server references | Instructions referencing MCP tools (`ServerName:tool_name`) | High: extends access beyond the Skill itself |
25| Network access patterns | URLs, API endpoints, `fetch`, `curl`, or `requests` calls | High: potential data exfiltration vector |
26| Hardcoded credentials | API keys, tokens, or passwords in Skill files or scripts | High: secrets exposed in Git history and context window |
27| Filesystem access scope | Paths outside the Skill directory, broad glob patterns, path traversal (`../`) | Medium: might access unintended data |
28| Tool calls | Instructions directing Claude to use bash, file operations, or other tools | Medium: review what operations are performed |
2929
3030### Review checklist
3131
from line 70
7070
7171Establish approval gates for these dimensions before deploying any Skill:
7272
73| Dimension | What it measures | Example failure |
74| --------------------- | ----------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------ |
75| Triggering accuracy | Does the Skill activate for the right queries and stay inactive for unrelated ones? | Skill triggers on every spreadsheet mention, even when the user just wants to discuss data |
76| Isolation behavior | Does the Skill work correctly on its own? | Skill references files that don’t exist in its directory |
77| Coexistence | Does adding this Skill degrade other Skills? | New Skill’s description is too broad, stealing triggers from existing Skills |
78| Instruction following | Does Claude follow the Skill’s instructions accurately? | Claude skips validation steps or uses wrong libraries |
79| Output quality | Does the Skill produce correct, useful results? | Generated reports have formatting errors or missing data |
73| Dimension | What it measures | Example failure |
74| ----- | ----- | ----- |
75| Triggering accuracy | Does the Skill activate for the right queries and stay inactive for unrelated ones? | Skill triggers on every spreadsheet mention, even when the user just wants to discuss data |
76| Isolation behavior | Does the Skill work correctly on its own? | Skill references files that don’t exist in its directory |
77| Coexistence | Does adding this Skill degrade other Skills? | New Skill’s description is too broad, stealing triggers from existing Skills |
78| Instruction following | Does Claude follow the Skill’s instructions accurately? | Claude skips validation steps or uses wrong libraries |
79| Output quality | Does the Skill produce correct, useful results? | Generated reports have formatting errors or missing data |
8080
8181### Evaluation requirements
8282
agents-and-tools/agent-skills/overview Changed · +15 / -15 lines
from line 134
134134
135135Claude accesses these files only when referenced. The filesystem model means each content type has different strengths: instructions for flexible guidance, code for reliability, resources for factual lookup.
136136
137| Level | When loaded | Token cost | Content |
138| ------------------------- | ----------------------- | ---------------------- | --------------------------------------------------------------------------------------------------------------------------- |
139| **Level 1: Metadata** | Always (at startup) | \~100 tokens per Skill | `name` and `description` from YAML frontmatter |
140| **Level 2: Instructions** | When Skill is triggered | Under 5k tokens | `SKILL.md` body with instructions and guidance |
141| **Level 3+: Resources** | As needed | None until accessed | Bundled files. Reference files load into context when read. Scripts run through bash, and only their output enters context. |
137| Level | When loaded | Token cost | Content |
138| ----- | ----- | ----- | ----- |
139| **Level 1: Metadata** | Always (at startup) | \~100 tokens per Skill | `name` and `description` from YAML frontmatter |
140| **Level 2: Instructions** | When Skill is triggered | Under 5k tokens | `SKILL.md` body with instructions and guidance |
141| **Level 3+: Resources** | As needed | None until accessed | Bundled files. Reference files load into context when read. Scripts run through bash, and only their output enters context. |
142142
143143Progressive disclosure ensures only relevant content occupies the context window at any given time.
144144
from line 375
375375* Availability: Available
376376* Usage: List each Skill’s `type` and `skill_id` in `container.skills`, and include the code execution tool, whose container the Skills run in.
377377
378| Status | Cloud platforms |
379| --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
380| Available | Claude API, [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws), [Claude Models on Google Cloud (Anthropic managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/anthropic-managed) |
381| Available<sup>1</sup> | [Microsoft Foundry (hosted on Anthropic)](https://platform.claude.com/docs/en/build-with-claude/claude-in-microsoft-foundry) |
378| Status | Cloud platforms |
379| ----- | ----- |
380| Available | Claude API, [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws), [Claude Models on Google Cloud (Anthropic managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/anthropic-managed) |
381| Available<sup>1</sup> | [Microsoft Foundry (hosted on Anthropic)](https://platform.claude.com/docs/en/build-with-claude/claude-in-microsoft-foundry) |
382382
3833831. Hosted on Anthropic deployments only; the skill version download endpoint (`GET /v1/skills/{skill_id}/versions/{version}/content`) is not supported on Foundry.
384384
from line 387
387387* Availability: Available
388388* Usage: Attach skills in the agent’s `skills` array, or load them from a GitHub repository mounted on the session.
389389
390| Status | Cloud platforms |
391| --------- | ----------------------- |
390| Status | Cloud platforms |
391| ----- | ----- |
392392| Available | All supported platforms |
393393
394394### Data handling
from line 395
395395
396396[Data handling overview](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#feature-eligibility)
397397
398| Item | Zero data retention | HIPAA |
399| ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ |
400| Status | Not eligible | Not eligible |
401| Details | Skill data retained according to standard policy. [Learn more](https://platform.claude.com/docs/en/agents-and-tools/agent-skills/overview#data-retention) | — |
398| Item | Zero data retention | HIPAA |
399| ----- | ----- | ----- |
400| Status | Not eligible | Not eligible |
401| Details | Skill data retained according to standard policy. [Learn more](https://platform.claude.com/docs/en/agents-and-tools/agent-skills/overview#data-retention) | — |
402402
403403Applicable endpoints:
404404
agents-and-tools/mcp-connector Changed · +46 / -46 lines
from line 344
344344
345345### Field descriptions
346346
347| Property | Type | Required | Description |
348| --------------------- | ------ | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
349| `type` | string | Yes | Currently only `url` is supported. |
350| `url` | string | Yes | The URL of the MCP server. Must start with `https://`. |
351| `name` | string | Yes | A unique identifier for this MCP server. Must be referenced by exactly one MCPToolset in the `tools` array. |
352| `authorization_token` | string | No | OAuth authorization token if required by the MCP server. See [Authentication](https://platform.claude.com/docs/en/agents-and-tools/mcp-connector#authentication) for how to obtain one. |
347| Property | Type | Required | Description |
348| ----- | ----- | ----- | ----- |
349| `type` | string | Yes | Currently only `url` is supported. |
350| `url` | string | Yes | The URL of the MCP server. Must start with `https://`. |
351| `name` | string | Yes | A unique identifier for this MCP server. Must be referenced by exactly one MCPToolset in the `tools` array. |
352| `authorization_token` | string | No | OAuth authorization token if required by the MCP server. See [Authentication](https://platform.claude.com/docs/en/agents-and-tools/mcp-connector#authentication) for how to obtain one. |
353353
354354## MCP toolset configuration
355355
from line 376
376376
377377### Field descriptions
378378
379| Property | Type | Required | Description |
380| ----------------- | ------ | -------- | --------------------------------------------------------------------------------------------------------------------------------------- |
381| `type` | string | Yes | Must be `mcp_toolset`. |
382| `mcp_server_name` | string | Yes | Must match a server name defined in the `mcp_servers` array. |
383| `default_config` | object | No | Default configuration applied to all tools in this set. Individual tool configs in `configs` override these defaults. |
384| `configs` | object | No | Per-tool configuration overrides. Keys are tool names; values are configuration objects. |
385| `cache_control` | object | No | [Prompt caching](https://platform.claude.com/docs/en/build-with-claude/prompt-caching) cache breakpoint configuration for this toolset. |
379| Property | Type | Required | Description |
380| ----- | ----- | ----- | ----- |
381| `type` | string | Yes | Must be `mcp_toolset`. |
382| `mcp_server_name` | string | Yes | Must match a server name defined in the `mcp_servers` array. |
383| `default_config` | object | No | Default configuration applied to all tools in this set. Individual tool configs in `configs` override these defaults. |
384| `configs` | object | No | Per-tool configuration overrides. Keys are tool names; values are configuration objects. |
385| `cache_control` | object | No | [Prompt caching](https://platform.claude.com/docs/en/build-with-claude/prompt-caching) cache breakpoint configuration for this toolset. |
386386
387387With the `mcp-client-2026-09-15` beta header, an MCPToolset also accepts `tools`, a pinned copy of the server’s tool list. See [Pin an MCP server’s tool list](https://platform.claude.com/docs/en/agents-and-tools/mcp-connector#pin-mcp-tool-list).
388388
from line 390
390390
391391Each tool (whether configured in `default_config` or in `configs`) supports the following fields:
392392
393| Property | Type | Default | Description |
394| --------------- | ------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
395| `enabled` | boolean | `true` | Whether this tool is enabled. |
393| Property | Type | Default | Description |
394| ----- | ----- | ----- | ----- |
395| `enabled` | boolean | `true` | Whether this tool is enabled. |
396396| `defer_loading` | boolean | `false` | If true, tool description is not sent to the model initially. Used with [Tool search tool](https://platform.claude.com/docs/en/agents-and-tools/tool-use/tool-search-tool). |
397397
398398For the full directory of Anthropic-provided tools and optional properties such as `defer_loading`, see the [Tool reference](https://platform.claude.com/docs/en/agents-and-tools/tool-use/tool-reference). To search across large tool sets, see [Tool search tool](https://platform.claude.com/docs/en/agents-and-tools/tool-use/tool-search-tool).
from line 1395
13951395 ```
13961396</CodeGroup>
13971397
1398| Helper | Description |
1399| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1400| `async_mcp_tool(tool, mcp_client)` (typescript: `mcpTools(tools, mcpClient)`; csharp: `BetaMcp.ListToolsAsync(mcpClient)`; go: `mcp.NewBetaTools(tools, session)`; java: `BetaMcp.mcpTools(tools, mcpClient)`; php: `BetaMcp::tools($tools, $mcp)`; ruby: `Anthropic::Mcp.tools(tools, mcp_client)`) | Converts MCP tools to Claude API tools for use with `client.beta.messages.tool_runner()` (typescript: `client.beta.messages.toolRunner()`; java: `client.beta().messages().toolRunner()`; php: `$client->beta->messages->toolRunner()`; csharp: `client.Beta.Messages.ToolRunner()`; go: `client.Beta.Messages.NewToolRunner()`) |
1401| `mcp_message(message)` (typescript: `mcpMessages(messages)`; csharp: `BetaMcp.Messages(messages)`; go: `mcp.ToMessage(message)`; java: `BetaMcp.mcpMessages(messages)`; php: `BetaMcp::message($message)`; ruby: `Anthropic::Mcp.message(message)`) | Converts MCP prompt messages to Claude API message format |
1402| `mcp_resource_to_content(resource)` (typescript: `mcpResourceToContent(resource)`; csharp: `BetaMcp.ResourceToContent(resource)`; go: `mcp.ResourceToBlock(resource)`; java: `BetaMcp.mcpResourceContents(resource)`; php: `BetaMcp::resourceToContent($resource)`; ruby: `Anthropic::Mcp.resource_to_contents(resource)`) | Converts an MCP resource to a Claude API content block |
1403| `mcp_resource_to_file(resource)` (typescript: `mcpResourceToFile(resource)`; csharp: `BetaMcp.ResourceToFile(resource)`; go: `mcp.ResourceToFile(resource)`; java: `BetaMcp.mcpResourceFiles(resource)`; php: `BetaMcp::resourceToFile($resource)`; ruby: `Anthropic::Mcp.resource_to_files(resource)`) | Converts an MCP resource to a file object for upload |
1398| Helper | Description |
1399| ----- | ----- |
1400| `async_mcp_tool(tool, mcp_client)` (typescript: `mcpTools(tools, mcpClient)`; csharp: `BetaMcp.ListToolsAsync(mcpClient)`; go: `mcp.NewBetaTools(tools, session)`; java: `BetaMcp.mcpTools(tools, mcpClient)`; php: `BetaMcp::tools($tools, $mcp)`; ruby: `Anthropic::Mcp.tools(tools, mcp_client)`) | Converts MCP tools to Claude API tools for use with `client.beta.messages.tool_runner()` (typescript: `client.beta.messages.toolRunner()`; java: `client.beta().messages().toolRunner()`; php: `$client->beta->messages->toolRunner()`; csharp: `client.Beta.Messages.ToolRunner()`; go: `client.Beta.Messages.NewToolRunner()`) |
1401| `mcp_message(message)` (typescript: `mcpMessages(messages)`; csharp: `BetaMcp.Messages(messages)`; go: `mcp.ToMessage(message)`; java: `BetaMcp.mcpMessages(messages)`; php: `BetaMcp::message($message)`; ruby: `Anthropic::Mcp.message(message)`) | Converts MCP prompt messages to Claude API message format |
1402| `mcp_resource_to_content(resource)` (typescript: `mcpResourceToContent(resource)`; csharp: `BetaMcp.ResourceToContent(resource)`; go: `mcp.ResourceToBlock(resource)`; java: `BetaMcp.mcpResourceContents(resource)`; php: `BetaMcp::resourceToContent($resource)`; ruby: `Anthropic::Mcp.resource_to_contents(resource)`) | Converts an MCP resource to a Claude API content block |
1403| `mcp_resource_to_file(resource)` (typescript: `mcpResourceToFile(resource)`; csharp: `BetaMcp.ResourceToFile(resource)`; go: `mcp.ResourceToFile(resource)`; java: `BetaMcp.mcpResourceFiles(resource)`; php: `BetaMcp::resourceToFile($resource)`; ruby: `Anthropic::Mcp.resource_to_files(resource)`) | Converts an MCP resource to a file object for upload |
14041404
14051405### Use MCP tools
14061406
from line 2093
20932093
20942094### Common migration patterns
20952095
2096| Old pattern | New pattern |
2097| ------------------------------------------- | --------------------------------------------------------------------------------------- |
2098| No `tool_configuration` (all tools enabled) | MCPToolset with no `default_config` or `configs` |
2099| `tool_configuration.enabled: false` | MCPToolset with `default_config.enabled: false` |
2100| `tool_configuration.allowed_tools: [...]` | MCPToolset with `default_config.enabled: false` and specific tools enabled in `configs` |
2096| Old pattern | New pattern |
2097| ----- | ----- |
2098| No `tool_configuration` (all tools enabled) | MCPToolset with no `default_config` or `configs` |
2099| `tool_configuration.enabled: false` | MCPToolset with `default_config.enabled: false` |
2100| `tool_configuration.allowed_tools: [...]` | MCPToolset with `default_config.enabled: false` and specific tools enabled in `configs` |
21012101
21022102## Deprecated version: mcp-client-2025-04-04
21032103
from line 2126
21262126
21272127### Deprecated field descriptions
21282128
2129| Property | Type | Description |
2130| ---------------------------------- | ------- | ------------------------------------------------------------------ |
2131| `tool_configuration` | object | **Deprecated:** Use MCPToolset in the `tools` array instead |
2132| `tool_configuration.enabled` | boolean | **Deprecated:** Use `default_config.enabled` in MCPToolset |
2133| `tool_configuration.allowed_tools` | array | **Deprecated:** Use allowlist pattern with `configs` in MCPToolset |
2129| Property | Type | Description |
2130| ----- | ----- | ----- |
2131| `tool_configuration` | object | **Deprecated:** Use MCPToolset in the `tools` array instead |
2132| `tool_configuration.enabled` | boolean | **Deprecated:** Use `default_config.enabled` in MCPToolset |
2133| `tool_configuration.allowed_tools` | array | **Deprecated:** Use allowlist pattern with `configs` in MCPToolset |
21342134
21352135## Availability
21362136
from line 2143
21432143* Availability: Available
21442144* Usage: Pass `mcp_servers` and a matching `mcp_toolset` in `tools` on each request. For OAuth servers you get and refresh the access token yourself and pass it as `authorization_token`.
21452145
2146| Status | Cloud platforms |
2147| ------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
2148| Beta | Claude API, [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws), [Claude Models on Google Cloud (Anthropic managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/anthropic-managed), [Microsoft Foundry](https://platform.claude.com/docs/en/build-with-claude/claude-in-microsoft-foundry) |
2146| Status | Cloud platforms |
2147| ----- | ----- |
2148| Beta | Claude API, [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws), [Claude Models on Google Cloud (Anthropic managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/anthropic-managed), [Microsoft Foundry](https://platform.claude.com/docs/en/build-with-claude/claude-in-microsoft-foundry) |
21492149
21502150#### [Managed Agents](https://platform.claude.com/docs/en/managed-agents/overview)
21512151
from line 2152
21522152* Availability: Available
21532153* Usage: Declare MCP servers on the agent. Each session supplies credentials by referencing a vault, so secrets stay out of the agent definition.
21542154
2155| Status | Cloud platforms |
2156| ------ | ----------------------- |
2157| Beta | All supported platforms |
2155| Status | Cloud platforms |
2156| ----- | ----- |
2157| Beta | All supported platforms |
21582158
21592159### Required beta headers
21602160
from line 2162
21622162
21632163Beta headers allow you to access experimental features and new model capabilities before they become part of the standard API.
21642164
2165| Header | APIs | Cloud platforms |
2166| -------------------------------------------------- | ------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
2167| `mcp-client-2026-09-15` or `mcp-client-2025-11-20` | [Messages API](https://platform.claude.com/docs/en/build-with-claude/working-with-messages) | Claude API, [Claude Models on Google Cloud (Anthropic managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/anthropic-managed) |
2168| `mcp-client-2025-11-20` | [Messages API](https://platform.claude.com/docs/en/build-with-claude/working-with-messages) | [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws), [Microsoft Foundry](https://platform.claude.com/docs/en/build-with-claude/claude-in-microsoft-foundry) |
2165| Header | APIs | Cloud platforms |
2166| ----- | ----- | ----- |
2167| `mcp-client-2026-09-15` or `mcp-client-2025-11-20` | [Messages API](https://platform.claude.com/docs/en/build-with-claude/working-with-messages) | Claude API, [Claude Models on Google Cloud (Anthropic managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/anthropic-managed) |
2168| `mcp-client-2025-11-20` | [Messages API](https://platform.claude.com/docs/en/build-with-claude/working-with-messages) | [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws), [Microsoft Foundry](https://platform.claude.com/docs/en/build-with-claude/claude-in-microsoft-foundry) |
21692169
21702170### Data handling
21712171
21722172[Data handling overview](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#feature-eligibility)
21732173
2174| Item | Zero data retention | HIPAA |
2175| ------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------ |
2176| Status | Not eligible | Not eligible |
2177| Details | Data retained according to standard policy. [Learn more](https://platform.claude.com/docs/en/agents-and-tools/mcp-connector#data-retention) | — |
2174| Item | Zero data retention | HIPAA |
2175| ----- | ----- | ----- |
2176| Status | Not eligible | Not eligible |
2177| Details | Data retained according to standard policy. [Learn more](https://platform.claude.com/docs/en/agents-and-tools/mcp-connector#data-retention) | — |
21782178
21792179Applicable endpoints:
21802180
agents-and-tools/mcp-tunnels/concepts Changed · +13 / -13 lines
from line 12
1212
1313## Components
1414
15| Term | Definition | Also appears as |
16| ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
17| **Tunnel stack** | The two containers you run inside your network to attach to a tunnel: the proxy and cloudflared. One stack serves one tunnel and can be replicated across hosts for availability. With programmatic access, the setup component runs alongside the stack to provision credentials. | the stack, the MCP tunnel stack, the tunnel deployment, your deployment |
18| **Proxy** | Anthropic’s routing component. Terminates inner TLS, validates that upstream IPs fall within an allowed range, and routes each request to an upstream MCP server based on hostname. | `mcp-proxy` (image name, Compose service name, and Helm container name), `mcp-gateway` (container-internal config path `/etc/mcp-gateway/config.yaml` and Helm `gateway.config.*` values prefix) |
19| **cloudflared** | Cloudflare’s open-source tunnel connector. Initiates the outbound-only connections from your network to the tunnel edge and carries encrypted traffic between the edge and the proxy. Not related to a Managed Agent. | the outbound connector, the tunnel connector |
20| **Setup component** | The `setup` binary, shipped inside the `mcp-proxy` image. With programmatic access it authenticates over Workload Identity Federation, fetches the tunnel token, generates a CA and server certificate, and registers the CA with Anthropic. Also provides `renew-cert`. | setup Job (the Helm pre-install hook), `setup` service (the Compose profile), setup hook, setup binary, setup CLI |
21| **Tunnel edge** | The Cloudflare edge servers that cloudflared dials out to (IP ranges `198.41.192.0/19` and `2606:4700:a0::/44`, port 7844 TCP and UDP). The tunnel that runs over them is provisioned and controlled by Anthropic; Cloudflare operates the underlying network. | the edge, the Anthropic-operated tunnel edge |
22| **Inner TLS** | A second TLS handshake carried inside the tunnel’s plaintext WebSocket stream, between Anthropic’s back end and your proxy. The proxy presents a server certificate signed by a CA you registered on the tunnel. Because only you hold the private key, the transport provider cannot read request or response payloads. | the inner TLS handshake |
23| **Upstream MCP server** | An MCP server running in your private network that the proxy routes to. Each upstream is exposed as one subdomain under your tunnel domain. | upstream, routed MCP server, tunneled MCP server |
15| Term | Definition | Also appears as |
16| ----- | ----- | ----- |
17| **Tunnel stack** | The two containers you run inside your network to attach to a tunnel: the proxy and cloudflared. One stack serves one tunnel and can be replicated across hosts for availability. With programmatic access, the setup component runs alongside the stack to provision credentials. | the stack, the MCP tunnel stack, the tunnel deployment, your deployment |
18| **Proxy** | Anthropic’s routing component. Terminates inner TLS, validates that upstream IPs fall within an allowed range, and routes each request to an upstream MCP server based on hostname. | `mcp-proxy` (image name, Compose service name, and Helm container name), `mcp-gateway` (container-internal config path `/etc/mcp-gateway/config.yaml` and Helm `gateway.config.*` values prefix) |
19| **cloudflared** | Cloudflare’s open-source tunnel connector. Initiates the outbound-only connections from your network to the tunnel edge and carries encrypted traffic between the edge and the proxy. Not related to a Managed Agent. | the outbound connector, the tunnel connector |
20| **Setup component** | The `setup` binary, shipped inside the `mcp-proxy` image. With programmatic access it authenticates over Workload Identity Federation, fetches the tunnel token, generates a CA and server certificate, and registers the CA with Anthropic. Also provides `renew-cert`. | setup Job (the Helm pre-install hook), `setup` service (the Compose profile), setup hook, setup binary, setup CLI |
21| **Tunnel edge** | The Cloudflare edge servers that cloudflared dials out to (IP ranges `198.41.192.0/19` and `2606:4700:a0::/44`, port 7844 TCP and UDP). The tunnel that runs over them is provisioned and controlled by Anthropic; Cloudflare operates the underlying network. | the edge, the Anthropic-operated tunnel edge |
22| **Inner TLS** | A second TLS handshake carried inside the tunnel’s plaintext WebSocket stream, between Anthropic’s back end and your proxy. The proxy presents a server certificate signed by a CA you registered on the tunnel. Because only you hold the private key, the transport provider cannot read request or response payloads. | the inner TLS handshake |
23| **Upstream MCP server** | An MCP server running in your private network that the proxy routes to. Each upstream is exposed as one subdomain under your tunnel domain. | upstream, routed MCP server, tunneled MCP server |
2424
2525## Credential provisioning
2626
2727The tunnel stack needs two credentials at runtime: the **tunnel token**, which authenticates cloudflared’s outbound connection, and a **server certificate** signed by a CA registered on the tunnel, which the proxy presents during the inner TLS handshake. There are two ways to supply them, presented throughout this guide as a pair of tabs.
2828
29| Mode | How credentials reach the stack | Helm chart name | Tab label |
30| ----------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------- | ------------------------------- |
31| **Programmatic access** | The setup component authenticates to the Tunnels API through [Workload Identity Federation](https://platform.claude.com/docs/en/manage-claude/workload-identity-federation), fetches the tunnel token, generates a CA and server certificate locally, and registers the CA. No long-lived secret is copied by hand. Requires a federation rule with the `workspace:manage_tunnels` scope. | Managed mode (`setup.enabled: true`, the default) | **With programmatic access** |
32| **Manual** | You copy the tunnel token from the Claude Console, generate a CA and server certificate yourself (for example with `openssl`), register the CA in the Console, and supply the token and certificate to the stack as secrets. No setup component runs. | External mode (`setup.enabled: false`) | **Without programmatic access** |
29| Mode | How credentials reach the stack | Helm chart name | Tab label |
30| ----- | ----- | ----- | ----- |
31| **Programmatic access** | The setup component authenticates to the Tunnels API through [Workload Identity Federation](https://platform.claude.com/docs/en/manage-claude/workload-identity-federation), fetches the tunnel token, generates a CA and server certificate locally, and registers the CA. No long-lived secret is copied by hand. Requires a federation rule with the `workspace:manage_tunnels` scope. | Managed mode (`setup.enabled: true`, the default) | **With programmatic access** |
32| **Manual** | You copy the tunnel token from the Claude Console, generate a CA and server certificate yourself (for example with `openssl`), register the CA in the Console, and supply the token and certificate to the stack as secrets. No setup component runs. | External mode (`setup.enabled: false`) | **Without programmatic access** |
3333
3434These modes are also referred to as **the programmatic flow** and **the manual flow** in the deploy guides.
3535
agents-and-tools/mcp-tunnels/console Changed · +7 / -7 lines
from line 56
5656
5757 What else you need depends on the [credential-provisioning mode](https://platform.claude.com/docs/en/agents-and-tools/mcp-tunnels/concepts#credential-provisioning):
5858
59 | With programmatic access | Without programmatic access |
60 | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
59 | With programmatic access | Without programmatic access |
60 | ----- | ----- |
6161 | The **federation rule ID** (`fdrl_...`) of the rule you selected. The rule is org-level, not stored on the tunnel; find it on the **Rules** tab of the [Workload identity](https://platform.claude.com/settings/workload-identity-federation?tab=rules) page (`platform.claude.com/settings/workload-identity-federation?tab=rules`) in the Claude Console. | The **tunnel token**, revealed with the eye icon next to **Token** on the detail page. Treat it as a secret. See [Get the connection details](https://platform.claude.com/docs/en/agents-and-tools/mcp-tunnels/console#get-the-connection-details). |
62 | The **organization ID** (a UUID), shown on the [Organization](https://platform.claude.com/settings/organization) page (`platform.claude.com/settings/organization`) in the Claude Console. | A **CA certificate** that you generate and [register on the tunnel](https://platform.claude.com/docs/en/agents-and-tools/mcp-tunnels/console#add-a-ca-certificate). |
62 | The **organization ID** (a UUID), shown on the [Organization](https://platform.claude.com/settings/organization) page (`platform.claude.com/settings/organization`) in the Claude Console. | A **CA certificate** that you generate and [register on the tunnel](https://platform.claude.com/docs/en/agents-and-tools/mcp-tunnels/console#add-a-ca-certificate). |
6363
6464 With programmatic access, your stack fetches the tunnel token through the Tunnels API, generates the CA and server certificate locally (the private key never leaves your environment), and registers only the CA’s public certificate with Anthropic. You’re still responsible for securing the private keys and renewing the server certificate before it expires.
6565 </Step>
from line 71
7171
7272Open the tunnel. The detail page shows a **Connection** section with the domain and token and a **Certificates** section.
7373
74| Field | Description |
75| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
76| **Domain** | Copy the assigned `abcd1234.tunnel.anthropic.com` value. Your proxy’s routes are subdomains of this domain. |
77| **Token** | Click the eye icon (**Show token**) to fetch the tunnel token, then use the copy icon to copy it into your tunnel stack’s secret store. Click **Rotate token** to invalidate the current token and issue a new one. |
74| Field | Description |
75| ----- | ----- |
76| **Domain** | Copy the assigned `abcd1234.tunnel.anthropic.com` value. Your proxy’s routes are subdomains of this domain. |
77| **Token** | Click the eye icon (**Show token**) to fetch the tunnel token, then use the copy icon to copy it into your tunnel stack’s secret store. Click **Rotate token** to invalidate the current token and issue a new one. |
7878
7979<Note>
8080 Every reveal and rotation is recorded in your organization’s [Compliance API](https://platform.claude.com/docs/en/manage-claude/compliance-api) activity log. Rotation does not sever cloudflared connections that are already established, so you can rotate, redeploy with the new value, and let the old connections drain.
agents-and-tools/mcp-tunnels/deploy-helm Changed · +4 / -4 lines
from line 101
101101 <Step title="Set up Workload Identity Federation for the cluster">
102102 Follow [Use WIF with Kubernetes](https://platform.claude.com/docs/en/manage-claude/wif-providers/kubernetes) to register your cluster’s OIDC issuer and create a federation rule. The setup component runs under its own ServiceAccount in the release namespace; the exact name follows Helm’s `fullname` convention, so for any release name other than `mcp-tunnel`, run `helm template <release> ... | grep -A2 'kind: ServiceAccount'` to confirm it before creating the rule. The rest of this guide assumes release name `mcp-tunnel` in namespace `mcp-tunnel`, where the ServiceAccount is `mcp-tunnel-setup`.
103103
104 | Field | Value |
105 | -------- | ---------------------------------------------------- |
106 | Subject | `system:serviceaccount:mcp-tunnel:mcp-tunnel-setup` |
104 | Field | Value |
105 | ----- | ----- |
106 | Subject | `system:serviceaccount:mcp-tunnel:mcp-tunnel-setup` |
107107 | Audience | `api.anthropic.com` (the chart’s default; no scheme) |
108 | Scope | `workspace:manage_tunnels` |
108 | Scope | `workspace:manage_tunnels` |
109109
110110 <Note>
111111 The chart’s default audience is `api.anthropic.com` with no scheme, but the Console’s federation-rule form suggests `https://api.anthropic.com`. The two must match byte-for-byte or authentication fails. Either set the rule’s audience to `api.anthropic.com`, or set `api.wif.audience` in `values.yaml` to `https://api.anthropic.com`.
agents-and-tools/mcp-tunnels/overview Changed · +31 / -31 lines
from line 70
7070
7171### Network requirements
7272
73| Component | Destination | Port / protocol | Used during |
74| --------------- | ---------------------------------------------------- | ---------------- | ------------------------------- |
75| Setup component | `api.anthropic.com` | 443 TCP | Provisioning and token rotation |
76| cloudflared | Tunnel edge (`198.41.192.0/19`, `2606:4700:a0::/44`) | 7844 TCP and UDP | Runtime |
77| Proxy | Your upstream MCP servers | As configured | Runtime |
73| Component | Destination | Port / protocol | Used during |
74| ----- | ----- | ----- | ----- |
75| Setup component | `api.anthropic.com` | 443 TCP | Provisioning and token rotation |
76| cloudflared | Tunnel edge (`198.41.192.0/19`, `2606:4700:a0::/44`) | 7844 TCP and UDP | Runtime |
77| Proxy | Your upstream MCP servers | As configured | Runtime |
7878
7979## Security model
8080
from line 82
8282
8383Three independent layers protect every request:
8484
85| Layer | Protects against |
86| --------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
87| Outer mTLS between Anthropic and the transport provider, with IP validation | Unauthorized clients reaching the tunnel |
88| Inner TLS from Anthropic’s back end to your proxy | Payload inspection by the transport provider or any network intermediary |
89| OAuth on each MCP server | Unauthorized use of MCP tools by authenticated tunnel traffic |
85| Layer | Protects against |
86| ----- | ----- |
87| Outer mTLS between Anthropic and the transport provider, with IP validation | Unauthorized clients reaching the tunnel |
88| Inner TLS from Anthropic’s back end to your proxy | Payload inspection by the transport provider or any network intermediary |
89| OAuth on each MCP server | Unauthorized use of MCP tools by authenticated tunnel traffic |
9090
9191The tunnel transport runs on Cloudflare’s network. Because the proxy terminates inner TLS using a certificate that only you hold, Cloudflare cannot read request or response payloads. Anthropic does not connect to a tunnel until a CA certificate is registered, so payloads are always encrypted when they cross Cloudflare’s network. Cloudflare does receive connection metadata; see [What the transport provider can observe](https://platform.claude.com/docs/en/agents-and-tools/mcp-tunnels/overview#what-the-transport-provider-can-observe).
9292
9393### Shared responsibility model
9494
95| Anthropic handles | Your organization handles |
96| ------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
97| Tunnel access control | All content and traffic that transits your tunnel, and compliance with applicable third-party acceptable-use policies (including Cloudflare’s) |
98| Validating your CA certificate before connecting to your proxy | Adherence to the deployment guidance on these pages |
99| Ensuring Claude only sends requests to tunnels owned by your organization | Securing tunnel tokens and TLS private keys |
100| | Managing the server certificate and renewing it before it expires |
101| | Configuring OAuth on each MCP server |
102| | Restricting network access for the proxy and MCP servers |
103| | Notifying Anthropic if you suspect a breach |
95| Anthropic handles | Your organization handles |
96| ----- | ----- |
97| Tunnel access control | All content and traffic that transits your tunnel, and compliance with applicable third-party acceptable-use policies (including Cloudflare’s) |
98| Validating your CA certificate before connecting to your proxy | Adherence to the deployment guidance on these pages |
99| Ensuring Claude only sends requests to tunnels owned by your organization | Securing tunnel tokens and TLS private keys |
100| | Managing the server certificate and renewing it before it expires |
101| | Configuring OAuth on each MCP server |
102| | Restricting network access for the proxy and MCP servers |
103| | Notifying Anthropic if you suspect a breach |
104104
105105<Warning>
106106 If an attacker obtains your tunnel token **and** one of your TLS private keys, they could impersonate your proxy and read MCP request payloads. Treat both as high-value secrets. See [MCP tunnels security](https://platform.claude.com/docs/en/agents-and-tools/mcp-tunnels/security) for hardening guidance.
from line 439
439439
440440* Availability: Available
441441
442| Status | Cloud platforms |
443| ---------------- | --------------- |
444| Research preview | Claude API |
442| Status | Cloud platforms |
443| ----- | ----- |
444| Research preview | Claude API |
445445
446446#### [Managed Agents](https://platform.claude.com/docs/en/managed-agents/overview)
447447
448448* Availability: Available
449449
450| Status | Cloud platforms |
451| ---------------- | --------------- |
452| Research preview | Claude API |
450| Status | Cloud platforms |
451| ----- | ----- |
452| Research preview | Claude API |
453453
454454### Required beta headers
455455
from line 457
457457
458458Beta headers allow you to access experimental features and new model capabilities before they become part of the standard API.
459459
460| Header | APIs |
461| -------------------------------------------------- | ------------------------------------------------------------------------------------------- |
460| Header | APIs |
461| ----- | ----- |
462462| `mcp-client-2026-09-15` or `mcp-client-2025-11-20` | [Messages API](https://platform.claude.com/docs/en/build-with-claude/working-with-messages) |
463463
464464### Data handling
from line 465
465465
466466[Data handling overview](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#feature-eligibility)
467467
468| Item | Zero data retention | HIPAA |
469| ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ |
470| Status | Not eligible | Not eligible |
471| Details | Research preview. The MCP tunnels security page describes the data-flow boundary and subprocessor details. [Learn more](https://platform.claude.com/docs/en/agents-and-tools/mcp-tunnels/security) | — |
468| Item | Zero data retention | HIPAA |
469| ----- | ----- | ----- |
470| Status | Not eligible | Not eligible |
471| Details | Research preview. The MCP tunnels security page describes the data-flow boundary and subprocessor details. [Learn more](https://platform.claude.com/docs/en/agents-and-tools/mcp-tunnels/security) | — |
472472
473473Applicable endpoints:
474474
agents-and-tools/mcp-tunnels/reference Changed · +30 / -30 lines
from line 12
1212
1313The [proxy](https://platform.claude.com/docs/en/agents-and-tools/mcp-tunnels/concepts#components) reads its configuration from `/etc/mcp-gateway/config.yaml` (Compose) or the rendered ConfigMap (Helm, populated from `gateway.config.*`).
1414
15| Field | Description | Default |
16| --------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------- |
17| `listen_addr` | Address and port to listen on. | Required |
18| `log_level` | Logging verbosity: `debug`, `info`, `warn`, or `error`. | `info` |
19| `shutdown_timeout` | How long to wait for in-flight requests during graceful shutdown. | `30s` |
20| `tunnel_domain` | Base domain assigned to the tunnel. When set, route lookup strips this suffix from incoming hostnames so `routes` keys can be bare subdomains (`wiki`). When empty, `routes` keys must be exact full hostnames. | Required when `routes` keys are bare subdomains |
21| `tls.cert_file` | Path to the server TLS certificate. | Required |
22| `tls.key_file` | Path to the server TLS private key. | Required |
23| `routes` | Map of subdomain or full hostname to upstream URL. See [Route matching](https://platform.claude.com/docs/en/agents-and-tools/mcp-tunnels/reference#route-matching). | Required |
24| `upstream.allowed_ips` | IPv4 CIDR ranges or single addresses the proxy is allowed to connect to. Mutually exclusive with `disable_ip_validation`. | RFC1918 private ranges |
25| `upstream.disable_ip_validation` | Disable upstream IP validation entirely. Mutually exclusive with `allowed_ips`. | `false` |
26| `upstream.tls.ca_file` | CA bundle for validating upstream TLS. | None |
27| `upstream.tls.include_system_cas` | Also trust the system CA bundle for upstream TLS. | `false` |
15| Field | Description | Default |
16| ----- | ----- | ----- |
17| `listen_addr` | Address and port to listen on. | Required |
18| `log_level` | Logging verbosity: `debug`, `info`, `warn`, or `error`. | `info` |
19| `shutdown_timeout` | How long to wait for in-flight requests during graceful shutdown. | `30s` |
20| `tunnel_domain` | Base domain assigned to the tunnel. When set, route lookup strips this suffix from incoming hostnames so `routes` keys can be bare subdomains (`wiki`). When empty, `routes` keys must be exact full hostnames. | Required when `routes` keys are bare subdomains |
21| `tls.cert_file` | Path to the server TLS certificate. | Required |
22| `tls.key_file` | Path to the server TLS private key. | Required |
23| `routes` | Map of subdomain or full hostname to upstream URL. See [Route matching](https://platform.claude.com/docs/en/agents-and-tools/mcp-tunnels/reference#route-matching). | Required |
24| `upstream.allowed_ips` | IPv4 CIDR ranges or single addresses the proxy is allowed to connect to. Mutually exclusive with `disable_ip_validation`. | RFC1918 private ranges |
25| `upstream.disable_ip_validation` | Disable upstream IP validation entirely. Mutually exclusive with `allowed_ips`. | `false` |
26| `upstream.tls.ca_file` | CA bundle for validating upstream TLS. | None |
27| `upstream.tls.include_system_cas` | Also trust the system CA bundle for upstream TLS. | `false` |
2828
2929For `https://` upstream routes, set at least one of `upstream.tls.ca_file` or `upstream.tls.include_system_cas`; otherwise the proxy has no trust anchor for the upstream certificate.
3030
from line 48
4848
4949Required headers on every request:
5050
51| Header | Value |
52| ------------------- | ------------------------------------------ |
53| `Authorization` | `Bearer <token>` (the WIF-exchanged token) |
54| `anthropic-version` | `2026-10-21` |
55| `anthropic-beta` | `mcp-tunnels-2026-06-22` |
51| Header | Value |
52| ----- | ----- |
53| `Authorization` | `Bearer <token>` (the WIF-exchanged token) |
54| `anthropic-version` | `2026-10-21` |
55| `anthropic-beta` | `mcp-tunnels-2026-06-22` |
5656
5757## Certificate requirements
5858
from line 90
9090
9191Attaches to an existing tunnel (or creates one when no tunnel ID is supplied), then generates a CA and server certificate, registers the CA, retrieves the tunnel token, and writes all outputs to the destination.
9292
93| Flag | Description | Default |
94| ----------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- |
95| `--api-url` | Claude API base URL. Also read from `API_URL`. | Required |
96| `--tunnel-id` | Tunnel ID to attach to (`tnl_...`). Also read from `TUNNEL_ID`. When omitted, a new tunnel is created; a tunnel ID already stored in the output is reused on re-runs. | None (create a tunnel) |
97| `--output` | Output destination: `dir:/path` or `k8s-secret:NAME`. The Helm chart passes `k8s-secret:<release>`. | `k8s-secret:mcp-tunnel` (auto-detected when running in a Kubernetes pod; required otherwise) |
98| `--cert-duration` | Server certificate validity period. | `2160h` (90 days) |
99| `--token-version` | Change-detection string. A new value triggers token rotation on re-run. The Helm chart and the Compose example both pass `1` as the initial value. | None |
93| Flag | Description | Default |
94| ----- | ----- | ----- |
95| `--api-url` | Claude API base URL. Also read from `API_URL`. | Required |
96| `--tunnel-id` | Tunnel ID to attach to (`tnl_...`). Also read from `TUNNEL_ID`. When omitted, a new tunnel is created; a tunnel ID already stored in the output is reused on re-runs. | None (create a tunnel) |
97| `--output` | Output destination: `dir:/path` or `k8s-secret:NAME`. The Helm chart passes `k8s-secret:<release>`. | `k8s-secret:mcp-tunnel` (auto-detected when running in a Kubernetes pod; required otherwise) |
98| `--cert-duration` | Server certificate validity period. | `2160h` (90 days) |
99| `--token-version` | Change-detection string. A new value triggers token rotation on re-run. The Helm chart and the Compose example both pass `1` as the initial value. | None |
100100
101101The command authenticates through [Workload Identity Federation](https://platform.claude.com/docs/en/manage-claude/workload-identity-federation). It reads `ANTHROPIC_FEDERATION_RULE_ID`, `ANTHROPIC_ORGANIZATION_ID`, `ANTHROPIC_WORKSPACE_ID` (optional), and exactly one of `ANTHROPIC_IDENTITY_TOKEN_FILE` or `ANTHROPIC_IDENTITY_TOKEN`. See the [WIF reference](https://platform.claude.com/docs/en/manage-claude/wif-reference) for the current semantics of these variables; the setup component derives the service account from the federation rule, so it does not require `ANTHROPIC_SERVICE_ACCOUNT_ID` separately.
102102
from line 104
104104
105105Issues a new server certificate signed by the stored CA. Makes no API calls.
106106
107| Flag | Description | Default |
108| ----------------- | --------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- |
109| `--output` | Output destination: `dir:/path` or `k8s-secret:NAME`. The Helm chart passes `k8s-secret:<release>`. | `k8s-secret:mcp-tunnel` (auto-detected when running in a Kubernetes pod; required otherwise) |
110| `--cert-duration` | New certificate validity period. | `2160h` (90 days) |
111| `--renew-before` | Skip renewal if the existing certificate has more than this duration remaining. | `0` (always renew) |
107| Flag | Description | Default |
108| ----- | ----- | ----- |
109| `--output` | Output destination: `dir:/path` or `k8s-secret:NAME`. The Helm chart passes `k8s-secret:<release>`. | `k8s-secret:mcp-tunnel` (auto-detected when running in a Kubernetes pod; required otherwise) |
110| `--cert-duration` | New certificate validity period. | `2160h` (90 days) |
111| `--renew-before` | Skip renewal if the existing certificate has more than this duration remaining. | `0` (always renew) |
112112
113113Setting `--renew-before=720h` makes the command a no-op when more than 30 days of validity remain, so it’s safe to run on a fixed schedule.
114114
agents-and-tools/mcp-tunnels/troubleshooting Changed · +9 / -9 lines
from line 12
1212
1313## Quick reference
1414
15| Symptom | Cause | Fix |
16| -------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
17| Tunnel doesn’t appear in the agent MCP server picker | The picker only lists tunnels in the session’s workspace that have at least one active certificate. | Register a CA certificate, or open the session in the workspace the tunnel was created in. |
18| Caller sees HTTP 500; [cloudflared](https://platform.claude.com/docs/en/agents-and-tools/mcp-tunnels/concepts#components) logs `No ingress rules were defined` | cloudflared has no local target. | Add `--url http://localhost:8080` and `network_mode: "service:mcp-proxy"` to the cloudflared service. |
19| Proxy logs `no route for host` | `tunnel_domain` doesn’t match the assigned domain, or `config.yaml` was edited without restarting. | Set `tunnel_domain` to the exact domain shown on the tunnel detail page, then restart the proxy (`docker compose restart mcp-proxy`). |
20| Proxy logs `IP validation failed: <ip> is not a private address` | Upstream MCP server resolves outside RFC1918. | See [Upstream IP validation](https://platform.claude.com/docs/en/agents-and-tools/mcp-tunnels/troubleshooting#upstream-ip-validation). |
21| Proxy exits with `cannot unmarshal !!seq into map[string]string` | `routes` is a YAML list. | Use `routes: { name: http://host:port }`. |
22| Proxy exits with `open /data/tls.key: permission denied` | The key is `0600`; the proxy container runs non-root. | `chmod 644 data/tls.key`. |
23| `curl https://<proxy>:8080` fails with `wrong version number` | Expected; the listener is plaintext WebSocket. TLS occurs inside the WS stream. | Verify through a [Managed Agent or the Messages API](https://platform.claude.com/docs/en/agents-and-tools/mcp-tunnels/overview#use-the-tunneled-mcp-servers) instead. |
15| Symptom | Cause | Fix |
16| ----- | ----- | ----- |
17| Tunnel doesn’t appear in the agent MCP server picker | The picker only lists tunnels in the session’s workspace that have at least one active certificate. | Register a CA certificate, or open the session in the workspace the tunnel was created in. |
18| Caller sees HTTP 500; [cloudflared](https://platform.claude.com/docs/en/agents-and-tools/mcp-tunnels/concepts#components) logs `No ingress rules were defined` | cloudflared has no local target. | Add `--url http://localhost:8080` and `network_mode: "service:mcp-proxy"` to the cloudflared service. |
19| Proxy logs `no route for host` | `tunnel_domain` doesn’t match the assigned domain, or `config.yaml` was edited without restarting. | Set `tunnel_domain` to the exact domain shown on the tunnel detail page, then restart the proxy (`docker compose restart mcp-proxy`). |
20| Proxy logs `IP validation failed: <ip> is not a private address` | Upstream MCP server resolves outside RFC1918. | See [Upstream IP validation](https://platform.claude.com/docs/en/agents-and-tools/mcp-tunnels/troubleshooting#upstream-ip-validation). |
21| Proxy exits with `cannot unmarshal !!seq into map[string]string` | `routes` is a YAML list. | Use `routes: { name: http://host:port }`. |
22| Proxy exits with `open /data/tls.key: permission denied` | The key is `0600`; the proxy container runs non-root. | `chmod 644 data/tls.key`. |
23| `curl https://<proxy>:8080` fails with `wrong version number` | Expected; the listener is plaintext WebSocket. TLS occurs inside the WS stream. | Verify through a [Managed Agent or the Messages API](https://platform.claude.com/docs/en/agents-and-tools/mcp-tunnels/overview#use-the-tunneled-mcp-servers) instead. |
2424
2525The following sections cover failures that need more than a one-line fix.
2626
agents-and-tools/tool-use/advisor-tool Changed · +43 / -43 lines
from line 310
310310
311311## Tool parameters
312312
313| Parameter | Type | Default | Description |
314| ------------ | -------------- | -------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
315| `type` | string | *required* | Must be `"advisor_20260301"`. |
316| `name` | string | *required* | Must be `"advisor"`. |
317| `model` | string | *required* | The advisor model ID, such as claude-opus-5-5. Billed at this model’s rates for the sub-inference. |
318| `max_uses` | integer | unlimited | Maximum number of advisor calls allowed in a single turn. Once the executor reaches this cap, further advisor calls return an `advisor_tool_result_error` with `error_code: "max_uses_exceeded"` and the executor continues without further advice. See [Cost control](https://platform.claude.com/docs/en/agents-and-tools/tool-use/advisor-tool#cost-control) for conversation-level limits. |
319| `max_tokens` | integer | advisor model’s output cap | Caps the advisor’s total output (thinking plus text) per call. Minimum 1024. See [Capping advisor output](https://platform.claude.com/docs/en/agents-and-tools/tool-use/advisor-tool#capping-advisor-output). |
320| `caching` | object \| null | `null` (off) | Enables [prompt caching](https://platform.claude.com/docs/en/build-with-claude/prompt-caching) for the advisor’s own transcript across calls within a conversation. See [Advisor prompt caching](https://platform.claude.com/docs/en/agents-and-tools/tool-use/advisor-tool#advisor-prompt-caching). |
313| Parameter | Type | Default | Description |
314| ----- | ----- | ----- | ----- |
315| `type` | string | *required* | Must be `"advisor_20260301"`. |
316| `name` | string | *required* | Must be `"advisor"`. |
317| `model` | string | *required* | The advisor model ID, such as claude-opus-5-5. Billed at this model’s rates for the sub-inference. |
318| `max_uses` | integer | unlimited | Maximum number of advisor calls allowed in a single turn. Once the executor reaches this cap, further advisor calls return an `advisor_tool_result_error` with `error_code: "max_uses_exceeded"` and the executor continues without further advice. See [Cost control](https://platform.claude.com/docs/en/agents-and-tools/tool-use/advisor-tool#cost-control) for conversation-level limits. |
319| `max_tokens` | integer | advisor model’s output cap | Caps the advisor’s total output (thinking plus text) per call. Minimum 1024. See [Capping advisor output](https://platform.claude.com/docs/en/agents-and-tools/tool-use/advisor-tool#capping-advisor-output). |
320| `caching` | object \| null | `null` (off) | Enables [prompt caching](https://platform.claude.com/docs/en/build-with-claude/prompt-caching) for the advisor’s own transcript across calls within a conversation. See [Advisor prompt caching](https://platform.claude.com/docs/en/agents-and-tools/tool-use/advisor-tool#advisor-prompt-caching). |
321321
322322The `max_uses` cap applies to a whole turn, and a turn can span several requests. A request continues the turn when it [resumes after `pause_turn`](https://platform.claude.com/docs/en/agents-and-tools/tool-use/advisor-tool#resuming-a-paused-turn) or when its last message contains only `tool_result` blocks. Advisor calls from earlier requests in that turn count against the cap.
323323
from line 367
367367
368368The `advisor_tool_result.content` field is a discriminated union. For successful calls, the variant depends on the advisor model:
369369
370| Variant | Fields | Returned when |
371| ------------------------- | ---------------------------------- | ------------------------------------------------------------------- |
372| `advisor_result` | `text`, `stop_reason` | The advisor model returns plaintext (for example, Claude Opus 4.8). |
373| `advisor_redacted_result` | `encrypted_content`, `stop_reason` | The advisor model returns encrypted output. |
370| Variant | Fields | Returned when |
371| ----- | ----- | ----- |
372| `advisor_result` | `text`, `stop_reason` | The advisor model returns plaintext (for example, Claude Opus 4.8). |
373| `advisor_redacted_result` | `encrypted_content`, `stop_reason` | The advisor model returns encrypted output. |
374374
375375<Note>
376376 Claude Fable 5.2, Claude Mythos 5.2, Claude Sonnet 5.5, Claude Fable 5.1, Claude Mythos 5.1, Claude Opus 5.5, Claude Opus 5, Claude Fable 5, Claude Mythos 5, and Claude Haiku 5.5 advisors return the encrypted `advisor_redacted_result`. Every other advisor model in [Model compatibility](https://platform.claude.com/docs/en/agents-and-tools/tool-use/advisor-tool#model-compatibility) returns the plaintext `advisor_result`. To read the advice text in your own responses, use an advisor that returns plaintext, such as `claude-opus-4-8`, where [Model compatibility](https://platform.claude.com/docs/en/agents-and-tools/tool-use/advisor-tool#model-compatibility) lists one for your executor. Claude Fable 5.2, Claude Mythos 5.2, Claude Sonnet 5.5, Claude Fable 5.1, Claude Mythos 5.1, Claude Opus 5.5, Claude Opus 5, Claude Fable 5, and Claude Mythos 5 executors pair only with advisors that return the encrypted form, so on those executors the advice text isn’t readable in the response.
from line 427
427427
428428The executor receives the error and continues without further advice. The request itself does not fail.
429429
430| `error_code` | Meaning |
431| ------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
432| `max_uses_exceeded` | The turn reached the [`max_uses`](https://platform.claude.com/docs/en/agents-and-tools/tool-use/advisor-tool#tool-parameters) cap set on the tool definition. Further advisor calls in the same turn return this error. |
433| `too_many_requests` | The advisor sub-inference was rate-limited. |
434| `overloaded` | The advisor sub-inference hit capacity limits. |
435| `prompt_too_long` | The transcript exceeded the advisor model’s context window. |
436| `execution_time_exceeded` | The advisor sub-inference timed out. |
437| `model_not_found` | The configured advisor model is not available. |
438| `unavailable` | Any other advisor failure. |
430| `error_code` | Meaning |
431| ----- | ----- |
432| `max_uses_exceeded` | The turn reached the [`max_uses`](https://platform.claude.com/docs/en/agents-and-tools/tool-use/advisor-tool#tool-parameters) cap set on the tool definition. Further advisor calls in the same turn return this error. |
433| `too_many_requests` | The advisor sub-inference was rate-limited. |
434| `overloaded` | The advisor sub-inference hit capacity limits. |
435| `prompt_too_long` | The transcript exceeded the advisor model’s context window. |
436| `execution_time_exceeded` | The advisor sub-inference timed out. |
437| `model_not_found` | The configured advisor model is not available. |
438| `unavailable` | Any other advisor failure. |
439439
440440Advisor rate limits draw from the same per-model bucket as direct calls to the advisor model. A rate limit on the advisor appears as `too_many_requests` inside the tool result. A rate limit on the executor fails the whole request with HTTP 429.
441441
from line 1623
16231623
16241624The executor can search the web, call the advisor, and use your custom tools in the same turn. The advisor’s plan can inform which tools the executor reaches for next.
16251625
1626| Feature | Interaction |
1627| ------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1628| [Batch processing](https://platform.claude.com/docs/en/build-with-claude/batch-processing) | Supported. `usage.iterations` is reported per item. |
1629| [Token counting](https://platform.claude.com/docs/en/build-with-claude/token-counting) | Returns the executor’s first-iteration input tokens only. For a rough advisor estimate, call `client.beta.messages.count_tokens()` (typescript: `client.beta.messages.countTokens()`; go, csharp: `client.Beta.Messages.CountTokens()`; java: `client.beta().messages().countTokens()`; php: `$client->beta->messages->countTokens()`; cli: `ant beta:messages count-tokens`; curl: `POST /v1/messages/count_tokens`) with `model` set to the advisor model and the same messages. |
1630| [Context editing](https://platform.claude.com/docs/en/build-with-claude/context-editing) | `clear_tool_uses` is not fully compatible with advisor tool blocks. With `clear_thinking`, see the earlier caching warning. |
1631| `pause_turn` | A dangling advisor call ends the response with `stop_reason: "pause_turn"` and a `server_tool_use` block with no result when no client `tool_use` block is awaiting your result in the same turn. The advisor runs on resumption. If the executor also called one of your tools in that turn, the response ends with `stop_reason: "tool_use"` instead, and the pending advisor call runs at the start of your next request, after you send the `tool_result` blocks. See [Resuming a paused turn](https://platform.claude.com/docs/en/agents-and-tools/tool-use/advisor-tool#resuming-a-paused-turn), [Mixing server tools and client tools in one turn](https://platform.claude.com/docs/en/agents-and-tools/tool-use/server-tools#mixing-server-tools-and-client-tools-in-one-turn), and [The server-side loop and pause\_turn](https://platform.claude.com/docs/en/agents-and-tools/tool-use/server-tools#the-server-side-loop-and-pause-turn). |
1626| Feature | Interaction |
1627| ----- | ----- |
1628| [Batch processing](https://platform.claude.com/docs/en/build-with-claude/batch-processing) | Supported. `usage.iterations` is reported per item. |
1629| [Token counting](https://platform.claude.com/docs/en/build-with-claude/token-counting) | Returns the executor’s first-iteration input tokens only. For a rough advisor estimate, call `client.beta.messages.count_tokens()` (typescript: `client.beta.messages.countTokens()`; go, csharp: `client.Beta.Messages.CountTokens()`; java: `client.beta().messages().countTokens()`; php: `$client->beta->messages->countTokens()`; cli: `ant beta:messages count-tokens`; curl: `POST /v1/messages/count_tokens`) with `model` set to the advisor model and the same messages. |
1630| [Context editing](https://platform.claude.com/docs/en/build-with-claude/context-editing) | `clear_tool_uses` is not fully compatible with advisor tool blocks. With `clear_thinking`, see the earlier caching warning. |
1631| `pause_turn` | A dangling advisor call ends the response with `stop_reason: "pause_turn"` and a `server_tool_use` block with no result when no client `tool_use` block is awaiting your result in the same turn. The advisor runs on resumption. If the executor also called one of your tools in that turn, the response ends with `stop_reason: "tool_use"` instead, and the pending advisor call runs at the start of your next request, after you send the `tool_result` blocks. See [Resuming a paused turn](https://platform.claude.com/docs/en/agents-and-tools/tool-use/advisor-tool#resuming-a-paused-turn), [Mixing server tools and client tools in one turn](https://platform.claude.com/docs/en/agents-and-tools/tool-use/server-tools#mixing-server-tools-and-client-tools-in-one-turn), and [The server-side loop and pause\_turn](https://platform.claude.com/docs/en/agents-and-tools/tool-use/server-tools#the-server-side-loop-and-pause-turn). |
16321632
16331633## Best practices
16341634
from line 1821
18211821**Recommended starting point:** `max_tokens: 2048`. In Anthropic’s testing on a hard reasoning benchmark (n = 40 for each configuration), this reduced mean advisor output by roughly 7x compared with leaving the cap unset, with near-zero truncation and no detectable quality degradation. The minimum value of 1024 reduced output roughly 10x but truncated around 10 percent of calls. Accuracy differences across all configurations were within noise at this sample size. Validate on your own workload.
18221822
18231823| `max_tokens` | Mean advisor output tokens | Calls truncated |
1824| ------------ | -------------------------- | --------------- |
1825| unset | \~4,200 to 5,900 | n/a |
1826| 2048 | \~630 to 840 | \~0% |
1827| 1024 | \~370 to 480 | \~10% |
1824| ----- | ----- | ----- |
1825| unset | \~4,200 to 5,900 | n/a |
1826| 2048 | \~630 to 840 | \~0% |
1827| 1024 | \~370 to 480 | \~10% |
18281828
18291829Hard reasoning tasks elicit substantially longer advisor output than the [typical 1,400 to 1,800 tokens](https://platform.claude.com/docs/en/agents-and-tools/tool-use/advisor-tool#usage-and-billing) quoted earlier for lighter workloads. Use this table to size the savings ratio, not as a universal baseline for advisor output.
18301830
from line 2096
20962096* Availability: Available
20972097* Usage: Add an advisor tool (type `advisor_20260301`) with the advisor model to the request’s `tools`. It takes `max_uses`, `max_tokens` and caching options.
20982098
2099| Status | Cloud platforms | Models |
2100| ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
2101| Beta | Claude API, [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws), [Claude Models on Google Cloud (Anthropic managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/anthropic-managed) | [Claude Fable 5.2](https://platform.claude.com/docs/en/models/fable-5-2/overview), [Claude Mythos 5.2](https://platform.claude.com/docs/en/models/mythos-5-2/overview), [Claude Fable 5.1](https://platform.claude.com/docs/en/models/fable-5-1/overview), [Claude Mythos 5.1](https://platform.claude.com/docs/en/models/mythos-5-1/overview), [Claude Fable 5](https://platform.claude.com/docs/en/models/fable-5/overview), [Claude Mythos 5](https://platform.claude.com/docs/en/models/mythos-5/overview), Claude Mythos Preview, [Claude Opus 5.5](https://platform.claude.com/docs/en/models/opus-5-5/overview), [Claude Opus 5](https://platform.claude.com/docs/en/models/opus-5/overview), [Claude Sonnet 5.5](https://platform.claude.com/docs/en/models/sonnet-5-5/overview), [Claude Sonnet 5](https://platform.claude.com/docs/en/models/sonnet-5/overview), [Claude Haiku 5.5](https://platform.claude.com/docs/en/models/haiku-5-5/overview), [Claude Haiku 4.5](https://platform.claude.com/docs/en/models/haiku-4-5/overview), [Claude Opus 4.8](https://platform.claude.com/docs/en/models/opus-4-8/overview), [Claude Opus 4.7](https://platform.claude.com/docs/en/models/opus-4-7/overview), [Claude Opus 4.6](https://platform.claude.com/docs/en/models/opus-4-6/overview), [Claude Sonnet 4.6](https://platform.claude.com/docs/en/models/sonnet-4-6/overview) |
2099| Status | Cloud platforms | Models |
2100| ----- | ----- | ----- |
2101| Beta | Claude API, [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws), [Claude Models on Google Cloud (Anthropic managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/anthropic-managed) | [Claude Fable 5.2](https://platform.claude.com/docs/en/models/fable-5-2/overview), [Claude Mythos 5.2](https://platform.claude.com/docs/en/models/mythos-5-2/overview), [Claude Fable 5.1](https://platform.claude.com/docs/en/models/fable-5-1/overview), [Claude Mythos 5.1](https://platform.claude.com/docs/en/models/mythos-5-1/overview), [Claude Fable 5](https://platform.claude.com/docs/en/models/fable-5/overview), [Claude Mythos 5](https://platform.claude.com/docs/en/models/mythos-5/overview), Claude Mythos Preview, [Claude Opus 5.5](https://platform.claude.com/docs/en/models/opus-5-5/overview), [Claude Opus 5](https://platform.claude.com/docs/en/models/opus-5/overview), [Claude Sonnet 5.5](https://platform.claude.com/docs/en/models/sonnet-5-5/overview), [Claude Sonnet 5](https://platform.claude.com/docs/en/models/sonnet-5/overview), [Claude Haiku 5.5](https://platform.claude.com/docs/en/models/haiku-5-5/overview), [Claude Haiku 4.5](https://platform.claude.com/docs/en/models/haiku-4-5/overview), [Claude Opus 4.8](https://platform.claude.com/docs/en/models/opus-4-8/overview), [Claude Opus 4.7](https://platform.claude.com/docs/en/models/opus-4-7/overview), [Claude Opus 4.6](https://platform.claude.com/docs/en/models/opus-4-6/overview), [Claude Sonnet 4.6](https://platform.claude.com/docs/en/models/sonnet-4-6/overview) |
21022102
21032103#### [Managed Agents](https://platform.claude.com/docs/en/managed-agents/overview)
21042104
from line 2105
21052105* Availability: Available
21062106* Usage: Set `advisor` to `{"type": "enabled", "model": …}` in the agent’s `multiagent` block. There are no `max_uses`, `max_tokens` or caching options, and advice arrives as thread events on the session’s event stream.
21072107
2108| Status | Cloud platforms | Models |
2109| ------ | ------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
2110| Beta | Claude API, [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws) | [Claude Fable 5.2](https://platform.claude.com/docs/en/models/fable-5-2/overview), [Claude Mythos 5.2](https://platform.claude.com/docs/en/models/mythos-5-2/overview), [Claude Fable 5.1](https://platform.claude.com/docs/en/models/fable-5-1/overview), [Claude Mythos 5.1](https://platform.claude.com/docs/en/models/mythos-5-1/overview), [Claude Fable 5](https://platform.claude.com/docs/en/models/fable-5/overview), [Claude Mythos 5](https://platform.claude.com/docs/en/models/mythos-5/overview), Claude Mythos Preview, [Claude Opus 5.5](https://platform.claude.com/docs/en/models/opus-5-5/overview), [Claude Opus 5](https://platform.claude.com/docs/en/models/opus-5/overview), [Claude Sonnet 5.5](https://platform.claude.com/docs/en/models/sonnet-5-5/overview), [Claude Sonnet 5](https://platform.claude.com/docs/en/models/sonnet-5/overview), [Claude Haiku 5.5](https://platform.claude.com/docs/en/models/haiku-5-5/overview), [Claude Haiku 4.5](https://platform.claude.com/docs/en/models/haiku-4-5/overview), [Claude Opus 4.8](https://platform.claude.com/docs/en/models/opus-4-8/overview), [Claude Opus 4.7](https://platform.claude.com/docs/en/models/opus-4-7/overview), [Claude Opus 4.6](https://platform.claude.com/docs/en/models/opus-4-6/overview), [Claude Sonnet 4.6](https://platform.claude.com/docs/en/models/sonnet-4-6/overview) |
2108| Status | Cloud platforms | Models |
2109| ----- | ----- | ----- |
2110| Beta | Claude API, [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws) | [Claude Fable 5.2](https://platform.claude.com/docs/en/models/fable-5-2/overview), [Claude Mythos 5.2](https://platform.claude.com/docs/en/models/mythos-5-2/overview), [Claude Fable 5.1](https://platform.claude.com/docs/en/models/fable-5-1/overview), [Claude Mythos 5.1](https://platform.claude.com/docs/en/models/mythos-5-1/overview), [Claude Fable 5](https://platform.claude.com/docs/en/models/fable-5/overview), [Claude Mythos 5](https://platform.claude.com/docs/en/models/mythos-5/overview), Claude Mythos Preview, [Claude Opus 5.5](https://platform.claude.com/docs/en/models/opus-5-5/overview), [Claude Opus 5](https://platform.claude.com/docs/en/models/opus-5/overview), [Claude Sonnet 5.5](https://platform.claude.com/docs/en/models/sonnet-5-5/overview), [Claude Sonnet 5](https://platform.claude.com/docs/en/models/sonnet-5/overview), [Claude Haiku 5.5](https://platform.claude.com/docs/en/models/haiku-5-5/overview), [Claude Haiku 4.5](https://platform.claude.com/docs/en/models/haiku-4-5/overview), [Claude Opus 4.8](https://platform.claude.com/docs/en/models/opus-4-8/overview), [Claude Opus 4.7](https://platform.claude.com/docs/en/models/opus-4-7/overview), [Claude Opus 4.6](https://platform.claude.com/docs/en/models/opus-4-6/overview), [Claude Sonnet 4.6](https://platform.claude.com/docs/en/models/sonnet-4-6/overview) |
21112111
21122112### Required beta headers
21132113
from line 2115
21152115
21162116Beta headers allow you to access experimental features and new model capabilities before they become part of the standard API.
21172117
2118| Header | APIs |
2119| ------------------------- | ------------------------------------------------------------------------------------------- |
2118| Header | APIs |
2119| ----- | ----- |
21202120| `advisor-tool-2026-03-01` | [Messages API](https://platform.claude.com/docs/en/build-with-claude/working-with-messages) |
21212121
21222122### Data handling
from line 2123
21232123
21242124[Data handling overview](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#feature-eligibility)
21252125
2126| Item | Zero data retention | HIPAA |
2127| ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ |
2128| Status | Eligible (excludes [Covered Models](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements)) | Not eligible |
2129| Details | Advisor model output is returned in the API response; nothing is stored server-side after the response. | — |
2126| Item | Zero data retention | HIPAA |
2127| ----- | ----- | ----- |
2128| Status | Eligible (excludes [Covered Models](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements)) | Not eligible |
2129| Details | Advisor model output is returned in the API response; nothing is stored server-side after the response. | — |
21302130
21312131Applicable endpoints:
21322132
agents-and-tools/tool-use/bash-tool Changed · +14 / -14 lines
from line 252
252252
253253A bash tool definition has two required fields, `type` and `name`, and the `name` must be `bash`. The tool is schema-less: you don’t provide an `input_schema`, because the schema is built into Claude’s model and can’t be modified. The following table lists the input fields Claude sets when it calls the tool.
254254
255| Parameter | Required | Description |
256| --------- | -------- | ----------------------------------------- |
257| `command` | Yes\* | The bash command to run |
258| `restart` | No | Set to `true` to restart the bash session |
255| Parameter | Required | Description |
256| ----- | ----- | ----- |
257| `command` | Yes\* | The bash command to run |
258| `restart` | No | Set to `true` to restart the bash session |
259259
260260\*Required unless using `restart`
261261
from line 1941
19411941
19421942The bash tool definition adds the following input tokens to your request. This is in addition to the per-model [tool use system prompt](https://platform.claude.com/docs/en/agents-and-tools/tool-use/overview#pricing) that applies whenever any tool is present.
19431943
1944| Model | Additional input tokens |
1945| ----------------------------------------------------- | ----------------------- |
1946| Claude 4.7 and later models and Claude Mythos Preview | 325 tokens |
1947| Claude 4.6 and earlier models | 244 tokens |
1944| Model | Additional input tokens |
1945| ----- | ----- |
1946| Claude 4.7 and later models and Claude Mythos Preview | 325 tokens |
1947| Claude 4.6 and earlier models | 244 tokens |
19481948
19491949Additional tokens are consumed by:
19501950
from line 2014
20142014
20152015* Availability: Available
20162016
2017| Status | Cloud platforms |
2018| --------- | ----------------------- |
2017| Status | Cloud platforms |
2018| ----- | ----- |
20192019| Available | All supported platforms |
20202020
20212021### Data handling
from line 2022
20222022
20232023[Data handling overview](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#feature-eligibility)
20242024
2025| Item | Zero data retention | HIPAA |
2026| ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- |
2027| Status | Eligible (excludes [Covered Models](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements)) | Eligible |
2028| Details | Client-side tool run in your environment. | — |
2025| Item | Zero data retention | HIPAA |
2026| ----- | ----- | ----- |
2027| Status | Eligible (excludes [Covered Models](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements)) | Eligible |
2028| Details | Client-side tool run in your environment. | — |
20292029
20302030Applicable endpoints:
20312031
agents-and-tools/tool-use/browser-use-sdk Changed · +31 / -31 lines
from line 204
204204
205205What a member returns determines what Claude reads. A successful result ends with a `browser_state` block built from your state report. An error result carries no block.
206206
207| Member | Returns | Claude reads |
208| --------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- |
209| `screenshot`, `zoom` | `BetaScreenshotResult` | One image block |
210| `navigate` | `BetaBrowserNavigateResult` | `Navigated to {url} — {title} (HTTP {status})` |
211| `new_tab`, `switch_tab`, `list_tabs`, `close_tab` | A tab entry (`new_tab`, `switch_tab`), a list of tab entries (`list_tabs`), or nothing (`close_tab`) | The `browser_state` block alone |
212| `read_page`, `get_page_text`, `find`, `read_console`, `read_network`, `javascript_exec` | A string | The string, or `(empty)` for an empty string |
213| Every other member | Nothing, or one line of text | A short confirmation, such as `Clicked.`, then the returned line in a text block of its own |
207| Member | Returns | Claude reads |
208| ----- | ----- | ----- |
209| `screenshot`, `zoom` | `BetaScreenshotResult` | One image block |
210| `navigate` | `BetaBrowserNavigateResult` | `Navigated to {url} — {title} (HTTP {status})` |
211| `new_tab`, `switch_tab`, `list_tabs`, `close_tab` | A tab entry (`new_tab`, `switch_tab`), a list of tab entries (`list_tabs`), or nothing (`close_tab`) | The `browser_state` block alone |
212| `read_page`, `get_page_text`, `find`, `read_console`, `read_network`, `javascript_exec` | A string | The string, or `(empty)` for an empty string |
213| Every other member | Nothing, or one line of text | A short confirmation, such as `Clicked.`, then the returned line in a text block of its own |
214214
215215### Report browser state
216216
from line 230
230230
231231### Handle errors
232232
233| Raised by a member or the SDK | Claude reads | The run |
234| ----------------------------- | ----------------------------------------------------------------------- | --------- |
235| `ToolError` | Its message, as an error result | Continues |
236| `ToolsetUsageError` | Nothing | Stops |
237| Any other exception | `ClassName: message` (typescript: `Error: message`), as an error result | Continues |
233| Raised by a member or the SDK | Claude reads | The run |
234| ----- | ----- | ----- |
235| `ToolError` | Its message, as an error result | Continues |
236| `ToolsetUsageError` | Nothing | Stops |
237| Any other exception | `ClassName: message` (typescript: `Error: message`), as an error result | Continues |
238238
239239The SDK raises `ToolsetUsageError` for a configuration error, a misuse of the SDK during a call, or a call after `close`. It also raises one when `_browser_state` (typescript: `browserState`) raises any exception, even a `ToolError`. The tool runner and `tool_result` (typescript: `toolResult`) don’t catch it, so it reaches their caller.
240240
from line 1190
11901190
11911191What a tool returns determines what Claude reads:
11921192
1193| Tool | Returns | Claude reads |
1194| -------------------- | ---------------------------------- | ------------------------------------------------------------------------------------------- |
1195| `screenshot`, `zoom` | `BetaScreenshotResult` | One image block |
1196| `cursor_position` | `BetaComputerCursorPositionResult` | `X={x},Y={y}` |
1197| Every other tool | Nothing, or one line of text | A short confirmation, such as `Clicked.`, then the returned line in a text block of its own |
1193| Tool | Returns | Claude reads |
1194| ----- | ----- | ----- |
1195| `screenshot`, `zoom` | `BetaScreenshotResult` | One image block |
1196| `cursor_position` | `BetaComputerCursorPositionResult` | `X={x},Y={y}` |
1197| Every other tool | Nothing, or one line of text | A short confirmation, such as `Clicked.`, then the returned line in a text block of its own |
11981198
11991199### Run the computer toolset safely
12001200
from line 1337
13371337
13381338The constructor options have the same meaning in both SDKs:
13391339
1340| Python | TypeScript | Sets |
1341| --------------------------- | -------------- | -------------------------------------------------------------------- |
1342| `configs` | `configs` | Which members are enabled |
1343| `confirm` | `confirm` | The callable that approves or refuses each call |
1344| `url_policy` | `urlPolicy` | Your URL policy, which the SDK calls before each `navigate` to a URL |
1345| `file_policy` | `filePolicy` | Upload roots and download path exposure |
1346| `tool_configs` | `toolConfigs` | Fields for the `tools` entry, such as `cache_control` |
1347| The `_browser_state` method | `browserState` | The state report |
1340| Python | TypeScript | Sets |
1341| ----- | ----- | ----- |
1342| `configs` | `configs` | Which members are enabled |
1343| `confirm` | `confirm` | The callable that approves or refuses each call |
1344| `url_policy` | `urlPolicy` | Your URL policy, which the SDK calls before each `navigate` to a URL |
1345| `file_policy` | `filePolicy` | Upload roots and download path exposure |
1346| `tool_configs` | `toolConfigs` | Fields for the `tools` entry, such as `cache_control` |
1347| The `_browser_state` method | `browserState` | The state report |
13481348
13491349The browser class takes every option in the table. The computer class takes `configs`, `confirm`, and `tool_configs` (typescript: `toolConfigs`).
13501350
from line 1390
13901390
13911391* Availability: Available
13921392
1393| Status | Cloud platforms | Models |
1394| ------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1395| Beta | Claude API, [Claude Models on Google Cloud (Google managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/google-managed) | [Claude Fable 5.2](https://platform.claude.com/docs/en/models/fable-5-2/overview), [Claude Mythos 5.2](https://platform.claude.com/docs/en/models/mythos-5-2/overview), [Claude Fable 5.1](https://platform.claude.com/docs/en/models/fable-5-1/overview), [Claude Mythos 5.1](https://platform.claude.com/docs/en/models/mythos-5-1/overview), [Claude Fable 5](https://platform.claude.com/docs/en/models/fable-5/overview), [Claude Mythos 5](https://platform.claude.com/docs/en/models/mythos-5/overview), Claude Mythos Preview, [Claude Opus 5.5](https://platform.claude.com/docs/en/models/opus-5-5/overview), [Claude Opus 5](https://platform.claude.com/docs/en/models/opus-5/overview), [Claude Sonnet 5.5](https://platform.claude.com/docs/en/models/sonnet-5-5/overview), [Claude Sonnet 5](https://platform.claude.com/docs/en/models/sonnet-5/overview), [Claude Haiku 5.5](https://platform.claude.com/docs/en/models/haiku-5-5/overview), [Claude Opus 4.8](https://platform.claude.com/docs/en/models/opus-4-8/overview) |
1396| Beta | [Claude Models on Google Cloud (Anthropic managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/anthropic-managed) | [Claude Fable 5.2](https://platform.claude.com/docs/en/models/fable-5-2/overview), [Claude Mythos 5.2](https://platform.claude.com/docs/en/models/mythos-5-2/overview), [Claude Fable 5.1](https://platform.claude.com/docs/en/models/fable-5-1/overview), [Claude Mythos 5.1](https://platform.claude.com/docs/en/models/mythos-5-1/overview), [Claude Fable 5](https://platform.claude.com/docs/en/models/fable-5/overview), [Claude Mythos 5](https://platform.claude.com/docs/en/models/mythos-5/overview), [Claude Opus 5.5](https://platform.claude.com/docs/en/models/opus-5-5/overview), [Claude Opus 5](https://platform.claude.com/docs/en/models/opus-5/overview), [Claude Sonnet 5.5](https://platform.claude.com/docs/en/models/sonnet-5-5/overview), [Claude Sonnet 5](https://platform.claude.com/docs/en/models/sonnet-5/overview), [Claude Haiku 5.5](https://platform.claude.com/docs/en/models/haiku-5-5/overview), [Claude Opus 4.8](https://platform.claude.com/docs/en/models/opus-4-8/overview) |
1397| Beta | [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws), [Microsoft Foundry](https://platform.claude.com/docs/en/build-with-claude/claude-in-microsoft-foundry) | [Claude Fable 5.2](https://platform.claude.com/docs/en/models/fable-5-2/overview), [Claude Mythos 5.2](https://platform.claude.com/docs/en/models/mythos-5-2/overview), [Claude Fable 5.1](https://platform.claude.com/docs/en/models/fable-5-1/overview), [Claude Mythos 5.1](https://platform.claude.com/docs/en/models/mythos-5-1/overview), [Claude Fable 5](https://platform.claude.com/docs/en/models/fable-5/overview), [Claude Mythos 5](https://platform.claude.com/docs/en/models/mythos-5/overview), [Claude Opus 5.5](https://platform.claude.com/docs/en/models/opus-5-5/overview), [Claude Opus 5](https://platform.claude.com/docs/en/models/opus-5/overview), [Claude Sonnet 5.5](https://platform.claude.com/docs/en/models/sonnet-5-5/overview), [Claude Sonnet 5](https://platform.claude.com/docs/en/models/sonnet-5/overview), [Claude Haiku 5.5](https://platform.claude.com/docs/en/models/haiku-5-5/overview), [Claude Opus 4.8](https://platform.claude.com/docs/en/models/opus-4-8/overview) |
1398| Beta | [Amazon Bedrock](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock) | [Claude Fable 5.1](https://platform.claude.com/docs/en/models/fable-5-1/overview), [Claude Mythos 5.1](https://platform.claude.com/docs/en/models/mythos-5-1/overview), [Claude Fable 5](https://platform.claude.com/docs/en/models/fable-5/overview), [Claude Mythos 5](https://platform.claude.com/docs/en/models/mythos-5/overview), [Claude Opus 5.5](https://platform.claude.com/docs/en/models/opus-5-5/overview), [Claude Opus 5](https://platform.claude.com/docs/en/models/opus-5/overview), [Claude Sonnet 5.5](https://platform.claude.com/docs/en/models/sonnet-5-5/overview), [Claude Sonnet 5](https://platform.claude.com/docs/en/models/sonnet-5/overview), [Claude Haiku 5.5](https://platform.claude.com/docs/en/models/haiku-5-5/overview), [Claude Opus 4.8](https://platform.claude.com/docs/en/models/opus-4-8/overview) |
1393| Status | Cloud platforms | Models |
1394| ----- | ----- | ----- |
1395| Beta | Claude API, [Claude Models on Google Cloud (Google managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/google-managed) | [Claude Fable 5.2](https://platform.claude.com/docs/en/models/fable-5-2/overview), [Claude Mythos 5.2](https://platform.claude.com/docs/en/models/mythos-5-2/overview), [Claude Fable 5.1](https://platform.claude.com/docs/en/models/fable-5-1/overview), [Claude Mythos 5.1](https://platform.claude.com/docs/en/models/mythos-5-1/overview), [Claude Fable 5](https://platform.claude.com/docs/en/models/fable-5/overview), [Claude Mythos 5](https://platform.claude.com/docs/en/models/mythos-5/overview), Claude Mythos Preview, [Claude Opus 5.5](https://platform.claude.com/docs/en/models/opus-5-5/overview), [Claude Opus 5](https://platform.claude.com/docs/en/models/opus-5/overview), [Claude Sonnet 5.5](https://platform.claude.com/docs/en/models/sonnet-5-5/overview), [Claude Sonnet 5](https://platform.claude.com/docs/en/models/sonnet-5/overview), [Claude Haiku 5.5](https://platform.claude.com/docs/en/models/haiku-5-5/overview), [Claude Opus 4.8](https://platform.claude.com/docs/en/models/opus-4-8/overview) |
1396| Beta | [Claude Models on Google Cloud (Anthropic managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/anthropic-managed) | [Claude Fable 5.2](https://platform.claude.com/docs/en/models/fable-5-2/overview), [Claude Mythos 5.2](https://platform.claude.com/docs/en/models/mythos-5-2/overview), [Claude Fable 5.1](https://platform.claude.com/docs/en/models/fable-5-1/overview), [Claude Mythos 5.1](https://platform.claude.com/docs/en/models/mythos-5-1/overview), [Claude Fable 5](https://platform.claude.com/docs/en/models/fable-5/overview), [Claude Mythos 5](https://platform.claude.com/docs/en/models/mythos-5/overview), [Claude Opus 5.5](https://platform.claude.com/docs/en/models/opus-5-5/overview), [Claude Opus 5](https://platform.claude.com/docs/en/models/opus-5/overview), [Claude Sonnet 5.5](https://platform.claude.com/docs/en/models/sonnet-5-5/overview), [Claude Sonnet 5](https://platform.claude.com/docs/en/models/sonnet-5/overview), [Claude Haiku 5.5](https://platform.claude.com/docs/en/models/haiku-5-5/overview), [Claude Opus 4.8](https://platform.claude.com/docs/en/models/opus-4-8/overview) |
1397| Beta | [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws), [Microsoft Foundry](https://platform.claude.com/docs/en/build-with-claude/claude-in-microsoft-foundry) | [Claude Fable 5.2](https://platform.claude.com/docs/en/models/fable-5-2/overview), [Claude Mythos 5.2](https://platform.claude.com/docs/en/models/mythos-5-2/overview), [Claude Fable 5.1](https://platform.claude.com/docs/en/models/fable-5-1/overview), [Claude Mythos 5.1](https://platform.claude.com/docs/en/models/mythos-5-1/overview), [Claude Fable 5](https://platform.claude.com/docs/en/models/fable-5/overview), [Claude Mythos 5](https://platform.claude.com/docs/en/models/mythos-5/overview), [Claude Opus 5.5](https://platform.claude.com/docs/en/models/opus-5-5/overview), [Claude Opus 5](https://platform.claude.com/docs/en/models/opus-5/overview), [Claude Sonnet 5.5](https://platform.claude.com/docs/en/models/sonnet-5-5/overview), [Claude Sonnet 5](https://platform.claude.com/docs/en/models/sonnet-5/overview), [Claude Haiku 5.5](https://platform.claude.com/docs/en/models/haiku-5-5/overview), [Claude Opus 4.8](https://platform.claude.com/docs/en/models/opus-4-8/overview) |
1398| Beta | [Amazon Bedrock](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock) | [Claude Fable 5.1](https://platform.claude.com/docs/en/models/fable-5-1/overview), [Claude Mythos 5.1](https://platform.claude.com/docs/en/models/mythos-5-1/overview), [Claude Fable 5](https://platform.claude.com/docs/en/models/fable-5/overview), [Claude Mythos 5](https://platform.claude.com/docs/en/models/mythos-5/overview), [Claude Opus 5.5](https://platform.claude.com/docs/en/models/opus-5-5/overview), [Claude Opus 5](https://platform.claude.com/docs/en/models/opus-5/overview), [Claude Sonnet 5.5](https://platform.claude.com/docs/en/models/sonnet-5-5/overview), [Claude Sonnet 5](https://platform.claude.com/docs/en/models/sonnet-5/overview), [Claude Haiku 5.5](https://platform.claude.com/docs/en/models/haiku-5-5/overview), [Claude Opus 4.8](https://platform.claude.com/docs/en/models/opus-4-8/overview) |
13991399
14001400#### [Managed Agents](https://platform.claude.com/docs/en/managed-agents/overview)
14011401
agents-and-tools/tool-use/browser-use-tool Changed · +82 / -82 lines
from line 1109
11091109
11101110Member tools that act on a location take a `target` object, which is either a viewport-pixel coordinate or a reference to an element that `read_page` or `find` returned. The [Member tools](https://platform.claude.com/docs/en/agents-and-tools/tool-use/browser-use-tool#member-tools) tables write `Target` for a parameter that accepts either shape.
11111111
1112| Shape | `target.type` | Fields | Accepted by |
1113| ------------------ | -------------- | ---------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1114| `CoordinateTarget` | `"coordinate"` | `x`, `y` (integers, viewport pixels) | `left_click`, `right_click`, `middle_click`, `double_click`, `triple_click`, `hover`, `left_click_drag` (`from` and `target`), `left_mouse_down`, `left_mouse_up`, `mouse_move`, `scroll` |
1115| `RefTarget` | `"ref"` | `ref` (an element reference such as `"ref_2"`) | `left_click`, `right_click`, `middle_click`, `double_click`, `triple_click`, `hover`, `scroll_to`, `form_input`, `file_upload` |
1112| Shape | `target.type` | Fields | Accepted by |
1113| ----- | ----- | ----- | ----- |
1114| `CoordinateTarget` | `"coordinate"` | `x`, `y` (integers, viewport pixels) | `left_click`, `right_click`, `middle_click`, `double_click`, `triple_click`, `hover`, `left_click_drag` (`from` and `target`), `left_mouse_down`, `left_mouse_up`, `mouse_move`, `scroll` |
1115| `RefTarget` | `"ref"` | `ref` (an element reference such as `"ref_2"`) | `left_click`, `right_click`, `middle_click`, `double_click`, `triple_click`, `hover`, `scroll_to`, `form_input`, `file_upload` |
11161116
11171117**Coordinates are viewport pixels**, the pixel space of a full-viewport `screenshot` with the origin at the top left of the rendered page; there’s no surrounding desktop or window frame. The toolset declares no display dimensions and Claude infers the viewport size from the screenshots you return, so keep them one consistent size. A `zoom` doesn’t change the frame, so its `region` and any coordinates Claude emits after receiving the zoomed image are still full-viewport pixels.
11181118
from line 1169
11691169
11701170### Navigation and capture
11711171
1172| Member | Input | Description |
1173| ------------ | ------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1174| `navigate` | `url`, `tab_id?` | Load an `http` or `https` URL, or move through history with `"back"`, `"forward"`, or `"reload"`. Treat a URL without a scheme as `https://` and refuse any other scheme with an error result. Return a short acknowledgment, plus a `browser_state` block when the tab’s URL or title changed. |
1175| `screenshot` | `tab_id?` | Capture the viewport and return an `image` block. |
1176| `zoom` | `region`, `tab_id?` | Return a cropped, upscaled `image` of `region`, given as `[x0, y0, x1, y1]` in viewport pixels, for closer inspection of small text or controls. |
1172| Member | Input | Description |
1173| ----- | ----- | ----- |
1174| `navigate` | `url`, `tab_id?` | Load an `http` or `https` URL, or move through history with `"back"`, `"forward"`, or `"reload"`. Treat a URL without a scheme as `https://` and refuse any other scheme with an error result. Return a short acknowledgment, plus a `browser_state` block when the tab’s URL or title changed. |
1175| `screenshot` | `tab_id?` | Capture the viewport and return an `image` block. |
1176| `zoom` | `region`, `tab_id?` | Return a cropped, upscaled `image` of `region`, given as `[x0, y0, x1, y1]` in viewport pixels, for closer inspection of small text or controls. |
11771177
11781178### Pointer
11791179
1180| Member | Input | Description |
1181| ----------------- | --------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1182| `left_click` | `target: Target`, `modifiers?`, `tab_id?` | Left-click a coordinate or a referenced element. `modifiers` is a chord held during the click, for example, `"shift"` or `"ctrl+shift"`. |
1183| `right_click` | `target: Target`, `modifiers?`, `tab_id?` | Right-click a coordinate or element. |
1184| `middle_click` | `target: Target`, `modifiers?`, `tab_id?` | Middle-click a coordinate or element. |
1185| `double_click` | `target: Target`, `modifiers?`, `tab_id?` | Double left-click a coordinate or element. |
1186| `triple_click` | `target: Target`, `modifiers?`, `tab_id?` | Triple left-click a coordinate or element, which typically selects a line or paragraph. |
1187| `hover` | `target: Target`, `tab_id?` | Move the pointer over a coordinate or element without clicking. |
1188| `left_click_drag` | `from: CoordinateTarget`, `target: CoordinateTarget`, `tab_id?` | Press at `from`, drag to `target`, and release. |
1189| `left_mouse_down` | `target: CoordinateTarget`, `tab_id?` | Press and hold the left button at a coordinate; pair with `left_mouse_up` for a custom drag. |
1190| `left_mouse_up` | `target: CoordinateTarget`, `tab_id?` | Release the left button at a coordinate. |
1191| `mouse_move` | `target: CoordinateTarget`, `tab_id?` | Move the pointer to a coordinate. |
1192| `scroll` | `target: CoordinateTarget`, `scroll_direction`, `scroll_amount?`, `tab_id?` | Scroll at a viewport position. `scroll_direction` is `"up"`, `"down"`, `"left"`, or `"right"`; `scroll_amount` is in scroll-wheel notches, 1 to 10, default 3. |
1193| `scroll_to` | `target: RefTarget`, `tab_id?` | Scroll a referenced element into view. |
1180| Member | Input | Description |
1181| ----- | ----- | ----- |
1182| `left_click` | `target: Target`, `modifiers?`, `tab_id?` | Left-click a coordinate or a referenced element. `modifiers` is a chord held during the click, for example, `"shift"` or `"ctrl+shift"`. |
1183| `right_click` | `target: Target`, `modifiers?`, `tab_id?` | Right-click a coordinate or element. |
1184| `middle_click` | `target: Target`, `modifiers?`, `tab_id?` | Middle-click a coordinate or element. |
1185| `double_click` | `target: Target`, `modifiers?`, `tab_id?` | Double left-click a coordinate or element. |
1186| `triple_click` | `target: Target`, `modifiers?`, `tab_id?` | Triple left-click a coordinate or element, which typically selects a line or paragraph. |
1187| `hover` | `target: Target`, `tab_id?` | Move the pointer over a coordinate or element without clicking. |
1188| `left_click_drag` | `from: CoordinateTarget`, `target: CoordinateTarget`, `tab_id?` | Press at `from`, drag to `target`, and release. |
1189| `left_mouse_down` | `target: CoordinateTarget`, `tab_id?` | Press and hold the left button at a coordinate; pair with `left_mouse_up` for a custom drag. |
1190| `left_mouse_up` | `target: CoordinateTarget`, `tab_id?` | Release the left button at a coordinate. |
1191| `mouse_move` | `target: CoordinateTarget`, `tab_id?` | Move the pointer to a coordinate. |
1192| `scroll` | `target: CoordinateTarget`, `scroll_direction`, `scroll_amount?`, `tab_id?` | Scroll at a viewport position. `scroll_direction` is `"up"`, `"down"`, `"left"`, or `"right"`; `scroll_amount` is in scroll-wheel notches, 1 to 10, default 3. |
1193| `scroll_to` | `target: RefTarget`, `tab_id?` | Scroll a referenced element into view. |
11941194
11951195### Keyboard and timing
11961196
1197| Member | Input | Description |
1198| ---------- | ----------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1199| `type` | `text`, `tab_id?` | Type a literal string at the current focus. |
1200| `key` | `text`, `repeat?`, `tab_id?` | Press a key or chord. `text` is a single key (`"Enter"`), a chord joined with `+` (`"ctrl+a"`), or a space-separated sequence (`"Backspace Backspace"`); `repeat` is 1 to 100, default 1. |
1201| `hold_key` | `text`, `duration`, `tab_id?` | Hold a key or chord for `duration` seconds, 0 to 30. |
1202| `wait` | `duration`, `tab_id?` | Pause for `duration` seconds, 0 to 30. |
1197| Member | Input | Description |
1198| ----- | ----- | ----- |
1199| `type` | `text`, `tab_id?` | Type a literal string at the current focus. |
1200| `key` | `text`, `repeat?`, `tab_id?` | Press a key or chord. `text` is a single key (`"Enter"`), a chord joined with `+` (`"ctrl+a"`), or a space-separated sequence (`"Backspace Backspace"`); `repeat` is 1 to 100, default 1. |
1201| `hold_key` | `text`, `duration`, `tab_id?` | Hold a key or chord for `duration` seconds, 0 to 30. |
1202| `wait` | `duration`, `tab_id?` | Pause for `duration` seconds, 0 to 30. |
12031203
12041204### Page reading
12051205
1206| Member | Input | Description |
1207| --------------- | -------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1208| `read_page` | `filter?`, `depth?`, `ref?`, `tab_id?` | Return the page’s accessibility tree as text with each element tagged with a reference such as `[ref_2]`. With `filter` omitted, return every visible element; with `"interactive"`, only visible interactive elements; with `"all"`, also elements outside the viewport. `depth` caps the tree depth (minimum 1, default 15) and `ref` scopes the read to that element’s subtree. Cap the output at 50,000 characters and say so in the text; Claude then narrows with a smaller `depth` or a `ref`. |
1209| `find` | `query`, `tab_id?` | Find elements matching a natural-language description such as `"search field"` or `"add to cart button"`, and return up to 20 matches in the same tagged format as `read_page`. |
1210| `get_page_text` | `tab_id?` | Return the page’s visible text as plain text, prioritizing the main article content; suited to articles, documentation, and other text-heavy pages. |
1206| Member | Input | Description |
1207| ----- | ----- | ----- |
1208| `read_page` | `filter?`, `depth?`, `ref?`, `tab_id?` | Return the page’s accessibility tree as text with each element tagged with a reference such as `[ref_2]`. With `filter` omitted, return every visible element; with `"interactive"`, only visible interactive elements; with `"all"`, also elements outside the viewport. `depth` caps the tree depth (minimum 1, default 15) and `ref` scopes the read to that element’s subtree. Cap the output at 50,000 characters and say so in the text; Claude then narrows with a smaller `depth` or a `ref`. |
1209| `find` | `query`, `tab_id?` | Find elements matching a natural-language description such as `"search field"` or `"add to cart button"`, and return up to 20 matches in the same tagged format as `read_page`. |
1210| `get_page_text` | `tab_id?` | Return the page’s visible text as plain text, prioritizing the main article content; suited to articles, documentation, and other text-heavy pages. |
12111211
12121212### Forms and files
12131213
1214| Member | Input | Description |
1215| ----------------------------------- | --------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1216| `form_input` | `target: RefTarget`, `value`, `tab_id?` | Set a form element’s value directly. `value` is a `string`, `number`, or `boolean`; use a `boolean` for checkboxes and an option’s value or visible text for selects. |
1214| Member | Input | Description |
1215| ----- | ----- | ----- |
1216| `form_input` | `target: RefTarget`, `value`, `tab_id?` | Set a form element’s value directly. `value` is a `string`, `number`, or `boolean`; use a `boolean` for checkboxes and an option’s value or visible text for selects. |
12171217| `file_upload` (disabled by default) | `target: RefTarget`, `paths?`, `document_ids?`, `tab_id?` | Set the files on a file-input element from `paths` on the executor’s filesystem, `document_ids` your application has staged, or both; at least one is required. See [Upload files](https://platform.claude.com/docs/en/agents-and-tools/tool-use/browser-use-tool#upload-files). |
12181218
12191219### Diagnostics and scripting
12201220
1221| Member | Input | Description |
1222| --------------------------------------- | ----------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1223| `read_console` (disabled by default) | `tab_id?` | Return the tab’s console entries (log, warning, and error lines) accumulated since the last read, one line per entry. See [Read console and network activity](https://platform.claude.com/docs/en/agents-and-tools/tool-use/browser-use-tool#read-console-and-network-activity). |
1224| `read_network` (disabled by default) | `tab_id?` | Return the tab’s network requests (method, URL, status, MIME type, timing) since the last read, one line per entry. |
1225| `javascript_exec` (disabled by default) | `text`, `tab_id?` | Run `text` as JavaScript in the page context and return the value of the last expression as text. See [Enable optional members](https://platform.claude.com/docs/en/agents-and-tools/tool-use/browser-use-tool#enable-optional-member-tools). |
1221| Member | Input | Description |
1222| ----- | ----- | ----- |
1223| `read_console` (disabled by default) | `tab_id?` | Return the tab’s console entries (log, warning, and error lines) accumulated since the last read, one line per entry. See [Read console and network activity](https://platform.claude.com/docs/en/agents-and-tools/tool-use/browser-use-tool#read-console-and-network-activity). |
1224| `read_network` (disabled by default) | `tab_id?` | Return the tab’s network requests (method, URL, status, MIME type, timing) since the last read, one line per entry. |
1225| `javascript_exec` (disabled by default) | `text`, `tab_id?` | Run `text` as JavaScript in the page context and return the value of the last expression as text. See [Enable optional members](https://platform.claude.com/docs/en/agents-and-tools/tool-use/browser-use-tool#enable-optional-member-tools). |
12261226
12271227### Tab management
12281228
1229| Member | Input | Description |
1230| ------------ | ------------------- | -------------------------------------- |
1231| `new_tab` | (none) | Open a tab and make it the active tab. |
1232| `list_tabs` | (none) | Report the tab inventory. |
1233| `switch_tab` | `tab_id` (required) | Make `tab_id` the active tab. |
1234| `close_tab` | `tab_id` (required) | Close `tab_id`. |
1229| Member | Input | Description |
1230| ----- | ----- | ----- |
1231| `new_tab` | (none) | Open a tab and make it the active tab. |
1232| `list_tabs` | (none) | Report the tab inventory. |
1233| `switch_tab` | `tab_id` (required) | Make `tab_id` the active tab. |
1234| `close_tab` | `tab_id` (required) | Close `tab_id`. |
12351235
12361236On success, each of these returns exactly one `browser_state` block and no text or image; see [Tab management results](https://platform.claude.com/docs/en/agents-and-tools/tool-use/browser-use-tool#tab-management-results).
12371237
from line 1239
12391239
12401240Besides `type`, the toolset entry accepts `configs`, `cache_control`, and `allowed_callers`; the rules these fields share with the computer use toolset are listed under [Client toolsets](https://platform.claude.com/docs/en/agents-and-tools/tool-use/tool-reference#client-toolsets), and this section covers the browser-specific defaults. `configs` is an object keyed by member name, and each member’s value accepts two fields:
12411241
1242| Field | Default | Meaning |
1243| --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
1244| `enabled` | `true`, except `false` for the four [optional members](https://platform.claude.com/docs/en/agents-and-tools/tool-use/browser-use-tool#enable-optional-member-tools) | Whether the member is offered to Claude. |
1245| `defer_loading` | `false` | Whether the toolset’s definition is deferred for tool search. Must resolve to the same value on every enabled member. With the four optional members left disabled, deferring the toolset means setting it on the other 27; see [Client toolsets](https://platform.claude.com/docs/en/agents-and-tools/tool-use/tool-reference#client-toolsets). |
1242| Field | Default | Meaning |
1243| ----- | ----- | ----- |
1244| `enabled` | `true`, except `false` for the four [optional members](https://platform.claude.com/docs/en/agents-and-tools/tool-use/browser-use-tool#enable-optional-member-tools) | Whether the member is offered to Claude. |
1245| `defer_loading` | `false` | Whether the toolset’s definition is deferred for tool search. Must resolve to the same value on every enabled member. With the four optional members left disabled, deferring the toolset means setting it on the other 27; see [Client toolsets](https://platform.claude.com/docs/en/agents-and-tools/tool-use/tool-reference#client-toolsets). |
12461246
12471247### Enable or disable member tools
12481248
from line 1343
13431343
13441344For `new_tab`, `switch_tab`, `close_tab`, and `list_tabs`, a successful result’s `content` is exactly one `browser_state` block with no text or image, and the API writes the text Claude receives. A `new_tab` result’s block must also carry exactly one `tab_opened` state change whose `tab_id` matches the entry marked `active: true`.
13451345
1346| Member | Text Claude receives |
1347| ------------ | --------------------------------------------------------------------------------------------------------------------------- |
1348| `switch_tab` | `Switched to tab {tab_id}`, taken from the call’s `input.tab_id` |
1349| `close_tab` | `Closed tab {tab_id}`, taken from the call’s `input.tab_id` |
1350| `new_tab` | `Created new tab with tab_id: {tab_id}, URL: {url}. It is now the current tab.`, taken from the entry marked `active: true` |
1351| `list_tabs` | `Available tabs:` followed by one line per tab, or `No tabs available` when `tabs` is empty |
1346| Member | Text Claude receives |
1347| ----- | ----- |
1348| `switch_tab` | `Switched to tab {tab_id}`, taken from the call’s `input.tab_id` |
1349| `close_tab` | `Closed tab {tab_id}`, taken from the call’s `input.tab_id` |
1350| `new_tab` | `Created new tab with tab_id: {tab_id}, URL: {url}. It is now the current tab.`, taken from the entry marked `active: true` |
1351| `list_tabs` | `Available tabs:` followed by one line per tab, or `No tabs available` when `tabs` is empty |
13521352
13531353A `list_tabs` result whose block lists two tabs with the first one active renders as follows, with each line indented two spaces and `(current)` appended to the active tab only:
13541354
from line 1445
14451445
14461446When a click or navigation starts a file download, report it in `state_changes` on the result of the call during which it occurred, correlated across results by a `download_id` you assign. Downloads run asynchronously and can span several results, so there are three event types:
14471447
1448| `type` | Fields | When to send |
1449| -------------------- | -------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1450| `download_started` | `download_id`, `url` | On the result of the call during which the download started. `url` is the final URL the file is served from, after redirects. |
1448| `type` | Fields | When to send |
1449| ----- | ----- | ----- |
1450| `download_started` | `download_id`, `url` | On the result of the call during which the download started. `url` is the final URL the file is served from, after redirects. |
14511451| `download_completed` | `download_id`, `url`, `path?`, `size_bytes?` | On the result of whichever later call is running when the download completes. Include `path` only when another tool in the same environment (for example, the [bash tool](https://platform.claude.com/docs/en/agents-and-tools/tool-use/bash-tool) or `file_upload`) can read the file there; otherwise `download_id` is the download’s only identifier. |
1452| `download_failed` | `download_id`, `url`, `error?` | When the download fails or is canceled, with the reason in `error` if the browser provides one. |
1452| `download_failed` | `download_id`, `url`, `error?` | When the download fails or is canceled, with the reason in `error` if the browser provides one. |
14531453
14541454The API renders each entry as one line of text for Claude, in the order the entries appear. It adds the lines after the result’s text, separated by a blank line, and before any Tab Context footer. Every kind of member result carries the lines, including `zoom` and tab-management results. A result with no `text` block gets them as a text block of its own. Each line gives the `download_id` and `url`, plus `path` and `size_bytes` (for `download_completed`) or `error` (for `download_failed`) when you send them. You don’t need to describe the download in your own text. The API wraps `url`, `path`, and `error` in double quotes and escapes double quotes and backslashes inside them, so don’t pre-escape these values.
14551455
from line 1556
15561556
15571557The API validates the toolset entry and every member `tool_use` and `tool_result` block in the conversation. When one is malformed, the API returns an `invalid_request_error` before Claude runs. In the following table, the left column names what you sent.
15581558
1559| Request | Why it fails and what to do |
1560| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1561| An option or combination the toolset entry doesn’t accept, for example, a `name`, `strict: true`, `input_examples`, `defer_loading` on the entry itself, a `configs` key that isn’t a member name, a field other than `enabled` or `defer_loading` in a member’s `configs` value ([Configure the toolset](https://platform.claude.com/docs/en/agents-and-tools/tool-use/browser-use-tool#configure-the-toolset)), enabled members whose `defer_loading` values differ ([Configure the toolset](https://platform.claude.com/docs/en/agents-and-tools/tool-use/browser-use-tool#configure-the-toolset)), a `configs` that leaves no member enabled, a code execution caller in `allowed_callers`, the `fine-grained-tool-streaming-2025-05-14` beta header on the request, a `tool_choice` of type `tool` naming `browser` or a member, or a second browser toolset entry or another tool named `browser` | These aren’t supported on client toolsets. See [Client toolsets](https://platform.claude.com/docs/en/agents-and-tools/tool-use/tool-reference#client-toolsets) for each rule and its alternative. |
1562| A `tool_result` answering a member call without `"toolset_name": "browser"` or with a different value, or `toolset_name` on a result whose call wasn’t a member call | Echo `toolset_name` exactly on member results, and only on them. |
1563| A member `tool_use` from an earlier turn with no matching `tool_result` | Answer every member call, including the ones you didn’t run after a failure. |
1564| A content block other than `text`, `image`, or `browser_state` in a member result | Member results accept only those three block types. |
1565| A `browser_state` block that breaks a rule in [Track tabs with `browser_state`](https://platform.claude.com/docs/en/agents-and-tools/tool-use/browser-use-tool#track-tabs-and-page-state), for example, one on an `is_error: true` result or on a result that doesn’t answer a browser member call, more than one in a result, a non-empty `tabs` without exactly one `active: true` entry, a duplicate `tab_id`, an empty `state_changes` array, a `tab_opened` whose `tab_id` isn’t in `tabs`, two state changes for one `download_id` or a state-change field its `type` doesn’t declare ([Report downloads](https://platform.claude.com/docs/en/agents-and-tools/tool-use/browser-use-tool#report-downloads)), or a field over its limits | Fix the block. “Nothing to report” is expressed by omitting the block or the `state_changes` field, never by an empty value. |
1566| A successful `new_tab`, `switch_tab`, `close_tab`, or `list_tabs` result whose `content` isn’t exactly one `browser_state` block, or a `new_tab` result without exactly one `tab_opened` matching the active tab | The API renders these results from the block and needs it in that exact shape; see [Tab management results](https://platform.claude.com/docs/en/agents-and-tools/tool-use/browser-use-tool#tab-management-results). |
1567| An `image` in a result over your model’s [image size limits](https://platform.claude.com/docs/en/build-with-claude/vision#evaluate-image-size), or over the stricter per-image limit that applies once the request holds [more than 20 images](https://platform.claude.com/docs/en/build-with-claude/vision#request-limits), counting screenshots and `zoom` images in earlier results | The API doesn’t downscale toolset images. Resize screenshots before returning them ([Size screenshots to fit image limits](https://platform.claude.com/docs/en/agents-and-tools/tool-use/computer-use-tool#handle-coordinate-scaling-for-higher-resolutions)). |
1568| A `model` that doesn’t support `browser_toolset_20260801` | See [API support](https://platform.claude.com/docs/en/agents-and-tools/tool-use/browser-use-tool#availability-feature-support) for the supported models. |
1559| Request | Why it fails and what to do |
1560| ----- | ----- |
1561| An option or combination the toolset entry doesn’t accept, for example, a `name`, `strict: true`, `input_examples`, `defer_loading` on the entry itself, a `configs` key that isn’t a member name, a field other than `enabled` or `defer_loading` in a member’s `configs` value ([Configure the toolset](https://platform.claude.com/docs/en/agents-and-tools/tool-use/browser-use-tool#configure-the-toolset)), enabled members whose `defer_loading` values differ ([Configure the toolset](https://platform.claude.com/docs/en/agents-and-tools/tool-use/browser-use-tool#configure-the-toolset)), a `configs` that leaves no member enabled, a code execution caller in `allowed_callers`, the `fine-grained-tool-streaming-2025-05-14` beta header on the request, a `tool_choice` of type `tool` naming `browser` or a member, or a second browser toolset entry or another tool named `browser` | These aren’t supported on client toolsets. See [Client toolsets](https://platform.claude.com/docs/en/agents-and-tools/tool-use/tool-reference#client-toolsets) for each rule and its alternative. |
1562| A `tool_result` answering a member call without `"toolset_name": "browser"` or with a different value, or `toolset_name` on a result whose call wasn’t a member call | Echo `toolset_name` exactly on member results, and only on them. |
1563| A member `tool_use` from an earlier turn with no matching `tool_result` | Answer every member call, including the ones you didn’t run after a failure. |
1564| A content block other than `text`, `image`, or `browser_state` in a member result | Member results accept only those three block types. |
1565| A `browser_state` block that breaks a rule in [Track tabs with `browser_state`](https://platform.claude.com/docs/en/agents-and-tools/tool-use/browser-use-tool#track-tabs-and-page-state), for example, one on an `is_error: true` result or on a result that doesn’t answer a browser member call, more than one in a result, a non-empty `tabs` without exactly one `active: true` entry, a duplicate `tab_id`, an empty `state_changes` array, a `tab_opened` whose `tab_id` isn’t in `tabs`, two state changes for one `download_id` or a state-change field its `type` doesn’t declare ([Report downloads](https://platform.claude.com/docs/en/agents-and-tools/tool-use/browser-use-tool#report-downloads)), or a field over its limits | Fix the block. “Nothing to report” is expressed by omitting the block or the `state_changes` field, never by an empty value. |
1566| A successful `new_tab`, `switch_tab`, `close_tab`, or `list_tabs` result whose `content` isn’t exactly one `browser_state` block, or a `new_tab` result without exactly one `tab_opened` matching the active tab | The API renders these results from the block and needs it in that exact shape; see [Tab management results](https://platform.claude.com/docs/en/agents-and-tools/tool-use/browser-use-tool#tab-management-results). |
1567| An `image` in a result over your model’s [image size limits](https://platform.claude.com/docs/en/build-with-claude/vision#evaluate-image-size), or over the stricter per-image limit that applies once the request holds [more than 20 images](https://platform.claude.com/docs/en/build-with-claude/vision#request-limits), counting screenshots and `zoom` images in earlier results | The API doesn’t downscale toolset images. Resize screenshots before returning them ([Size screenshots to fit image limits](https://platform.claude.com/docs/en/agents-and-tools/tool-use/computer-use-tool#handle-coordinate-scaling-for-higher-resolutions)). |
1568| A `model` that doesn’t support `browser_toolset_20260801` | See [API support](https://platform.claude.com/docs/en/agents-and-tools/tool-use/browser-use-tool#availability-feature-support) for the supported models. |
15691569
15701570## Limitations
15711571
from line 1625
16251625
16261626* Availability: Available
16271627
1628| Status | Cloud platforms | Models |
1629| --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1630| Available | Claude API, [Claude Models on Google Cloud (Google managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/google-managed) | [Claude Fable 5.2](https://platform.claude.com/docs/en/models/fable-5-2/overview), [Claude Mythos 5.2](https://platform.claude.com/docs/en/models/mythos-5-2/overview), [Claude Fable 5.1](https://platform.claude.com/docs/en/models/fable-5-1/overview), [Claude Mythos 5.1](https://platform.claude.com/docs/en/models/mythos-5-1/overview), [Claude Fable 5](https://platform.claude.com/docs/en/models/fable-5/overview), [Claude Mythos 5](https://platform.claude.com/docs/en/models/mythos-5/overview), Claude Mythos Preview, [Claude Opus 5.5](https://platform.claude.com/docs/en/models/opus-5-5/overview), [Claude Opus 5](https://platform.claude.com/docs/en/models/opus-5/overview), [Claude Sonnet 5.5](https://platform.claude.com/docs/en/models/sonnet-5-5/overview), [Claude Sonnet 5](https://platform.claude.com/docs/en/models/sonnet-5/overview), [Claude Haiku 5.5](https://platform.claude.com/docs/en/models/haiku-5-5/overview), [Claude Opus 4.8](https://platform.claude.com/docs/en/models/opus-4-8/overview) |
1631| Available | [Claude Models on Google Cloud (Anthropic managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/anthropic-managed) | [Claude Fable 5.2](https://platform.claude.com/docs/en/models/fable-5-2/overview), [Claude Mythos 5.2](https://platform.claude.com/docs/en/models/mythos-5-2/overview), [Claude Fable 5.1](https://platform.claude.com/docs/en/models/fable-5-1/overview), [Claude Mythos 5.1](https://platform.claude.com/docs/en/models/mythos-5-1/overview), [Claude Fable 5](https://platform.claude.com/docs/en/models/fable-5/overview), [Claude Mythos 5](https://platform.claude.com/docs/en/models/mythos-5/overview), [Claude Opus 5.5](https://platform.claude.com/docs/en/models/opus-5-5/overview), [Claude Opus 5](https://platform.claude.com/docs/en/models/opus-5/overview), [Claude Sonnet 5.5](https://platform.claude.com/docs/en/models/sonnet-5-5/overview), [Claude Sonnet 5](https://platform.claude.com/docs/en/models/sonnet-5/overview), [Claude Haiku 5.5](https://platform.claude.com/docs/en/models/haiku-5-5/overview), [Claude Opus 4.8](https://platform.claude.com/docs/en/models/opus-4-8/overview) |
1632| Available | [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws), [Microsoft Foundry](https://platform.claude.com/docs/en/build-with-claude/claude-in-microsoft-foundry) | [Claude Fable 5.2](https://platform.claude.com/docs/en/models/fable-5-2/overview), [Claude Mythos 5.2](https://platform.claude.com/docs/en/models/mythos-5-2/overview), [Claude Fable 5.1](https://platform.claude.com/docs/en/models/fable-5-1/overview), [Claude Mythos 5.1](https://platform.claude.com/docs/en/models/mythos-5-1/overview), [Claude Fable 5](https://platform.claude.com/docs/en/models/fable-5/overview), [Claude Mythos 5](https://platform.claude.com/docs/en/models/mythos-5/overview), [Claude Opus 5.5](https://platform.claude.com/docs/en/models/opus-5-5/overview), [Claude Opus 5](https://platform.claude.com/docs/en/models/opus-5/overview), [Claude Sonnet 5.5](https://platform.claude.com/docs/en/models/sonnet-5-5/overview), [Claude Sonnet 5](https://platform.claude.com/docs/en/models/sonnet-5/overview), [Claude Haiku 5.5](https://platform.claude.com/docs/en/models/haiku-5-5/overview), [Claude Opus 4.8](https://platform.claude.com/docs/en/models/opus-4-8/overview) |
1633| Available | [Amazon Bedrock](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock) | [Claude Fable 5.1](https://platform.claude.com/docs/en/models/fable-5-1/overview), [Claude Mythos 5.1](https://platform.claude.com/docs/en/models/mythos-5-1/overview), [Claude Fable 5](https://platform.claude.com/docs/en/models/fable-5/overview), [Claude Mythos 5](https://platform.claude.com/docs/en/models/mythos-5/overview), [Claude Opus 5.5](https://platform.claude.com/docs/en/models/opus-5-5/overview), [Claude Opus 5](https://platform.claude.com/docs/en/models/opus-5/overview), [Claude Sonnet 5.5](https://platform.claude.com/docs/en/models/sonnet-5-5/overview), [Claude Sonnet 5](https://platform.claude.com/docs/en/models/sonnet-5/overview), [Claude Haiku 5.5](https://platform.claude.com/docs/en/models/haiku-5-5/overview), [Claude Opus 4.8](https://platform.claude.com/docs/en/models/opus-4-8/overview) |
1634| Available | [Amazon Bedrock (bedrock-runtime)](https://platform.claude.com/docs/en/build-with-claude/claude-on-amazon-bedrock-legacy) | [Claude Fable 5.2](https://platform.claude.com/docs/en/models/fable-5-2/overview), [Claude Mythos 5.2](https://platform.claude.com/docs/en/models/mythos-5-2/overview), [Claude Fable 5.1](https://platform.claude.com/docs/en/models/fable-5-1/overview), [Claude Fable 5](https://platform.claude.com/docs/en/models/fable-5/overview), [Claude Opus 5.5](https://platform.claude.com/docs/en/models/opus-5-5/overview), [Claude Opus 5](https://platform.claude.com/docs/en/models/opus-5/overview), [Claude Sonnet 5.5](https://platform.claude.com/docs/en/models/sonnet-5-5/overview), [Claude Sonnet 5](https://platform.claude.com/docs/en/models/sonnet-5/overview), [Claude Haiku 5.5](https://platform.claude.com/docs/en/models/haiku-5-5/overview), [Claude Opus 4.8](https://platform.claude.com/docs/en/models/opus-4-8/overview) |
1628| Status | Cloud platforms | Models |
1629| ----- | ----- | ----- |
1630| Available | Claude API, [Claude Models on Google Cloud (Google managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/google-managed) | [Claude Fable 5.2](https://platform.claude.com/docs/en/models/fable-5-2/overview), [Claude Mythos 5.2](https://platform.claude.com/docs/en/models/mythos-5-2/overview), [Claude Fable 5.1](https://platform.claude.com/docs/en/models/fable-5-1/overview), [Claude Mythos 5.1](https://platform.claude.com/docs/en/models/mythos-5-1/overview), [Claude Fable 5](https://platform.claude.com/docs/en/models/fable-5/overview), [Claude Mythos 5](https://platform.claude.com/docs/en/models/mythos-5/overview), Claude Mythos Preview, [Claude Opus 5.5](https://platform.claude.com/docs/en/models/opus-5-5/overview), [Claude Opus 5](https://platform.claude.com/docs/en/models/opus-5/overview), [Claude Sonnet 5.5](https://platform.claude.com/docs/en/models/sonnet-5-5/overview), [Claude Sonnet 5](https://platform.claude.com/docs/en/models/sonnet-5/overview), [Claude Haiku 5.5](https://platform.claude.com/docs/en/models/haiku-5-5/overview), [Claude Opus 4.8](https://platform.claude.com/docs/en/models/opus-4-8/overview) |
1631| Available | [Claude Models on Google Cloud (Anthropic managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/anthropic-managed) | [Claude Fable 5.2](https://platform.claude.com/docs/en/models/fable-5-2/overview), [Claude Mythos 5.2](https://platform.claude.com/docs/en/models/mythos-5-2/overview), [Claude Fable 5.1](https://platform.claude.com/docs/en/models/fable-5-1/overview), [Claude Mythos 5.1](https://platform.claude.com/docs/en/models/mythos-5-1/overview), [Claude Fable 5](https://platform.claude.com/docs/en/models/fable-5/overview), [Claude Mythos 5](https://platform.claude.com/docs/en/models/mythos-5/overview), [Claude Opus 5.5](https://platform.claude.com/docs/en/models/opus-5-5/overview), [Claude Opus 5](https://platform.claude.com/docs/en/models/opus-5/overview), [Claude Sonnet 5.5](https://platform.claude.com/docs/en/models/sonnet-5-5/overview), [Claude Sonnet 5](https://platform.claude.com/docs/en/models/sonnet-5/overview), [Claude Haiku 5.5](https://platform.claude.com/docs/en/models/haiku-5-5/overview), [Claude Opus 4.8](https://platform.claude.com/docs/en/models/opus-4-8/overview) |
1632| Available | [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws), [Microsoft Foundry](https://platform.claude.com/docs/en/build-with-claude/claude-in-microsoft-foundry) | [Claude Fable 5.2](https://platform.claude.com/docs/en/models/fable-5-2/overview), [Claude Mythos 5.2](https://platform.claude.com/docs/en/models/mythos-5-2/overview), [Claude Fable 5.1](https://platform.claude.com/docs/en/models/fable-5-1/overview), [Claude Mythos 5.1](https://platform.claude.com/docs/en/models/mythos-5-1/overview), [Claude Fable 5](https://platform.claude.com/docs/en/models/fable-5/overview), [Claude Mythos 5](https://platform.claude.com/docs/en/models/mythos-5/overview), [Claude Opus 5.5](https://platform.claude.com/docs/en/models/opus-5-5/overview), [Claude Opus 5](https://platform.claude.com/docs/en/models/opus-5/overview), [Claude Sonnet 5.5](https://platform.claude.com/docs/en/models/sonnet-5-5/overview), [Claude Sonnet 5](https://platform.claude.com/docs/en/models/sonnet-5/overview), [Claude Haiku 5.5](https://platform.claude.com/docs/en/models/haiku-5-5/overview), [Claude Opus 4.8](https://platform.claude.com/docs/en/models/opus-4-8/overview) |
1633| Available | [Amazon Bedrock](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock) | [Claude Fable 5.1](https://platform.claude.com/docs/en/models/fable-5-1/overview), [Claude Mythos 5.1](https://platform.claude.com/docs/en/models/mythos-5-1/overview), [Claude Fable 5](https://platform.claude.com/docs/en/models/fable-5/overview), [Claude Mythos 5](https://platform.claude.com/docs/en/models/mythos-5/overview), [Claude Opus 5.5](https://platform.claude.com/docs/en/models/opus-5-5/overview), [Claude Opus 5](https://platform.claude.com/docs/en/models/opus-5/overview), [Claude Sonnet 5.5](https://platform.claude.com/docs/en/models/sonnet-5-5/overview), [Claude Sonnet 5](https://platform.claude.com/docs/en/models/sonnet-5/overview), [Claude Haiku 5.5](https://platform.claude.com/docs/en/models/haiku-5-5/overview), [Claude Opus 4.8](https://platform.claude.com/docs/en/models/opus-4-8/overview) |
1634| Available | [Amazon Bedrock (bedrock-runtime)](https://platform.claude.com/docs/en/build-with-claude/claude-on-amazon-bedrock-legacy) | [Claude Fable 5.2](https://platform.claude.com/docs/en/models/fable-5-2/overview), [Claude Mythos 5.2](https://platform.claude.com/docs/en/models/mythos-5-2/overview), [Claude Fable 5.1](https://platform.claude.com/docs/en/models/fable-5-1/overview), [Claude Fable 5](https://platform.claude.com/docs/en/models/fable-5/overview), [Claude Opus 5.5](https://platform.claude.com/docs/en/models/opus-5-5/overview), [Claude Opus 5](https://platform.claude.com/docs/en/models/opus-5/overview), [Claude Sonnet 5.5](https://platform.claude.com/docs/en/models/sonnet-5-5/overview), [Claude Sonnet 5](https://platform.claude.com/docs/en/models/sonnet-5/overview), [Claude Haiku 5.5](https://platform.claude.com/docs/en/models/haiku-5-5/overview), [Claude Opus 4.8](https://platform.claude.com/docs/en/models/opus-4-8/overview) |
16351635
16361636#### [Managed Agents](https://platform.claude.com/docs/en/managed-agents/overview)
16371637
from line 1641
16411641
16421642[Data handling overview](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#feature-eligibility)
16431643
1644| Item | Zero data retention | HIPAA |
1645| ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
1646| Status | Eligible (excludes [Covered Models](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements)) | Not eligible |
1644| Item | Zero data retention | HIPAA |
1645| ----- | ----- | ----- |
1646| Status | Eligible (excludes [Covered Models](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements)) | Not eligible |
16471647| Details | Client-side tool. Anthropic does not run browser actions or retain page content beyond standard API handling. [Learn more](https://platform.claude.com/docs/en/agents-and-tools/tool-use/browser-use-tool#data-retention) | Not covered under HIPAA readiness; requests that include the browser use tool are not blocked. |
16481648
16491649Applicable endpoints:
agents-and-tools/tool-use/code-execution-tool Changed · +20 / -20 lines
from line 1076
10761076
10771077**Error codes by tool type:**
10781078
1079| Tool | Error code | Description |
1080| ------------ | ------------------------- | ------------------------------------------------- |
1081| All tools | `unavailable` | The tool is temporarily unavailable |
1082| All tools | `execution_time_exceeded` | The tool call exceeded the maximum execution time |
1083| All tools | `invalid_tool_input` | Invalid parameters provided to the tool |
1084| All tools | `too_many_requests` | Rate limit exceeded for tool usage |
1085| bash | `output_file_too_large` | Command output exceeded the maximum size |
1086| text\_editor | `file_not_found` | File doesn’t exist (for view/edit operations) |
1079| Tool | Error code | Description |
1080| ----- | ----- | ----- |
1081| All tools | `unavailable` | The tool is temporarily unavailable |
1082| All tools | `execution_time_exceeded` | The tool call exceeded the maximum execution time |
1083| All tools | `invalid_tool_input` | Invalid parameters provided to the tool |
1084| All tools | `too_many_requests` | Rate limit exceeded for tool usage |
1085| bash | `output_file_too_large` | Command output exceeded the maximum size |
1086| text\_editor | `file_not_found` | File doesn’t exist (for view/edit operations) |
10871087
10881088An expired container can’t be reused: requests that reference it return an error instead of restoring it. Send the request again without the `container` parameter to get a new container.
10891089
from line 1500
15001500
15011501### What’s changed
15021502
1503| Component | Legacy | Current |
1504| -------------- | --------------------------- | ------------------------------------------------------------------- |
1505| Beta header | `code-execution-2025-05-22` | None required |
1506| Tool type | `code_execution_20250522` | `code_execution_20250825` or later |
1507| Capabilities | Python only | Bash commands, file operations |
1508| Response types | `code_execution_result` | `bash_code_execution_result`, `text_editor_code_execution_*_result` |
1503| Component | Legacy | Current |
1504| ----- | ----- | ----- |
1505| Beta header | `code-execution-2025-05-22` | None required |
1506| Tool type | `code_execution_20250522` | `code_execution_20250825` or later |
1507| Capabilities | Python only | Bash commands, file operations |
1508| Response types | `code_execution_result` | `bash_code_execution_result`, `text_editor_code_execution_*_result` |
15091509
15101510### Backward compatibility
15111511
from line 1560
15601560
15611561* Availability: Available
15621562
1563| Status | Cloud platforms |
1564| --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
1563| Status | Cloud platforms |
1564| ----- | ----- |
15651565| Available | Claude API, [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws), [Claude Models on Google Cloud (Anthropic managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/anthropic-managed), [Microsoft Foundry (hosted on Anthropic)](https://platform.claude.com/docs/en/build-with-claude/claude-in-microsoft-foundry) |
15661566
15671567### Data handling
from line 1568
15681568
15691569[Data handling overview](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#feature-eligibility)
15701570
1571| Item | Zero data retention | HIPAA |
1572| ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ |
1573| Status | Not eligible | Not eligible |
1574| Details | Container data retained up to 30 days. [Learn more](https://platform.claude.com/docs/en/agents-and-tools/tool-use/code-execution-tool#data-retention) | — |
1571| Item | Zero data retention | HIPAA |
1572| ----- | ----- | ----- |
1573| Status | Not eligible | Not eligible |
1574| Details | Container data retained up to 30 days. [Learn more](https://platform.claude.com/docs/en/agents-and-tools/tool-use/code-execution-tool#data-retention) | — |
15751575
15761576Applicable endpoints:
15771577
agents-and-tools/tool-use/computer-use-tool Changed · +45 / -45 lines
from line 735
735735
736736Each action is a member tool of the computer use toolset: Claude names the member in a `tool_use` block that carries `"toolset_name": "computer"`, and the block’s `input` holds only that member’s parameters, with no `action` field. The toolset has 17 member tools:
737737
738| Member | Input | Description |
739| ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
740| `screenshot` | None (`{}`) | Capture the full display and return it as an image. |
741| `zoom` | `region`: `[x0, y0, x1, y1]`, the top-left and bottom-right corners of the area to inspect | Capture only that region of the display at full resolution and return it as an image, scaled to fit within your usual screenshot dimensions with its aspect ratio preserved. This lets Claude read small text or dense UI that isn’t legible in a downscaled full screenshot. |
742| `left_click` | `coordinate` (optional): `[x, y]`; `text` (optional): modifier keys to hold during the click: `shift`, `ctrl`, `alt`, `super` (the Command or Windows key), or a `+`-joined combination such as `ctrl+shift` | Click the left mouse button at `coordinate`, or at the current cursor position when `coordinate` is omitted. |
743| `right_click`, `middle_click`, `double_click`, `triple_click` | Same as `left_click` | Other mouse buttons and multiple clicks. |
744| `left_click_drag` | `start_coordinate`: `[x, y]`; `coordinate`: `[x, y]`; `text` (optional): modifier keys | Press at `start_coordinate`, drag to `coordinate`, and release. |
745| `mouse_move` | `coordinate`: `[x, y]` | Move the cursor without clicking, for example, to hover. |
746| `left_mouse_down`, `left_mouse_up` | None (`{}`) | Press or release the left mouse button at the current cursor position, for drags that `left_click_drag` can’t express. Move the cursor with `mouse_move` first. |
747| `cursor_position` | None (`{}`) | Report the cursor’s current `[x, y]` position as text. |
748| `scroll` | `scroll_direction`: `"up"`, `"down"`, `"left"`, or `"right"`; `scroll_amount`: number of scroll-wheel clicks; `coordinate` (optional): `[x, y]`; `text` (optional): modifier keys | Scroll at `coordinate`, or at the current cursor position. |
749| `type` | `text`: the string to type | Type literal text at the current keyboard focus. |
750| `key` | `text`: a key or a `+`-joined combination such as `"Return"`, `"ctrl+s"`, or `"alt+Tab"`; `repeat` (optional): 1 to 100, default 1 | Press a key or key combination, `repeat` times. |
751| `hold_key` | `text`: a key or combination; `duration`: seconds, up to 300 | Hold a key down for the given duration. |
752| `wait` | `duration`: seconds, up to 300 | Pause before the next action, for example, while an application loads. |
738| Member | Input | Description |
739| ----- | ----- | ----- |
740| `screenshot` | None (`{}`) | Capture the full display and return it as an image. |
741| `zoom` | `region`: `[x0, y0, x1, y1]`, the top-left and bottom-right corners of the area to inspect | Capture only that region of the display at full resolution and return it as an image, scaled to fit within your usual screenshot dimensions with its aspect ratio preserved. This lets Claude read small text or dense UI that isn’t legible in a downscaled full screenshot. |
742| `left_click` | `coordinate` (optional): `[x, y]`; `text` (optional): modifier keys to hold during the click: `shift`, `ctrl`, `alt`, `super` (the Command or Windows key), or a `+`-joined combination such as `ctrl+shift` | Click the left mouse button at `coordinate`, or at the current cursor position when `coordinate` is omitted. |
743| `right_click`, `middle_click`, `double_click`, `triple_click` | Same as `left_click` | Other mouse buttons and multiple clicks. |
744| `left_click_drag` | `start_coordinate`: `[x, y]`; `coordinate`: `[x, y]`; `text` (optional): modifier keys | Press at `start_coordinate`, drag to `coordinate`, and release. |
745| `mouse_move` | `coordinate`: `[x, y]` | Move the cursor without clicking, for example, to hover. |
746| `left_mouse_down`, `left_mouse_up` | None (`{}`) | Press or release the left mouse button at the current cursor position, for drags that `left_click_drag` can’t express. Move the cursor with `mouse_move` first. |
747| `cursor_position` | None (`{}`) | Report the cursor’s current `[x, y]` position as text. |
748| `scroll` | `scroll_direction`: `"up"`, `"down"`, `"left"`, or `"right"`; `scroll_amount`: number of scroll-wheel clicks; `coordinate` (optional): `[x, y]`; `text` (optional): modifier keys | Scroll at `coordinate`, or at the current cursor position. |
749| `type` | `text`: the string to type | Type literal text at the current keyboard focus. |
750| `key` | `text`: a key or a `+`-joined combination such as `"Return"`, `"ctrl+s"`, or `"alt+Tab"`; `repeat` (optional): 1 to 100, default 1 | Press a key or key combination, `repeat` times. |
751| `hold_key` | `text`: a key or combination; `duration`: seconds, up to 300 | Hold a key down for the given duration. |
752| `wait` | `duration`: seconds, up to 300 | Pause before the next action, for example, while an application loads. |
753753
754754Keep the following in mind when implementing the members:
755755
from line 844
844844
845845The toolset entry in the `tools` array accepts four parameters; the rules they share with the browser use toolset are listed under [Client toolsets](https://platform.claude.com/docs/en/agents-and-tools/tool-use/tool-reference#client-toolsets).
846846
847| Parameter | Required | Description |
848| ----------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
849| `type` | Yes | `computer_toolset_20260801` |
850| `configs` | No | Per-member settings keyed by member name; each member accepts `enabled` (default `true` for all 17, including `zoom`) and `defer_loading` (default `false`, for [tool search](https://platform.claude.com/docs/en/agents-and-tools/tool-use/tool-search-tool#deferred-tool-loading)), and members you omit keep their defaults. |
851| `cache_control` | No | [Prompt caching](https://platform.claude.com/docs/en/build-with-claude/prompt-caching) breakpoint at the toolset definition; entry only. A breakpoint on any `tool_use` or `tool_result` block in a batch takes effect at the end of that batch; see [Tool use with prompt caching](https://platform.claude.com/docs/en/agents-and-tools/tool-use/tool-use-with-prompt-caching#cache-control-on-tool-definitions). |
852| `allowed_callers` | No | `["direct"]` only. |
847| Parameter | Required | Description |
848| ----- | ----- | ----- |
849| `type` | Yes | `computer_toolset_20260801` |
850| `configs` | No | Per-member settings keyed by member name; each member accepts `enabled` (default `true` for all 17, including `zoom`) and `defer_loading` (default `false`, for [tool search](https://platform.claude.com/docs/en/agents-and-tools/tool-use/tool-search-tool#deferred-tool-loading)), and members you omit keep their defaults. |
851| `cache_control` | No | [Prompt caching](https://platform.claude.com/docs/en/build-with-claude/prompt-caching) breakpoint at the toolset definition; entry only. A breakpoint on any `tool_use` or `tool_result` block in a batch takes effect at the end of that batch; see [Tool use with prompt caching](https://platform.claude.com/docs/en/agents-and-tools/tool-use/tool-use-with-prompt-caching#cache-control-on-tool-definitions). |
852| `allowed_callers` | No | `["direct"]` only. |
853853
854854For example, this entry withholds `zoom` for an environment that doesn’t implement it and sets a cache breakpoint at the toolset definition:
855855
from line 1841
18411841
18421842If clicks miss their targets, the cause is usually one of the following:
18431843
1844| Symptom | Likely cause | Try |
1845| ------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1846| Clicks consistently offset in one direction | Claude’s coordinates, which are in the pixel space of the screenshots you return, are being applied to a display of a different size without scaling | Scale each coordinate by the ratio of your screen size to your screenshot size before clicking (see [Size screenshots to fit image limits](https://platform.claude.com/docs/en/agents-and-tools/tool-use/computer-use-tool#handle-coordinate-scaling-for-higher-resolutions)); on macOS Retina displays, account for the 2x device pixel ratio |
1847| Clicks land in the right area but miss the target | Target is very small, detail was lost downscaling a 4K+ source, or aspect ratio was distorted | Keep the `zoom` member enabled and implement it so Claude can inspect the region at full resolution; capture at lower DPI or crop to the relevant region; preserve aspect ratio when resizing |
1848| Claude clicks the wrong element entirely | Ambiguous instruction, or visually similar elements nearby | Use positional prompts (“the blue Submit button in the bottom-right”); break the interaction into smaller steps |
1849| Accuracy is consistently poor | Resolution too low | Try 1280x720 as a baseline |
1844| Symptom | Likely cause | Try |
1845| ----- | ----- | ----- |
1846| Clicks consistently offset in one direction | Claude’s coordinates, which are in the pixel space of the screenshots you return, are being applied to a display of a different size without scaling | Scale each coordinate by the ratio of your screen size to your screenshot size before clicking (see [Size screenshots to fit image limits](https://platform.claude.com/docs/en/agents-and-tools/tool-use/computer-use-tool#handle-coordinate-scaling-for-higher-resolutions)); on macOS Retina displays, account for the 2x device pixel ratio |
1847| Clicks land in the right area but miss the target | Target is very small, detail was lost downscaling a 4K+ source, or aspect ratio was distorted | Keep the `zoom` member enabled and implement it so Claude can inspect the region at full resolution; capture at lower DPI or crop to the relevant region; preserve aspect ratio when resizing |
1848| Claude clicks the wrong element entirely | Ambiguous instruction, or visually similar elements nearby | Use positional prompts (“the blue Submit button in the bottom-right”); break the interaction into smaller steps |
1849| Accuracy is consistently poor | Resolution too low | Try 1280x720 as a baseline |
18501850
18511851<Tip>
18521852 **Model choice affects click precision.** Among the models that use the `computer_20251124` tool, Claude Sonnet 4.6 is more mechanically precise at clicking than Claude Opus 4.6 and is more robust when screenshots require heavy downscaling. Claude Opus 4.7 narrows that gap: its click precision is roughly comparable to Sonnet 4.6, and its higher resolution limit means less downscaling is needed.
from line 2184
21842184
21852185Two earlier versions of the computer use tool are available in beta. Each requires its [beta header](https://platform.claude.com/docs/en/api/beta-headers) on every request, and their parameters are documented in the [beta Messages API reference](https://platform.claude.com/docs/en/api/beta/messages/create). With the SDK, pass the header through `betas` (csharp, go: `Betas`; java: `.addBeta()`) and use the beta namespace; only the computer use tool needs the header, not the bash or text editor tools in the same request.
21862186
2187| Tool version | Beta header | Use with | Parameters |
2188| ------------------- | ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------- |
2189| `computer_20251124` | `computer-use-2025-11-24` | Claude Fable 5.1, Claude Mythos 5.1, Claude Fable 5, Claude Mythos 5, Claude Opus 5, Claude Sonnet 5, Claude Opus 4.8, Claude Opus 4.7, Claude Opus 4.6, Claude Sonnet 4.6, and Claude Opus 4.5 | [API reference](https://platform.claude.com/docs/en/api/beta/messages/create) |
2187| Tool version | Beta header | Use with | Parameters |
2188| ----- | ----- | ----- | ----- |
2189| `computer_20251124` | `computer-use-2025-11-24` | Claude Fable 5.1, Claude Mythos 5.1, Claude Fable 5, Claude Mythos 5, Claude Opus 5, Claude Sonnet 5, Claude Opus 4.8, Claude Opus 4.7, Claude Opus 4.6, Claude Sonnet 4.6, and Claude Opus 4.5 | [API reference](https://platform.claude.com/docs/en/api/beta/messages/create) |
21902190| `computer_20250124` | `computer-use-2025-01-24` | Claude Sonnet 4.5 ([deprecated](https://platform.claude.com/docs/en/about-claude/model-deprecations)), Claude Haiku 4.5, Claude Opus 4.1 ([retired, except on Claude Models on Google Cloud (Google managed) and Bedrock](https://platform.claude.com/docs/en/about-claude/model-deprecations)), Claude Sonnet 4 ([retired, except on Claude Models on Google Cloud (Google managed) and Bedrock](https://platform.claude.com/docs/en/about-claude/model-deprecations)), and Claude Opus 4 ([retired, except on Claude Models on Google Cloud (Google managed)](https://platform.claude.com/docs/en/about-claude/model-deprecations)) | [API reference](https://platform.claude.com/docs/en/api/beta/messages/create) |
21912191
21922192On Amazon Bedrock, Claude Fable 5.2, Claude Mythos 5.2, Claude Opus 5.5, Claude Sonnet 5.5, and Claude Haiku 5.5 also accept the `computer_20251124` tool with the `computer-use-2025-11-24` beta header. With Amazon Bedrock’s InvokeModel API, send `computer-use-2025-11-24` in the `anthropic_beta` array of the request body instead of in a header. For that API, see [Claude on Amazon Bedrock (`bedrock-runtime`)](https://platform.claude.com/docs/en/build-with-claude/claude-on-amazon-bedrock-legacy).
from line 2270
22702270
22712271* Availability: Available
22722272
2273| Status | Cloud platforms | Models |
2274| --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
2275| Available | Claude API, [Claude Models on Google Cloud (Google managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/google-managed) | [Claude Fable 5.2](https://platform.claude.com/docs/en/models/fable-5-2/overview), [Claude Mythos 5.2](https://platform.claude.com/docs/en/models/mythos-5-2/overview), [Claude Fable 5.1](https://platform.claude.com/docs/en/models/fable-5-1/overview), [Claude Mythos 5.1](https://platform.claude.com/docs/en/models/mythos-5-1/overview), [Claude Fable 5](https://platform.claude.com/docs/en/models/fable-5/overview), [Claude Mythos 5](https://platform.claude.com/docs/en/models/mythos-5/overview), Claude Mythos Preview, [Claude Opus 5.5](https://platform.claude.com/docs/en/models/opus-5-5/overview), [Claude Opus 5](https://platform.claude.com/docs/en/models/opus-5/overview), [Claude Sonnet 5.5](https://platform.claude.com/docs/en/models/sonnet-5-5/overview), [Claude Sonnet 5](https://platform.claude.com/docs/en/models/sonnet-5/overview), [Claude Haiku 5.5](https://platform.claude.com/docs/en/models/haiku-5-5/overview), [Claude Opus 4.8](https://platform.claude.com/docs/en/models/opus-4-8/overview) |
2276| Available | [Claude Models on Google Cloud (Anthropic managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/anthropic-managed) | [Claude Fable 5.2](https://platform.claude.com/docs/en/models/fable-5-2/overview), [Claude Mythos 5.2](https://platform.claude.com/docs/en/models/mythos-5-2/overview), [Claude Fable 5.1](https://platform.claude.com/docs/en/models/fable-5-1/overview), [Claude Mythos 5.1](https://platform.claude.com/docs/en/models/mythos-5-1/overview), [Claude Fable 5](https://platform.claude.com/docs/en/models/fable-5/overview), [Claude Mythos 5](https://platform.claude.com/docs/en/models/mythos-5/overview), [Claude Opus 5.5](https://platform.claude.com/docs/en/models/opus-5-5/overview), [Claude Opus 5](https://platform.claude.com/docs/en/models/opus-5/overview), [Claude Sonnet 5.5](https://platform.claude.com/docs/en/models/sonnet-5-5/overview), [Claude Sonnet 5](https://platform.claude.com/docs/en/models/sonnet-5/overview), [Claude Haiku 5.5](https://platform.claude.com/docs/en/models/haiku-5-5/overview), [Claude Opus 4.8](https://platform.claude.com/docs/en/models/opus-4-8/overview) |
2277| Available | [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws), [Microsoft Foundry](https://platform.claude.com/docs/en/build-with-claude/claude-in-microsoft-foundry) | [Claude Fable 5.2](https://platform.claude.com/docs/en/models/fable-5-2/overview), [Claude Mythos 5.2](https://platform.claude.com/docs/en/models/mythos-5-2/overview), [Claude Fable 5.1](https://platform.claude.com/docs/en/models/fable-5-1/overview), [Claude Mythos 5.1](https://platform.claude.com/docs/en/models/mythos-5-1/overview), [Claude Fable 5](https://platform.claude.com/docs/en/models/fable-5/overview), [Claude Mythos 5](https://platform.claude.com/docs/en/models/mythos-5/overview), [Claude Opus 5.5](https://platform.claude.com/docs/en/models/opus-5-5/overview), [Claude Opus 5](https://platform.claude.com/docs/en/models/opus-5/overview), [Claude Sonnet 5.5](https://platform.claude.com/docs/en/models/sonnet-5-5/overview), [Claude Sonnet 5](https://platform.claude.com/docs/en/models/sonnet-5/overview), [Claude Haiku 5.5](https://platform.claude.com/docs/en/models/haiku-5-5/overview), [Claude Opus 4.8](https://platform.claude.com/docs/en/models/opus-4-8/overview) |
2278| Available | [Amazon Bedrock](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock) | [Claude Fable 5.1](https://platform.claude.com/docs/en/models/fable-5-1/overview), [Claude Mythos 5.1](https://platform.claude.com/docs/en/models/mythos-5-1/overview), [Claude Fable 5](https://platform.claude.com/docs/en/models/fable-5/overview), [Claude Mythos 5](https://platform.claude.com/docs/en/models/mythos-5/overview), [Claude Opus 5.5](https://platform.claude.com/docs/en/models/opus-5-5/overview), [Claude Opus 5](https://platform.claude.com/docs/en/models/opus-5/overview), [Claude Sonnet 5.5](https://platform.claude.com/docs/en/models/sonnet-5-5/overview), [Claude Sonnet 5](https://platform.claude.com/docs/en/models/sonnet-5/overview), [Claude Haiku 5.5](https://platform.claude.com/docs/en/models/haiku-5-5/overview), [Claude Opus 4.8](https://platform.claude.com/docs/en/models/opus-4-8/overview) |
2279| Available | [Amazon Bedrock (bedrock-runtime)](https://platform.claude.com/docs/en/build-with-claude/claude-on-amazon-bedrock-legacy) | [Claude Fable 5.2](https://platform.claude.com/docs/en/models/fable-5-2/overview), [Claude Mythos 5.2](https://platform.claude.com/docs/en/models/mythos-5-2/overview), [Claude Fable 5.1](https://platform.claude.com/docs/en/models/fable-5-1/overview), [Claude Fable 5](https://platform.claude.com/docs/en/models/fable-5/overview), [Claude Opus 5.5](https://platform.claude.com/docs/en/models/opus-5-5/overview), [Claude Opus 5](https://platform.claude.com/docs/en/models/opus-5/overview), [Claude Sonnet 5.5](https://platform.claude.com/docs/en/models/sonnet-5-5/overview), [Claude Sonnet 5](https://platform.claude.com/docs/en/models/sonnet-5/overview), [Claude Haiku 5.5](https://platform.claude.com/docs/en/models/haiku-5-5/overview), [Claude Opus 4.8](https://platform.claude.com/docs/en/models/opus-4-8/overview) |
2280| Beta | All supported platforms | [Claude Haiku 4.5](https://platform.claude.com/docs/en/models/haiku-4-5/overview), [Claude Opus 4.7](https://platform.claude.com/docs/en/models/opus-4-7/overview), [Claude Opus 4.6](https://platform.claude.com/docs/en/models/opus-4-6/overview), [Claude Sonnet 4.6](https://platform.claude.com/docs/en/models/sonnet-4-6/overview), [Claude Opus 4.5](https://platform.claude.com/docs/en/models/opus-4-5/overview), [Claude Sonnet 4.5](https://platform.claude.com/docs/en/models/sonnet-4-5/overview) |
2273| Status | Cloud platforms | Models |
2274| ----- | ----- | ----- |
2275| Available | Claude API, [Claude Models on Google Cloud (Google managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/google-managed) | [Claude Fable 5.2](https://platform.claude.com/docs/en/models/fable-5-2/overview), [Claude Mythos 5.2](https://platform.claude.com/docs/en/models/mythos-5-2/overview), [Claude Fable 5.1](https://platform.claude.com/docs/en/models/fable-5-1/overview), [Claude Mythos 5.1](https://platform.claude.com/docs/en/models/mythos-5-1/overview), [Claude Fable 5](https://platform.claude.com/docs/en/models/fable-5/overview), [Claude Mythos 5](https://platform.claude.com/docs/en/models/mythos-5/overview), Claude Mythos Preview, [Claude Opus 5.5](https://platform.claude.com/docs/en/models/opus-5-5/overview), [Claude Opus 5](https://platform.claude.com/docs/en/models/opus-5/overview), [Claude Sonnet 5.5](https://platform.claude.com/docs/en/models/sonnet-5-5/overview), [Claude Sonnet 5](https://platform.claude.com/docs/en/models/sonnet-5/overview), [Claude Haiku 5.5](https://platform.claude.com/docs/en/models/haiku-5-5/overview), [Claude Opus 4.8](https://platform.claude.com/docs/en/models/opus-4-8/overview) |
2276| Available | [Claude Models on Google Cloud (Anthropic managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/anthropic-managed) | [Claude Fable 5.2](https://platform.claude.com/docs/en/models/fable-5-2/overview), [Claude Mythos 5.2](https://platform.claude.com/docs/en/models/mythos-5-2/overview), [Claude Fable 5.1](https://platform.claude.com/docs/en/models/fable-5-1/overview), [Claude Mythos 5.1](https://platform.claude.com/docs/en/models/mythos-5-1/overview), [Claude Fable 5](https://platform.claude.com/docs/en/models/fable-5/overview), [Claude Mythos 5](https://platform.claude.com/docs/en/models/mythos-5/overview), [Claude Opus 5.5](https://platform.claude.com/docs/en/models/opus-5-5/overview), [Claude Opus 5](https://platform.claude.com/docs/en/models/opus-5/overview), [Claude Sonnet 5.5](https://platform.claude.com/docs/en/models/sonnet-5-5/overview), [Claude Sonnet 5](https://platform.claude.com/docs/en/models/sonnet-5/overview), [Claude Haiku 5.5](https://platform.claude.com/docs/en/models/haiku-5-5/overview), [Claude Opus 4.8](https://platform.claude.com/docs/en/models/opus-4-8/overview) |
2277| Available | [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws), [Microsoft Foundry](https://platform.claude.com/docs/en/build-with-claude/claude-in-microsoft-foundry) | [Claude Fable 5.2](https://platform.claude.com/docs/en/models/fable-5-2/overview), [Claude Mythos 5.2](https://platform.claude.com/docs/en/models/mythos-5-2/overview), [Claude Fable 5.1](https://platform.claude.com/docs/en/models/fable-5-1/overview), [Claude Mythos 5.1](https://platform.claude.com/docs/en/models/mythos-5-1/overview), [Claude Fable 5](https://platform.claude.com/docs/en/models/fable-5/overview), [Claude Mythos 5](https://platform.claude.com/docs/en/models/mythos-5/overview), [Claude Opus 5.5](https://platform.claude.com/docs/en/models/opus-5-5/overview), [Claude Opus 5](https://platform.claude.com/docs/en/models/opus-5/overview), [Claude Sonnet 5.5](https://platform.claude.com/docs/en/models/sonnet-5-5/overview), [Claude Sonnet 5](https://platform.claude.com/docs/en/models/sonnet-5/overview), [Claude Haiku 5.5](https://platform.claude.com/docs/en/models/haiku-5-5/overview), [Claude Opus 4.8](https://platform.claude.com/docs/en/models/opus-4-8/overview) |
2278| Available | [Amazon Bedrock](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock) | [Claude Fable 5.1](https://platform.claude.com/docs/en/models/fable-5-1/overview), [Claude Mythos 5.1](https://platform.claude.com/docs/en/models/mythos-5-1/overview), [Claude Fable 5](https://platform.claude.com/docs/en/models/fable-5/overview), [Claude Mythos 5](https://platform.claude.com/docs/en/models/mythos-5/overview), [Claude Opus 5.5](https://platform.claude.com/docs/en/models/opus-5-5/overview), [Claude Opus 5](https://platform.claude.com/docs/en/models/opus-5/overview), [Claude Sonnet 5.5](https://platform.claude.com/docs/en/models/sonnet-5-5/overview), [Claude Sonnet 5](https://platform.claude.com/docs/en/models/sonnet-5/overview), [Claude Haiku 5.5](https://platform.claude.com/docs/en/models/haiku-5-5/overview), [Claude Opus 4.8](https://platform.claude.com/docs/en/models/opus-4-8/overview) |
2279| Available | [Amazon Bedrock (bedrock-runtime)](https://platform.claude.com/docs/en/build-with-claude/claude-on-amazon-bedrock-legacy) | [Claude Fable 5.2](https://platform.claude.com/docs/en/models/fable-5-2/overview), [Claude Mythos 5.2](https://platform.claude.com/docs/en/models/mythos-5-2/overview), [Claude Fable 5.1](https://platform.claude.com/docs/en/models/fable-5-1/overview), [Claude Fable 5](https://platform.claude.com/docs/en/models/fable-5/overview), [Claude Opus 5.5](https://platform.claude.com/docs/en/models/opus-5-5/overview), [Claude Opus 5](https://platform.claude.com/docs/en/models/opus-5/overview), [Claude Sonnet 5.5](https://platform.claude.com/docs/en/models/sonnet-5-5/overview), [Claude Sonnet 5](https://platform.claude.com/docs/en/models/sonnet-5/overview), [Claude Haiku 5.5](https://platform.claude.com/docs/en/models/haiku-5-5/overview), [Claude Opus 4.8](https://platform.claude.com/docs/en/models/opus-4-8/overview) |
2280| Beta | All supported platforms | [Claude Haiku 4.5](https://platform.claude.com/docs/en/models/haiku-4-5/overview), [Claude Opus 4.7](https://platform.claude.com/docs/en/models/opus-4-7/overview), [Claude Opus 4.6](https://platform.claude.com/docs/en/models/opus-4-6/overview), [Claude Sonnet 4.6](https://platform.claude.com/docs/en/models/sonnet-4-6/overview), [Claude Opus 4.5](https://platform.claude.com/docs/en/models/opus-4-5/overview), [Claude Sonnet 4.5](https://platform.claude.com/docs/en/models/sonnet-4-5/overview) |
22812281
22822282#### [Managed Agents](https://platform.claude.com/docs/en/managed-agents/overview)
22832283
from line 2289
22892289
22902290Beta headers allow you to access experimental features and new model capabilities before they become part of the standard API.
22912291
2292| Header | Models |
2293| ------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
2292| Header | Models |
2293| ----- | ----- |
22942294| `computer-use-2025-11-24` | [Claude Opus 4.7](https://platform.claude.com/docs/en/models/opus-4-7/overview), [Claude Opus 4.6](https://platform.claude.com/docs/en/models/opus-4-6/overview), [Claude Sonnet 4.6](https://platform.claude.com/docs/en/models/sonnet-4-6/overview), [Claude Opus 4.5](https://platform.claude.com/docs/en/models/opus-4-5/overview) |
2295| `computer-use-2025-01-24` | [Claude Haiku 4.5](https://platform.claude.com/docs/en/models/haiku-4-5/overview), [Claude Sonnet 4.5](https://platform.claude.com/docs/en/models/sonnet-4-5/overview) |
2295| `computer-use-2025-01-24` | [Claude Haiku 4.5](https://platform.claude.com/docs/en/models/haiku-4-5/overview), [Claude Sonnet 4.5](https://platform.claude.com/docs/en/models/sonnet-4-5/overview) |
22962296
22972297### Data handling
22982298
22992299[Data handling overview](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#feature-eligibility)
23002300
2301| Item | Zero data retention | HIPAA |
2302| ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------- |
2303| Status | Eligible (excludes [Covered Models](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements)) | Eligible |
2304| Details | Client-side tool where screenshots and files are captured and stored in your environment, not by Anthropic. [Learn more](https://platform.claude.com/docs/en/agents-and-tools/tool-use/computer-use-tool#data-retention) | — |
2301| Item | Zero data retention | HIPAA |
2302| ----- | ----- | ----- |
2303| Status | Eligible (excludes [Covered Models](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements)) | Eligible |
2304| Details | Client-side tool where screenshots and files are captured and stored in your environment, not by Anthropic. [Learn more](https://platform.claude.com/docs/en/agents-and-tools/tool-use/computer-use-tool#data-retention) | — |
23052305
23062306Applicable endpoints:
23072307
agents-and-tools/tool-use/define-tools Changed · +13 / -13 lines
from line 52
5252
5353Client tools are specified in the `tools` top-level parameter of the API request. Anthropic-schema client tools, such as the bash and text editor tools, are declared by a date-versioned `type`; see each tool’s page, linked from the [Tool reference](https://platform.claude.com/docs/en/agents-and-tools/tool-use/tool-reference), for the fields it accepts. The computer use and browser use tools are [client toolsets](https://platform.claude.com/docs/en/agents-and-tools/tool-use/tool-reference#client-toolsets): a single entry with no `name` that declares a fixed set of member tools. A user-defined tool definition includes:
5454
55| Parameter | Description |
56| ---------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
57| `name` | The name of the tool. Must match the regex `^[a-zA-Z0-9_-]{1,128}$`. |
58| `description` | A detailed plain text description of what the tool does, when it should be used, and how it behaves. |
59| `input_schema` | A [JSON Schema](https://json-schema.org/) object defining the expected parameters for the tool. |
55| Parameter | Description |
56| ----- | ----- |
57| `name` | The name of the tool. Must match the regex `^[a-zA-Z0-9_-]{1,128}$`. |
58| `description` | A detailed plain text description of what the tool does, when it should be used, and how it behaves. |
59| `input_schema` | A [JSON Schema](https://json-schema.org/) object defining the expected parameters for the tool. |
6060| `input_examples` | (Optional) An array of example input objects that show Claude how to use the tool. See [Providing tool use examples](https://platform.claude.com/docs/en/agents-and-tools/tool-use/define-tools#providing-tool-use-examples). |
6161
6262For the full set of optional properties available on any single tool definition, including `cache_control`, `strict`, `defer_loading`, and `allowed_callers`, see [Tool definition properties](https://platform.claude.com/docs/en/agents-and-tools/tool-use/tool-reference#tool-definition-properties). A client toolset entry accepts `cache_control` and `allowed_callers` on the entry and sets `defer_loading` for each member; see [Client toolsets](https://platform.claude.com/docs/en/agents-and-tools/tool-use/tool-reference#client-toolsets).
from line 589
589589
590590Not every model and setting supports forced tool use. Where it isn’t supported, `tool_choice: {"type": "any"}` and `tool_choice: {"type": "tool", "name": "..."}` fail, whereas `tool_choice: {"type": "auto"}` (the default) and `tool_choice: {"type": "none"}` still work:
591591
592| Model or setting | Restriction | What to use instead |
593| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
594| Manual [extended thinking](https://platform.claude.com/docs/en/build-with-claude/extended-thinking) (`thinking: {type: "enabled"}`) | `any` and `tool` are not supported and result in an error | `auto` or `none`. [Adaptive thinking](https://platform.claude.com/docs/en/build-with-claude/thinking) itself doesn’t block forced tool use (models with thinking on by default, such as Claude Opus 5 and Claude Haiku 5.5, accept it, but a forced call skips thinking: the response starts with the tool call and has no `thinking` block); the models in the next row reject forced tool use regardless of thinking settings |
595| Claude Fable 5.2, [Claude Mythos 5.2](https://platform.claude.com/docs/en/models/mythos-5-2/overview), Claude Opus 5.5, Claude Sonnet 5.5, Claude Fable 5.1, and [Claude Mythos 5.1](https://platform.claude.com/docs/en/models/mythos-5-1/overview) | `any` and `tool` return a 400 error. See [Forced tool use not supported](https://platform.claude.com/docs/en/api/errors#forced-tool-use-not-supported) | `auto` with [strict tool use](https://platform.claude.com/docs/en/agents-and-tools/tool-use/strict-tool-use) to guarantee schema-valid tool inputs, or [structured outputs](https://platform.claude.com/docs/en/build-with-claude/structured-outputs) when you need a response in a fixed JSON shape. Prompting still influences which tool `auto` picks. `none` is also supported |
592| Model or setting | Restriction | What to use instead |
593| ----- | ----- | ----- |
594| Manual [extended thinking](https://platform.claude.com/docs/en/build-with-claude/extended-thinking) (`thinking: {type: "enabled"}`) | `any` and `tool` are not supported and result in an error | `auto` or `none`. [Adaptive thinking](https://platform.claude.com/docs/en/build-with-claude/thinking) itself doesn’t block forced tool use (models with thinking on by default, such as Claude Opus 5 and Claude Haiku 5.5, accept it, but a forced call skips thinking: the response starts with the tool call and has no `thinking` block); the models in the next row reject forced tool use regardless of thinking settings |
595| Claude Fable 5.2, [Claude Mythos 5.2](https://platform.claude.com/docs/en/models/mythos-5-2/overview), Claude Opus 5.5, Claude Sonnet 5.5, Claude Fable 5.1, and [Claude Mythos 5.1](https://platform.claude.com/docs/en/models/mythos-5-1/overview) | `any` and `tool` return a 400 error. See [Forced tool use not supported](https://platform.claude.com/docs/en/api/errors#forced-tool-use-not-supported) | `auto` with [strict tool use](https://platform.claude.com/docs/en/agents-and-tools/tool-use/strict-tool-use) to guarantee schema-valid tool inputs, or [structured outputs](https://platform.claude.com/docs/en/build-with-claude/structured-outputs) when you need a response in a fixed JSON shape. Prompting still influences which tool `auto` picks. `none` is also supported |
596596
597597On models that support it, the highlighted lines are the only difference from a standard tool use request:
598598
from line 953
953953* Availability: Available
954954* Usage: Define them in the request’s `tools`. Claude’s response contains `tool_use` blocks, and you send the results as `tool_result` blocks in the next request.
955955
956| Status | Cloud platforms |
957| --------- | ----------------------- |
956| Status | Cloud platforms |
957| ----- | ----- |
958958| Available | All supported platforms |
959959
960960#### [Managed Agents](https://platform.claude.com/docs/en/managed-agents/overview)
from line 962
962962* Availability: Available
963963* Usage: Declare them on the agent with `type` `"custom"`. Calls arrive as `agent.custom_tool_use` events, and you reply with `user.custom_tool_result` events.
964964
965| Status | Cloud platforms |
966| --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
965| Status | Cloud platforms |
966| ----- | ----- |
967967| Available | Claude API, [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws), [Claude Models on Google Cloud (Anthropic managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/anthropic-managed) |
968968
agents-and-tools/tool-use/fine-grained-tool-streaming Changed · +4 / -4 lines
from line 976
976976
977977* Availability: Available
978978
979| Status | Cloud platforms |
980| --------- | ----------------------- |
979| Status | Cloud platforms |
980| ----- | ----- |
981981| Available | All supported platforms |
982982
983983### Data handling
from line 984
984984
985985[Data handling overview](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#feature-eligibility)
986986
987| Item | Zero data retention | HIPAA |
988| ------ | --------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- |
987| Item | Zero data retention | HIPAA |
988| ----- | ----- | ----- |
989989| Status | Eligible (excludes [Covered Models](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements)) | Eligible |
990990
991991Applicable endpoints:
agents-and-tools/tool-use/how-tool-use-works Changed · +4 / -4 lines
from line 77
7777
7878## Choosing between approaches
7979
80| Approach | When to use it | What to expect | Learn more |
81| ----------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
82| User-defined client tools | Custom business logic, internal APIs, proprietary data | You handle execution and the agentic loop | [Define tools](https://platform.claude.com/docs/en/agents-and-tools/tool-use/define-tools) |
80| Approach | When to use it | What to expect | Learn more |
81| ----- | ----- | ----- | ----- |
82| User-defined client tools | Custom business logic, internal APIs, proprietary data | You handle execution and the agentic loop | [Define tools](https://platform.claude.com/docs/en/agents-and-tools/tool-use/define-tools) |
8383| Anthropic-schema client tools | Standard dev operations (bash, file editing, desktop and browser control) | You handle execution; Claude calls the tool reliably because the schema is trained-in | [Tool reference](https://platform.claude.com/docs/en/agents-and-tools/tool-use/tool-reference) |
84| Server-executed tools | Web search, code sandbox, web fetch | Anthropic handles execution; you read the results instead of producing them | [Server tools](https://platform.claude.com/docs/en/agents-and-tools/tool-use/server-tools) |
84| Server-executed tools | Web search, code sandbox, web fetch | Anthropic handles execution; you read the results instead of producing them | [Server tools](https://platform.claude.com/docs/en/agents-and-tools/tool-use/server-tools) |
8585
8686## Next steps
8787