Choose Managed Agents when
Pick Managed Agents when you want the hosted harness, event persistence, and cloud container to be part of the product foundation.
Use this comparison when the real choice is between Anthropic-managed infrastructure and a programmable SDK stack you operate yourself.
Last updated
2026-04-12
Anthropic positions these as two different ways to build with Claude, not as synonyms.
| Dimension | Managed Agents | Agent SDK |
|---|---|---|
| Runtime ownership | Anthropic runs the harness, sessions, and cloud runtime for you. | You program against Claude Code capabilities and run the application in your own chosen environment. |
| Control versus convenience | Lower infrastructure burden, less direct control over the underlying runtime. | More deployment and orchestration control, more surface area to own. |
| Best fit | Best for long-running asynchronous work with managed infrastructure. | Best for custom agents, CI workflows, and apps that need Claude Code tools inside your own architecture. |
| Environment model | Environment objects define the hosted container, network rules, and mounted files. | Your app decides where it runs and how the environment is isolated or secured. |
The choice becomes easier once you stop treating “agent” as a single category.
Pick Managed Agents when you want the hosted harness, event persistence, and cloud container to be part of the product foundation.
Pick Agent SDK when you want Claude Code’s tools and agent loop but need to program, deploy, and govern the runtime on your own terms.
Use both only after the first version is clear. Mixing them too early usually creates blurry ownership and confusing docs for your team.
This is the distinction that saves the most rework later.
The Agent SDK gives you the same tools, agent loop, and context management that power Claude Code, but it runs as a library in your own program. Managed Agents instead gives you Anthropic-managed sessions and environments. If your main reason for choosing one is “it sounds more powerful,” pause and ask who needs to own the runtime boundary.
These answers usually settle the “hosted versus programmable” debate quickly.
Often yes. Teams that need fast validation with less infrastructure code can start with Managed Agents, then move to the Agent SDK if runtime control becomes the bottleneck.
Not usually for the first version. Pick the path that matches the real runtime ownership you need today, then expand from there.
These pages are the shortest path to the next question most teams hit.
Use this page when you need a compact explanation of the hosted runtime, the core concepts, and the workloads that match Managed Agents best.
Open pageUse this guide to build the first working Managed Agents session without mixing up agents, environments, sessions, and event streams.
Open pageUse this page to decide whether your workload actually belongs in Managed Agents before you build around the hosted runtime.
Open pageUse the waitlist if you want the next update without checking the docs every week.
Waitlist
Get a short email when this guide adds new examples, API changes, or managed-agents implementation notes.