---
title: Claude Managed Agents for Amazon Bedrock
url: https://platform.claude.com/docs/en/managed-agents/amazon-bedrock
description: Set up the SDK to call Claude Managed Agents on Amazon Bedrock, and see the default permission policies there.
---

[Claude Managed Agents](https://platform.claude.com/docs/en/managed-agents/overview) 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](https://docs.aws.amazon.com/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`)](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock#making-your-first-request).

<Steps>
  <Step title="Install the SDK">
    Install the [latest version of the SDK](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock#install-an-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.
  </Step>

  <Step title="Set your environment variables">
    Set `AWS_REGION` to a [region where Claude Managed Agents is available](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock#claude-managed-agents-regions). Unset `AWS_BEARER_TOKEN_BEDROCK` so that the client signs your requests with your AWS credentials.
  </Step>

  <Step title="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.

    <CodeGroup exclude="shell">
      <CodeGroupItem language="cURL">
        Send your requests to this URL, and sign each one with your AWS credentials.
      </CodeGroupItem>

      <CodeGroupItem language="CLI">
        Set `ANTHROPIC_BEDROCK_REGION` to your region, because `AWS_REGION` doesn’t select Amazon Bedrock in the CLI. Then use the `beta:bedrock:*` commands in the [latest version of `ant`](https://platform.claude.com/docs/en/cli-sdks-libraries/cli/quickstart#installation).
      </CodeGroupItem>

      ```python Python
      from anthropic import AnthropicBedrock

      client = AnthropicBedrock()
      ```

      ```typescript TypeScript
      import { AnthropicBedrock } from "@anthropic-ai/bedrock-sdk";

      const client = new AnthropicBedrock();
      ```

      ```csharp C#
      using Anthropic.Bedrock;

      AnthropicBedrockClient client = new(
          await AnthropicBedrockCredentialsHelper.FromEnv()
          ?? throw new InvalidOperationException("AWS credentials not configured.")
      );
      ```

      ```go Go
      import (
      	"context"

      	"github.com/anthropics/anthropic-sdk-go/v2"
      	"github.com/anthropics/anthropic-sdk-go/v2/bedrock"
      )

      func main() {
      	client := anthropic.NewClient(
      		bedrock.WithLoadDefaultConfig(context.Background()),
      	)
      	// ...
      }
      ```

      ```java Java
      import com.anthropic.bedrock.backends.BedrockBackend;
      import com.anthropic.client.AnthropicClient;
      import com.anthropic.client.okhttp.AnthropicOkHttpClient;

      void main() {
          AnthropicClient client = AnthropicOkHttpClient.builder()
              .backend(BedrockBackend.fromEnv())
              .build();
      }
      ```

      ```php PHP
      use Anthropic\Bedrock\Client;

      $client = Client::fromEnvironment();
      ```

      <CodeGroupItem>
        This client needs one more gem. To add it, run `bundle add aws-sdk-bedrockruntime`.

        ```ruby Ruby
        require "anthropic"

        client = Anthropic::BedrockClient.new
        ```
      </CodeGroupItem>
    </CodeGroup>
  </Step>
</Steps>

## 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` (csharp: `client.Beta.Agents`; go: `client.Beta.Bedrock.Agents`; java: `client.beta().bedrock().agents()`; php: `$client->beta->agents`) |
| Sessions | `client.beta.sessions` (csharp: `client.Beta.Sessions`; go: `client.Beta.Bedrock.Sessions`; java: `client.beta().bedrock().sessions()`; php: `$client->beta->sessions`) |
| Memory stores | `client.beta.memory_stores` (typescript: `client.beta.memoryStores`; csharp: `client.Beta.MemoryStores`; go: `client.Beta.Bedrock.MemoryStores`; java: `client.beta().bedrock().memoryStores()`; php: `$client->beta->memoryStores`) |

These resources also have their own parameter types, such as `BedrockAgentCreateParams` (csharp: `Anthropic.Models.Beta.Bedrock.Agents.BedrockAgentCreateParams`; go: `anthropic.BetaBedrockAgentNewParams`; java: `com.anthropic.models.beta.bedrock.agents.BedrockAgentCreateParams`) for creating an agent. That type requires `execution_identity` (java, php: `executionIdentity`; csharp, go: `ExecutionIdentity`). For the values that `execution_identity` (java, php: `executionIdentity`; csharp, go: `ExecutionIdentity`) and `model` (csharp, go: `Model`) take, see [AWS’s documentation](https://docs.aws.amazon.com/bedrock/).

## Permission policy defaults

On 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` (java, php: `defaultConfig`; csharp, go: `DefaultConfig`) field](https://platform.claude.com/docs/en/managed-agents/permission-policies#set-a-policy-for-a-toolset) names none or is left out.

* 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.
* In the response to the request that sends the toolset, its `default_config.permission_policy` (java, php: `defaultConfig.permissionPolicy`; csharp, go: `DefaultConfig.PermissionPolicy`) shows which of the two policies it got.
* A [`configs` (csharp, go: `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` (java, php: `defaultConfig`; csharp, go: `DefaultConfig`) holds 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` (java, php: `defaultConfig`; csharp, go: `DefaultConfig`), the entry keeps that policy. An entry sent again with no policy takes what `default_config` (java, php: `defaultConfig`; csharp, go: `DefaultConfig`) then holds.
* 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).
* 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` (java, php: `defaultConfig.permissionPolicy`; csharp, go: `DefaultConfig.PermissionPolicy`) to `always_ask`. Set `always_ask` too on each `configs` (csharp, go: `Configs`) entry 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](https://docs.aws.amazon.com/bedrock/) for the values the console sets.
