Claude Agent SDK

Anthropic's SDK (Python and TypeScript) exposing the agent harness behind Claude Code — tools, context management, permissions and MCP.

The Claude Agent SDK gives developers the same agent loop that powers Claude Code: file and shell tools, automatic context compaction, subagents, hooks, permission controls and MCP servers. It is suited to building coding, research or operations agents that act in an environment rather than just chat. Model usage is billed through the Claude API or supported cloud platforms.

Type
SDK
Category
AI & ML
Maintainer
Anthropic
First released
2025
License
Mixed
Pricing
Paid — The Python SDK repository is MIT-licensed; the npm package points to Anthropic's own terms. Claude model usage is billed per token.
Level
Advanced
Technologies
python, typescript, llm, agents
GitHub stars
8,719
Weekly downloads
10,187,876 (pypi)
Latest release
[object Object]
Last verified
26 Nov 2026

What Claude Agent SDK is used for

  • Coding agents
  • Autonomous research or ops agents
  • Custom agents with MCP tools

Strengths

  • Production-tested harness
  • Built-in context management
  • Fine-grained permissions and hooks

Limitations

  • Designed around Claude models
  • Agent runs can consume many tokens

Claude Agent SDK alternatives

How it relates to other tools

Built with the same technologies

Official links

Sources

Explore