AI AgentsInfo
Claude Agent SDK logo

Agent frameworks & harnesses · Anthropic logoAnthropic

Claude Agent SDK

A library that puts Claude Code logoClaude 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 logoClaude Code
  • Subagents, MCP connections, skills, and plugins, as listed in the docs
  • Python and TypeScript libraries. Other languages can drive the Claude Code logoClaude Code CLI instead
  • Third-party products must use an API key. Anthropic logoAnthropic does not allow them to offer Claude logoclaude.ai login unless previously approved

Pricing summary

Anthropic logoAnthropic'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 logoGitHub license is MIT. There is no separate SDK subscription on Claude logoclaude.com/pricing. Model use is billed at Claude logoClaude 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.

Tags

Related tools