- bash pip install claude-agent-sdk==0.2.185
Claude Agent SDK by Anthropic
Anthropic's SDK that exposes the agent loop, tools and context management behind Claude Code, for building custom agents in Python and TypeScript.
Use it in: API / SDK Works with: MCP Multi-agent
On this page
Usage data: latest readings Nov 17 to Nov 19, 2026, last checked Nov 19, 06:26 UTC. Date of each number
What Claude Agent SDK does
Claude Agent SDK is a vendor agent SDK from Anthropic. You use it through a Python library and a TypeScript library. Its documentation covers MCP servers and subagents or parallel agents. It can run models from Anthropic, Amazon Bedrock, Google and Azure. It is used from Python and TypeScript. It is free and open source (MIT (Python SDK)); you pay only for the models it calls.
Teams use it for: DevOps and CI, Incident response. See examples.
Key facts
| Maker | Anthropic |
|---|---|
| Type | Vendor agent SDK |
| License | MIT (Python SDK) |
| Interfaces | Python library, TypeScript library |
| Main language | Python |
| Open issues and PRs | 669 |
Pricing
The SDK is free to install; usage is billed through the Claude API or a Claude subscription.
Checked Nov 5, 2026. Prices change often; confirm before you buy.
Quick answers
- Free to start?Yes
- Open source?Yes (MIT (Python SDK))
- Where you use itPython library, TypeScript library
- Supports MCP?Yes
- Model providersanthropic, amazon, google, azure
- Subagents / multi-agent?Yes
- Feature comparisonAll agents
- Closest alternativeLangChain · all alternatives
What's new in Claude Agent SDK: November 2026 so far
November brought incremental updates to the Claude Agent SDK with bug fixes and improved hook handling. The bundled Claude CLI was updated to maintain compatibility with the latest tools.
- Added on_failure option for HookMatcher to control callback failure behavior
- Fixed intermittent test failures on Windows by supporting both Bash and PowerShell in shell-dependent tests
- Updated bundled Claude CLI to version 2.1.318
9 releases this month · summarised from the official release notes · all months
How teams use Claude Agent SDK
AgentGid articles about Claude Agent SDK
Sonnet Builds, Opus Reviews, Haiku Reads: Does the Claude Code Advisor Save Money?
A viral post says running Sonnet, Haiku and Opus together in Claude Code gives better code for fewer tokens. We checked it against Anthropic's docs and prices: when the advisor pays off, when it costs more, and why a written plan matters more than the model mix.
Best AI Agent Frameworks in 2026: LangGraph, CrewAI, OpenAI Agents SDK and More
The AI agent frameworks developers actually use, ranked on live downloads and GitHub data, with a plain guide to which one fits Python, TypeScript, multi-agent or Microsoft-stack work.
How to Build an AI Agent: No-Code Builders, Frameworks and SDKs
A practical guide to building your first AI agent: choosing between no-code builders, open-source frameworks and model vendors' SDKs, the core agent loop, tools, guardrails and testing, with live usage data for each option.
Get started with Claude Agent SDK
| npm | npm install @anthropic-ai/claude-agent-sdk |
|---|---|
| PyPI | pip install claude-agent-sdk |
These commands use the packages tracked on this page. The vendor may recommend a different installer; see the official documentation.
What Claude Agent SDK users report right now
Open Users report that Python SDK releases up to 0.2.157 bundled a Claude Code CLI older than 2.1.280, so setting the model to claude-opus-5-5 failed with a 400 error on every turn unless a newer CLI path was given.
Workaround: Upgrade to SDK 0.2.158 or later, which bundles Claude CLI 2.1.280.
Reported on GitHub · 10 👍
The most discussed problems in its GitHub repository, checked Nov 17, 2026. Written by AgentGid in its own words; statuses and fix versions come from the project's own pages. Reports are users' accounts, not AgentGid tests.
Add-ons for Claude Agent SDK: save tokens, add memory and tools
LiteLLM
One gateway for 100+ models with spend tracking, budgets, rate limits and fallbacks.
Langfuse
Traces every model and tool call with its cost and latency, and runs evaluations.
Firecrawl
Turns websites into clean Markdown or structured data the agent can read.
E2B
Runs agent-written code in isolated cloud sandboxes instead of on your machine.
Composio
Connects the agent to 1,000+ apps and APIs with managed sign-in.
Mem0
Adds long-term memory, so the agent remembers users and past work across sessions.
Listed because each tool documents support for Claude Agent SDK or for agent frameworks in general. Savings and results depend on your workload.
Claude Agent SDK alternatives
Best Claude Agent SDK alternatives compared · All agent frameworks and SDKs
| # | Agent | Gid Score | Downloads 7d | 7d | 30d | Stars | Latest release | Price | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 |
LangChainLangChain |
79 | 41.1M | up 5.7% | down 2.7% | 150K+76/day | 1.5.22d ago | Free (OSS) | |||
| 2 |
LangGraphLangChain |
75 | 20.1M | up 5.5% | up 29.2% | 45.1K+48/day | 1.2.23yesterday | Free (OSS) | |||
| 3 |
AI SDKVercel |
68 | 47.2M | up 3.9% | up 38.4% | 28.1K+30/day | 7.0.1772d ago | Free (OSS) | |||
| 5 |
MastraMastra |
63 | 3.7M | up 14.9% | up 49.9% | 29.6K+23/day | 1.84.02d ago | Free (OSS) | |||
| 6 |
OpenAI Agents SDKOpenAI |
62 | 7.2M | up 4.8% | up 38.9% | 30.8K+21/day | 0.25.02d ago | Free (OSS) | |||
| 7 |
Deep AgentsLangChain |
59 | 3.1M | up 4.9% | up 51.3% | 31.4K+29/day | 0.2.112d ago | Free (OSS) | |||
Head to head: Claude Agent SDK vs LangChain · Claude Agent SDK vs LangGraph · Claude Agent SDK vs AI SDK · Claude Agent SDK vs Mastra · Claude Agent SDK vs OpenAI Agents SDK · Claude Agent SDK vs Strands Agents
Tools used with Claude Agent SDK
What 1,216 public GitHub projects that depend on Claude Agent SDK use with it, from their dependency files.
- TypeScript71.5%
- Zod49.8%
- React45.6%
- ESLint38.3%
- tsx33.0%
- Tailwind CSS32.7%
- dotenv29.9%
- Vitest28.7%
- Model Context Protocol SDK (JavaScript)27.1%
- Lucide React25.7%
Used far more often here than in AI-built projects overall: what sets Claude Agent SDK projects apart.
- diff10.4% · 12.1×
- Electron8.8% · 8.1×
- OpenTelemetry10.4% · 7.1×
- ws20.0% · 6.1×
- undici10.2% · 6.1×
- chokidar9.5% · 5.5×
- qrcode (JavaScript)10.4% · 5.4×
- OpenAI24.4% · 5.3×
Ratings from people who use Claude Agent SDK
No ratings yet. Used Claude Agent SDK? Rate it and say what it is good and bad at.
Claude Agent SDK news
-
Claude Agent SDK: Elevated errors for Claude Mythos 5.2 and Claude Fable 5.2
Major impact; resolved after 22 min.
-
Claude Agent SDK 0.2.185 released
bash pip install claude-agent-sdk==0.2.185
-
Claude Agent SDK 0.2.184 released
bash pip install claude-agent-sdk==0.2.184
-
Claude Agent SDK: Elevated errors for Claude Sonnet 5.5 and Claude Fable 5.2
Major impact; resolved after 1 h 14 min.
-
Claude Agent SDK: Elevated errors on claude.ai, the Claude API, and Claude Code
Major impact; resolved after 2 h 28 min.
-
Claude Agent SDK: Degraded performance for Claude Fable 5.1
Minor impact; resolved after 26 min.
What changed: recent Claude Agent SDK releases
41 stable releases in the last 90 days · Monthly summary · Full changelog
- bash pip install claude-agent-sdk==0.2.184
Claude Agent SDK prices over time
Claude Agent SDK popularity and usage data
Claude Agent SDK was downloaded 29.3M times from npm and PyPI in the week ending Nov 17, 2026, up 5.9% on the week before and up 37.6% over the last 30 days compared with the 30 before. The GitHub repository has 8,588 stars, 299 of them added in the last 30 days. The latest stable release is 0.2.185, published Nov 19, 2026; there were 16 stable releases in the past 30 days. It was mentioned in 8 Hacker News posts and comments over the last 30 days.
Download the raw daily series: claude-agent-sdk.csv
Gid Score breakdown
Gid Score shows public popularity and activity (usage, GitHub stars, mentions, growth), not the quality of the product. Each component is scored 0 to 100 from public signals; a dash means no data for it. How the Gid Score works.
How fresh these numbers are
| Number | Latest reading | Last checked |
|---|---|---|
| Package downloads | Nov 17, 2026 | Nov 19, 06:24 UTC |
| GitHub stars | Nov 19, 2026 | Nov 19, 06:26 UTC |
| Hacker News mentions | Nov 18, 2026 | Nov 19, 06:26 UTC |
We fetch every source once a day. Registries publish downloads and page views a day or two late, so their latest reading trails the check. A reading more than 4 days old is marked out of date; the Gid Score still uses it until a newer one arrives.
Reliability
From the vendor's public status page · now: All systems operational
12 incidents reported in the last 30 days, 10 of them major or critical, 10.1 hours in total from report to resolution.
Each bar is one month; the last one is the month so far. Vendors post even short slowdowns, so read this as how often something was reported, not as downtime. Compare with other agents →
| Nov 19, 2026, 09:10 UTC | Elevated errors for Claude Mythos 5.2 and Claude Fable 5.2 · major |
|---|---|
| Nov 16, 2026, 07:49 UTC | Elevated errors for Claude Sonnet 5.5 and Claude Fable 5.2 · major |
| Nov 13, 2026, 13:09 UTC | Elevated errors on claude.ai, the Claude API, and Claude Code · major |
| Nov 8, 2026, 08:28 UTC | Degraded performance for Claude Fable 5.1 · minor |
| Oct 27, 2026, 15:09 UTC | Elevated errors for Claude Sonnet 5.5 · major |
| Oct 27, 2026, 09:14 UTC | Elevated errors for Claude Sonnet 5.5 · major |
Claude Agent SDK FAQ
How much does Claude Agent SDK cost?
The SDK is free to install; usage is billed through the Claude API or a Claude subscription.
Is Claude Agent SDK open source?
Yes. Claude Agent SDK is open source, released under the MIT (Python SDK) license.
How popular is Claude Agent SDK?
Claude Agent SDK was downloaded 29.3M times from npm and PyPI in the week ending Nov 17, 2026, up 5.9% on the week before and up 37.6% over the last 30 days compared with the 30 before. The GitHub repository has 8,588 stars, 299 of them added in the last 30 days. The latest stable release is 0.2.185, published Nov 19, 2026; there were 16 stable releases in the past 30 days.
What is the latest version of Claude Agent SDK?
The latest stable release we track is 0.2.185, published on Nov 19, 2026.
What are the alternatives to Claude Agent SDK?
The closest alternatives in the same category by Gid Score are LangChain, LangGraph, AI SDK, Mastra.
For the makers of Claude Agent SDK badges, corrections
Add a live badge to your README or site:
[](https://agentgid.com/agents/claude-agent-sdk/)
[](https://agentgid.com/agents/claude-agent-sdk/)
[](https://agentgid.com/agents/claude-agent-sdk/)
[](https://agentgid.com/agents/claude-agent-sdk/)
Something wrong or outdated on this page? Send a correction with a link to the official source. More for makers.
Where these numbers come from
npm: @anthropic-ai/claude-agent-sdk. PyPI: claude-agent-sdk. GitHub: anthropics/claude-agent-sdk-python. See data sources for how each one is collected.