Install
npm install @anthropic-ai/claude-agent-sdk
$
The Claude Agent SDK for TypeScript (package @anthropic-ai/claude-agent-sdk, Node.js 18+) lets you programmatically build AI agents with Claude Code's capabilities, creating autonomous workers that understand codebases, edit files, run commands, and execute multi-step workflows. Formerly known as the Claude Code SDK, it ships a migration guide covering the breaking changes from that rename. Reach for it when you want to embed Claude Code's agent loop inside a Node or TypeScript application.