The Claude Agent SDK is Anthropic's framework for building production AI agents. Per the official docs, the SDK lets you "build AI agents that autonomously read files, run commands, search the web, edit code, and more." It exposes the same tools, agent loop, and context management that power Claude Code, programmable in Python and TypeScript.
The Claude Agent SDK is unusual in the category. Most agent frameworks give you the loop and the prompts; you bring your own tools. The Claude Agent SDK ships with a complete tool set out of the box: Read, Write, Edit, Bash, Glob, Grep, WebSearch, WebFetch, and a Monitor tool that watches background scripts and reacts to each output line.
The result is a framework you can use to ship an agent in roughly 10 lines of code. The framework handles tool execution, the agent loop, and context management. You provide the prompt, the SDK does the rest.
Beyond the built-in tools, the SDK supports MCP (Model Context Protocol) servers, so you can plug in browser automation (via Playwright MCP), database access, or any custom MCP integration. Subagents let your main agent spawn specialized agents with focused tools. Sessions let you maintain context across separate invocations.
The TypeScript package bundles a native Claude Code binary as an optional dependency, so you do not need to install Claude Code separately to use the SDK.
The SDK is free. You pay for Claude API usage. Starting June 15, 2026, Agent SDK and claude -p usage on subscription plans draws from a new monthly Agent SDK credit, separate from interactive usage limits. The SDK supports authentication via Anthropic API key directly, or via Amazon Bedrock, Google Vertex AI, and Microsoft Azure AI Foundry credentials.
| Axis | Claude Agent SDK | OpenAI Agents SDK | LangChain |
|---|---|---|---|
| Vendor model | Anthropic only | OpenAI only | Any LLM |
| Languages | Python + TypeScript (both first-class) | Python | Python + JavaScript |
| Built-in tools | Read, Write, Edit, Bash, etc. | You write your own | Large ecosystem of tools |
| MCP support | Native | Via custom integration | Via custom integration |
| Subagents | Native | Handoffs primitive | Via LangGraph |
| Best for | Code-aware long-running agents | OpenAI agents + voice | Multi-provider flexibility |
Full breakdown: Claude Agent SDK vs OpenAI Agents SDK.
Pros:
Cons:
I built our internal content QA agent on the Claude Agent SDK. The agent reads a draft markdown file, runs grep against the banned-word list, suggests edits, and writes the cleaned-up draft. The built-in Read, Edit, and Grep tools meant I wrote roughly 30 lines of TypeScript for the whole thing. The same agent on LangChain would have needed tool wrappers, sandbox setup, and prompt scaffolding. For code-aware agents, Claude Agent SDK has the highest signal-to-noise ratio in 2026.
Free SDK on pip or npm. Pay for Claude API usage as you build.
Building agents for Amazon? See the Amazon AI hub.
Per the official Anthropic docs, the Claude Agent SDK lets you 'build AI agents that autonomously read files, run commands, search the web, edit code, and more. The Agent SDK gives you the same tools, agent loop, and context management that power Claude Code, programmable in Python and TypeScript.'
Yes. Both Python and TypeScript are first-class. The TypeScript package ships a native Claude Code binary as an optional dependency so you don't need to install Claude Code separately.
Read, Write, Edit, Bash, Monitor (background script watcher), Glob, Grep, WebSearch, WebFetch, and AskUserQuestion. You can also plug in any MCP server (Playwright, databases, custom APIs) as additional tools.
Per Anthropic's docs: Agent SDK runs the agent loop inside your own process on your infrastructure. Managed Agents is Anthropic's hosted REST API where Anthropic runs the agent and the sandbox. A common path is to prototype with Agent SDK locally, then move to Managed Agents for production at scale.