

# Claude Managed Agents for Amazon Bedrock (preview)

Claude Managed Agents for Amazon Bedrock helps you build applications that run stateful agents with Claude models. You define an agent, create a session for it, and send the session messages. The service runs the agent loop and calls the model. The agent's tools, such as `bash` and the file tools, run in an environment in your own AWS account or on a machine you control.

Use managed agents for work that takes many steps, such as investigating a codebase, processing documents, or generating files. A session keeps its conversation across messages. Skills give an agent reusable instructions, and Model Context Protocol (MCP) servers give it more tools.

The API matches Anthropic's Managed Agents API, with every path under `/anthropic/v1/`. You sign requests with AWS Signature Version 4 using your IAM credentials. You don't need an Anthropic API key.

**Note**  
**Preview.** This feature is in preview and is provided as a “Beta Service” as defined in the AWS Service Terms. It is governed by your Agreement with AWS and the AWS Service Terms. Before using this Beta Service, please review the Betas and Previews terms found [here](https://aws.amazon.com/service-terms/). Its API, IAM action names, and endpoints can change before general availability. Review the [preview limitations](claude-managed-agents-bedrock-limitations.md) before building an application.

**Note**  
**Terms of use.** Claude Managed Agents is Third-Party Content provided by Anthropic. Your use of it is subject to the same terms that apply to your use of Anthropic models on Amazon Bedrock.

**Start here**


| Set up your account | Use the console | Run your first agent | API reference | 
| --- | --- | --- | --- | 
| [Create the roles, policies, and an AgentCore Runtime](claude-managed-agents-bedrock-account-setup.md) | [Create an agent and a session in the Amazon Bedrock console](claude-managed-agents-bedrock-console.md) | [Create an agent and a session, and send a message](claude-managed-agents-bedrock-first-agent.md) | [Operations, headers, and differences from Anthropic's API](claude-managed-agents-bedrock-api-reference.md) | 

**Topics**
+ [Core concepts](#claude-managed-agents-bedrock-core-concepts)
+ [How it works](#claude-managed-agents-bedrock-how-it-works)
+ [Where each part runs](#claude-managed-agents-bedrock-where-each-part-runs)
+ [Choose an environment](#claude-managed-agents-bedrock-choose-an-environment)
+ [When to use Claude Managed Agents](#claude-managed-agents-bedrock-when-to-use-claude-managed-agents)
+ [Coming from Anthropic's API](#claude-managed-agents-bedrock-coming-from-anthropic-s-api)
+ [Supported Regions and endpoints](#claude-managed-agents-bedrock-endpoints)
+ [Next steps](#claude-managed-agents-bedrock-next-steps)
+ [Charges](#claude-managed-agents-bedrock-charges)
+ [Set up permissions and prerequisites for Claude Managed Agents](claude-managed-agents-bedrock-account-setup.md)
+ [Use the Amazon Bedrock console](claude-managed-agents-bedrock-console.md)
+ [Run your first agent on Amazon Bedrock AgentCore Runtime](claude-managed-agents-bedrock-first-agent.md)
+ [Run the tool runner in a self-hosted environment](claude-managed-agents-bedrock-self-hosted.md)
+ [Work with Claude Managed Agents sessions, events, and results](claude-managed-agents-bedrock-sessions.md)
+ [Add tools and skills](claude-managed-agents-bedrock-tools.md)
+ [Use S3 folders and files](claude-managed-agents-bedrock-s3-folders-and-files.md)
+ [Security and IAM roles for Claude Managed Agents](claude-managed-agents-bedrock-security.md)
+ [Encryption at rest](claude-managed-agents-bedrock-encryption.md)
+ [Monitor agents with Amazon CloudWatch and AWS CloudTrail](claude-managed-agents-bedrock-observability.md)
+ [Claude Managed Agents for Amazon Bedrock REST API reference](claude-managed-agents-bedrock-api-reference.md)
+ [Claude Managed Agents preview availability and limitations](claude-managed-agents-bedrock-limitations.md)
+ [Claude Managed Agents reference](claude-managed-agents-bedrock-reference.md)
+ [Troubleshoot Claude Managed Agents](claude-managed-agents-bedrock-troubleshooting.md)
+ [Claude Managed Agents examples](claude-managed-agents-bedrock-examples.md)
+ [Clean up resources](claude-managed-agents-bedrock-cleanup.md)

## Core concepts
<a name="claude-managed-agents-bedrock-core-concepts"></a>


| Concept | What it is | 
| --- | --- | 
| Agent | A versioned definition: the model, the system prompt, the tools, skills, and MCP servers, and the IAM role its sessions run as. You create it once and reference it by ID from each session. | 
| Environment | Where a session's tools run: an AgentCore Runtime-managed sandbox in your account, with one container per session, or a self-hosted sandbox on a machine you run. In both, the tool runner process runs the tools. | 
| Session | A stateful conversation with one agent in one environment. A session names the agent and the environment (`environment_id`), and runs as the agent's IAM role unless it names another. | 
| Events | What you send a session, such as `user.message`, and what it reports as the agent works, such as the agent's messages, tool calls, and status changes. You can list them or stream them. | 
| Session role | An IAM role in your account. The service assumes it to call the model, to call your AgentCore Gateway, and to start and stop your AgentCore Runtime sandboxes. | 
| Project | The Amazon Bedrock project that agents and sessions belong to. A request names it in the `anthropic-workspace-id` header. A request without the header uses the `default` project. | 

## How it works
<a name="claude-managed-agents-bedrock-how-it-works"></a>

1. **Create an agent.** Define the model, system prompt, tools, MCP servers, and skills. Each update makes a new version.

1. **Choose an environment.** Set up an AgentCore Runtime that runs the tool runner image, or a machine where you start the tool runner yourself. There is no environments API: a session names its environment by the runtime's ARN, or by your project's self-hosted ID.

1. **Start a session.** Create a session that names the agent and the environment. It runs as the agent's role unless you name another.

1. **Send events and stream responses.** Send user messages as events. The agent works through the task, running tools as it goes, and the session reports each step as events that you can stream or list.

1. **Steer or interrupt.** A message you send while the agent is working is read at its next step. Send `user.interrupt` to stop the current turn.

**When you send a message**

1. **The environment starts.** On AgentCore, the service assumes your session role and starts the session's container on your runtime. Self-hosted, your tool runner is already connected.

1. **The agent loop runs.** The service calls Claude on Amazon Bedrock as your session role, and Claude decides which tools to use.

1. **Tools run in your environment.** Each `bash` command and file operation runs in your tool runner, which returns the result. MCP tool calls go to your AgentCore Gateway, as your session role.

1. **Events stream to you.** The session reports the agent's messages, tool calls, and results as they happen.

1. **The session goes idle.** `session.status_idle` ends the turn, and its `stop_reason` says why.

## Where each part runs
<a name="claude-managed-agents-bedrock-where-each-part-runs"></a>

Your application sends signed requests to Claude Managed Agents, which runs the agent loop in Amazon Bedrock and calls the model. It sends each built-in tool call to your tool runner, and each MCP tool call to your AgentCore Gateway.

![Architecture diagram. Your application sends signed API requests to Claude Managed Agents, which runs the API and agent loop in Amazon Bedrock and calls the Claude model. In your AWS account, Claude Managed Agents calls your AgentCore Gateway for MCP tools as your session role, and your tool runner, on AgentCore Runtime or self-hosted, connects out over TLS to run built-in tool calls and return their results.](https://docs.aws.amazon.com/bedrock/latest/userguide/images/cma-architecture-1.png)



| Part | Where it runs | What limits it | 
| --- | --- | --- | 
| API and agent loop | Amazon Bedrock, operated by AWS | The caller's IAM permissions, and the agent's tools and permission policies | 
| Session history (conversation and events) | Amazon Bedrock, until you delete the session | IAM permissions on the session, the project, and session deletion | 
| Model inference | Amazon Bedrock, called as your session role | The session role's permissions, model access in the Region, and your account's data retention mode | 
| `bash` and file tools | Your environment: your AgentCore Runtime sandbox, or a self-hosted machine | The credentials, files, and network the tool runner can reach, the image, and permission policies | 
| MCP tools | Your AgentCore Gateway and the tools behind it, called as your session role | The session role's `bedrock-agentcore:InvokeGateway` permission and the gateway's own authorization | 
| Custom tools | Your application | Your code | 
| Skills | Files in your environment: in the image, or on the machine | What you put in the image or on the machine | 

The service reaches your account only through your session role and, if you set a customer managed key, through the key role and your callers' AWS KMS permissions (see [Encryption at rest](claude-managed-agents-bedrock-encryption.md)). Your tool runner connects out to the service over TLS and accepts no inbound connections from it. On AgentCore, the container also answers AgentCore Runtime's own health checks and invocations, which only AgentCore Runtime can reach. Deleting a session does not delete files your agent wrote to your own S3 buckets, repositories, or machines.

## Choose an environment
<a name="claude-managed-agents-bedrock-choose-an-environment"></a>


|  | AgentCore Runtime-managed sandbox | Self-hosted sandbox | 
| --- | --- | --- | 
| Where tools run | A fresh container for each session, on an AgentCore Runtime in your account | A tool runner you start, on a machine or container you run | 
| `environment_id` | The runtime's ARN, or one of its endpoint ARNs | Your project's ARN followed by `/anthropic-self-hosted` | 
| What reaches the service | The conversation, tool calls, and tool results, including the contents of any file a tool reads. Other files stay in the container, or in storage you mount on it, such as Amazon S3 or Amazon EFS. | The conversation, tool calls, and tool results, including the contents of any file a tool reads. Other files stay on your machine. | 
| What you operate | The runtime, its image in Amazon ECR, and its role | The machine or container, its hardening and network, and a tool runner for each session | 
| What commands can reach | The tool runner role's permissions, and the runtime's network | Whatever the tool runner's user can reach, and the machine's network | 
| Lifecycle | The service starts the container on the first message. AgentCore can replace it after the runtime's idle timeout, 15 minutes in the CloudFormation template, and the service stops it when you delete the session. | You start and stop the tool runner. One tool runner serves one session. | 
| Choose it when | You want an isolated container for each session without running hosts yourself | Your tools or files exist only on a particular machine | 

**Important**  
The tool runner runs each `bash` command as the tool runner's operating-system user, with no sandbox around the command. A command the model runs can read the tool runner's files, reach its network, and use its credentials. On AgentCore Runtime, that includes the tool runner role's credentials and, in public network mode, a connection to any host on the internet. [Protect the tool runner](claude-managed-agents-bedrock-security.md#claude-managed-agents-bedrock-security-protect-the-tool-runner) says what that allows and how to limit it. Also see [Run the tool runner in a self-hosted environment](claude-managed-agents-bedrock-self-hosted.md) and [Shared responsibility](claude-managed-agents-bedrock-security.md#claude-managed-agents-bedrock-security-shared-responsibility).

## When to use Claude Managed Agents
<a name="claude-managed-agents-bedrock-when-to-use-claude-managed-agents"></a>
+ **Long-running, multi-step tasks** that make many tool calls over minutes or hours.
+ **Tools and data that must stay in your AWS account.** The service sends each command, and it runs in your environment with your files. Only the results come back to the service, and the service reaches your account only through your session role and, if you set a customer managed key, through the key role and your callers' AWS KMS permissions.
+ **No agent loop to build.** The service runs the loop, calls the model, and keeps the conversation.
+ **Stateful sessions** that keep their conversation across messages.
+ **Scheduled runs**, for example with Amazon EventBridge Scheduler, as in the `scheduled-agent` [example](claude-managed-agents-bedrock-examples.md).

## Coming from Anthropic's API
<a name="claude-managed-agents-bedrock-coming-from-anthropic-s-api"></a>
+ The paths are the same, under `/anthropic/v1/`, with the same `anthropic-version` and `anthropic-beta` headers.
+ You sign requests with AWS Signature Version 4 using IAM role credentials, instead of an Anthropic API key. Anthropic's SDKs sign requests for you. See [SDKs, CLI, and libraries](https://platform.claude.com/docs/en/cli-sdks-libraries/overview) on the Anthropic website.
+ There is no environments API. A session's `environment_id` is your AgentCore Runtime's ARN or your project's self-hosted ID.
+ Some features are not in this preview. See [How this API differs from Anthropic's](claude-managed-agents-bedrock-api-reference.md#claude-managed-agents-bedrock-api-reference-differences) and [Compared with Anthropic's API](claude-managed-agents-bedrock-limitations.md#claude-managed-agents-bedrock-limitations-compared-with-anthropic-s-api).

## Supported Regions and endpoints
<a name="claude-managed-agents-bedrock-endpoints"></a>

Claude Managed Agents for Amazon Bedrock is available in the AWS Regions in the following table, which also lists each Region's API base URL. It ends in `/anthropic/v1`. Sign requests with that Region and the signing service `bedrock`, and send these headers:


| Header | Value | 
| --- | --- | 
| `anthropic-version` | `2023-06-01` | 
| `anthropic-beta` | `managed-agents-2026-04-01` | 


| AWS Region | Region code | API base URL | 
| --- | --- | --- | 
| US East (N. Virginia) | `us-east-1` | `https://bedrock.us-east-1.amazonaws.com/anthropic/v1` | 
| US East (Ohio) | `us-east-2` | `https://bedrock.us-east-2.amazonaws.com/anthropic/v1` | 
| US West (Oregon) | `us-west-2` | `https://bedrock.us-west-2.amazonaws.com/anthropic/v1` | 
| Canada (Central) | `ca-central-1` | `https://bedrock.ca-central-1.amazonaws.com/anthropic/v1` | 
| South America (São Paulo) | `sa-east-1` | `https://bedrock.sa-east-1.amazonaws.com/anthropic/v1` | 
| Europe (Frankfurt) | `eu-central-1` | `https://bedrock.eu-central-1.amazonaws.com/anthropic/v1` | 
| Europe (Ireland) | `eu-west-1` | `https://bedrock.eu-west-1.amazonaws.com/anthropic/v1` | 
| Europe (London) | `eu-west-2` | `https://bedrock.eu-west-2.amazonaws.com/anthropic/v1` | 
| Europe (Stockholm) | `eu-north-1` | `https://bedrock.eu-north-1.amazonaws.com/anthropic/v1` | 
| Asia Pacific (Mumbai) | `ap-south-1` | `https://bedrock.ap-south-1.amazonaws.com/anthropic/v1` | 
| Asia Pacific (Seoul) | `ap-northeast-2` | `https://bedrock.ap-northeast-2.amazonaws.com/anthropic/v1` | 
| Asia Pacific (Singapore) | `ap-southeast-1` | `https://bedrock.ap-southeast-1.amazonaws.com/anthropic/v1` | 
| Asia Pacific (Sydney) | `ap-southeast-2` | `https://bedrock.ap-southeast-2.amazonaws.com/anthropic/v1` | 
| Asia Pacific (Tokyo) | `ap-northeast-1` | `https://bedrock.ap-northeast-1.amazonaws.com/anthropic/v1` | 

Only IAM role credentials can call the API. Requests signed with IAM user or root user credentials return HTTP 403.

## Next steps
<a name="claude-managed-agents-bedrock-next-steps"></a>

1. [Set up permissions and prerequisites](claude-managed-agents-bedrock-account-setup.md).

1. To try an agent without writing code, create one in the [Amazon Bedrock console](claude-managed-agents-bedrock-console.md).

1. Run your first agent on [AgentCore Runtime](claude-managed-agents-bedrock-first-agent.md), or [run the tool runner on your own machine](claude-managed-agents-bedrock-self-hosted.md).

1. [Work with sessions, events, and results](claude-managed-agents-bedrock-sessions.md), then [add tools and skills](claude-managed-agents-bedrock-tools.md) and [use S3 folders and files](claude-managed-agents-bedrock-s3-folders-and-files.md).

1. Download [`claude-managed-agents-examples.zip`](https://docs.aws.amazon.com/bedrock/latest/userguide/samples/claude-managed-agents-examples.zip) and try an [example](claude-managed-agents-bedrock-examples.md): run an agent on a schedule, have one change a private GitHub repository, search the web through a gateway, keep files in Amazon S3, or run one of four scenarios with mock data in Amazon S3 and Amazon DynamoDB that check what the agent did.

1. [Turn on traces](claude-managed-agents-bedrock-observability.md) to follow your sessions in Amazon CloudWatch.

## Charges
<a name="claude-managed-agents-bedrock-charges"></a>

During preview, there's no additional charge for Claude Managed Agents for Amazon Bedrock. Your agents' use of Claude models is charged at existing Amazon Bedrock pricing, and the AWS resources they create or use are charged at those services' existing pricing, such as Amazon Bedrock AgentCore Runtime for the time sessions run and Amazon S3 for files. Tool calls under the `auto` permission policy also use Claude model tokens to check each call, charged at Amazon Bedrock pricing. Amazon ECR storage for the tool runner image and Amazon CloudWatch Logs storage for its logs are charged even when no session is running, until you delete them. Everything is billed through your AWS account. Pricing is subject to change at general availability. For details, see [Amazon Bedrock pricing](https://aws.amazon.com/bedrock/pricing/) and [Amazon Bedrock AgentCore pricing](https://aws.amazon.com/bedrock/agentcore/pricing/), and [clean up](claude-managed-agents-bedrock-cleanup.md) when you finish.