Self-hosted Claude Managed Agents: your server, your history, and what it costs
Self-hosted Claude Managed Agents: what changed on November 12, how to set it up, what the official example costs, and six questions to ask before you decide.
Self-hosted Claude Managed Agents means that, since November 12, 2026, you can run the full Managed Agents service from Anthropic on your own server: the API, the agent loop, and the storage for agents, sessions, and history. What changes is where your history lives and who deletes it. What doesn't change, by default, is that every model call still goes to the Claude API.
What changed with self-hosted Claude Managed Agents
Most quick takes will read "self-hosted" and hear "private." The Claude platform release note is more precise. Until now, the most you could move to your own infrastructure was the sandboxes, meaning the place where the agent's commands run. The service itself stayed at Anthropic.
Now the server is yours, and you choose who answers the model calls: Anthropic, Amazon Bedrock, Google Cloud, Microsoft Foundry, or your own gateway. One practical detail: you can't just download it. To get access, you have to talk to your Anthropic account team.
Three levels and four pieces
It pays not to mix up the levels:
- Cloud environment: Anthropic hosts the sandboxes, the service, and the model.
- Self-hosted sandboxes: you decide where commands run, but the service is still Anthropic's.
- Self-hosted service (the new one): you run the sandboxes and the service too.
At the third level you operate four pieces: a server (cma-server), a PostgreSQL database version 16 or newer, workers that execute the agent's tools, and a web console where people sign in with your company login. Without a database, the server keeps everything in memory and a restart wipes it all.
How to set it up with Docker Compose
The test walkthrough runs on a single machine. You need Docker, at least two CPUs, the ant tool, a Claude API key, and the release archive your account team gives you.
- Extract the archive and create a .env file with four values: the database password, your Claude key, your server key, and a key that encrypts the stored secrets.
- Run docker compose up with build and wait until the log says the server is listening.
- Check the readyz route on port 8400; it should answer ready.
- Create an agent with ant apply, open a session, and ask it to run hostname. If the name starts with cma-sandbox, the tool ran inside a container, not on your computer.
This is where people get stuck the first time: you point ant at your server with two variables, and if you run Docker in that same terminal, the server calls itself instead of calling Claude. That's why you use two terminals. This setup is for development only; for production, Anthropic recommends its Helm charts on Kubernetes.
The math: what an hour of agent time costs
Let's use Anthropic's official example for the hosted version: one hour of session with Claude Opus 5.5, 50,000 input tokens, and 15,000 output tokens.
- Input: 50,000 tokens at $4 per million is 20 cents.
- Output: 15,000 tokens at $20 per million is 30 cents.
- Runtime: 8 cents per hour.
- Total: 58 cents.
Eight out of fifty-eight is 14%: that is, at most, what you could save by self-hosting. The other 86% is the model, and it's still there. The worst case for the runtime charge, one session running 24 hours a day for 30 days, comes to $57.60 a month. And even that saving isn't guaranteed, because Anthropic doesn't publish the price of the self-hosted version. You have to ask for it.

Three cases where it can make sense
These three cases are WAiBOT's own analysis, not Anthropic's.
- A law firm: on the hosted service, each session's history is stored at Anthropic until you delete it; self-hosted, it lives in your database and you delete it. The documentation says hosted Managed Agents doesn't qualify for zero data retention, and the exception is the self-hosted version.
- A company with its own cloud contract: you can switch the provider to Bedrock, Vertex, or Foundry and use your cloud credential instead of a Claude API key. Side effect: with Bedrock, the model can't search the web or read web pages.
- A team that has to audit: the server supports single sign-on with OpenID Connect, assigns roles from the token's groups, can keep secrets in your own secrets manager, and can sign a short-lived token that identifies the agent to your MCP servers.
Who it's not for
A business without technical people: you operate the server, the database, and the sandboxes, and you install every release. Anyone who only wants commands to run inside their own network: that's what self-hosted sandboxes are for. And anyone who depends on the Word, PDF, PowerPoint, and Excel document skills, or on scheduled runs and webhooks, because the self-hosted version doesn't have them.
Is it just privacy theater?
They're right about one part: by default, every model call sends the full conversation, with inputs and tool results, to the Claude API. But what changes is where the history lives, who deletes it, and who you send the conversation to, since you can send it to your cloud or your gateway. Anthropic has no remote access to your server or its log. If your rule is that nothing leaves your network, you need the model to sit somewhere you control too, and that depends on your provider.
According to Anthropic's own data page, when your provider is the Claude API every call carries three identifiers (session, agent, and environment) plus a header naming the software and its version; no setting turns the identifiers off. Also, by default, if a safety classifier rejects a request, another Claude model can answer instead without any event telling you; you turn that off by setting model fallback to false.
What really breaks
- The tool waits forever if no worker is listening on the environment, and it raises no error.
- The test setup starts ten workers; a forgotten session holds its worker for up to an hour.
- MCP servers and Git repositories are only accepted if you add their domain to an allowlist that starts empty.
- An MCP tool result over 100 kilobytes gets cut off.
- An image sent by web address doesn't throw an error, but the model never sees it.
How to apply it in your business?
Ask yourself these six questions before you self-host:
- What data do I have to store myself, and why? If there's no written why, use the hosted service.
- Where can the conversation travel? Decide whether your provider is Claude, Bedrock, Vertex, Foundry, or your gateway.
- Who operates the server, the database, and the workers, and who installs each release?
- Is any tool I use on the list of what doesn't exist?
- Does each trust level get its own deployment? One server serves a single customer.
- Do I have the price in writing? Ask your account team.
Don't test with real data on the Compose setup: it's for development only. For another Anthropic product moving into everyday team work, read the full breakdown of Claude Meetings.
Frequently asked questions
Can I freely download self-hosted Claude Managed Agents?
No. Access is by request through your Anthropic account team, which also provides the release archive.
How much does self-hosted Claude Managed Agents cost?
Anthropic doesn't publish that price; you have to ask. The official 58-cents-per-session-hour example is for the hosted service, and only 14% of it is runtime.
Does my data stop going to the Claude API if I self-host?
Not by default: every model call still sends the conversation to the Claude API, unless you switch the provider to Bedrock, Vertex, Foundry, or your own gateway.
What pieces do I have to operate?
A server (cma-server), a PostgreSQL 16 or newer database, workers, and a web console with your company login.
Can I use the Docker Compose setup in production?
No, it's for development only. For production, Anthropic recommends its Helm charts on Kubernetes.
Conclusion
Self-hosted Claude Managed Agents doesn't hide the model: it decides where your history lives and who holds the key. The question that's left is whether that control is worth running a server. Tell us: what piece of your business data wouldn't you dare leave in someone else's service, and why?