The Claude Agent SDK is Anthropic's Python and TypeScript library for building agents on the same loop, tools and permissions that run Claude Code. For commercial teams it's strongest at file-heavy, multi-step work: research briefs, CRM hygiene, proposal drafts. It saves you building an agent loop, but you still own hosting, credentials, state and cost control.
IN SHORT: The SDK gives you a working agent in a few lines, with tools, sessions, hooks and MCP built in. What it doesn't give you is a production system: you run a long-lived subprocess per session, persist its state, and watch token spend yourself. Good fit for teams with one engineer who can own that plumbing; poor fit if you want a no-code builder.
How this review was made: it's based on Anthropic's own documentation and public pricing as of November 2026. We haven't benchmarked it here. See How we'd test it for the tests we'd run before committing.
Key facts
| What it is | A library that embeds Claude Code's agent loop in your app |
| Languages | Python 3.10+ and Node.js 18+ (TypeScript) |
| Packages | claude-agent-sdk (pip, uv); @anthropic-ai/claude-agent-sdk (npm) |
| Former name | Claude Code SDK (claude-code-sdk, @anthropic-ai/claude-code) |
| Model access | Claude API key, or Amazon Bedrock, Claude Platform on AWS, Google Cloud's Agent Platform, Microsoft Foundry |
| Price of the library | No license fee; you pay API token rates plus paid tools |
| Example token rates (per million) | Sonnet 5.5: $2 input, $10 output. Haiku 5.5: $0.10 input, $0.50 output (prompts up to 100,000 tokens) |
| Suggested starting resources | 1 GiB RAM, 5 GiB disk, 1 CPU per agent |
| Terms | Anthropic's Commercial Terms of Service |
| Last checked | November 28, 2026 |
What is the Claude Agent SDK?
It's Claude Code as a library. An agent, in Anthropic's definition, plans its own steps and calls tools. The SDK hands your program that loop, plus the tools and context management behind it.
The capabilities come straight from Claude Code:
| Capability | What it does in practice |
|---|---|
| Built-in tools | Read, write and edit files, run shell commands, search the web |
| Hooks | Run your own code at set points, for example before a tool call |
| Subagents | Spin off a focused agent for one subtask |
| MCP | Connect outside systems through the Model Context Protocol |
| Permissions | Decide which tools run automatically and which need approval |
| Sessions | Keep context across turns, then resume or fork later |
| Skills, commands, memory | Load from your project's .claude/ folder, same as Claude Code |
If you already know this: the SDK spawns a claude CLI subprocess over stdio, using a bundled binary pinned to the SDK version. That's why hosting differs from a stateless API wrapper.
How does it compare to Anthropic's other options?
Anthropic offers four ways to build, and the choice comes down to who runs the loop.
| You want to | Use | Who runs the loop |
|---|---|---|
| Embed an agent in your own app, on your own servers | Agent SDK | You, in a process you operate |
| Work interactively from a terminal | Claude Code CLI | You, at a keyboard |
| Call the model directly | Client SDK | You write the loop (or use the beta tool runner) |
| Have Anthropic host the agent | Managed Agents (beta) | Anthropic, in a managed or self-hosted sandbox |
Managed Agents, in beta, is Anthropic's hosted harness for long-running tasks. It isn't eligible for HIPAA, and it's only eligible for zero data retention if you self-host it, which rules out the hosted version for some regulated teams.
How do you set it up?
Setup is short. For Python:
python3 -m venv .venv
source .venv/bin/activate
pip install claude-agent-sdk
export ANTHROPIC_API_KEY=your-api-key
A minimal agent is then one query() call. The quickstart pre-approves Read, Edit and Glob with allowed_tools and sets permission_mode="acceptEdits".
Four things that trip people up:
- No
.envloading. Load the API key into the environment yourself. - The system prompt changed. Since v0.1.0 the SDK uses a minimal system prompt by default. Ask for the
claude_codepreset if you want Claude Code's behavior. - Settings leak in by default. Leaving
settingSourcesunset loads user, project and local settings plus CLAUDE.md files, like the CLI. In a deployed or multi-tenant app, pass an empty list. - No claude.ai login. Unless Anthropic has approved it, a product built on the SDK can't offer claude.ai login or its rate limits. Use API keys or a cloud provider.
Three commercial workflows it fits
These are designs, not case studies, using only documented features.
1. Account research brief before a first call
Job: take a company name, read the website and recent news, check your CRM, and write a one-page brief to a file.
How you'd build it: allow WebSearch, Read and Write; connect your CRM through an MCP server and allow only its read tool (for example mcp__crm__get_account, a placeholder name); set max_turns so the agent can't wander. Use a hook to log every URL it opened, so a rep can check sources.
2. CRM hygiene sweep
Job: each night, find duplicate contacts, missing fields and stale deal stages, and propose fixes.
How you'd build it: run an ephemeral container per sweep. Give the agent read access to an export and write access only to a proposals file. Keep CRM write tools out of allowed_tools; a person approves the file before anything goes back.
3. RFP and proposal first draft
Job: read an RFP, pull answers from your past proposals folder, draft a response with gaps flagged.
How you'd build it: point cwd at a folder of approved past answers; allow Read, Grep, Glob and Write. Use a subagent per RFP section so each one works in a tighter context. Store the session so the bid manager can resume it after legal comments.
See our Claude GTM operating system for how these sit inside a wider setup.
What does it cost to run?
Three costs: tokens, paid tools and hosting. Anthropic's hosting docs say token cost usually dominates container cost by an order of magnitude or more, with a minimal container at roughly $0.05 an hour.
| Cost line | Rate checked November 28, 2026 |
|---|---|
| Claude Sonnet 5.5 | $2 input, $10 output per million tokens; cache reads $0.10 |
| Claude Haiku 5.5 | $0.10 input, $0.50 output per million tokens for prompts up to 100,000 tokens; $0.50 and $2.50 above that |
| Claude Opus 5.5 | $4 input, $20 output per million tokens |
| Web search (Claude API tool) | $10 per 1,000 searches plus tokens |
| Container | Roughly $0.05 per hour for a minimal one, per Anthropic |
Worked example (illustrative numbers): one account research brief on Sonnet 5.5 that reads 80,000 input tokens, writes 5,000 output tokens and runs 6 searches.
input 0.080M × $2 = $0.16
output 0.005M × $10 = $0.05
search 6 × $0.01 = $0.06
total ≈ $0.27 per brief
At 400 briefs a month that's about $108, before hosting. Long pages and retries push input up fast; the SDK's automatic prompt caching cuts the cost of repeated context.
The catch in the fine print: the SDK's total_cost_usd is a client-side estimate; Anthropic says not to bill customers from it. Use the Usage and Cost API or the Console. Set max_budget_usd (Python) or maxBudgetUsd (TypeScript) to cap a call's spend.
Where you still need your own plumbing
The SDK saves you the loop. It doesn't save you production. From the hosting docs:
| Gap | What you have to build |
|---|---|
| State on local disk | Transcripts, CLAUDE.md files and working files vanish on restart. Add a SessionStore adapter and separate storage for files |
| One subprocess per session | Size hosts by RAM: agents per host = (RAM minus overhead) ÷ peak per-session RAM |
| No session timeout | Set max_turns; there's no top-level timeout |
| Subagent fan-out | Large parallel fan-outs can hit rate limits; batch the work |
| Multi-tenant leakage | Empty settingSources, per-tenant cwd and config directory, auto memory off |
| Credentials | Keep tool keys out of the agent; inject them at an egress proxy |
For MCP, note three things: connections time out after 30 seconds by default, the SDK won't run an interactive OAuth flow (you pass a token yourself), and acceptEdits mode doesn't approve MCP tools, so list each one in allowedTools. See what MCP is if that's new.
How does it compare with other agent SDKs?
| Claude Agent SDK | OpenAI Agents SDK | Google ADK | |
|---|---|---|---|
| Languages | Python, TypeScript | Python-first | Python, TypeScript, Go, Java, Kotlin |
| Models | Claude (API or cloud providers) | OpenAI by default; other providers via adapters such as LiteLLM | Gemini plus adapters for other models, including Claude |
| Built-in file and shell tools | Yes | Through its sandbox agents, which list filesystem and shell capabilities | Not described on its overview page |
| Core ideas | Loop, tools, hooks, subagents, sessions, permissions | Agents, handoffs, guardrails, sessions, tracing | Build, debug and deploy agents; Google Cloud deploy targets |
| Hosting | You run it; or Anthropic's Managed Agents | You run it | Your own containers or Google Cloud (Cloud Run, GKE, Agent Runtime) |
Pick the Claude Agent SDK when you want Claude working through files and tools with little setup; pick a model-agnostic framework when switching models matters more. Our agent SDKs comparison goes deeper.
How we'd test it
We'd run each workflow above for two weeks and measure:
- Completion rate: share of runs that end with
subtype: successwithin the turn cap. - Cost per finished task: from the Usage and Cost API, not the SDK estimate.
- Human edit time: minutes a rep spends fixing each output.
- Permission misses: any tool call that should have been blocked.
Our verdict, by use case
We score on five criteria, each worth one point: setup effort, fit for commercial workflows, cost transparency, production readiness, and lock-in risk. A point is awarded when the documentation shows the SDK handles that criterion without major custom work.
| Use case | Verdict | lowob score | Why |
|---|---|---|---|
| Research and briefing agents | Use it | 4/5 | Web, file and MCP tools are built in; you still own hosting |
| Document drafting (RFPs, proposals) | Use it | 4/5 | Sessions and subagents suit multi-day files |
| CRM writes without review | Not yet | 2/5 | Possible, but permissions and audit are yours to build |
| Customer-facing chat at scale | Consider Managed Agents or a client SDK | 2/5 | One subprocess per session is heavy for high concurrency |
| Teams wanting model choice | Look elsewhere | 1/5 | Claude-only by design |
Overall: 4/5 for internal GTM agents. It loses a point on production readiness, because state, scaling and multi-tenant isolation are left to you.
What we'd do
- Pick one internal workflow whose output is a file, like the research brief.
- Install the SDK, set
max_turns,max_budget_usdand an emptysettingSourceson day one. - Allow read tools only. Add write tools one at a time, behind a hook that logs each call.
- Run 50 tasks and compare real cost from the Console against the SDK's estimate.
- Decide by week two: keep self-hosting, or move the workflow to Managed Agents.
Common questions
What is the Claude Agent SDK?
A Python and TypeScript library from Anthropic that gives your own application the agent loop, built-in tools, permissions, sessions and hooks that power Claude Code. You write the task and the guardrails; the SDK runs the loop.
Is the Claude Agent SDK free?
The library itself costs nothing to install. You pay for the model tokens it uses at Claude API rates, plus any paid tools such as web search, plus your own hosting. Anthropic's docs put a minimal container at roughly $0.05 an hour and say tokens usually dominate.
What's the difference between the Claude Agent SDK and the Claude API?
With the Client SDK you call the API directly and write the tool loop yourself. The Agent SDK ships the loop, file and shell tools, context management and permissions, so you start from a working agent instead of a chat call.
Is the Claude Agent SDK the same as the Claude Code SDK?
Yes. Anthropic renamed the Claude Code SDK to the Claude Agent SDK. The packages changed from @anthropic-ai/claude-code to @anthropic-ai/claude-agent-sdk, and from claude-code-sdk to claude-agent-sdk in Python.
Can I use my Claude.ai subscription to power an Agent SDK product?
No, not unless Anthropic has approved it. The docs say third-party products built on the SDK shouldn't offer claude.ai login or rate limits, and should use API key authentication instead.
Does the Claude Agent SDK work with MCP servers?
Yes. It connects to MCP servers over stdio, HTTP or SSE, and you can define in-process tools in your own code. MCP tools need explicit permission, usually granted with allowedTools.
Can I run the Claude Agent SDK on Bedrock or Google Cloud?
Yes. The quickstart lists Amazon Bedrock, Claude Platform on AWS, Google Cloud's Agent Platform and Microsoft Foundry, each switched on with an environment variable and that cloud's credentials.
When should I not use the Claude Agent SDK?
When you need a model-agnostic framework, when your agent is a single API call with one tool, or when you don't want to run long-lived processes. In those cases a client SDK, another framework or Anthropic's hosted Managed Agents may fit better.
Sources
- Claude Code docs: Agent SDK overview
- Claude Code docs: Agent SDK quickstart
- Claude Code docs: Migrate to Claude Agent SDK
- Claude Code docs: Hosting the Agent SDK
- Claude Code docs: Track cost and usage
- Claude Code docs: Connect to external tools with MCP
- Claude Platform docs: Pricing
- Claude Platform docs: Managed Agents overview
- OpenAI Agents SDK documentation
- Google Agent Development Kit (ADK) documentation
Last checked November 28, 2026. Written by Chris Wells, lowob.
How to cite this
Free to quote and link with credit. Please link to this page when you use a figure, chart or framework from it.
Cite as: Wells, C. (2026). Claude Agent SDK Review: What It Is Good For in Commercial Teams. lowob RESEARCH. Published 29 November 2026, updated 28 November 2026. https://lowob.com/research/claude-agent-sdk-review/
BibTeX
@online{lowob2026claudeagentsdkreview,
author = {Wells, Chris},
title = {Claude Agent SDK Review: What It Is Good For in Commercial Teams},
organization = {lowob},
date = {2026-11-29},
urldate = {2026-11-28},
url = {https://lowob.com/research/claude-agent-sdk-review/}
}
Using a chart? Each chart has its own link. Charts and data tables are licensed CC BY 4.0: reuse them with the credit line "Source: lowob RESEARCH" and a link to this page.
Changelog
- 29 Nov 2026: First published.