Skip to content
LinkedInX

Claude Managed Agents: Getting Started

Target audience: Developers, AI engineers, and platform teams considering managed agent infrastructure

Claude Managed Agents is Anthropic’s managed runtime for agent execution. Instead of building your own agent loop, tool execution layer, sandbox, and session management, you use it as an API for long-running asynchronous Claude tasks. As of July 2026, it is in beta, and Managed Agents API calls require the managed-agents-2026-04-01 beta header.[1]


What Are Claude Managed Agents?

An AI agent is an AI program that carries out tasks by following instructions and using tools. For example, an agent might read files, run commands, search the web, and produce a report without requiring each step to be manually driven.

Traditionally, running this kind of agent requires infrastructure for tool execution, file state, conversation history, and recovery behavior. Claude Managed Agents lets you use an Anthropic-managed cloud sandbox or a self-hosted sandbox on infrastructure you control.[1]

graph TD
  USER["Application\n(starts a session)"] --> API[Managed Agents API]
  API --> MANAGED[Claude Managed Agents\nruntime]
  MANAGED --> CLAUDE["Claude model\n(reasoning and generation)"]
  MANAGED --> TOOLS["Built-in tools\n(Bash, files, web, MCP)"]
  MANAGED --> STREAM["Event stream\n(SSE responses)"]

  style MANAGED fill:#e8f4fd,stroke:#4a9eda

In one sentence: Managed Agents is managed infrastructure for running long-running asynchronous Claude agents.


Key Concepts

Agent, Environment, Session, and Events

Claude Managed Agents is built around four concepts.[1]

ConceptRole
AgentDefines the model, system prompt, tools, MCP servers, and skills
EnvironmentDefines where sessions run: an Anthropic-managed cloud sandbox or a self-hosted sandbox
SessionA running agent instance performing a specific task
EventsMessages exchanged between the application and the agent, such as user turns, tool results, and status updates
This table scrolls horizontally. Keyboard users can focus the table and use the left and right arrow keys.

Scheduling

Managed Agents supports scheduled deployments for recurring agent runs. Use this for weekly research, repository checks, report updates, or other work with a clear cadence.[1]

Built-In Tools

Managed Agents gives Claude access to built-in tools.[1]

  • Bash
  • File operations: read, write, edit, glob, and grep
  • Web search and fetch
  • MCP servers

Session Operations and Streaming

An application starts a session, sends events, and receives in-progress output through Server-Sent Events (SSE). It can also steer the agent with additional events or interrupt execution.[1]


Use Cases

Long-Running Research and Report Generation

Managed Agents fits tasks that combine multiple web searches, file reads, command runs, and generated outputs. For example, an agent can gather public information, inspect local files in a sandbox, and write a report file.[1]

graph LR
  START[Start session] --> READ[Fetch files and web context]
  READ --> ANALYZE[Claude analyzes]
  ANALYZE --> WRITE[Write output file]
  WRITE --> STREAM[Stream progress with SSE]

Asynchronous Inquiry Classification

sequenceDiagram
  participant APP as Application
  participant AGENT as Managed Agents
  participant CLAUDE as Claude
  participant API as Ticket API

  APP->>AGENT: Start session
  AGENT->>CLAUDE: Classify inquiry
  CLAUDE-->>AGENT: Return classification
  AGENT->>API: Send result to external system
  AGENT-->>APP: Stream status events

Your application starts a session with the inquiry text, available tools, and expected output format. Claude performs classification or summarization with tools, while the application receives progress through the event stream.[1]

Recurring Agent Work

Use scheduled deployments when work needs to run on a cadence: weekly research, repository inspection, report generation, or similar recurring jobs.[1]


Comparison

Claude Managed Agents vs Claude Agent SDK

DimensionClaude Managed AgentsClaude Agent SDK
FormManaged runtime from AnthropicSDK used from Python or TypeScript
Core modelAgent, Environment, Session, Events, sandboxesThe same agent loop, built-in tools, hooks, MCP, permissions, and sessions that power Claude Code
Best forLong-running asynchronous tasks, stateful sessions, scheduled runsCustom agents embedded inside your application
RuntimeAnthropic-managed cloud sandbox or self-hosted sandboxYour application runtime
Primary userTeams that want managed agent infrastructureDevelopers who want programmatic agent control
This table scrolls horizontally. Keyboard users can focus the table and use the left and right arrow keys.

Claude Managed Agents vs Claude Code

DimensionClaude Managed AgentsClaude Code
RuntimeManaged sandboxTerminal, IDE, desktop, and web
Primary useLong-running asynchronous agent executionInteractive coding work with a developer
Control surfaceAPI sessions and eventsClaude Code conversation, tools, settings, and hooks
StateServer-side session history and sandbox stateLocal working directory and Claude Code session
This table scrolls horizontally. Keyboard users can focus the table and use the left and right arrow keys.

Getting Started

  1. Prepare a Claude API key.
  2. Create an Agent with the Managed Agents API and define its model, system prompt, tools, MCP servers, and skills.
  3. Create an Environment for where the agent runs.
  4. Start a Session using the Agent and Environment.
  5. Send Events and stream responses with SSE.[1]

When to Choose Managed Agents

Good Fit

  • Long-running asynchronous tasks that use multiple tools
  • Work where sandboxing, tool execution, conversation history, and file state should be managed
  • Stateful sessions or scheduled execution
  • Applications that need to stream agent progress through an API

Poor Fit

  • A single synchronous model response is enough
  • You need complete control over the agent loop inside your application
  • Zero Data Retention or HIPAA BAA coverage is required. The official documentation states that Managed Agents is currently not eligible because it is stateful by design.[1]

Summary

Claude Managed Agents is useful when you want to run long-running asynchronous Claude agents on managed infrastructure.

  • It is organized around Agent, Environment, Session, and Events.
  • It can use Bash, file operations, web search/fetch, and MCP servers.
  • It can run in an Anthropic-managed cloud sandbox or a self-hosted sandbox.
  • It is a beta feature, so confirm the beta header and data retention conditions before using it.

Use Claude Agent SDK when you need fine-grained programmatic control inside your application. Use Claude Code when a developer wants to work interactively with a repository.


Related pages:


This page’s Managed Agents features, limitations, and core concepts are grounded in the official documentation.[1]

References

  1. Anthropic, Claude Managed Agents overview

For the latest releases and updates, check the official website and official documentation.

Quiz