Claude Agent SDK
by Anthropic
Official listing: built and published by Anthropic. More from Anthropic
Lets Python and TypeScript developers embed the Claude Code agent loop in their apps, with built-in tools, hooks, subagents, MCP, permissions, and resumable sessions.
Use it now
Keep it with up to 9 other tools you're setting up, then share them all as one link.
Try this first
Ask your coding agent:
- Hooks
Use Claude Agent SDK to run your callbacks on agent events: ‹what you need›
- Subagents
Use Claude Agent SDK to spawn separate agent instances for focused subtasks: ‹what you need›
- MCP Integration
Use Claude Agent SDK to connect the agent to external tools and data sources: ‹what you need›
Call the API
Auth An API key from Anthropic
Setup guide: code.claude.com/docs/en/agent-sdk/quickstart
Compare
Press Compare to add it to the tray at the bottom of the window, then pick up to 2 others anywhere on the site.
- Access
- API
- Auth
- API Key
- Skills
- 5
Skills
Built-In Tools
Gives the agent Claude Code's tools to read, write, and edit files, run commands, and search the web.
Hooks
Runs your callbacks on agent events such as tool calls or session start to block or modify behavior.
Subagents
Spawns separate agent instances for focused subtasks with isolated context, optionally in parallel.
MCP Integration
Connects the agent to external tools and data sources through Model Context Protocol servers.
Sessions
Persists conversation history to disk so an agent can resume or fork a session with full context.