Claude Code SDK renamed to Claude Agent SDK
The Claude Code SDK has been renamed to the Claude Agent SDK to reflect its broader applications beyond just coding.
What changed
The Agent SDK enables you to programmatically build AI agents with Claude Code’s capabilities — the same tools, agent loop, and context management, now available as a library in Python and TypeScript.
Installation
# Python
pip install claude-agent-sdk
# TypeScript
npm install @anthropic-ai/claude-agent-sdk
Key features
- Built-in tools (Read, Write, Edit, Bash, Glob, Grep, WebSearch, WebFetch)
- Hooks for lifecycle events (PreToolUse, PostToolUse, Stop, etc.)
- Subagent support for parallel task delegation
- MCP server integration
- Session management with resume and fork
- Full permission control