DEV Community

Damien Gallagher
Damien Gallagher

Posted on

Claude Managed Agents on Bedrock (Preview): What Runs Where, What's Missing

TL;DR

  • Claude Managed Agents for Amazon Bedrock: AWS runs the agent loop and the session history, your tools (bash, file edits) run in your own AWS account.
  • For teams that want long-running Claude agents without writing the loop, and want IAM, CloudTrail and CloudWatch around them.
  • Preview, announced 1 December 2026, in 14 Regions including Ireland and London.
  • Price: no extra charge in preview. You pay for model tokens and the AWS resources underneath. GA pricing is not stated.
  • Watch: IAM role credentials only, no web search or web fetch built in, and AgentCore Gateway as the only MCP route.
  • My view: worth a proof of concept, not yet worth betting a production design on.

Contents


What launched

On 1 December 2026 AWS announced Claude Managed Agents for Amazon Bedrock in preview. Anthropic built it and tunes it for Claude. AWS operates it. The launch post lists the sort of work it is aimed at: modernising legacy systems, managing security incidents, running research experiments and gathering audit evidence.

The Bedrock user guide describes the model simply. You define an agent, create a session, and send the session messages. The service runs the loop and calls the model. The tools run in an environment you own.

Item What the docs say
Status Preview, under the AWS "Beta Service" terms. API, IAM action names and endpoints can change before GA
Announced 1 December 2026
Regions 14: us-east-1, us-east-2, us-west-2, ca-central-1, sa-east-1, eu-central-1, eu-west-1, eu-west-2, eu-north-1, ap-south-1, ap-northeast-2, ap-southeast-1, ap-southeast-2, ap-northeast-1
Endpoint https://bedrock.<region>.amazonaws.com/anthropic/v1
Auth SigV4, signing service bedrock, IAM role credentials only. IAM user or root credentials get HTTP 403
Headers anthropic-version: 2023-06-01 and anthropic-beta: managed-agents-2026-04-01
Price No additional charge in preview. GA pricing: not stated
Terms Third-Party Content from Anthropic, same terms as Anthropic models on Bedrock

The API follows Anthropic's own Managed Agents API, which is in beta on the Claude API. Anthropic's docs list Bedrock as one of the places it is available, and say some features and session behaviour differ there. The AWS guide spells out those differences, and I cover them below.

One oddity. Anthropic's product page still says Managed Agents is currently available on Claude Platform on AWS, and quotes its own price of $0.08 per session hour on top of tokens. That is Anthropic's pricing for its own service. It is not the Bedrock price, and I would not read it across.


How it works

The guide defines six concepts. Four matter day to day.

  • Agent. A versioned definition: model, system prompt, tools, skills, MCP servers, and the IAM role its sessions run as. Every change creates a new version.
  • Environment. Where the tools run. Either a sandbox on AgentCore Runtime in your account (one container per session) or a self-hosted machine. There is no environments API. The session names the runtime ARN directly.
  • Session. A stateful conversation between one agent and one environment. It keeps history across messages.
  • Events. What you send (user.message, user.interrupt) and what comes back (agent messages, tool calls, status changes). You can list them or stream them over SSE.

The turn ends when session.status_idle arrives, and its stop_reason tells you why. The guide is blunt that an idle session is not proof the task worked. Read the tool results.

Here is the agent-create call from the first-agent tutorial. It is copied from the docs and the JSON is syntax-checked, but I have not run it or deployed anything.

{
  "name": "first-agent",
  "execution_identity": { "type": "aws_role", "role_arn": "arn:aws:iam::111122223333:role/ClaudeManagedAgentsSessionRole" },
  "model": "us.anthropic.claude-sonnet-5-5",
  "system": "You are a careful assistant. Use bash to answer questions about the machine you run on.",
  "tools": [ { "type": "agent_toolset_20260401", "default_config": { "permission_policy": { "type": "always_allow" } } } ]
}
Enter fullscreen mode Exit fullscreen mode

A few things to notice. The model is an inference profile ID, so the prefix (us., eu., global.) picks the geography. The plain Anthropic name claude-sonnet-5-5 is refused. agent_toolset_20260401 switches on bash, read, write, edit, glob and grep. And the aws_role identity is how the session gets its permissions.


Where tools run, and why that matters

This is the part I find most interesting. Per the guide, the loop and the conversation live in Bedrock. Model inference is called as your session role. Bash and file tools run in your account. MCP tool calls go to your AgentCore Gateway. Your tool runner connects out over TLS and accepts no inbound connections from the service.

So the split is:

Part Runs where
Agent loop and session history Bedrock, operated by AWS, until you delete the session
Model calls Bedrock, as your session role
bash and file tools Your AgentCore Runtime sandbox, or a machine you run
MCP tools Your AgentCore Gateway, as your session role
Custom tools Your application

Only tool results go back to the service, which includes the contents of any file a tool reads. Files the agent writes stay in your container or storage.

That is a clean answer to the usual security-review question of where the code runs and what it can touch. It is also a responsibility handed to you. The guide has an Important note: the tool runner runs each bash command as its OS user with no sandbox around the command. On AgentCore Runtime that includes the tool runner role's credentials and, in public network mode, a connection to any host on the internet. So the blast radius is whatever you give that role and that network.

Compared with AgentCore, going only by what I read: Managed Agents is not a replacement for it. It sits on top. AgentCore Runtime hosts the sandbox, AgentCore Gateway is the only MCP route, and AgentCore Runtime time is the billed resource the docs name. What you stop owning is the agent loop. What I did not read is a feature-by-feature comparison with AgentCore's own agent hosting, so I will not make one up.


What the preview leaves out

