Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One capture · api

One read of Claude Developer Platformapi-20261203T190723Z

18 pages moved out of 993 read.

Pages moved 18 significant first
Pages read 993 in this capture
Captured 19:07 UTC
Corpus hash 2d7adc8a2840 corpus-hash

What this read moved

1-18 of 18

cli-sdks-libraries/overview Changed · +9 / -4 lines

## CLI and Terraform ## CLI

from line 1
11---
22title: SDKs, CLI, and libraries
33url: https://platform.claude.com/docs/en/cli-sdks-libraries/overview
4description: "Official tools for building with the Claude API: client SDKs in seven languages, the ant CLI, and framework-specific libraries."
4description: "Official tools for building with the Claude API: client SDKs in seven languages, the ant CLI, the Terraform provider, and framework-specific libraries."
55---
66 
7Anthropic provides three kinds of official tooling for building with the Claude API:
7Anthropic provides four kinds of official tooling for building with the Claude API:
88 
99* **CLI:** The `ant` command-line tool for shell scripting and interactive use.
1010* **Client SDKs:** General-purpose Messages API clients for Python, TypeScript, C#, Go, Java, PHP, and Ruby. They also cover [Claude Managed Agents](https://platform.claude.com/docs/en/managed-agents/overview) and most of the [Admin API](https://platform.claude.com/docs/en/manage-claude/admin-api). Each SDK provides idiomatic interfaces, type safety, and built-in support for streaming, retries, error handling, and [OpenTelemetry tracing](https://platform.claude.com/docs/en/manage-claude/opentelemetry/sdk).
11* **Terraform provider:** The `anthropics/anthropic` [Terraform provider](https://platform.claude.com/docs/en/cli-sdks-libraries/sdks/terraform) for managing Claude Platform resources, such as workspaces and agents, as code.
1112* **Libraries and integrations:** Packages and compatibility layers that expose Claude inside another framework’s API surface rather than the Messages API directly.
1213 
1314<Info>
from line 15
1415 For the full API specification, see the [API reference](https://platform.claude.com/docs/en/api/overview).
1516</Info>
1617 
17## CLI
18## CLI and Terraform
1819 
1920<CardGroup cols={3}>
2021 <Card title="ant CLI" href="https://platform.claude.com/docs/en/cli-sdks-libraries/cli/quickstart">
2122 Shell scripting, typed flags, response transforms
2223 </Card>
24 
25 <Card title="Terraform" href="https://platform.claude.com/docs/en/cli-sdks-libraries/sdks/terraform">
26 Declarative management of Claude Platform resources
27 </Card>
2328</CardGroup>
2429 
2530## Client SDKs
from line 65
6065 
6166| Tool | Latest version | Package |
6267| ----- | ----- | ----- |
63| ant CLI | `2.15.0` | [`github.com/anthropics/anthropic-cli`](https://github.com/anthropics/anthropic-cli/releases) |
68| ant CLI | `2.16.0` | [`github.com/anthropics/anthropic-cli`](https://github.com/anthropics/anthropic-cli/releases) |
6469| Python | `2.17.0` | [`anthropic` on PyPI](https://pypi.org/project/anthropic/) |
6570| TypeScript | `1.17.0` | [`@anthropic-ai/sdk`](https://www.npmjs.com/package/@anthropic-ai/sdk) |
6671| C# | `13.17.0` | [`Anthropic`](https://www.nuget.org/packages/Anthropic) |

managed-agents/agent-setup Changed · +37 / -0 lines

from line 177
177177 tools: [{type: "agent_toolset_20260401"}]
178178 )
179179 ```
180 
181 ```hcl Terraform
182 resource "anthropic_beta_agent" "coding_assistant" {
183 name = "Coding Assistant"
184 model = { id = "claude-opus-5-5" }
185 system = "You are a helpful coding agent."
186 tools = [
187 { agent_toolset_20260401 = {} },
188 ]
189 }
190 ```
180191</CodeGroup>
181192 
182193The response echoes your configuration and adds `id`, `type`, `version`, `created_at`, `updated_at`, and `archived_at` fields, and fills in `model` fields you omit, such as `effort`, with their defaults. The `version` starts at 1 and increments each time an update changes the agent.
from line 365
354365 
355366 puts "Inference geo: #{agent.model.inference_geo}"
356367 ```
368 
369 ```hcl Terraform
370 resource "anthropic_beta_agent" "geo_pinned_assistant" {
371 name = "Geo-pinned assistant"
372 model = {
373 id = "claude-opus-5-5"
374 inference_geo = "us"
375 }
376 system = "You are a helpful assistant."
377 }
378 
379 output "inference_geo" {
380 value = anthropic_beta_agent.geo_pinned_assistant.model.inference_geo
381 }
382 ```
357383</CodeGroup>
358384 
359385To change or clear the pin later, update the agent’s `model` (csharp, go: `Model`) object. Supplying `model` (csharp, go: `Model`) without `inference_geo` (java, php: `inferenceGeo`; csharp, go: `InferenceGeo`) clears the pin, as described under [Update semantics](https://platform.claude.com/docs/en/managed-agents/agent-setup#update-semantics).
from line 501
475501 )
476502 
477503 puts "New version: #{updated_agent.version}"
504 ```
505 
506 ```hcl Terraform
507 resource "anthropic_beta_agent" "coding_assistant" {
508 name = "Coding Assistant"
509 model = { id = "claude-opus-5-5" }
510 system = "You are a helpful coding agent. Always write tests."
511 tools = [
512 { agent_toolset_20260401 = {} },
513 ]
514 }
478515 ```
479516</CodeGroup>
480517 

managed-agents/github Changed · +26 / -0 lines

from line 309
309309 ]
310310 )
311311 ```
312 
313 ```hcl Terraform
314 resource "anthropic_beta_agent" "code_reviewer" {
315 name = "Code Reviewer"
316 model = { id = "claude-opus-5-5" }
317 mcp_servers = [
318 { url = { name = "github", url = "https://api.githubcopilot.com/mcp/" } },
319 ]
320 tools = [
321 {
322 agent_toolset_20260401 = {
323 configs = [
324 { web_search = { enabled = false } },
325 { web_fetch = { enabled = false } },
326 ]
327 }
328 },
329 {
330 mcp_toolset = {
331 mcp_server_name = "github"
332 }
333 },
334 ]
335 system = "You are a code review assistant with access to GitHub."
336 }
337 ```
312338</CodeGroup>
313339 
314340Then create a session that mounts the GitHub repository. With a `limited` [environment](https://platform.claude.com/docs/en/managed-agents/environments#networking), session creation fails with a 400 error when the agent declares an MCP server whose host is not in `allowed_hosts` (java, php: `allowedHosts`; csharp, go: `AllowedHosts`). Setting `allow_mcp_servers` (java: `allowMcpServers`; php: `allowMCPServers`; csharp: `AllowMcpServers`; go: `AllowMCPServers`) to `true` in the environment’s networking turns this check off.

managed-agents/multiagent-orchestration Changed · +111 / -0 lines

from line 362
362362 }
363363 )
364364 ```
365 
366 ```hcl Terraform
367 resource "anthropic_beta_agent" "reviewer" {
368 name = "reviewer"
369 model = { id = "claude-haiku-5-5" }
370 system = "You are a code reviewer."
371 }
372 
373 resource "anthropic_beta_agent" "test_writer" {
374 name = "test-writer"
375 model = { id = "claude-haiku-5-5" }
376 system = "You write unit tests."
377 }
378 
379 resource "anthropic_beta_agent" "engineering_lead" {
380 name = "Engineering Lead"
381 model = { id = "claude-opus-5-5" }
382 tools = [
383 { agent_toolset_20260401 = {} },
384 ]
385 multiagent = {
386 multiagent_20261001 = {
387 subagents = {
388 enabled = {
389 predefined_agents = [
390 { agent = { id = anthropic_beta_agent.reviewer.id, version = anthropic_beta_agent.reviewer.version } },
391 { agent = { id = anthropic_beta_agent.test_writer.id, version = anthropic_beta_agent.test_writer.version } },
392 ]
393 }
394 }
395 }
396 }
397 system = "You coordinate engineering work. Delegate code review to the reviewer agent and test writing to the test agent."
398 }
399 ```
365400</CodeGroup>
366401 
367402The agent can also delegate to inline agents unless you turn them off. For that setting, and for the forms that an entry of the `predefined_agents` (java, php: `predefinedAgents`; csharp, go: `PredefinedAgents`) list of `subagents` (csharp, go: `Subagents`) takes, see [Predefined and inline agents](https://platform.claude.com/docs/en/managed-agents/multiagent-orchestration#predefined-and-inline-agents).
from line 788
753788 }
754789 )
755790 ```
791 
792 ```hcl Terraform
793 resource "anthropic_beta_agent" "researcher" {
794 name = "researcher"
795 model = { id = "claude-haiku-5-5" }
796 mcp_servers = [
797 { url = { name = "github", url = "https://api.githubcopilot.com/mcp/" } },
798 ]
799 tools = [
800 {
801 mcp_toolset = {
802 mcp_server_name = "github"
803 }
804 },
805 ]
806 }
807 
808 resource "anthropic_beta_agent" "lead" {
809 name = "lead"
810 model = { id = "claude-opus-5-5" }
811 tools = [
812 { agent_toolset_20260401 = {} },
813 ]
814 multiagent = {
815 multiagent_20261001 = {
816 subagents = {
817 enabled = {
818 predefined_agents = [
819 { agent = { id = anthropic_beta_agent.researcher.id, version = anthropic_beta_agent.researcher.version } },
820 ]
821 }
822 }
823 }
824 }
825 }
826 ```
756827</CodeGroup>
757828 
758829Then create the session with the vault that holds the GitHub credential:
from line 1153
10821153 multiagent: {type: "multiagent_20261001", workflows: {type: "enabled"}}
10831154 )
10841155 ```
1156 
1157 ```hcl Terraform
1158 resource "anthropic_beta_agent" "contract_reviewer" {
1159 name = "Contract Reviewer"
1160 model = { id = "claude-opus-5-5" }
1161 system = "You review contracts. When you're asked to review more than a few contracts, start a workflow run that reads them in parallel and combines the findings. Review one or two contracts yourself, without a run."
1162 tools = [
1163 {
1164 agent_toolset_20260401 = {
1165 configs = [
1166 { web_search = { enabled = false } },
1167 { web_fetch = { enabled = false } },
1168 ]
1169 }
1170 },
1171 ]
1172 multiagent = {
1173 multiagent_20261001 = {
1174 workflows = { enabled = {} }
1175 }
1176 }
1177 }
1178 ```
10851179</CodeGroup>
10861180 
10871181To let a workflow use agents you’ve already created, list them in `workflows.predefined_agents`. The `subagents` and `advisor` settings go in the same `multiagent` block. To list subagents, see [Delegate to subagents](https://platform.claude.com/docs/en/managed-agents/multiagent-orchestration#delegate-to-subagents). To set an advisor, see [Give the session an advisor](https://platform.claude.com/docs/en/managed-agents/multiagent-orchestration#give-the-session-an-advisor). This agent lets a workflow use one agent you created, lists two subagents, and has an advisor:
from line 1397
13031397 }
13041398 )
13051399 puts agent.id
1400 ```
1401 
1402 ```hcl Terraform
1403 resource "anthropic_beta_agent" "backend_engineer" {
1404 name = "Backend engineer"
1405 model = { id = "claude-sonnet-5" }
1406 system = "You implement backend features end to end. Consult the advisor before major backend design decisions."
1407 multiagent = {
1408 multiagent_20261001 = {
1409 advisor = {
1410 enabled = {
1411 model = "claude-opus-5-5"
1412 }
1413 }
1414 }
1415 }
1416 }
13061417 ```
13071418</CodeGroup>
13081419 

managed-agents/permission-policies Changed · +86 / -0 lines

from line 227
227227 ]
228228 )
229229 ```
230 
231 ```hcl Terraform
232 resource "anthropic_beta_agent" "coding_assistant" {
233 name = "Coding Assistant"
234 model = { id = "claude-opus-5-5" }
235 tools = [
236 {
237 agent_toolset_20260401 = {
238 default_config = {
239 permission_policy = "always_ask"
240 }
241 }
242 },
243 ]
244 }
245 ```
230246</CodeGroup>
231247 
232248`default_config` (java, php: `defaultConfig`; csharp, go: `DefaultConfig`) is optional. If you omit it, the agent toolset is enabled with the default permission policy, `always_allow`.
from line 481
465481 ]
466482 )
467483 ```
484 
485 ```hcl Terraform
486 resource "anthropic_beta_agent" "dev_assistant" {
487 name = "Dev Assistant"
488 model = { id = "claude-opus-5-5" }
489 mcp_servers = [
490 { url = { name = "github", url = "https://mcp.example.com/github" } },
491 ]
492 tools = [
493 { agent_toolset_20260401 = {} },
494 {
495 mcp_toolset = {
496 mcp_server_name = "github"
497 default_config = {
498 permission_policy = "always_allow"
499 }
500 }
501 },
502 ]
503 }
504 ```
468505</CodeGroup>
469506 
470507## Override an individual tool policy
from line 694
657694 }
658695 ]
659696 ```
697 
698 ```hcl Terraform
699 resource "anthropic_beta_agent" "bash_review_assistant" {
700 name = "Coding Assistant"
701 model = { id = "claude-opus-5-5" }
702 tools = [
703 {
704 agent_toolset_20260401 = {
705 default_config = {
706 permission_policy = "always_allow"
707 }
708 configs = [
709 { bash = { permission_policy = "always_ask" } },
710 ]
711 }
712 },
713 ]
714 }
715 ```
660716</CodeGroup>
661717 
662718Pass this `tools` (csharp, go: `Tools`) configuration when you create the agent. MCP toolsets support the same per-tool overrides, with `name` (csharp, go: `Name`) set to the tool name reported by the MCP server. See [Configure which MCP tools are available](https://platform.claude.com/docs/en/managed-agents/mcp-connector#configure-which-mcp-tools-are-available).
from line 1042
9861042 }
9871043 ]
9881044 )
1045 ```
1046 
1047 ```hcl Terraform
1048 resource "anthropic_beta_agent" "ops_agent" {
1049 name = "Ops Agent"
1050 model = { id = "claude-opus-5-5" }
1051 mcp_servers = [
1052 { url = { name = "github", url = "https://mcp.example.com/github" } },
1053 ]
1054 tools = [
1055 {
1056 agent_toolset_20260401 = {
1057 default_config = {
1058 permission_policy = "auto"
1059 }
1060 configs = [
1061 { bash = { permission_policy = "always_ask" } },
1062 ]
1063 }
1064 },
1065 {
1066 mcp_toolset = {
1067 mcp_server_name = "github"
1068 default_config = {
1069 permission_policy = "auto"
1070 }
1071 }
1072 },
1073 ]
1074 }
9891075 ```
9901076</CodeGroup>
9911077 

