Learning resourcesReviewed · Anthropic

Choosing an agent environment

This guide helps developers choose where Claude Managed Agents tools run, with the catch that a self-hosted sandbox still sends conversation history and tool results to Anthropic. It compares Anthropic-managed containers with workers on your infrastructure, including operational responsibilities, feature losses and AWS and Google Cloud differences.

Researched 12 Nov 2026

In short.

This guide is for developers and infrastructure teams choosing a Claude Managed Agents environment, with the catch that hosting the sandbox yourself still shares conversation history and tool results with Anthropic. It recommends cloud environments as the default and explains when control over tool execution justifies operating your own worker. It also covers migration, unavailable managed features and platform-specific restrictions. Managed Agents is marked beta; pricing, measured performance and operational reliability are not established.

Researched and written by an AI model and checked by a second AI model. How it works

The scope is the complete captured documentation page at [https://platform.claude.com/docs/en/managed-agents/choosing-an-environment.md], including its beta and retention metadata, comparison table, full-service self-hosting note, AWS and Google Cloud notices, and migration caveats. Linked pages are excluded. Nothing was executed: worker setup, API behavior, network isolation, memory synchronization and migration outcomes remain untested. Costs and licensing terms are not established by this page.

The overview

Identity

Choosing an agent environment is Anthropic documentation about Claude Managed Agents. The source is [https://platform.claude.com/docs/en/managed-agents/choosing-an-environment.md], with the canonical page at [https://platform.claude.com/docs/en/managed-agents/choosing-an-environment].

It explains where an agent's tools and code execute. The environment controls that execution location; the agent definition separately holds the model, prompt and tools.

Assessment

The guide is useful for making an initial infrastructure decision because it compares execution location, data sharing, network control, file mounting and lifecycle ownership directly. Its most consequential distinction is between hosting tool execution yourself and hosting the entire Managed Agents service.

It provides a decision framework and migration outline. Complete worker implementation instructions, security configurations, cost comparisons and measured operational results are outside this page.

Users

Developers new to Managed Agents get a clear default: use an Anthropic-managed cloud environment unless tools must run on infrastructure they control. Infrastructure and security teams get a more detailed account of the responsibilities involved in running workers.

Self-hosted sandboxes are relevant when tools need access to internal services, files must remain on company infrastructure, or hosts need organization-specific logging and audit controls. Tool outputs still reach Anthropic, so suitability depends on what the tools return as well as where files reside.

Capabilities

The cloud option gives each session a fresh Linux container with common languages, databases and utilities installed. Anthropic manages its lifecycle and file and GitHub repository mounting; users choose network rules and additional packages.

The self-hosted option lets a worker on your infrastructure execute bash and file tools and serve custom tools. You manage file staging, repository mounting, installed software, network policy and sandbox lifecycle. Where memory stores are supported, the worker downloads them to /mnt/memory/ and synchronizes them.

Using it

Requirements

The page lists beta support through the Claude API, Claude Platform on AWS and Claude Models on Google Cloud, Anthropic managed. The agent needs a model, prompt and tools regardless of environment choice.

For the standard Claude API self-hosted sandbox path, the guide describes a self_hosted environment, an environment key generated in the Claude Console and a worker you operate. You must provide suitable hosts, hardening, network limits and session isolation. Worker hardware sizing and a complete dependency list are not specified. AWS and Google Cloud have different authentication and feature constraints.

Mechanism

Claude runs on Anthropic's side and chooses the next tool call. With a self-hosted sandbox, your worker executes supported calls and sends results back. Sandbox files and processes stay on the worker, but conversation history, tool results, skills and memory stores reach the Managed Agents service. A tool result can therefore transmit information from a local file.

Web search and web fetch run on Anthropic's side with either environment. Anthropic also connects to MCP servers; placing a worker inside a private network does not move those MCP connections onto the worker. The page identifies MCP tunnels as a separate research-preview feature requiring an access request.

Setup

To switch from cloud execution, keep the agent definition, create a self_hosted environment and reference its ID in new sessions and deployments. On the standard Claude API path, generate an environment key and run a worker. Prepare input files, repository access and the software that the worker needs.

The page says application credentials, skills and MCP servers carry over. Memory stores carry over only where supported. It links to a separate quickstart for implementation details and gives no procedure for transferring an already running session. AWS and Google Cloud exceptions must be applied before following the general migration outline.

Example

A hypothetical team inspecting an internal repository could stage it on a self-hosted worker and let the agent's bash and file tools inspect it there. The repository files would remain on that worker, but code snippets printed in tool results would reach Anthropic. This illustrates why local file storage alone does not establish that repository content stays inside the network. This scenario has not been executed or tested.

Assessment & evidence

Limitations

Self-hosted sandboxes lose managed file and github_repository session resources, repository skill discovery, vault credentials supplied as environment variables, and the cloud sandbox's preinstalled runtimes and packages. You take responsibility for image hardening, network egress, applicable key storage and rotation, and isolation between sessions.

On Claude Platform on AWS, a self-hosted sandbox cannot use memory stores and workers do not use an environment key; the page also states MCP tunnels are not available on that platform. On Claude Models on Google Cloud, Anthropic managed, memory stores are unavailable in a self-hosted sandbox and the page states MCP tunnels are not available. Google Cloud workers authenticate with Google Cloud credentials, and you must write your own worker because the ant CLI and Python, TypeScript and Go SDK prebuilt workers do not work there.

A self-hosted sandbox does not change Managed Agents compliance coverage or conversation-history retention. The metadata says sessions are stateful and transcripts persist until deletion. The page's metadata states that Claude Managed Agents is not eligible for zero data retention (ZDR), except for self-hosted Managed Agents. This exception refers to self-hosted Managed Agents, which hosts the whole service, rather than merely a self-hosted sandbox.

Reasoning

The guide's cloud-first recommendation follows from its ownership comparison: Anthropic operates the sandbox, while self-hosting transfers substantial infrastructure duties to your team. Self-hosting becomes useful when control over tool execution or access to private infrastructure is a concrete requirement.

The decision also depends on data returned by tools and the chosen platform's missing features. The page supplies no evidence that self-hosting improves speed, reduces cost or automatically satisfies a compliance requirement.

Alternatives

The primary alternatives described are an Anthropic-managed cloud sandbox and a worker-operated self-hosted sandbox. The page also distinguishes self-hosted Claude Managed Agents: you operate the entire service and store agents, sessions and session history on your infrastructure. Access requires contacting an Anthropic account team.

Even that full-service option sends conversation history and tool results to Anthropic with each model request by default. No third-party agent platforms or fully local model deployments are compared.

Evidence

The available evidence is the complete Anthropic documentation page, including its comparison table, metadata, self-hosting note, platform exceptions and migration guidance. It is a vendor account of supported behavior.

The linked quickstarts, security model, retention documentation and platform guides are outside the supplied evidence. No benchmarks, run logs or security-validation results are supplied. Runtime correctness, isolation effectiveness and production reliability are not assessed.

Access & freshness

Costs

The page provides no prices, billing rules or cost comparison. Total cost and which environment would be cheaper are unknown.

Self-hosting adds responsibility for infrastructure, worker operation, hardening and lifecycle management. The page does not quantify the infrastructure spending or staff effort involved.

Rights

The page states no content license or redistribution permission. It does not establish licensing terms for referenced workers, CLI tools or SDKs, or contractual rights for service use. Those terms remain unknown from this evidence.

Freshness

The documentation snapshot was captured on 12 November 2026 at 22:44:33 UTC. It marks Managed Agents as beta and lists the beta header managed-agents-2026-04-01.

The page provides no publication or last-updated date. The beta-header date does not establish either date, and changes after the capture are unknown.

Actions

First establish whether tools must execute on infrastructure you control and what information their outputs may send to Anthropic. If no such hosting requirement exists, the page recommends starting with a cloud environment.

For self-hosting, confirm your platform's worker support and authentication, plan file and repository staging, and consult the linked quickstart and security guidance for implementation details. Obtain current pricing and applicable contractual data terms separately. Validate session isolation, network access, tool outputs and migration behavior before production use; those outcomes are untested here.

Evidence for this report

selected-page.txtselected · checked 2026-11-12