agent-sdk active

Claude Agent SDK (Python)

Maker: anthropics License: MIT Stars: 7.9k First released: 2025-06-11 Language: Python

About

The Claude Agent SDK for Python is Anthropic's supported way to embed Claude Code's agent loop inside Python applications: it drives the same codebase-aware, tool-using agent programmatically rather than interactively. Custom tools are defined as plain Python functions through a @tool decorator backed by in-process MCP servers, avoiding subprocess overhead while remaining interoperable with external stdio MCP servers; hooks intercept lifecycle events such as PreToolUse for permission and safety control, and the SDK supports subagents and session forking for multi-step workflows. The package bundles the Claude Code CLI automatically, so installation is a single pip install without separate setup. Teams use it to build production automation on top of Claude's agentic capabilities — CI pipelines, internal tooling, and custom agent products — with usage governed by Anthropic's commercial terms. It is actively maintained alongside the TypeScript SDK.

Other entries by anthropics