The Techno-WitchWe read the fine print so you don't have to.

Consult the almanac

Turning the pages…

Arrow keys to move, Enter to open, Esc to close. Every answer links to a dated page.



Guides · Familiars

Claude Agents: Managed Agents, Agent SDK and Claude Code

Claude has three agent options: Managed Agents (hosted, API), the Agent SDK (a library you run) and Claude Code. Here's what each costs.

Some links on this site may earn us a commission. It never changes a price, a verdict or what we tell you to skip. How we make money.

In this story (8 sections)
  1. Three products wearing one name
  2. What Claude Managed Agents actually is
  3. Managed Agents pricing, with the receipt
  4. The Claude Agent SDK: Claude Code as a library
  5. Claude Code and its subagents
  6. Plans vs API: which wallet pays
  7. Data handling before you hand over files
  8. What to do next

"Claude agents" means three different things: Claude Managed Agents, a hosted developer product billed through the API; the Claude Agent SDK, a library you run yourself; and Claude Code, which comes with a Claude plan from Pro at $20 a month. Managed Agents isn't a setting inside the Claude app.

Prices and features below are as of December 2, 2026, and all prices are in USD.

Three products wearing one name

Option Who runs the agent Who it's for How you pay
Managed Agents Anthropic hosts it Developers, through the API Tokens plus $0.08 per session-hour
Agent SDK You, in a process you operate Developers building apps API token rates (no separate SDK fee listed)
Claude Code CLI You, in your terminal Anyone who codes Claude plan from $20 a month, or API tokens
Client SDK (Messages API) You write the loop Developers wanting full control API token rates

The Agent SDK overview frames the choice like this: embed Claude Code's agent in your own app with the SDK, use the CLI for interactive terminal work, or "have Anthropic host the agent, configured through the Claude API" with Managed Agents.

What Claude Managed Agents actually is

Claude Managed Agents is a "pre-built, configurable agent harness that runs in managed infrastructure." Anthropic hosts the agent loop, and Claude can read files, run commands, browse the web and run code in a sandbox. It's aimed at long-running and asynchronous work.

It's built from four pieces:

  • Agent: the model, system prompt, tools, MCP servers and skills.
  • Environment: a cloud sandbox, or a self-hosted one.
  • Session: a running instance of the agent.
  • Events: the messages passed between your app and the agent.

Scheduled deployments can run an agent on a cron schedule.

Status check: "Claude Managed Agents is in beta." Endpoints need the managed-agents-2026-04-01 beta header, and the docs say access is on by default for all API accounts. A few extras, such as MCP tunnels and "dreaming," need a research-preview request.

Where it runs: the Claude API, Amazon Bedrock, Claude Platform on AWS and Claude Models on Google Cloud (Anthropic managed). On Bedrock, AWS bills you and Anthropic's rates don't apply. For self-hosted pricing, the pricing page says to contact the account team.

Managed Agents pricing, with the receipt

Billing has two parts, per the pricing docs:

  1. Tokens at the normal model rates.
  2. Session runtime at $0.08 USD per session-hour.

The runtime clock ticks just while a session's status is "running," measured to the millisecond. Time spent idle (waiting for your next message or a tool confirmation), rescheduling or terminated doesn't count. An agent waiting on you isn't burning money.

Token rates per million tokens (MTok), matching our Claude API pricing breakdown:

Model Input Output
Opus 5.5 $4 / MTok $20 / MTok
Sonnet 5.5 $2 / MTok $10 / MTok
Haiku 5.5 (prompts up to 100,000 tokens) $0.10 / MTok $0.50 / MTok
Haiku 5.5 (prompts over 100,000 tokens) $0.50 / MTok $2.50 / MTok
Fable 5.2 $8 / MTok $40 / MTok

Anthropic's worked example is a 1-hour session on Opus 5.5 with 50,000 input tokens and 15,000 output tokens:

  • Input: 50,000 ÷ 1,000,000 × $4 = $0.20
  • Output: 15,000 ÷ 1,000,000 × $20 = $0.30
  • Runtime: 1 hour × $0.08 = $0.08
  • Total: $0.58 USD

With 40,000 of those input tokens served as cache reads, the docs put the same session at $0.428 USD.

What changes the math:

  • No Batch discount. Sessions are stateful, and "there is no batch mode," so the 50 percent Batch API discount doesn't apply.
  • Prompt caching still applies.
  • Web search inside a session costs the standard $10 USD per 1,000 searches.
  • Fast mode adds its premium if you turn it on.
  • US-only inference is billed at 1.1x.
  • Container hours are replaced by session runtime, not charged on top.

