One read of Claude Developer Platformapi-20261202T003718Z
5 pages moved out of 992 read.
Pages moved
5
significant first
Pages read
992
in this capture
Captured
00:37 UTC
Corpus hash
3e5f66f77238
corpus-hash
What this read moved
1-5 of 5build-with-claude/claude-in-amazon-bedrock Changed · +14 / -2 lines
#### Permission policy defaults
from line 49
4949 </Step>
5050
5151 <Step title="Developer: authenticate and assume">
52 Authenticate through your corporate identity provider, then assume the IAM role. AWS STS issues temporary credentials that the SDK or CLI uses to sign requests.
52 Authenticate through your corporate identity provider, then assume the IAM role. AWS STS issues temporary credentials that you use to sign requests.
5353 </Step>
5454</Steps>
5555
from line 197
197197 </Tab>
198198
199199 <Tab title="CLI">
200 The `ant` CLI does not support Amazon Bedrock. Use either cURL or an SDK.
200 The `ant` CLI doesn’t sign requests for the `bedrock-mantle` endpoint. Use cURL or the SDK. To call the `bedrock-runtime` endpoint from the CLI, see [Making requests](https://platform.claude.com/docs/en/build-with-claude/claude-on-amazon-bedrock-legacy#making-requests) on that endpoint’s page.
201201 </Tab>
202202
203203 <Tab title="Python">
from line 421
421421Claude Managed Agents on Amazon Bedrock works with other AWS services. When the agent’s built-in tools run on Amazon Bedrock AgentCore Runtime in your AWS account, each session gets its own container. Agents reach MCP tools through Amazon Bedrock AgentCore Gateway, which controls access with the IAM roles you define. You can use Amazon EventBridge to run agents on a schedule. For integration details, see AWS’s documentation.
422422
423423The table under [Regions](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock#regions) covers the Messages API. The same section lists the AWS regions where Claude Managed Agents is available.
424
425#### Permission policy defaults
426
427On Amazon Bedrock, the agent toolset and MCP toolsets get their own default [permission policy](https://platform.claude.com/docs/en/managed-agents/permission-policies), the same for both. A toolset has no permission policy when its [`default_config` field](https://platform.claude.com/docs/en/managed-agents/permission-policies#set-a-policy-for-a-toolset) names none or is left out.
428
429* An agent toolset or MCP toolset that a request sends with no permission policy gets [the `auto` policy](https://platform.claude.com/docs/en/managed-agents/permission-policies#let-the-server-evaluate-each-call-with-auto), or `always_ask` where `auto` isn’t available.
430* In the response to the request that sends the toolset, its `default_config.permission_policy` shows which of the two policies it got.
431* A [`configs` entry](https://platform.claude.com/docs/en/managed-agents/permission-policies#override-an-individual-tool-policy) that names no policy gets the policy that its toolset’s `default_config` holds when the toolset is saved.
432* When you read the agent back, the entry shows that policy. If you send those tools back and change only `default_config`, the entry keeps that policy. An entry sent again with no policy takes what `default_config` then holds.
433* Under `always_ask`, no call runs without your approval, and under `auto`, a call can wait for it or be denied. A client written for the Claude API, where the agent toolset’s calls don’t pause by default, should handle confirmation requests here: see [Respond to confirmation requests](https://platform.claude.com/docs/en/managed-agents/permission-policies#respond-to-confirmation-requests).
434* Under `auto`, the calls of a tool that an MCP server adds later are evaluated like any others and can run without your approval. If a person must approve a toolset’s calls, set its `default_config.permission_policy` to `always_ask`. Set `always_ask` too on each `configs` entry that shows another policy when you read the agent back, because an entry’s own policy overrides its toolset’s.
435* For agents that you create in the Amazon Bedrock console, see [AWS’s documentation](https://docs.aws.amazon.com/bedrock/) for the values the console sets.
424436
425437### Features not supported
426438
build-with-claude/claude-on-amazon-bedrock-legacy Changed · +49 / -24 lines
from line 326
326326
327327<Tabs>
328328 <Tab title="cURL">
329 <Note>
330 Calling the `InvokeModel` API with AWS credentials requires SigV4 request signing, which the SDK examples in the other tabs handle automatically. For a Bedrock endpoint you can call with a self-contained cURL command, see [Making your first request with Claude in Amazon Bedrock](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock#making-your-first-request).
331 </Note>
329 Calling the `InvokeModel` API with AWS credentials requires SigV4 request signing, which the SDK and the `ant` CLI handle for you. For a Bedrock endpoint you can call with a self-contained cURL command, see [Making your first request with Claude in Amazon Bedrock](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock#making-your-first-request).
332330 </Tab>
333331
334332 <Tab title="CLI">
335 <Note>
336 The `ant` CLI does not support Amazon Bedrock. Use one of the SDK examples instead.
337 </Note>
333 The [latest version of `ant`](https://platform.claude.com/docs/en/cli-sdks-libraries/cli/quickstart#installation) sends this request to `bedrock-runtime` when you set `ANTHROPIC_BEDROCK_REGION` or pass `--bedrock-region`. It signs the request with credentials from the default AWS credential chain, unless `AWS_BEARER_TOKEN_BEDROCK` is set.
334
335 These settings take precedence over the region and can send the request elsewhere, so leave them unset:
336
337 * `ANTHROPIC_API_KEY` and `ANTHROPIC_AUTH_TOKEN`
338 * An `ant` profile set with `--profile` or `ANTHROPIC_PROFILE`
339 * [Workload Identity Federation](https://platform.claude.com/docs/en/manage-claude/workload-identity-federation) variables
340 * Settings for other cloud platforms
341
342 To check, run `ant auth status` with the same region setting, and confirm that the `Bedrock` row is marked `(active)`.
343
344 ```bash
345 ANTHROPIC_BEDROCK_REGION=us-west-2 ant messages create \
346 --model global.anthropic.claude-opus-5-5 \
347 --max-tokens 1024 \
348 --message '{role: user, content: "Hello, world"}'
349 ```
350
351 The CLI sends [API version `2026-10-21`](https://platform.claude.com/docs/en/api/versioning), which the models numbered 4.6 or lower in the [model table](https://platform.claude.com/docs/en/build-with-claude/claude-on-amazon-bedrock-legacy#api-model-ids) don’t support on Amazon Bedrock. To call them, use the SDK version in [Install an SDK for accessing Bedrock](https://platform.claude.com/docs/en/build-with-claude/claude-on-amazon-bedrock-legacy#install-an-sdk-for-accessing-bedrock).
338352 </Tab>
339353
340354 <Tab title="Python">
from line 572
558572
559573<Tabs>
560574 <Tab title="cURL">
561 <Note>
562 This section shows how to configure a bearer token in an SDK client, which also reads the token from the `AWS_BEARER_TOKEN_BEDROCK` environment variable. To make direct HTTP requests with a bearer token, see the [Amazon Bedrock documentation](https://docs.aws.amazon.com/bedrock/).
563 </Note>
575 This section shows how to configure a bearer token in an SDK client, which also reads the token from the `AWS_BEARER_TOKEN_BEDROCK` environment variable. To make direct HTTP requests with a bearer token, see the [Amazon Bedrock documentation](https://docs.aws.amazon.com/bedrock/).
564576 </Tab>
565577
566578 <Tab title="CLI">
567 <Note>
568 The `ant` CLI does not support Amazon Bedrock. Use one of the SDK examples instead.
569 </Note>
579 The `ant` CLI reads the token from the `AWS_BEARER_TOKEN_BEDROCK` environment variable. For the settings to leave unset and the models that need the SDK instead, see [Making requests](https://platform.claude.com/docs/en/build-with-claude/claude-on-amazon-bedrock-legacy#making-requests).
580
581 ```bash
582 AWS_BEARER_TOKEN_BEDROCK="your-bearer-token" \
583 ANTHROPIC_BEDROCK_REGION=us-west-2 \
584 ant messages create \
585 --model us.anthropic.claude-opus-5-5 \
586 --max-tokens 1024 \
587 --message '{role: user, content: "Hello!"}'
588 ```
570589 </Tab>
571590
572591 <Tab title="Python">
from line 856
837856
838857<Tabs>
839858 <Tab title="cURL">
840 <Note>
841 Calling the `InvokeModel` API with AWS credentials requires SigV4 request signing, which the SDK examples in the other tabs handle automatically. For a Bedrock endpoint you can call with a self-contained cURL command, see [Making your first request with Claude in Amazon Bedrock](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock#making-your-first-request).
842 </Note>
859 Calling the `InvokeModel` API with AWS credentials requires SigV4 request signing, which the SDK and the `ant` CLI handle for you. For a Bedrock endpoint you can call with a self-contained cURL command, see [Making your first request with Claude in Amazon Bedrock](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock#making-your-first-request).
843860 </Tab>
844861
845862 <Tab title="CLI">
846 <Note>
847 The `ant` CLI does not support Amazon Bedrock. Use one of the SDK examples instead.
848 </Note>
863 For the settings to leave unset and the models that need the SDK instead, see [Making requests](https://platform.claude.com/docs/en/build-with-claude/claude-on-amazon-bedrock-legacy#making-requests).
864
865 ```bash
866 ANTHROPIC_BEDROCK_REGION=us-west-2 ant messages create \
867 --model global.anthropic.claude-opus-5-5 \
868 --max-tokens 1024 \
869 --message '{role: user, content: "Hello, world"}'
870 ```
849871 </Tab>
850872
851873 <Tab title="Python">
from line 1010
9881010
9891011<Tabs>
9901012 <Tab title="cURL">
991 <Note>
992 Calling the `InvokeModel` API with AWS credentials requires SigV4 request signing, which the SDK examples in the other tabs handle automatically. For a Bedrock endpoint you can call with a self-contained cURL command, see [Making your first request with Claude in Amazon Bedrock](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock#making-your-first-request).
993 </Note>
1013 Calling the `InvokeModel` API with AWS credentials requires SigV4 request signing, which the SDK and the `ant` CLI handle for you. For a Bedrock endpoint you can call with a self-contained cURL command, see [Making your first request with Claude in Amazon Bedrock](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock#making-your-first-request).
9941014 </Tab>
9951015
9961016 <Tab title="CLI">
997 <Note>
998 The `ant` CLI does not support Amazon Bedrock. Use one of the SDK examples instead.
999 </Note>
1017 For the settings to leave unset and the models that need the SDK instead, see [Making requests](https://platform.claude.com/docs/en/build-with-claude/claude-on-amazon-bedrock-legacy#making-requests).
1018
1019 ```bash
1020 ANTHROPIC_BEDROCK_REGION=us-west-2 ant messages create \
1021 --model us.anthropic.claude-opus-5-5 \
1022 --max-tokens 1024 \
1023 --message '{role: user, content: "Hello, world"}'
1024 ```
10001025 </Tab>
10011026
10021027 <Tab title="Python">
managed-agents/permission-policies Changed · +10 / -3 lines
from line 32
3232 - claude-opus-4-5-20251101
3333 supportedPlatforms:
3434 Claude API: beta
35 Amazon Bedrock: beta
35 Amazon Bedrock:
36 availability: beta
37 note: On Amazon Bedrock, an agent toolset or MCP toolset that a request sends with no permission policy gets `auto`, or `always_ask` where `auto` isn't available. See [Permission policy defaults](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock#permission-policy-defaults).
3638 Claude Platform on AWS: beta
3739 Claude Models on Google Cloud (Anthropic managed): beta
3840---
from line 41
3941
4042Permission policies apply to server-executed tools: the prebuilt agent toolset and MCP toolsets. A policy determines whether a tool’s calls run automatically, wait for your approval, or go to the server, which evaluates each call. Custom tools run in your application, under your control, so permission policies don’t apply to custom tools.
4143
44On Amazon Bedrock, some of what this page describes works differently: see [Claude Managed Agents](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock#claude-managed-agents) on the Claude in Amazon Bedrock page.
45
4246## Permission policy types
4347
4448| Policy | Behavior |
from line 233
229233
230234### MCP toolset permissions
231235
232MCP toolsets default to `always_ask`. This ensures that new tools added to an MCP server do not run in your application without approval. To auto-approve tools from a trusted MCP server, set `default_config.permission_policy` (java, php: `defaultConfig.permissionPolicy`; csharp, go: `DefaultConfig.PermissionPolicy`) on the `mcp_toolset` entry.
236MCP toolsets default to `always_ask`. If a person must approve the calls of tools an MCP server adds later, set the toolset’s `default_config.permission_policy` (java, php: `defaultConfig.permissionPolicy`; csharp, go: `DefaultConfig.PermissionPolicy`) to `always_ask`. To auto-approve tools from a trusted MCP server, set `default_config.permission_policy` (java, php: `defaultConfig.permissionPolicy`; csharp, go: `DefaultConfig.PermissionPolicy`) on the `mcp_toolset` entry.
233237
234238The `mcp_server_name` (java, php: `mcpServerName`; csharp: `McpServerName`; go: `MCPServerName`) must match the `name` (csharp, go: `Name`) of a server in the `mcp_servers` (java, php: `mcpServers`; csharp: `McpServers`; go: `MCPServers`) array.
235239
from line 1345
13411345
13421346| Status | Cloud platforms |
13431347| ----- | ----- |
1344| Beta | All supported platforms |
1348| 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) |
1349| Beta<sup>1</sup> | [Amazon Bedrock](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock) |
1350
13511. On Amazon Bedrock, an agent toolset or MCP toolset that a request sends with no permission policy gets `auto`, or `always_ask` where `auto` isn’t available. See [Permission policy defaults](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock#permission-policy-defaults).
13451352
13461353### Required beta headers
13471354
managed-agents/agent-setup Changed · +2 / -0 lines
from line 41
4141
4242Create the agent once as a reusable resource and reference it by ID each time you [start a session](https://platform.claude.com/docs/en/managed-agents/sessions). Agents are versioned and easier to manage across many sessions.
4343
44On Amazon Bedrock, some of what this page describes works differently: see [Claude Managed Agents](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock#claude-managed-agents) on the Claude in Amazon Bedrock page.
45
4446## Agent configuration fields
4547
4648| Field | Description |
managed-agents/mcp-connector Changed · +2 / -0 lines
from line 46
4646
4747This separation keeps secrets out of reusable agent definitions while letting each session authenticate with its own credentials.
4848
49On Amazon Bedrock, some of what this page describes works differently: see [Claude Managed Agents](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock#claude-managed-agents) on the Claude in Amazon Bedrock page.
50
4951## Declare MCP servers on the agent
5052
5153Specify MCP servers in the `mcp_servers` (java, php: `mcpServers`; csharp: `McpServers`; go: `MCPServers`) array when creating an agent. Each server has a `type` (csharp, go: `Type`) of `url`, a unique `name` (csharp, go: `Name`), and a `url` (csharp: `Url`; go: `URL`). You don’t provide authentication tokens at this stage.