What's the difference between the Claude Agent SDK and Claude Managed Agents?

The Claude Agent SDK is a library you run yourself, in a process you control, embedding Claude Code’s own agent loop, tools, and hooks into your application; Claude Managed Agents is Anthropic’s hosted alternative, where Claude runs in an Anthropic-managed cloud sandbox, or a self-hosted one on your infrastructure, and you talk to it over events instead of owning the process. Anthropic’s own docs frame the SDK as a library that embeds Claude Code’s agent, its built-in tools, permissions, sessions, and hooks, into a process you operate yourself; Managed Agents is for “long-running tasks and asynchronous work” where you’d rather not build your own loop, sandbox, or tool execution layer.

Managed Agents also persists more than a bare SDK session does: conversation history, sandbox state, and outputs are stored server-side, resumable after a pause and runnable on a schedule through scheduled deployments. The tradeoff is what that history costs you: a Managed Agents session isn’t eligible for zero data retention, because there’s nothing to retain zero of once the state has to survive a pause. Grading a run you can only reconstruct from stored events afterward is a different problem than grading one your own process already watched happen.

sources

keep reading

More on this.

Two ways to run Tessary.

Tessary is an open-source agent reliability platform. Cloud and self-hosted run the same workflow on the OpenTelemetry traces your agent already emits.

Tessary Cloud

We host it for you. Send your first trace with nothing to deploy and no model key.

what's includedper organization
traces
10,000 per calendar month
stored trace data
1 GB
retention
30 days
model credit
$10, one-time, for triage and root-cause analysis
credit card
not required

Self-hosted Tessary

Run the open-source code on your own infrastructure with one command. Add your own model key for triage and root-cause analysis.

Self-host Tessary for me by following https://github.com/tessaryai/tessary/blob/main/setup.md

docker compose -f oci://docker.io/tessaryai/tessary:compose up -d -y