Rate limits: they're listed in the Managed Agents docs, so check the Managed Agents docs before you plan a big workload.

The Claude Agent SDK: Claude Code as a library

The Agent SDK is pitched as "Claude Code as a library." It gives you the same tools, agent loop and context management that power Claude Code, programmable in Python and TypeScript. You run it in your own process, with built-in tools, hooks, subagents, MCP, permissions and sessions.

Install, per the SDK quickstart:

  • Python 3.10+: pip install claude-agent-sdk (or uv add claude-agent-sdk)
  • Node.js 18.14+: npm install @anthropic-ai/claude-agent-sdk

Both packages bundle a native Claude Code binary, so most installs don't need Claude Code set up separately.

Cost: we found no separate SDK fee. You authenticate with an API key from the Claude Console (or Bedrock, Claude Platform on AWS, Google Cloud or Microsoft Foundry credentials), so you pay token rates.

Two rules for builders:

  • No borrowed logins. Anthropic doesn't allow third-party developers to offer claude.ai login or rate limits in products built on the SDK, unless previously approved.
  • Naming. "Claude Agent" or "{YourAgentName} Powered by Claude" is allowed. "Claude Code" and "Claude Code Agent" are not.

Claude Code and its subagents

Claude Code is the interactive version: the same agent, in your terminal. Inside it, you can build subagents, "specialized AI assistants that handle specific types of tasks," each in its own context window. You define one as a Markdown file with YAML frontmatter in .claude/agents/ (one project) or ~/.claude/agents/ (all your projects).

Built-in ones include Explore (codebase search, no edit tools), Plan (research in plan mode) and General-purpose (all tools).

The catch: subagent requests count toward the same usage limits as your main conversation. Spawning five helpers doesn't conjure five times the allowance.

Plans vs API: which wallet pays

For Claude Code on a subscription, the numbers match our Claude Code pricing guide:

Plan Monthly price Claude Code
Free $0 Not included
Pro $20 a month billed monthly, or $17 a month billed annually ($200 a year, up front) Included
Max $100 a month Included, "5x Pro usage"
Ultra $200 a month Included

Prices exclude tax. See the Pro plan page for the full terms.

Two traps to dodge:

  • The API key override. If ANTHROPIC_API_KEY is set, Claude Code uses it instead of your subscription, and you pay API charges. Run /login to switch back, per Claude support.
  • Pro doesn't cover the Console. Pro doesn't include Claude Console API usage, so Managed Agents and the SDK bill separately. Max, Ultra and Team include monthly API credits (not refundable), per the Pro plan help page.

New API accounts don't include free credits, per the pricing page.

Data handling before you hand over files

Managed Agents is not eligible for Zero Data Retention (except self-hosted under Legacy ZDR) or HIPAA BAA coverage. Sessions are stateful, and transcripts persist until you delete them. You can delete sessions and uploaded files through the API.

What to do next

  • Just want an AI that codes for you: Claude Code on Pro at $20 a month billed monthly is our pick. No API setup needed.
  • Building an app with an agent inside: start with the Agent SDK and an API key. You run it, you pay tokens.
  • Want long-running jobs without running servers: Managed Agents. Budget tokens plus $0.08 per session-hour, and follow the quickstart.
  • Handling health or zero-retention data: skip Managed Agents unless you're on the self-hosted Legacy ZDR setup.

Receipts

Official pages behind this story, read Dec 2, 2026
  1. platform.claude.com
    What is Claude Managed Agents? · Is Managed Agents in beta and when did it launch?
  2. platform.claude.com
    How is Managed Agents priced? · Does idle time cost money?
  3. platform.claude.com
    How do you start with Managed Agents?
  4. code.claude.com
    What is the Claude Agent SDK? · How does the Agent SDK authenticate and can it use a Claude plan?
  5. code.claude.com
    How do you install the Agent SDK?
  6. code.claude.com
    How does Claude Code relate to these? · What built-in subagents exist?
3 more receipts
  1. claude.com
    What do Claude plans cost and include Claude Code?
  2. support.claude.com
    Does an API key override a subscription?
  3. support.claude.com
    Do subscriptions include API credits?

Only pages the company publishes itself are listed. How we check: our method. Spotted a wrong number? Corrections.

Filed under

Guides: Familiars“claude agents”

Front page