Skip to content

Blog

Anthropic now lets companies keep Claude Managed Agents servers and session records in-house

8 min read

Cover made from the Anthropic logo, the Claude logo and an illustration Anthropic used in its announcement (Anthropic, Wikimedia Commons).
Cover made from the Anthropic logo, the Claude logo and an illustration Anthropic used in its announcement (Anthropic, Wikimedia Commons).

As with AXIT, people who have come to me for consulting recently have asked about these points a lot because of security concerns. This looks like a very good move.

On November 12 (US time), Anthropic released self-hosted Claude Managed Agents as a private beta. It lets a company keep the servers and sandboxes that run agents built with Claude, along with the session records, in its own cloud or on-premises data center. Claude's developer account, @ClaudeDevs, posted the announcement, and as of November 14 it had 1.069 million views, 13,000 likes, 1,100 reposts and 7,700 bookmarks.

Managed Agents is a set of APIs in which Anthropic runs the entire environment for your agents. You define an agent and open a session, and Anthropic runs the agent loop, the sandbox where tools run, credential management and session records. Until now, only the sandbox could be moved to the company's side. Now the rest of the service can be moved as well.

Architecture diagram published by Anthropic. The client app, the Managed Agents server, the sandbox and PostgreSQL all sit inside the customer's environment, and only model calls cross the network boundary (X @ClaudeDevs).
Architecture diagram published by Anthropic. The client app, the Managed Agents server, the sandbox and PostgreSQL all sit inside the customer's environment, and only model calls cross the network boundary (X @ClaudeDevs).

The company now runs the service as well

The company runs three things: a server (cma-server) that handles the API, the agent loop and session records; a PostgreSQL 16 or later database that holds that data; and workers that actually execute the agent's shell and file tools. The server does not run shell or file tools itself. Instead, the workers come to the server to fetch work. For development, everything runs from a single Docker Compose setup. For production, Anthropic recommends deploying to Kubernetes with two Helm charts.

A table reproduced from Anthropic's documentation. In the new self-hosted Managed Agents, the company runs both the sandbox and the service, and can also choose where model calls go (Anthropic documentation).
A table reproduced from Anthropic's documentation. In the new self-hosted Managed Agents, the company runs both the sandbox and the service, and can also choose where model calls go (Anthropic documentation).

The API is the same as in the Managed Agents service Anthropic runs. So existing code works as is once the SDK and the ant CLI point to the company's server. However, none of the agents or session records on Anthropic's side carry over, so they have to be created again.

You can choose where model calls go

The model still runs outside the company. By default, the server calls the Claude API. With a configuration change, it can send calls to Amazon Bedrock, Claude models on Google Cloud, Microsoft Foundry or a model gateway the company runs. Agent definitions use Claude API model names such as claude-opus-5–5 as is, and the server translates them into each cloud's names when it makes the call.

Wherever the calls go, each model call carries the entire conversation so far. That includes not only prompts but also the inputs given to tools and the results the tools returned. When calls go to the Claude API, three headers with the session, agent and environment IDs are sent along, and this cannot be turned off. When calls go to Bedrock or Google Cloud, on the other hand, the server does not connect to Anthropic at all, according to the documentation. Anthropic has no remote access to the server or its logs, and Anthropic neither issues nor holds the credentials the server receives.

This difference also shows up in data retention rules. The Managed Agents service Anthropic runs keeps session records until the user deletes them, so it is excluded from ZDR (zero data retention) agreements. With self-hosted, those records stay in the company's database, and the company's ZDR agreement applies to requests sent to Claude just as it does to any other Messages API call.

Anthropic says security is enforced by the architecture

Anthropic said that since people cannot check every step an agent takes, the limits have to be built into the system. It laid out four principles.

  • Separate the brain from the hands. The harness that calls Claude is kept apart from the sandbox where code runs, and the agent loop, session records and secrets stay outside the sandbox.
  • Keep credentials out of the sandbox. For MCP tools and supported API calls, a proxy outside the sandbox attaches the credentials. In self-hosted deployments, they can also be kept in the company's secrets manager.
  • Restrict the network to an allowlist. An agent that fixes builds, for example, would have only the Git host and package registries open.
  • Record every session. Tool calls and their results are exported through OpenTelemetry, so they can be viewed in existing monitoring tools.

Even so, the documentation carries one warning. The agent's bash tool is a real shell with the full permissions of the worker process, and the worker does not isolate it. Isolation depends on what the worker runs inside. If you launch workers yourself, they need to run in disposable containers or VMs with nothing worth protecting.

The documentation also notes that one deployment can serve only one customer. Because a single server API key reaches every environment, each customer needs its own deployment with a separate database, keys and workers.

Quite a few features are missing

Features that exist only in the Anthropic-run service are not available in self-hosted. There is no Files API, no webhooks, no scheduled runs and no dreams, and the built-in docx, pdf, pptx and xlsx skills are also missing. Scheduled runs have to be replaced with the company's own scheduler, such as cron, and skills have to be downloaded from the public repository and uploaded manually. The web search and web fetch tools are off by default, and MCP servers and Git repositories can connect only to hosts listed in the server configuration. In multi-agent setups, work can be handed off only to sub-agents specified in advance.

On the other hand, some features exist only in self-hosted: SSO through the company's account system (OpenID Connect), integration with the company's secrets manager, and agent identity, in which the server signs short-lived tokens and sends them to MCP servers.

AXIT also split the server and workers at the same point

Last month, in ‘How is a multi-agent system designed?’, we described the architecture of AXIT, the system we are building. It separated a control plane, which takes requests and manages jobs, from workers, which are containers started fresh for each run. We moved execution out of the server for isolation and stability. In mid-September, a single agent attempt pushed server memory from 0.56GB to 13.22GB. Workers became the default on October 16, and from October 17 to 28, 98% of jobs ran on workers.

The Managed Agents server also leaves shell and file tools to workers instead of running them itself. The direction of the connection is a little different. AXIT's workers connect to the control plane over a single WebSocket and receive an execution plan. Managed Agents workers come to the server to fetch work. Because the server never opens a connection to the workers, there is no need to allow inbound connections on the worker side.

Putting agents to work involves many decisions beyond the model: where to run them, where to keep the records and who holds the secrets. Anthropic also wrote on its blog that until now, anyone who wanted this had to build the platform themselves.

Pricing has not been announced yet

The Managed Agents service Anthropic runs charges token costs plus $0.08 per session hour. In the official documentation's example, a one-hour session on Claude Opus 5.5 that uses 50,000 input tokens and 15,000 output tokens costs $0.58. For self-hosted pricing, the documentation only says to contact the account team. The company runs the infrastructure for the server, database and workers itself and pays for it separately.

For now, it is a private beta that only qualifying organizations can apply for through their Anthropic account team. When a new version comes out, the company also has to install it itself.

What self-hosted Managed Agents moves inside the company is the agent loop, session records, credentials and tool execution. Model calls still leave the network, and tool results go with them. So for organizations with strict data egress requirements, the remaining question is which Claude models are available in which regions on Bedrock, Google Cloud and Foundry. That has to be checked separately for each cloud.