agent-sdk-builder
Installation
SKILL.md
Claude Agent SDK
Build applications that run the Claude Code agent loop programmatically: agents that read files, write code, run commands, search the web, and delegate to subagents from inside your own program.
Key distinction: the Agent SDK (claude-agent-sdk) runs the full agent loop with built-in
tools. The Anthropic Client SDK (anthropic) makes raw API calls. Use the Agent SDK when you want
an autonomous tool-using agent, not a chat completion.
| TypeScript | Python | |
|---|---|---|
| Package | @anthropic-ai/claude-agent-sdk |
claude-agent-sdk |
| Install | npm install @anthropic-ai/claude-agent-sdk |
pip install claude-agent-sdk |
| Auth | ANTHROPIC_API_KEY env var |
ANTHROPIC_API_KEY env var |
| Entry point | query() |
query() |
| Source | anthropics/claude-agent-sdk-typescript |
anthropics/claude-agent-sdk-python |
The CLI package @anthropic-ai/claude-code ships inside the SDK. No separate install.