# Claude Agent SDK

CreateWithAI Hub page: https://createwithaihub.com/frameworks/claude-agent-sdk
Latest version of this file: https://createwithaihub.com/frameworks/claude-agent-sdk.md

- Type: Framework · Category: Harnesses & Frameworks
- Publisher: Anthropic
- Pricing: Free

Anthropic's Python and TypeScript library for building agents on the same tools and agent loop as Claude Code.

The Claude Agent SDK packages Claude Code's agent loop, built-in tools and context management as a library for Python and TypeScript. Your application can run agents that read and edit files, run commands, search the web, use MCP servers and spawn subagents, with permissions and hooks under your control. It is for developers embedding a capable agent in their own product or automation.

Useful for: Building an internal agent that triages bugs and proposes fixes, or a product feature that runs multi-step tasks over files and tools.

## Key features

- Built-in tools for reading/writing files, running commands and web search
- Hooks, subagents and permission controls
- MCP integration for external tools and data
- Sessions that can be resumed or forked
- Loads skills, commands, memory and plugins like Claude Code

## Connection

- Language: Python, TypeScript / JS
- Focus: Agents & tool use, Multi-agent
- Model support: Single vendor

## Before you start

- Python 3.10+ (Python SDK)

## Install steps from the official documentation

Python:

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

TypeScript:

```
npm install @anthropic-ai/claude-agent-sdk
```

## Limitations

- Uses Claude models; requires API key authentication (or a cloud provider such as Bedrock)
- Third-party products may not offer claude.ai login or rate limits unless approved by Anthropic
- Use is governed by Anthropic's Commercial Terms of Service

## Official links

- Source repository: https://github.com/anthropics/claude-agent-sdk-python
- Documentation: https://code.claude.com/docs/en/agent-sdk/overview
- Source: https://code.claude.com/docs/en/agent-sdk/overview (Capabilities, comparison with CLI/Client SDK/Managed Agents, claude.ai login restriction, Commercial Terms)
- Source: https://github.com/anthropics/claude-agent-sdk-python (Python install command, Python 3.10+ requirement, bundled CLI; MIT LICENSE)
- Source: https://github.com/anthropics/claude-agent-sdk-typescript (TypeScript install command; LICENSE: Anthropic Commercial Terms)
