Claude Agent SDK

Agent SDK

Definition

Anthropic's Python SDK for building agentic applications with Claude. Provides primitives for sessions, subagent orchestration, tool integration, and lifecycle hooks. Imported as 'claude_agent_sdk'. Simplifies building multi-agent systems compared to raw API orchestration.

Example Usage

from claude_agent_sdk import Agent, Session — use the SDK's built-in session management and hook system rather than building agentic loops from scratch.