← Registry
Agent Official

Claude Agent SDK (TypeScript)

TypeScript framework for building custom AI agents powered by Claude Code, supporting one-off queries, interactive client sessions, custom tools, and hooks.

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.