Agent framework - verified
Claude Agent SDK: features, install and latest version
Claude Agent SDK is an AI agent framework maintained by Anthropic. As its docs describe it: The Claude Agent SDK is a Python and TypeScript library from Anthropic that gives developers the same tools, agent loop, and context management that power Claude Code, for running agents inside their own applications. It supports Python and TypeScript. License: Anthropic Commercial Terms of Service (the Python SDK repository is MIT licensed). Latest releases: Python package claude-agent-sdk 0.2.168 (October 15, 2026) and TypeScript package @anthropic-ai/claude-agent-sdk 0.3.302 (October 16, 2026).
Homepage - Source on GitHub - License - In our tools directory
- Languages
- 2
- Latest Python
- 0.2.168
- Released
- 2026-10-15
- Features documented
- 8 of 10
Install
Copied verbatim from the page linked under each command.
Python
pip install claude-agent-sdkTypeScript
npm install @anthropic-ai/claude-agent-sdkQuickstart
The first example from the official docs, unchanged. It may need an API key for the model provider it calls.
import asyncio
from claude_agent_sdk import query, ClaudeAgentOptions, AssistantMessage, ResultMessage
async def main():
# Agentic loop: streams messages as Claude works
async for message in query(
prompt="Review utils.py for bugs that would cause crashes. Fix any issues you find.",
options=ClaudeAgentOptions(
allowed_tools=["Read", "Edit", "Glob"], # Auto-approve these tools
permission_mode="acceptEdits", # Auto-approve file edits
),
):
# Print human-readable output
if isinstance(message, AssistantMessage):
for block in message.content:
if hasattr(block, "text"):
print(block.text) # Claude's reasoning
elif hasattr(block, "name"):
print(f"Tool: {block.name}") # Tool being called
elif isinstance(message, ResultMessage):
print(f"Done: {message.subtype}") # Final result
asyncio.run(main())Features
What the Claude Agent SDK docs say it supports. Not stated means the docs do not say either way.
| Feature | Value | Source |
|---|---|---|
| MCP | Yes | code.claude.com/docs/en/agent-sdk/overview |
| Multi-agent | Yes | code.claude.com/docs/en/agent-sdk/overview |
| Durable execution | Yes | code.claude.com/docs/en/agent-sdk/session-storage |
| Human in the loop | Yes | code.claude.com/docs/en/agent-sdk/user-input |
| Streaming | Yes | code.claude.com/docs/en/agent-sdk/streaming-output |
| Structured output | Yes | code.claude.com/docs/en/agent-sdk/structured-outputs |
| Tracing | Yes | code.claude.com/docs/en/agent-sdk/observability |
| Memory | Yes | code.claude.com/docs/en/agent-sdk/overview |
| Evals | Not stated | Docs do not say |
| Model-agnostic | Not stated | Docs do not say |
| Languages | Python, TypeScript | See sources below |
| License | Anthropic Commercial Terms of Service (the Python SDK repository is MIT licensed) | code.claude.com/docs/en/agent-sdk/overview#license-and-terms |
| Latest Python release | claude-agent-sdk 0.2.168October 15, 2026 | pypi.org/project/claude-agent-sdk |
| Latest TypeScript release | @anthropic-ai/claude-agent-sdk 0.3.302October 16, 2026 | registry.npmjs.org/@anthropic-ai/claude-agent-sdk |
Claude Agent SDK on Developers Digest
Compare Claude Agent SDK
- Claude Agent SDK vs Google Agent Development Kit (ADK)
- Claude Agent SDK vs LangGraphArticle
- OpenAI Agents SDK vs Claude Agent SDKArticle
- Claude Agent SDK vs OpenAI Agents SDKTool comparison
- Vercel AI SDK vs Claude Agent SDKTool comparison
- Claude Agent SDK in our tools directoryTool page
- All agent frameworks in one tableFeature matrix
FAQ
Does Claude Agent SDK support MCP?
Which languages does Claude Agent SDK support?
Python and TypeScript. Published packages: claude-agent-sdk (Python) and @anthropic-ai/claude-agent-sdk (TypeScript).
How do I install Claude Agent SDK?
For Python: "pip install claude-agent-sdk", as shown at https://code.claude.com/docs/en/agent-sdk/quickstart. This page lists 2 install commands, each copied from the linked source.
What is the latest version of Claude Agent SDK?
As of October 18, 2026: Python package claude-agent-sdk 0.2.168 (October 15, 2026), https://pypi.org/project/claude-agent-sdk/ and TypeScript package @anthropic-ai/claude-agent-sdk 0.3.302 (October 16, 2026), https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk.
What license is Claude Agent SDK released under?
Anthropic Commercial Terms of Service (the Python SDK repository is MIT licensed). The license is at https://code.claude.com/docs/en/agent-sdk/overview#license-and-terms.
Does Claude Agent SDK support durable execution?
Yes, per https://code.claude.com/docs/en/agent-sdk/session-storage
Does Claude Agent SDK support human-in-the-loop?
Yes, per https://code.claude.com/docs/en/agent-sdk/user-input
Is Claude Agent SDK model-agnostic?
Its official docs, read on October 18, 2026, do not say.
Which features does Claude Agent SDK document?
8 of the 10 tracked here: MCP, Multi-agent, Durable execution, Human in the loop, Streaming, Structured output, Tracing and Memory. Not stated in its docs: Evals and Model-agnostic.
Sources
Last verified from the pages below.
- Agent SDK overview - code.claude.com
- Agent SDK quickstart - code.claude.com
- Sessions docs - code.claude.com
- Session storage docs - code.claude.com
- Handle approvals and user input - code.claude.com
- Streaming output docs - code.claude.com
- Structured outputs docs - code.claude.com
- Observability with OpenTelemetry - code.claude.com
- GitHub README (Python) - github.com
- GitHub README (TypeScript) - github.com
- PyPI: claude-agent-sdk - pypi.org
- npm registry: @anthropic-ai/claude-agent-sdk - registry.npmjs.org
Newsletter
Agent frameworks, every week
One email per week. Framework releases, new agent tooling and what they mean for what you build.