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.

Features

  • Native Python agent building toolkit
  • Async and sync query interfaces
  • Bundled Claude Code CLI for convenience
  • Custom tools and hook support
  • Workspace and context configuration
  • Integrated tool invocation and result handling

Project Samples

Project Activity

See All Activity >

Categories

Agentic AI

License

MIT License

Follow Claude Agent SDK for Python

Claude Agent SDK for Python Web Site

Other Useful Business Software
Deploy Apps in Seconds with Cloud Run Icon
Deploy Apps in Seconds with Cloud Run

Host and run your applications without the need to manage infrastructure. Scales up from and down to zero automatically.

Cloud Run is the fastest way to deploy containerized apps. Push your code in Go, Python, Node.js, Java, or any language and Cloud Run builds and deploys it automatically. Get fast autoscaling, pay only when your code runs, and skip the infrastructure headaches. Two million requests free per month. And new customers get $300 in free credit.
Try Cloud Run Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Claude Agent SDK for Python!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

Python

Related Categories

Python Agentic AI Tool

Registered

2026-02-04