managed-agents/quickstart Changed · +67 / -2 lines

from line 90
9090 For Linux environments, download the release binary directly.
9191 
9292 ```bash
93 VERSION=2.15.0
93 VERSION=2.16.0
9494 OS=$(uname -s | tr '[:upper:]' '[:lower:]')
9595 case $(uname -m) in
9696 x86_64) ARCH=amd64 ;;
from line 165
165165 For Linux environments, download the release binary directly.
166166 
167167 ```bash
168 VERSION=2.15.0
168 VERSION=2.16.0
169169 OS=$(uname -s | tr '[:upper:]' '[:lower:]')
170170 case $(uname -m) in
171171 x86_64) ARCH=amd64 ;;
from line 570
570570 
571571 Save the returned `agent.id`. You’ll reference it in every session you create.
572572 </CodeGroupItem>
573 
574 <CodeGroupItem>
575 ```hcl Terraform
576 terraform {
577 required_providers {
578 anthropic = {
579 source = "anthropics/anthropic"
580 }
581 }
582 }
583 
584 provider "anthropic" {
585 organization_id = "00000000-0000-0000-0000-000000000000" # Replace with your organization ID
586 }
587 
588 resource "anthropic_beta_agent" "coding_assistant" {
589 name = "Coding Assistant"
590 model = { id = "claude-opus-5-5" }
591 system = "You are a helpful coding assistant. Write clean, well-documented code."
592 tools = [
593 {
594 agent_toolset_20260401 = {
595 configs = [
596 { web_search = { enabled = false } },
597 { web_fetch = { enabled = false } },
598 ]
599 }
600 },
601 ]
602 }
603 
604 output "agent_id" {
605 value = anthropic_beta_agent.coding_assistant.id
606 }
607 
608 output "agent_version" {
609 value = anthropic_beta_agent.coding_assistant.version
610 }
611 ```
612 
613 `terraform apply` prints the agent’s ID as the `agent_id` output. You’ll reference it in every session you create.
614 </CodeGroupItem>
573615 </CodeGroup>
574616 
575617 The `agent_toolset_20260401` tool type enables the prebuilt agent tools (bash, file operations, web search, and more). This example disables web search and web fetch because the task in this guide, writing a short Python script, doesn’t use the web. Give an agent [only the tools it needs](https://platform.claude.com/docs/en/managed-agents/secure-deployment#give-the-agent-the-smallest-tool-set). See [Tools](https://platform.claude.com/docs/en/managed-agents/tools) for the complete list and per-tool configuration options.
from line 800
758800 ```
759801 
760802 Save the returned `environment.id` too.
803 </CodeGroupItem>
804 
805 <CodeGroupItem>
806 ```hcl Terraform
807 resource "anthropic_beta_environment" "quickstart_env" {
808 name = "quickstart-env"
809 config = {
810 cloud = {
811 networking = {
812 limited = {
813 allow_package_managers = true
814 }
815 }
816 }
817 }
818 }
819 
820 output "environment_id" {
821 value = anthropic_beta_environment.quickstart_env.id
822 }
823 ```
824 
825 `terraform apply` prints the environment’s ID as the `environment_id` output.
761826 </CodeGroupItem>
762827 </CodeGroup>
763828 

managed-agents/scheduled-deployments Changed · +26 / -0 lines

from line 245
245245 }
246246 )
247247 ```
248 
249 ```hcl Terraform
250 resource "anthropic_beta_deployment" "weekly_compliance_scan" {
251 name = "Weekly compliance scan"
252 agent = {
253 agent = { id = "agent_011CYm1BLqPXpQRk5khsSXrs" }
254 # or { id = anthropic_beta_agent.<name>.id, version = anthropic_beta_agent.<name>.version }
255 }
256 environment_id = "env_01595EKxaaTTGwwY3kyXdtbs" # or anthropic_beta_environment.<name>.id
257 schedule = {
258 cron = {
259 expression = "0 20 * * 5"
260 timezone = "America/New_York"
261 }
262 }
263 initial_events = [
264 {
265 user_message = {
266 content = [
267 { text = { text = "Run the weekly compliance scan." } },
268 ]
269 }
270 },
271 ]
272 }
273 ```
248274</CodeGroup>
249275 
250276The response includes a deployment object with a populated `schedule.upcoming_runs_at` with the next upcoming fire times, to confirm your schedule was set correctly.

managed-agents/skills Changed · +37 / -0 lines

from line 223
223223 puts "Created skill: #{skill.id}"
224224 puts "Latest version: #{skill.latest_version_id}"
225225 ```
226 
227 ```hcl Terraform
228 # Publishes skills/pr-summary/ (SKILL.md at its root) as one skill.
229 # Paths are relative to skills/, so the skill's top-level directory
230 # is pr-summary/, matching the `name` in SKILL.md's frontmatter.
231 resource "anthropic_skill" "pr_summary" {
232 # ...
233 dynamic "file" {
234 for_each = fileset("${path.module}/skills", "pr-summary/**")
235 content {
236 path = file.value
237 source = "${path.module}/skills/${file.value}"
238 }
239 }
240 }
241 ```
226242</CodeGroup>
227243 
228244To list, retrieve, delete, and version custom skills, see [Managing custom skills](https://platform.claude.com/docs/en/build-with-claude/skills-guide#managing-custom-skills). For the full request and response schemas, see the [Create Skill](https://platform.claude.com/docs/en/api/skills/create) API reference. Skill bundles upload directly to the Skills API rather than through the [Files API](https://platform.claude.com/docs/en/build-with-claude/files).
from line 422
406422 {type: "custom", skill_id: "skill_01AbCdEfGhIjKlMnOpQrStUv", version: "latest"}
407423 ]
408424 )
425 ```
426 
427 ```hcl Terraform
428 resource "anthropic_beta_agent" "financial_analyst" {
429 name = "Financial Analyst"
430 model = { id = "claude-opus-5-5" }
431 skills = [
432 {
433 anthropic = {
434 skill_id = "xlsx"
435 }
436 },
437 {
438 custom = {
439 skill_id = "skill_01AbCdEfGhIjKlMnOpQrStUv" # or anthropic_skill.pr_summary.id
440 version = "latest"
441 }
442 },
443 ]
444 system = "You are a financial analysis agent."
445 }
409446 ```
410447</CodeGroup>
411448 

managed-agents/tools Changed · +73 / -0 lines

from line 223
223223 ]
224224 )
225225 ```
226 
227 ```hcl Terraform
228 resource "anthropic_beta_agent" "coding_assistant" {
229 name = "Coding Assistant"
230 model = { id = "claude-opus-5-5" }
231 tools = [
232 {
233 agent_toolset_20260401 = {
234 configs = [
235 { web_fetch = { enabled = false } },
236 ]
237 }
238 },
239 ]
240 }
241 ```
226242</CodeGroup>
227243 
228244### Disabling specific tools
from line 255
239255}
240256```
241257 
258With the Terraform provider, this entry goes in the `tools` argument of an `anthropic_beta_agent` resource:
259 
260```hcl
261tools = [
262 {
263 agent_toolset_20260401 = {
264 configs = [
265 { web_fetch = { enabled = false } },
266 { web_search = { enabled = false } },
267 ]
268 }
269 },
270]
271```
272 
242273### Enabling only specific tools
243274 
244275The `default_config` object sets the baseline for every tool in the set, and per-tool `configs` entries override it. To start with everything off and enable only what you need, set `default_config.enabled` to `false`:
from line 286
255286}
256287```
257288 
289With the Terraform provider, this entry goes in the `tools` argument of an `anthropic_beta_agent` resource:
290 
291```hcl
292tools = [
293 {
294 agent_toolset_20260401 = {
295 default_config = { enabled = false }
296 configs = [
297 { bash = { enabled = true } },
298 { read = { enabled = true } },
299 { write = { enabled = true } },
300 ]
301 }
302 },
303]
304```
305 
258306### Restricting web search and web fetch
259307 
260308The `web_search` and `web_fetch` entries also accept domain lists, a cap on fetched content, and a search location. See [Restrict web search and web fetch domains](https://platform.claude.com/docs/en/managed-agents/tools-web-restrictions).
from line 534
486534 }
487535 ]
488536 )
537 ```
538 
539 ```hcl Terraform
540 resource "anthropic_beta_agent" "weather_agent" {
541 name = "Weather Agent"
542 model = { id = "claude-opus-5-5" }
543 tools = [
544 {
545 custom = {
546 name = "get_weather"
547 description = "Get current weather for a location"
548 input_schema = jsonencode({
549 type = "object"
550 properties = {
551 location = {
552 type = "string"
553 description = "City name"
554 }
555 }
556 required = ["location"]
557 })
558 }
559 },
560 ]
561 }
489562 ```
490563</CodeGroup>
491564 

