Skip to main content
Watch: I Built an AI App Without Leaving Databricks

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

Terminal
pip install claude-agent-sdk

Source: code.claude.com/docs/en/agent-sdk/quickstart

TypeScript

Terminal
npm install @anthropic-ai/claude-agent-sdk

Source: code.claude.com/docs/en/agent-sdk/quickstart

Quickstart

The first example from the official docs, unchanged. It may need an API key for the model provider it calls.

Python
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())

Source: code.claude.com/docs/en/agent-sdk/quickstart

Features

What the Claude Agent SDK docs say it supports. Not stated means the docs do not say either way.

Claude Agent SDK documented features, each with its source
FeatureValueSource
MCPYescode.claude.com/docs/en/agent-sdk/overview
Multi-agentYescode.claude.com/docs/en/agent-sdk/overview
Durable executionYescode.claude.com/docs/en/agent-sdk/session-storage
Human in the loopYescode.claude.com/docs/en/agent-sdk/user-input
StreamingYescode.claude.com/docs/en/agent-sdk/streaming-output
Structured outputYescode.claude.com/docs/en/agent-sdk/structured-outputs
TracingYescode.claude.com/docs/en/agent-sdk/observability
MemoryYescode.claude.com/docs/en/agent-sdk/overview
EvalsNot statedDocs do not say
Model-agnosticNot statedDocs do not say
LanguagesPython, TypeScriptSee sources below
LicenseAnthropic Commercial Terms of Service (the Python SDK repository is MIT licensed)code.claude.com/docs/en/agent-sdk/overview#license-and-terms
Latest Python releaseclaude-agent-sdk 0.2.168October 15, 2026pypi.org/project/claude-agent-sdk
Latest TypeScript release@anthropic-ai/claude-agent-sdk 0.3.302October 16, 2026registry.npmjs.org/@anthropic-ai/claude-agent-sdk

Claude Agent SDK on Developers Digest

Compare Claude Agent SDK

FAQ

Does Claude Agent SDK support MCP?

Yes, per https://code.claude.com/docs/en/agent-sdk/overview

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.

Newsletter

Agent frameworks, every week

One email per week. Framework releases, new agent tooling and what they mean for what you build.