Claude Agent SDK
The agent harness behind Claude Code, as an SDK.
by Anthropic
What is Claude Agent SDK?
The Claude Agent SDK gives developers the same agent loop, tools and context management that power Claude Code, so they can build their own agents for coding and non-coding tasks. It supports custom tools, MCP servers, subagents, hooks and permission controls in Python and TypeScript.
Key features
- Production agent loop used by Claude Code
- Built-in file, shell and web tools
- MCP, subagents, hooks and skills
- Python and TypeScript
Use cases
- Custom coding agents
- Research and ops agents
- Embedding agents in products
Claude Agent SDK alternatives
Compare all →A lightweight SDK for building multi-agent workflows.
Build controllable, stateful agents as graphs.
Orchestrate role-playing, collaborative AI agent teams.
Microsoft’s open-source framework for multi-agent applications.
The TypeScript agent framework.
Type-safe agent framework from the Pydantic team.
Claude Agent SDK FAQ
What is Claude Agent SDK?
The Claude Agent SDK gives developers the same agent loop, tools and context management that power Claude Code, so they can build their own agents for coding and non-coding tasks. It supports custom tools, MCP servers, subagents, hooks and permission controls in Python and TypeScript.
How much does Claude Agent SDK cost?
Claude Agent SDK is open source. Free SDK; you pay for Claude API usage. Check the official website for current pricing.
Who is Claude Agent SDK best for?
Developers building serious agents on Claude.
Is Claude Agent SDK open source?
Yes, Claude Agent SDK is open source.
What are the best alternatives to Claude Agent SDK?
Popular alternatives include OpenAI Agents SDK, LangGraph, CrewAI, AutoGen. See our full list of Claude Agent SDK alternatives for a comparison.
Listing last reviewed November 2026. Spotted something out of date? Tell us.