managed-agents/tools-web-restrictions Changed · +30 / -0 lines

from line 393
393393 end
394394 end
395395 ```
396 
397 ```hcl Terraform
398 resource "anthropic_beta_agent" "research_agent" {
399 name = "Research Agent"
400 model = { id = "claude-opus-5-5" }
401 tools = [
402 {
403 agent_toolset_20260401 = {
404 configs = [
405 {
406 web_search = {
407 allowed_domains = ["docs.example.com", "arxiv.org"]
408 user_location = {
409 country = "US"
410 timezone = "America/Los_Angeles"
411 }
412 }
413 },
414 {
415 web_fetch = {
416 blocked_domains = ["ads.example.com"]
417 max_content_tokens = 50000
418 }
419 },
420 ]
421 }
422 },
423 ]
424 }
425 ```
396426</CodeGroup>
397427 
398428In a cloud environment with `limited` [networking](https://platform.claude.com/docs/en/managed-agents/environments#networking), the environment’s `allowed_hosts` (java, php: `allowedHosts`; csharp, go: `AllowedHosts`) also applies to `web_search` and `web_fetch`. Creating a session fails with a 400 error when an enabled web tool’s `allowed_domains` (java, php: `allowedDomains`; csharp, go: `AllowedDomains`) has an entry that is not within `allowed_hosts` (java, php: `allowedHosts`; csharp, go: `AllowedHosts`). So does a session update that adds such an entry. To fix it, add the host to `allowed_hosts` (java, php: `allowedHosts`; csharp, go: `AllowedHosts`) or remove the entry from `allowed_domains` (java, php: `allowedDomains`; csharp, go: `AllowedDomains`). At runtime, a `web_fetch` call for a URL on a host that `allowed_hosts` (java, php: `allowedHosts`; csharp, go: `AllowedHosts`) does not match returns a `url_not_allowed` error result. `web_search` omits results from such hosts. The two lists match differently: a tool’s entry covers its subdomains, but an `allowed_hosts` (java, php: `allowedHosts`; csharp, go: `AllowedHosts`) entry matches one exact host unless it starts with `*.`. For example, the tool entry `docs.example.com` is not within an `allowed_hosts` (java, php: `allowedHosts`; csharp, go: `AllowedHosts`) of `["example.com"]`, but it is within `["docs.example.com"]` or `["*.example.com"]`.

managed-agents/vaults Changed · +105 / -0 lines

from line 137
137137 )
138138 puts vault.id # "vlt_01ABC..."
139139 ```
140 
141 ```hcl Terraform
142 resource "anthropic_beta_vault" "service_accounts" {
143 display_name = "Service accounts"
144 }
145 ```
140146</CodeGroup>
141147 
142148The response is the full vault record:
from line 389
383389 }
384390 )
385391 ```
392 
393 ```hcl Terraform
394 # Needs Terraform 1.11 or later for write-only arguments.
395 variable "slack_access_token" {
396 type = string
397 sensitive = true
398 ephemeral = true
399 }
400 
401 variable "slack_refresh_token" {
402 type = string
403 sensitive = true
404 ephemeral = true
405 }
406 
407 variable "slack_client_secret" {
408 type = string
409 sensitive = true
410 ephemeral = true
411 }
412 
413 resource "anthropic_beta_vault_credential" "slack" {
414 vault_id = anthropic_beta_vault.service_accounts.id
415 display_name = "Slack"
416 
417 auth = {
418 mcp_oauth = {
419 mcp_server_url = "https://mcp.slack.com/mcp"
420 access_token_wo = var.slack_access_token
421 access_token_wo_version = 1
422 refresh = {
423 token_endpoint = "https://slack.com/api/oauth.v2.user.access"
424 client_id = "1234567890.0987654321"
425 scope = "channels:read chat:write"
426 refresh_token_wo = var.slack_refresh_token
427 refresh_token_wo_version = 1
428 token_endpoint_auth = {
429 client_secret_post = {
430 client_secret_wo = var.slack_client_secret
431 client_secret_wo_version = 1
432 }
433 }
434 }
435 }
436 }
437 }
438 ```
386439 </CodeGroup>
387440 
388441 Set `refresh.token_endpoint` (java, php: `refresh.tokenEndpoint`; csharp, go: `Refresh.TokenEndpoint`) to the token endpoint of the OAuth flow that issued the refresh token, because Anthropic sends every refresh request to that URL and the field can’t be changed after the credential is created.
from line 556
503556 }
504557 )
505558 ```
559 
560 ```hcl Terraform
561 # Needs Terraform 1.11 or later for write-only arguments.
562 variable "linear_api_key" {
563 type = string
564 sensitive = true
565 ephemeral = true
566 }
567 
568 resource "anthropic_beta_vault_credential" "linear" {
569 vault_id = anthropic_beta_vault.service_accounts.id
570 display_name = "Linear API key"
571 
572 auth = {
573 static_bearer = {
574 mcp_server_url = "https://mcp.linear.app/mcp"
575 token_wo = var.linear_api_key
576 token_wo_version = 1
577 }
578 }
579 }
580 ```
506581 </CodeGroup>
507582 </Tab>
508583 
from line 781
706781 env_credential.auth.injection_location => {header:, body:}
707782 puts "header: #{header}, body: #{body}" # header: true, body: false
708783 end
784 ```
785 
786 ```hcl Terraform
787 # Needs Terraform 1.11 or later for write-only arguments.
788 variable "notion_api_key" {
789 type = string
790 sensitive = true
791 ephemeral = true
792 }
793 
794 resource "anthropic_beta_vault_credential" "notion" {
795 vault_id = anthropic_beta_vault.service_accounts.id
796 display_name = "Notion API key for sandbox"
797 
798 auth = {
799 environment_variable = {
800 secret_name = "NOTION_API_KEY"
801 secret_value_wo = var.notion_api_key
802 secret_value_wo_version = 1
803 injection_location = {
804 header = true
805 }
806 networking = {
807 limited = {
808 allowed_hosts = ["api.notion.com"]
809 }
810 }
811 }
812 }
813 }
709814 ```
710815 </CodeGroup>
711816 

agents-and-tools/agent-skills/quickstart Changed · +2 / -2 lines

from line 39
3939 For Linux environments, download the release binary directly.
4040 
4141 ```bash
42 VERSION=2.15.0
42 VERSION=2.16.0
4343 OS=$(uname -s | tr '[:upper:]' '[:lower:]')
4444 case $(uname -m) in
4545 x86_64) ARCH=amd64 ;;
from line 114
114114 For Linux environments, download the release binary directly.
115115 
116116 ```bash
117 VERSION=2.15.0
117 VERSION=2.16.0
118118 OS=$(uname -s | tr '[:upper:]' '[:lower:]')
119119 case $(uname -m) in
120120 x86_64) ARCH=amd64 ;;

cli-sdks-libraries/cli/apply Changed · +1 / -1 lines

from line 309
309309 ref: main # the tip of main, so a queued run has the previous run's lockfile commit
310310 - name: Install the ant CLI
311311 run: |
312 VERSION=2.15.0
312 VERSION=2.16.0
313313 curl -fsSL "https://github.com/anthropics/anthropic-cli/releases/download/v${VERSION}/ant_${VERSION}_linux_amd64.tar.gz" \
314314 | sudo tar -xz -C /usr/local/bin ant
315315 - name: Fetch GitHub OIDC token

cli-sdks-libraries/cli/quickstart Changed · +1 / -1 lines

from line 32
3232 For Linux environments, download the release binary directly.
3333 
3434 ```bash
35 VERSION=2.15.0
35 VERSION=2.16.0
3636 OS=$(uname -s | tr '[:upper:]' '[:lower:]')
3737 case $(uname -m) in
3838 x86_64) ARCH=amd64 ;;

