---
slug: "claude-agent-sdk"
name: "Claude Agent SDK"
effect: "Embeds Claude Code's agent loop, built-in tools and context management in Python or TypeScript apps"
category: "agent-framework"
url: "https://code.claude.com/docs/en/agent-sdk/overview"
github: "anthropics/claude-agent-sdk-python"
pricing: "paid"
license: "Python repo MIT; use governed by Anthropic Commercial Terms of Service"
tags: ["python", "typescript", "claude", "mcp", "hooks", "subagents"]
platforms: []
install_kind: "pip"
date_added: "2026-10-14"
drop_score: 61
stars: 8280
pushed_at: "2026-10-14T19:25:39Z"
signals_status: "ok"
signals_fetched_at: "2026-10-15T01:18:55.298Z"
page: "https://agenttooldrop.com/tools/claude-agent-sdk"
---

# Claude Agent SDK

Embeds Claude Code's agent loop, built-in tools and context management in Python or TypeScript apps

Category: Agent frameworks. Pricing: Paid. License: Python repo MIT; use governed by Anthropic Commercial Terms of Service.

## Why you would want it

The Agent SDK is a library that runs the Claude Code binary, so your agent gets the same tools (read, write and edit files, run commands, search the web), agent loop and context management that power Claude Code. You can add custom tools as in-process MCP servers, run hooks at points in the agent lifecycle, spawn subagents, control which tools run automatically through permissions, and resume or fork sessions. It is available for Python (claude-agent-sdk) and TypeScript (@anthropic-ai/claude-agent-sdk).

## Best for

- Agents that edit files and run commands
- Teams already using Claude Code
- Embedding a coding agent in your own app

## Use it when

You want Claude Code's tool set and permission model inside a process you operate, instead of writing the tool loop yourself.

## Skip it if

You want to use non-Claude models. It needs an Anthropic API key or Claude through Amazon Bedrock, Google Cloud or Microsoft Foundry, and third-party products may not offer claude.ai login unless approved by Anthropic.

## Editor note

The Python and TypeScript SDKs live in separate repos (anthropics/claude-agent-sdk-python and anthropics/claude-agent-sdk-typescript); this entry covers both and tracks the Python repo.

## Install

Install with pip:

```sh
pip install claude-agent-sdk
```

Source: https://github.com/anthropics/claude-agent-sdk-python#readme

## Live signals

Fetched 2026-10-15T01:18:55.298Z (status: ok).

- Repository: anthropics/claude-agent-sdk-python
- Stars: 8,280
- Forks: 1,342
- Open issues and PRs: 552
- License (GitHub): MIT
- Last push: 2026-10-14
- Latest release: v0.2.167 (2026-10-14)

## Links

- Website: https://code.claude.com/docs/en/agent-sdk/overview
- GitHub: https://github.com/anthropics/claude-agent-sdk-python
- Install instructions verified at: https://github.com/anthropics/claude-agent-sdk-python#readme
- Source for this entry: https://code.claude.com/docs/en/agent-sdk/overview
- AgentToolDrop page: https://agenttooldrop.com/tools/claude-agent-sdk
- Full catalog (JSON): https://agenttooldrop.com/tools.json
