# Claude Agent SDK

> Anthropic’s SDK for building production agents with the same agent loop and tools that power Claude Code.

- Website: https://code.claude.com/docs/en/agent-sdk/overview
- Category: AI Agents & Automation
- Source page: https://opendirs.com/en/tools/claude-agent-sdk
- Pricing: Open source
- Starting price: $0
- Public API: Yes
- Open source: Yes
- Chinese language: No
- Accessible from mainland China: Unknown
- Platforms: Web
- Country: United States
- Last verified: Nov 29, 2026

## Overview

The Claude Agent SDK lets developers use Claude Code as a library, giving their own agents the same agent loop, tool use, file editing, sessions and permission controls that power Anthropic’s coding agent. It is available for Python and TypeScript, with an open-source Python package on GitHub under the MIT license. It is the most direct route for teams that want Claude-based agents for coding, research or operations tasks.

**Best for:** Developers building custom agents on Claude models.

## Key features

- Agent loop and built-in tools from Claude Code
- Session management and persistence
- Permission and hook controls
- Python and TypeScript SDKs

## Use cases

- Building an internal code-maintenance agent
- Automating research or support workflows with Claude
- Embedding an agent in a CI pipeline

## Pros

- Battle-tested agent harness from Claude Code
- Open-source SDK with clear docs
- Supports MCP and custom tools

## Cons

- Tied to Anthropic’s Claude models
- Usage is billed through the Claude API

## Alternatives

- [Glasshand](https://opendirs.com/en/tools/glasshand.md)
- [Browser Use](https://opendirs.com/en/tools/browser-use.md)
- [Toolhouse](https://opendirs.com/en/tools/toolhouse.md)
- [Trigger.dev](https://opendirs.com/en/tools/trigger-dev.md)
- [Smithery](https://opendirs.com/en/tools/smithery.md)

## FAQ

### What is Claude Agent SDK?

The Claude Agent SDK lets developers use Claude Code as a library, giving their own agents the same agent loop, tool use, file editing, sessions and permission controls that power Anthropic’s coding agent. It is available for Python and TypeScript, with an open-source Python package on GitHub under the MIT license. It is the most direct route for teams that want Claude-based agents for coding, research or operations tasks.

### Is Claude Agent SDK free?

Claude Agent SDK uses a Open source pricing model (verified Nov 29, 2026).

### Does Claude Agent SDK have an API?

Yes. Claude Agent SDK offers an API for developers.

### Does Claude Agent SDK support Chinese, and is it available in China?

Claude Agent SDK does not support Chinese, and it has unverified availability in mainland China.

### What are the best alternatives to Claude Agent SDK?

Popular alternatives to Claude Agent SDK include Glasshand, Browser Use, Toolhouse, Trigger.dev.

_Last verified: Nov 29, 2026_