Claude Managed Agents for Amazon Bedrock
Set up the SDK to call Claude Managed Agents on Amazon Bedrock, and see the default permission policies there.
Claude Managed Agents is available on Amazon Bedrock, where AWS operates and bills it. You send requests to Amazon Bedrock and sign them with your AWS credentials. The agent’s built-in tools run in your own AWS account or on your own machine.
Claude 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.
Set up your AWS account
To set up your AWS account, create an agent, and run a session, see AWS’s documentation for Amazon Bedrock. AWS’s documentation also lists where the API on Amazon Bedrock differs from the Anthropic-hosted service.
Set up the SDK
The SDK calls Claude Managed Agents through a different client from the one in Claude in Amazon Bedrock (bedrock-mantle).
Install the SDK
Install the latest version of the SDK with the commands on the Claude in Amazon Bedrock page. The same packages include this client. If you already have the SDK, upgrade it with your package manager.
Set your environment variables
Set
AWS_REGIONto a region where Claude Managed Agents is available. UnsetAWS_BEARER_TOKEN_BEDROCKso that the client signs your requests with your AWS credentials.Create the client
This client sends Claude Managed Agents requests to
https://bedrock.{region}.amazonaws.com/anthropic. It finds your credentials through the default AWS credential chain.Pythonfrom anthropic import AnthropicBedrock client = AnthropicBedrock()
Find agents, sessions, and memory stores
On Amazon Bedrock, the SDK supports three Claude Managed Agents resources. Use the names in this table, even where the other Claude Managed Agents guides show different ones:
| Resource | On the client |
|---|---|
| Agents | client.beta.agents |
| Sessions | client.beta.sessions |
| Memory stores | client.beta.memory_stores |
These resources also have their own parameter types, such as BedrockAgentCreateParams for creating an agent. That type requires execution_identity. For the values that execution_identity and model take, see AWS’s documentation.
Permission policy defaults
On Amazon Bedrock, the agent toolset and MCP toolsets get their own default permission policy, the same for both. A toolset has no permission policy when its default_config field names none or is left out.
- An agent toolset or MCP toolset that a request sends with no permission policy gets the
autopolicy, oralways_askwhereautoisn’t available. - In the response to the request that sends the toolset, its
default_config.permission_policyshows which of the two policies it got. - A
configsentry that names no policy gets the policy that its toolset’sdefault_configholds when the toolset is saved. - 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 whatdefault_configthen holds. - Under
always_ask, no call runs without your approval, and underauto, 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. - 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 itsdefault_config.permission_policytoalways_ask. Setalways_asktoo on eachconfigsentry that shows another policy when you read the agent back, because an entry’s own policy overrides its toolset’s. - For agents that you create in the Amazon Bedrock console, see AWS’s documentation for the values the console sets.
Was this page helpful?