Prerequisites
Before installing the Claude Agent SDK, ensure you have:- Python 3.10 or higher - The SDK supports Python 3.10, 3.11, 3.12, and 3.13
Install via pip
Install the Claude Agent SDK using pip:anyio>=4.0.0- For async runtime supportmcp>=0.1.0- For Model Context Protocol supporttyping_extensions>=4.0.0- For Python 3.10 compatibility
Bundled CLI
The Claude Code CLI is automatically bundled with the package - no separate installation required.The SDK uses the bundled CLI by default, so you can start building immediately without additional setup.
Using a custom CLI installation
If you prefer to use a system-wide installation or a specific version of the CLI:Verify installation
Verify your installation by running a simple Python script:Next steps
Quickstart
Get your first agent running in minutes