Agent frameworks & harnesses · Anthropic
Claude Agent SDK
A library that puts Claude Code's agent loop inside your own Python or TypeScript app. It already knows how to read files, edit them, run commands, and search the web.
Last verified:
Features
- The same built-in tools, permissions, sessions, and hooks as Claude Code
- Subagents, MCP connections, skills, and plugins, as listed in the docs
- Python and TypeScript libraries. Other languages can drive the Claude Code CLI instead
- Third-party products must use an API key. Anthropic does not allow them to offer claude.ai login unless previously approved
Pricing summary
Anthropic's docs say use of the SDK is governed by its Commercial Terms, except where a component's own license says otherwise. The Python package's GitHub license is MIT. There is no separate SDK subscription on claude.com/pricing. Model use is billed at Claude API rates. On that page, Opus 5.5 is $4 per million input tokens and $20 per million output tokens, and Sonnet 5.5 is $2 and $10. Managed Agents, a different hosted product, is $0.08 per active session-hour plus standard token rates.
paid
The Agent SDK is the harness behind Claude Code, packaged as a library you run. It is not the Claude chat app.