anthropics/claude-agent-sdk-python
Python SDK enabling programmatic access to Anthropic's Claude Code CLI, an AI agent for autonomous code editing and execution.

Velocity · 7d
+20
★ / day
Trend
→steady
star history
The SDK wraps the bundled Claude Code CLI and exposes an async query interface for sending prompts and receiving responses. It supports configuring system prompts, tool permission allowlists, max turns, and permission modes. By default, the agent has access to file operations, shell commands, and code editing tools.