# anthropics/claude-agent-sdk-python

Repository: https://github.com/anthropics/claude-agent-sdk-python
Canonical: https://ross.abutalabs.com/products/claude-agent-sdk-python
Language: Python
License: MIT
License Family: permissive
Last push: 2026-08-25T22:47:08+00:00

## Health v2 (maintenance only)
Score: 81/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 99, release rhythm 87, longevity 32
- inputs: {"age_days": 448, "days_push": 8, "days_rel": 7, "gap_med": 1, "n_releases_24m": 152}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 7981, forks 1249 (observed 2026-08-28T04:10:10.490900+00:00)

## What it is
The official Python SDK for building agents on top of Claude Code, providing async query APIs, bidirectional conversations, custom tools via in-process MCP servers, hooks, and permission controls. The Claude Code CLI is bundled with the package so no separate installation is required.

## Use cases
- build ai agents in python with claude
- programmatically drive claude code from a script
- add custom tools to a claude agent via mcp
- automate coding tasks with an llm agent
- run interactive bidirectional conversations with claude
- control tool permissions for an ai agent

## When to choose
- you want to build Python applications or automations powered by Claude Code's agent capabilities
- you need custom in-process tools, hooks, and fine-grained permission control over agent actions
- you prefer an async Python API with a bundled CLI for zero-setup

## When to avoid
- you need a provider-agnostic agent framework that works with models other than Claude
- you want a lightweight raw LLM API client rather than an agentic tool-use SDK
- your project cannot use Python 3.10+ or the bundled Node-based Claude Code CLI

## Facets
- artifact type: library
- maturity: active
- function: agent-framework, llm-inference, sdk, chatbot
- domain: large-language-models, developer-tools
- platform: python, cli, cross-platform
- tags: claude, anthropic, claude-code, mcp, async, anyio, tool-use, agentic-coding, ai-agents

## Member repositories
- anthropics/claude-agent-sdk-python (main) score 81

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:10.490900+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:32:35.014727+00:00, confidence not recorded.
  - readme: https://github.com/anthropics/claude-agent-sdk-python (fetched 2026-08-28T04:10:10.490900+00:00, sha 5784b4224140)
- Data as of 2026-08-30T08:39:29.467469+00:00.
