claude-agent-sdk-python
Calls Claude Agent from Python with async queries, in-process tools, hooks, and interactive sessions.
Calls Claude Agent from Python with async queries, in-process tools, hooks, and interactive sessions.
Claude Agent SDK for Python exposes an async query function and ClaudeSDKClient for bidirectional, interactive conversations with Claude Code. Custom tools and hooks can run as in-process MCP servers, while external MCP servers can be used alongside them. The package bundles the Claude Code CLI by default, requires Python 3.10 or newer, and allows a custom CLI path.
Resource types
Use cases
Platforms
Connect AI agents to authenticated apps, user accounts, and executable tools.
Build model-agnostic agent workflows across Python, .NET, and Java
Runtime
Protocols & integrations
Capabilities
Audience
Public GitHub facts last synced Jul 10, 2026.
Build Python agent workflows with tools, handoffs, guardrails, sessions, and tracing.
Build controllable AI agents in Python or TypeScript