Claude Agent SDK (Python) is the official Python counterpart to the TypeScript Agent SDK from Anthropic, designed to let Python developers build powerful autonomous AI agents with Claude Code under the hood. The SDK wraps the core functionality of Claude Code and exposes high-level asynchronous and synchronous interfaces to query prompts, manage sessions, and orchestrate tool use — so you can build agents that understand code, make edits, run bash commands, interact with files, and handle workflows without writing low-level agent loop logic yourself. It ships with a bundled Claude Code CLI for convenience, though you can also point it to a custom installation, and supports defining custom tools and hooks directly in Python, which become callable by the agent during execution.