Claude Agent SDK (TypeScript) is an official TypeScript/JavaScript software development kit from Anthropic that makes it easier to build AI agents using the same agent architecture that powers Claude Code and other Claude-based autonomous systems. It provides abstractions and tools that let developers programmatically create, configure, and run intelligent agents that can read files, run commands, edit source code, manage sessions, and execute workflows without having to implement the agent loop manually — the SDK handles much of the complexity for you. Since it’s designed to tap into Claude Code’s capabilities, it integrates tightly with the underlying agent runtime, giving access to built-in tools like file system access, command execution, and code editing, and enabling features such as custom agents, hooks, and subagents.
Features
- Programmatic agent creation and control
- Built-in tools for file reading, editing, and command execution
- TypeScript types and interfaces for safer development
- Custom agent workflows with hooks and subagents
- Session and context management
- Seamless integration with Claude Code environments