[ ABORT TO HUD ]
SEQ. 1

Agents, Environments & Sessions

🤖 Managed Agents20 min1400 BASE XP

Fully Managed Agentic Infrastructure

Claude Managed Agents (launched April 2026, public beta) eliminates the need to build your own agent loop, sandboxing, session management, and credential handling. Anthropic provides a fully managed runtime environment where your agents execute autonomously.

Core Concepts

ConceptDefinitionKey Detail
AgentThe definition: model + system prompt + tools + skillsDefined once, instantiated many times
EnvironmentSecure cloud container with pre-installed packages, network access, and file systemConfigurable dependencies, isolated per session
SessionA runtime instance where the agent executes tasksPersistent file system, conversation history, resumable

API Integration

Managed Agents require the beta header anthropic-beta: managed-agents-2026-04-01. Standard Claude API token rates apply, plus a flat infrastructure fee of $0.08 per session-hour.

// Creating a Managed Agent session
const session = await anthropic.beta.managedAgents.sessions.create({
  agent_id: "agent_research_01",
  environment: { packages: ["pandas", "requests"] },
  instructions: "Research the latest competitor pricing"
});
// Session runs autonomously in Anthropic's cloud

Use Cases

  • Persistent Research Agents: Long-running agents that monitor news feeds, compile reports, and deliver summaries on a schedule.
  • Cron-Based Automation: Agents that run on a schedule (e.g., daily data pipeline validation).
  • Remote Code Execution: Agents with full file system access that can write, test, and debug code autonomously.
💡 Key Insight: Managed Agents are ideal when you need persistent, long-running agent sessions without building your own infrastructure. For short, synchronous tasks, the standard Messages API remains more cost-effective.
SYNAPSE VERIFICATION
QUERY 1 // 3
What beta header is required for Claude Managed Agents?
anthropic-beta: computer-use-2024-10-22
anthropic-beta: managed-agents-2026-04-01
anthropic-version: 2023-06-01
x-managed-agent: true
Watch: 139x Rust Speedup
Agents, Environments & Sessions | Managed Agents — Claude Academy