Claude Agent SDK
Anthropic's SDK for building production agents with Claude Code as a library, in Python and TypeScript.
Tags
Description
Python package on PyPI and a TypeScript package on npm wrap Claude Code as a library for custom agents. PyPI claude-agent-sdk 0.2.178 (verified 2026-11-06).
Agent access
Related
- Claude Code: Anthropic's agentic coding tool that reads your codebase, edits files, runs commands and integrates with dev tools; available in terminal, IDE, desktop and browser.
Guides & comparisons
- Let an agent send email safely through the Resend MCP server (Guide): Give an agent email through Resend's MCP server without letting it mail anyone, anything, at any time: pin the sender, fence off local files, draft first, deny-by-default tool gating, and a human approval step that shows recipients and subject. Tested offline against resend-mcp 2.28.0.
- Bookkeeping agent stack (Stack): An agent that reconciles Stripe or Paddle revenue against the books in Xero, reads receipts and statements, and prepares draft entries for an accountant. It runs on read-only credentials, and every write needs a human.
- Data analysis agent stack (Stack): An agent that answers questions from your data: it queries DuckDB files, a ClickHouse warehouse or Postgres through read-only MCP servers, runs heavier analysis in a sandbox, reads spreadsheets and PDFs, and is tested and traced so you can trust the numbers.
- Agent that can buy things (Stack): The pieces for an agent that pays for APIs per call with x402 stablecoins and buys from merchants with controlled virtual cards, with spend limits, proof of user intent and a full audit trail.
- Research agent stack (Stack): An agent that searches the web and the scholarly record, reads full sources, runs analysis code in a sandbox and cites what it found, with tracing so you can audit how it got there.
Sources
- https://code.claude.com/docs/en/agent-sdk/overview
- https://github.com/anthropics/claude-agent-sdk-python
- https://github.com/anthropics/claude-agent-sdk-typescript
- https://pypi.org/project/claude-agent-sdk/
Machine-readable
- JSON
- Markdown
- Source file on GitHub (edit via pull request)