Anthropic Launches Self-Hosted Sandboxes for Claude Managed Agents in Public Beta

Claude Managed Agents can now execute tools in sandboxes running on your own infrastructure or via providers like Cloudflare, Daytona, Modal, and Vercel, while MCP tunnels let agents reach private MCP

cpaua4 min314
Anthropic Launches Self-Hosted Sandboxes for Claude Managed Agents in Public Beta

Anthropic has released self-hosted sandboxes for Claude Managed Agents in public beta, moving tool execution from Anthropic-managed cloud environments into infrastructure that customers control. The agent itself continues to run on Anthropic's side, but every tool call is dispatched to a worker process on the customer's host, which executes the call locally and returns the result. MCP tunnels, which allow Anthropic to reach private MCP servers inside a corporate network, are available in research preview by request.

How self-hosted sandboxes work

A self-hosted environment acts as a work queue. Customers run an environment worker — a process on their own infrastructure that polls the queue. When a session targets the environment, Anthropic enqueues it as a work item. The worker claims the item, downloads the agent's skills and the session's memory stores, and then executes each tool call that the model requests. Tool inputs and outputs still flow through Managed Agents so the model can decide what to do next, while skills and memory stores remain stored by Anthropic with a copy kept in the sandbox for the session.

The ant CLI and the Python, TypeScript, and Go SDKs ship prebuilt workers. Sandbox providers including Cloudflare, Daytona, Modal, and Vercel also publish platform guides for their managed offerings. Additional providers such as AWS Lambda MicroVMs, Blaxel, E2B, Fly.io, GKE Agent Sandbox, Namespace, and Superserve are documented in the platform guides.

Quickstart with the ant CLI

The documentation provides a seven-step quickstart. After creating a self-hosted environment in the Claude Console or via the API with ant apply environment.yaml, users generate an environment key in the Console and export ANTHROPIC_ENVIRONMENT_KEY and ANTHROPIC_ENVIRONMENT_ID on the worker host. The ant CLI is installed on the worker host via Homebrew (brew install anthropics/tap/ant), a direct binary download for Linux, or go install github.com/anthropics/anthropic-cli/v2/cmd/ant@latest. Starting the worker with ant beta:worker poll --workdir /workspace (Linux) or ant beta:worker poll --workdir ~/workspace (macOS) begins polling the queue. Verification uses the Claude API key to check that workers_polling is at least 1, and a test session writing uname -a to a file confirms execution on the customer's host.

Resource and MCP integration constraints

Self-hosted sandboxes support only memory_store resources. Sessions that include file or github_repository resources are rejected with a 400 error. To provide input files, users must stage files for the session. MCP tunnels operate independently of self-hosting: a cloud sandbox session can reach private MCP servers through a tunnel, while a self-hosted session can use either tunneled or public MCP servers. Using both keeps execution and tool access inside the customer's boundary. As an alternative to tunnels, MCP servers can be wrapped as custom tools served by the worker.

Availability and compliance

The feature requires the managed-agents-2026-04-01 beta header and supports all models available in Managed Agents. It is in beta on Claude API, Claude Platform on AWS, and Claude Models on Google Cloud (Anthropic managed). Self-hosted sandboxes are not eligible for Zero Data Retention except for self-hosted Managed Agents, and are not eligible for HIPAA. Sessions are stateful resources; transcripts persist until deleted.

Claude API skill for agent development

Anthropic also points to the claude-api skill in the anthropics/skillsanthropics/skills/tree/main/skills/claude-api repository, which demonstrates patterns for working with the Claude API. The repository contains skills for creative, technical, and enterprise workflows, including the document creation and editing skills that power Claude's file capabilities. Skills can be installed in Claude Code via /plugin marketplace add anthropics/skills followed by /plugin install document-skills@anthropic-agent-skills or /plugin install example-skills@anthropic-agent-skills.

Sources

t.co — content not available without authorization

Self-hosted sandboxes - Claude Platform Docs

anthropics/skillsanthropics/skills/tree/main/skills/claude-api
Share

Author

cpaua

VibeCode blog admin. Writing about vibe coding, AI and open source.

Related news

Comments

To leave a comment, log in
Loading...

Weekly digest

The best of vibe coding, AI agents and open source — once a week, no spam.