Learning resourcesReviewed · Anthropic

Claude Managed Agents: Cloud environment setup

Cloud environment setup is Anthropic's guide for developers configuring Claude Managed Agents sandboxes, where omitting API network settings enables broad internet access. It explains reusable configurations, isolated Linux containers, package installation and network restrictions. The cloud feature is in beta and is not eligible for zero data retention or HIPAA.

Researched 12 Nov 2026

In short.

Cloud environment setup is Anthropic's guide for developers configuring Claude Managed Agents cloud sandboxes, where leaving out API network settings enables broad internet access. It covers creating reusable environments, installing dependencies, controlling outbound connections and attaching environments to sessions. Each session receives a fresh Linux container, but environment configurations are not versioned. Network permissions apply to destinations rather than operations, so allowed hosts can also receive uploads. Pricing and resource limits are unknown from this page, and no examples were executed.

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

Covers the complete selected page at [https://platform.claude.com/docs/en/managed-agents/environments.md], including API, CLI and SDK examples, package configuration, networking rules and warnings, environment lifecycle, availability, beta-header requirements and data-handling notices. Linked guides, schemas, runtime inventories and reference pages are excluded. Nothing was executed; runtime behavior, performance and security effectiveness remain unassessed. Pricing, licensing and changes after capture are unknown.

The overview

Identity

This is Anthropic's documentation for type: cloud environments in Claude Managed Agents. An environment defines the sandbox configuration that sessions reference by ID. The resource is an implementation guide rather than a standalone application.

The selected address is [https://platform.claude.com/docs/en/managed-agents/environments.md]. The page identifies its documentation URL as [https://platform.claude.com/docs/en/managed-agents/environments].

Assessment

The guide is useful for developers who want Anthropic-hosted agent execution with configurable dependencies and network access. Its strongest detail concerns networking: defaults, host matching, package-manager exceptions, web-tool restrictions and requests that fail with a 400 error.

It is not a complete deployment reference. Agent creation, detailed permission policies, preinstalled software and session operation depend on linked documentation outside this page. The documented cloud option does not fit workloads requiring ZDR or HIPAA eligibility.

Users

The intended users are developers building Managed Agents workflows that need a Linux execution environment, installed packages or access to external services. The examples support API and CLI users, with SDK examples in Python, TypeScript, C#, Go, Java, PHP and Ruby.

Beginners get a concrete create-environment and start-session sequence, but need an API key and an agent to reference. Experienced developers get detailed rules for host restrictions, MCP endpoint access and dependency installation.

Capabilities

The page explains how to create a named environment, reuse its ID across sessions and install packages before an agent uses its sandbox. Supported package configuration fields are apt, cargo, gem, go, npm and pip; versions can be pinned.

Networking can be limited to specified hosts or unrestricted apart from a general safety blocklist. Limited mode supports host patterns and separate exceptions for package-manager hosts and configured MCP server endpoints.

Management examples cover listing, retrieving, archiving and deleting environments. Archiving makes an environment read-only and prevents new sessions from using it.

Using it

Requirements

The API examples authenticate with an Anthropic API key and use anthropic-version: 2026-10-21. The required beta header is anthropic-beta: managed-agents-2026-04-01. Starting a session requires an agent reference and an environment ID.

With limited networking, any environment specifying packages must set allow_package_managers to true. Otherwise, creation fails with a 400 error even if the registry hosts appear in allowed_hosts. MCP hosts must also be permitted, including those declared by agents available for delegation, or session creation fails.

The page lists beta support on the Claude API, Claude Platform on AWS and Anthropic-managed Claude Models on Google Cloud. Minimum SDK versions, account access conditions and sandbox resource limits are not specified.

Mechanism

An environment is a reusable configuration, while each session receives its own fresh Linux container. Sessions sharing an environment do not share filesystem state. Package managers run before agent use in alphabetical order: apt, cargo, gem, go, npm, then pip.

In limited mode, allowed_hosts controls sandbox destinations and also filters the server-side web_search and web_fetch tools. Package-manager and MCP exceptions do not expand those web tools' permitted hosts. Without allowed_hosts entries, neither web tool returns pages or search results.

Host entries accept bare hostnames or wildcard patterns, without a scheme, port or path. An exact hostname does not include its subdomains, and a wildcard for subdomains does not include the parent host. Environments persist until archived or deleted and have no built-in versioning.

Setup

Create a uniquely named environment with config.type set to cloud and an explicit networking configuration. For limited access, specify the necessary allowed_hosts and enable package-manager or MCP exceptions only when required. Omitting networking from an API create request selects unrestricted access; the Console creation form instead starts with Limited selected and nothing else allowed.

Creation is demonstrated through POST /v1/environments, SDK calls and ant apply environment.yaml. The CLI writes the environment ID into claude-lock.json. The guide recommends committing that file so later applies update the same environment.

Pass the resulting ID as environment_id when creating a session through POST /v1/sessions or its CLI or SDK equivalent. These are documented setup steps; none was executed.

Example

The page's data-analysis example installs pandas, numpy and scikit-learn through pip and express through npm. It sets networking.type to limited and allow_package_managers to true, then provides an environment ID that can be referenced by a session.

That example does not set allowed_hosts. Under the documented rules, the sandbox receives the package-host exceptions, while web_search and web_fetch have no permitted hosts. Its package versions are unpinned, although the page also shows version-pinning syntax. The example does not demonstrate an actual analysis task or measured result.

Assessment & evidence

Limitations

Cloud sandboxes are in beta. The page marks Managed Agents as ineligible for HIPAA and cloud use as ineligible for zero data retention. Sessions are stateful, and transcripts persist until deleted. Self-hosted Managed Agents are named as an exception to the ZDR exclusion, but their eligibility details are outside this page.

Host permission does not make access read-only. Commands can upload files, push code or publish packages to an allowed host using available credentials. The package-manager exception opens a maintained set of registries and code hosts, which Anthropic can change. The page warns that prompt injection can exploit such access.

Unrestricted networking permits broad outbound access, and the documented default tool permission policy is always_allow. Session isolation and network enforcement are documented behavior, not independently established here. CPU, memory, disk capacity, runtime versions, reliability and startup latency are not assessed.

Reasoning

Reusable environment IDs offer a consistent way to reference setup, but they do not identify an immutable configuration. Because environments are unversioned, recording configuration changes and pinning dependencies would help explain differences between sessions. This is an engineering implication of the documented lifecycle.

Network configuration deserves attention before the first session because the API's omitted-setting default is unrestricted. A destination allowlist also cannot enforce read-only behavior. The guide therefore connects limited networking with narrower credentials and bash permission policies such as always_ask or auto; detailed policy behavior is covered elsewhere.

Alternatives

The page points to self-hosted sandboxes for running execution environments on your own infrastructure. Their setup requirements, costs and operational tradeoffs are not established here because the linked guide is outside the selected scope.

Within cloud environments, limited and unrestricted networking are configuration alternatives. The page recommends limited access when destinations can be listed in advance and reserves unrestricted access for tasks that need unpredictable destinations. It provides no comparison with other vendors' sandbox products.

Evidence

The evidence is the complete Cloud environment setup documentation page acquired from [https://platform.claude.com/docs/en/managed-agents/environments.md], captured at 2026-11-12T21:53:52.373Z. Its captured source revision is sha256:30ab63ccb2c37cef00813d7d1b77712e6afc38a889d4b6f572cb777a08dece5e.

This is first-party documentation supporting descriptions of intended behavior. No commands, SDK examples or API requests were executed. Actual responses, package installation, session isolation, security effectiveness and performance were not assessed. Linked pages were not included.

Access & freshness

Costs

The page provides no prices, billing units, free allowances or worked cost examples for Managed Agents cloud environments. Total operating cost is unknown.

It also does not establish usage quotas or how sandbox lifetime, dependency installation or network activity affects billing.

Rights

The page does not state a documentation or sample-code license, redistribution permission or service usage terms. Those rights are unknown from this evidence.

The package examples do not establish the licensing terms of installed dependencies.

Freshness

The captured page presents the feature as beta and uses API version 2026-10-21 with beta header managed-agents-2026-04-01. These identifiers describe the examples and feature access; they do not establish a publication or last-update date.

Changes after the capture are unknown. The package-manager host list is explicitly maintained by Anthropic and may change, so its contents should not be treated as permanent.

Actions

Before using the cloud option, establish pricing, required runtime availability and any resource limits that matter to the workload. This page does not supply those details.

Set networking explicitly, keep allowed hosts narrow and account for the separate web-tool rules. Consider whether package-manager exceptions expose more destinations than the task needs, and configure bash permissions and credentials accordingly.

Pin dependencies where repeatability matters and retain the configuration associated with each session. Workloads requiring ZDR or HIPAA eligibility need an option whose documented eligibility meets those requirements.

Evidence for this report

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