The limitations page is long and worth reading before you plan anything. These are the gaps that would bite me first.

  • No web search or web fetch tools. Naming either is refused. The workaround is the Web Search Tool through an AgentCore Gateway.
  • MCP servers: AgentCore Gateways only. Another MCP server has to be added as a gateway target.
  • No Files API, no vaults. Keep files in S3 (mounted with S3 Files, or via s3_mount and s3_object resources). Keep credentials in Secrets Manager and have a tool fetch short-lived tokens.
  • No Skills API. Skills are folders in the tool runner, in your image or in mounted storage.
  • No session budgets. budget is refused. You total span.model_request_end token usage yourself and send user.interrupt.
  • No scheduled deployments or webhooks. Use EventBridge Scheduler to start sessions, and stream events to follow them.
  • No user isolation within a project. IAM on the project decides who sees what. Mounted storage is visible to every session of that runtime.
  • End-user identity (JWT, on-behalf-of) is private preview only. Sessions act as the session role.
  • Creates are not idempotent. List before you retry a create.
  • Audit rights: none during preview.

Also from Anthropic's overview: Managed Agents is not currently eligible for Zero Data Retention (self-hosted is the exception) or HIPAA BAA coverage, and sessions are stateful with transcripts persisting until you delete them. The Bedrock guide says transcripts, events and memory stores are retained until you delete them. I did not find a Bedrock-specific HIPAA statement, so treat that as not stated for Bedrock and ask AWS.


What this means for you

Who should care, and what I would do first

If you are already running Claude on Bedrock and you have been building your own tool loop, this is the thing to try. If you have no agent workload yet, wait for GA. The API, IAM action names and endpoints can change, per the guide.

My first step would be the console route. The guide says you can create an agent and a session in the Bedrock console, so you can try one without writing code. The account setup (roles, ECR image, AgentCore Runtime) is still needed first.

What gets simpler

  • No loop to write or host. The service keeps the conversation, handles retries and runs the turn.
  • One identity story. Calls are signed with SigV4, sessions run as an IAM role, and there is no Anthropic API key to store.
  • Audit and tracing use things you already have. API calls land in CloudTrail by default. Traces per project go to CloudWatch GenAI Observability once you turn them on.
  • Scheduling is just EventBridge Scheduler starting a session.

What gets more complicated

  • Three identities per session. Caller, session role, and tool runner role. The guide says to use a separate role for each. Each needs its own policy, and there is a required tag, ManagedAgentsExecutionRole=enabled, on every session role.
  • IAM action names. They follow bedrock:<Verb>Anthropic<Noun>, for example CreateAnthropicSession. They can change before GA, so avoid baking wildcards like bedrock:*Anthropic* into broad policies. That pattern also matches the tool runner's connection action, which the guide's caller policy explicitly denies.
  • You operate a runtime. Tool runner image in ECR, an AgentCore Runtime, a role. The guide supplies a CloudFormation template (cma-account.yaml) in the tool runner bundle for the account setup. Work in one Region, because the runtime, repository and API calls must all be in it.
  • Preview. Features you may expect from Anthropic's docs will be refused here.

Cost

During preview there is no additional charge for Managed Agents. You pay Bedrock model pricing, plus the AWS resources the agents use. The guide names:

  • AgentCore Runtime for the time sessions run.
  • S3 for files.
  • Model tokens for tool calls checked under the auto permission policy, since those checks use a Claude model.
  • ECR storage for the tool runner image and CloudWatch Logs storage, charged even when no session is running.

Pricing is subject to change at GA. I have not worked an example, because the guide gives no rates and I did not read the Bedrock or AgentCore pricing pages. Two cost levers are visible from the docs. Pick always_allow or always_ask where it is safe, to avoid the model check, and set up your own token budget, since the built-in one is refused. Delete sessions and clean up the ECR image and logs when you finish.

Combining it with other AWS services

  • AgentCore Gateway plus IAM. Put your internal APIs behind a gateway as targets and name it in mcp_servers. The gateway holds the credentials for tools behind it, and the session role needs bedrock-agentcore:InvokeGateway.
  • EventBridge Scheduler plus a session. A scheduled rule creates a session and sends a task message. The guide ships a scheduled-agent example in its examples bundle.
  • S3 Files for skills and data. Mount a bucket on the runtime so you can change skills without rebuilding the image. Use a folder per session if sessions must not see each other's data.

Getting the best out of it

  • Keep the tool runner role small and use private network mode where you can. The guide is explicit that public mode lets commands reach any host.
  • Pick the permission policy per tool. always_ask stops the turn and waits for your user.tool_confirmation. A bash call stops after two minutes unless the model sets timeout_ms, and never runs longer than eight hours.
  • Remember AgentCore containers last at most eight hours, and a long call can be rerun in a new container. Make long commands safe to run twice.
  • Turn on CloudWatch Transaction Search and project traces before your first real run, not after the first incident. The CLI route is three commands: aws logs put-delivery-source with log type BedrockProjectTraces, put-delivery-destination with type XRAY, then create-delivery.
  • Use IAM role sessions in your tooling. A developer's IAM user keys will be refused.

Other angles

I did not read anything on Azure or Google Cloud equivalents from AWS sources. Anthropic's overview says Managed Agents is also available on Claude Platform on AWS and Claude Models on Google Cloud (Anthropic managed), with differences, but I did not read those pages.

Next steps. Pick one low-risk task, such as summarising a repo or collecting audit evidence from a read-only role. Stand up the CloudFormation stack in a sandbox account. Run it with always_ask for a day and read the traces. Then ask the question the docs cannot answer yet: what does this cost at GA?


Related posts


Sources

Drafted with AI assistance. I review and edit every post.

Top comments (0)