get-started Changed · +2 / -2 lines

from line 37
3737 For Linux environments, download the release binary directly.
3838 
3939 ```bash
40 VERSION=2.15.0
40 VERSION=2.16.0
4141 OS=$(uname -s | tr '[:upper:]' '[:lower:]')
4242 case $(uname -m) in
4343 x86_64) ARCH=amd64 ;;
from line 190
190190 For Linux environments, download the release binary directly.
191191 
192192 ```bash
193 VERSION=2.15.0
193 VERSION=2.16.0
194194 OS=$(uname -s | tr '[:upper:]' '[:lower:]')
195195 case $(uname -m) in
196196 x86_64) ARCH=amd64 ;;

manage-claude/admin-api-keys Changed · +1 / -1 lines

from line 100
100100 For Linux environments, download the release binary directly.
101101 
102102 ```bash
103 VERSION=2.15.0
103 VERSION=2.16.0
104104 OS=$(uname -s | tr '[:upper:]' '[:lower:]')
105105 case $(uname -m) in
106106 x86_64) ARCH=amd64 ;;

manage-claude/authentication Changed · +1 / -1 lines

from line 69
6969 For Linux environments, download the release binary directly.
7070 
7171 ```bash
72 VERSION=2.15.0
72 VERSION=2.16.0
7373 OS=$(uname -s | tr '[:upper:]' '[:lower:]')
7474 case $(uname -m) in
7575 x86_64) ARCH=amd64 ;;

managed-agents/self-hosted-sandboxes-per-session Changed · +1 / -1 lines

from line 133
133133 <File filename="Dockerfile">
134134 ```dockerfile
135135 FROM your-base-image
136 ARG ANT_VERSION=2.15.0
136 ARG ANT_VERSION=2.16.0
137137 ARG TARGETARCH
138138 RUN ARCH=$([ "$TARGETARCH" = "arm64" ] && echo arm64 || echo amd64) && \
139139 curl -fsSL "https://github.com/anthropics/anthropic-cli/releases/download/v${ANT_VERSION}/ant_${ANT_VERSION}_linux_${ARCH}.tar.gz" \
Feedback