- Claude Code Now Defaults to Sonnet 5 — 1M Context, New Pricing, and What Changes
- The Record-Breaking AI “Claude Fable 5” — Why It Was Throttled Just 3 Days After Launch
- ChatGPT vs Claude vs Gemini Paid Subscriptions Compared (Measured July 2026)
Answer Capsule
As of May 2026, the major AI agent SDKs come in three strands: Claude Agent SDK (Python/TypeScript), OpenAI Responses API (the successor to Assistants, slated to sunset on August 26, 2026), and LangChain (MIT open source). Claude’s strength is the richness of its built-in tools, LangChain’s is its integration ecosystem, and OpenAI Responses’ is hosting convenience.
The time has come to seriously pick an AI agent SDK. As a Claude Code Max subscriber, I run the Claude Agent SDK in real production every day, while on the client side I’ve been evaluating OpenAI’s lineup and LangChain together in automation pipelines. Along the way I reached the conclusion that “which SDK is best?” is the wrong question. The three SDKs occupy different levels of abstraction, so when the use case differs, so does the answer. This post takes the official docs as of May 2026 as its primary source and compares the three SDKs’ definition, pricing, features, integration, and production-fit on the same scale.

The comparison criteria — five axes, side by side
Throughout the post I use the following five axes consistently.
- Definition and abstraction level: is it a simple LLM wrapper, does it include the agent loop, or is it an orchestration framework on top of that.
- Pricing: model token rates + the SDK’s own cost (if any) + hosting cost.
- Built-in features: tool use, memory, permissions, subagents, MCP support.
- Integration: diversity of model providers, connectivity to external systems.
- Production-fit: debugging, observability, session management, deployment path.
Now let’s look at the three SDKs in turn.
1. Claude Agent SDK — “Claude Code as a library”
Definition (official verbatim): Anthropic’s official docs describe the Claude Agent SDK as “Build production AI agents with Claude Code as a library.” In other words, it exposes the agent loop, context management, and tool execution proven in the Claude Code CLI, as-is, as Python and TypeScript libraries.
Supported languages: the two languages the official page names are Python (pip install claude-agent-sdk) and TypeScript (npm install @anthropic-ai/claude-agent-sdk). The TypeScript SDK is stated to “bundle a native Claude Code binary for your platform as an optional dependency,” so no separate Claude Code install is needed.
Built-in tools: the built-in tools the official docs name are Read, Write, Edit, Bash, Monitor, Glob, Grep, WebSearch, WebFetch, and AskUserQuestion. That is, file-system, shell, and web access work immediately at the SDK level.
Six core features: the official page’s Tabs structure lists exactly six — Built-in tools, Hooks, Subagents, MCP, Permissions, Sessions. Hooks provide lifecycle callbacks such as PreToolUse, PostToolUse, Stop, SessionStart, SessionEnd, and UserPromptSubmit, and MCP connects “external systems via the Model Context Protocol: databases, browsers, APIs, and hundreds more.”
Pricing (official price sheet, verbatim): the Claude Agent SDK itself is a library, so you only bear the token rates. As of May 18, 2026, Anthropic’s official price sheet (platform.claude.com/docs/en/about-claude/pricing) is as follows.
| Model | Input (1M) | Output (1M) | Cache hit |
|---|---|---|---|
| Claude Opus 4.7 | $5 | $25 | $0.50 |
| Claude Sonnet 4.6 | $3 | $15 | $0.30 |
| Claude Haiku 4.5 | $1 | $5 | $0.10 |
As a Claude Code Max subscriber, my interactive use is handled within the flat quota, but when I run automation pipelines with the Agent SDK, the token rates apply as-is. As stated at the top of the official page, “Starting June 15, 2026, Agent SDK and claude -p usage on subscription plans will draw from a new monthly Agent SDK credit, separate from your interactive usage limits” — that is, from June 15, 2026, a separate Agent SDK credit counter applies even within a Max subscription.
The difference from the Client SDK: the same page’s comparison tab puts it briefly and precisely: “With the Client SDK, you implement a tool loop. With the Agent SDK, Claude handles it.” That is, with the raw API the developer must write the tool_use → tool_result loop themselves, whereas the Agent SDK handles the same loop internally. In practice, code that took 50–80 lines to write the same task with the raw Messages API shrank to under 10 lines with the Agent SDK.
Sources: Claude Agent SDK Overview, Claude API Pricing
2. OpenAI Responses API — the official heir to Assistants (sunset 2026-08-26)
Important context: as of May 2026, OpenAI’s agent SDK is at a major turning point. OpenAI’s official community notice (community.openai.com/t/.../1354666) states the following: “We’re winding down the Assistants API beta. It will sunset one year from now, August 26, 2026.” That is, the existing Assistants API has a deprecation notice dated August 26, 2025 and a sunset date of August 26, 2026, and the recommended successor is the Responses API.
Definition (official verbatim): OpenAI’s official reference defines the Responses API as “OpenAI’s most advanced interface for generating model responses,” handling “text and image inputs, and text outputs,” and emphasizes the stateful pattern “Create stateful interactions with the model, using the output of previous responses as input.”
Built-in tools (official announcement, verbatim): in the same sunset notice, OpenAI puts it as “Responses are simpler, and include built-in tools (deep research, MCP, and computer use). With a single call, you can run multi-step workflows across tools and model turns.” Additionally, the official reference names File search, Web search, Computer use, Function calling, and support for all remote MCP servers.
Compatibility with Assistants: OpenAI’s official docs state “After achieving feature parity in the Responses API, the Assistants API has been deprecated,” showing that the features corresponding to Threads/Runs/Assistant objects have been migrated to the Conversation and Thread-like objects inside the Responses API.
Pricing: the Responses API is billed with a model-token rate plus some per-tool surcharges, with no separate SDK license cost. The exact per-model rates should be confirmed directly on OpenAI’s official pricing page (a verbatim quote is omitted here, as external fetch was blocked at the time of writing).
Real-world impression: I was using the Assistants beta in client automation, then began migrating to the Responses API right after the sunset notice. The biggest change is that a multi-step workflow finishes within a single call. In the Assistants era, a five-step form of create thread → add message → create run → poll status → retrieve messages was forced, but with Responses, as the official docs state, “With a single call, you can run multi-step workflows.” That said, since the migration deadline is August 26, 2026, it’s safest to start any new project on the Responses API, no exceptions.
Sources: OpenAI Assistants API Beta Deprecation notice, OpenAI Responses Overview
3. LangChain — the MIT open-source agent framework

Definition (official verbatim): LangChain’s official docs (docs.langchain.com/oss/python/langchain/overview) define LangChain as “An open source framework with a prebuilt agent architecture and integrations for any model or tool.” The main GitHub repo (langchain-ai/langchain) calls itself “The agent engineering platform” and, as of May 2026, holds about 137,000 stars.
License: LangChain is MIT-licensed open source. Both the official GitHub repository (langchain-ai/langchain) and its sibling project LangGraph (langchain-ai/langgraph) adopt the MIT license. The SDK itself costs $0, and the user bears only the token rates of the model provider they choose.
The three-layer structure: the LangChain ecosystem splits clearly into three layers.
- LangChain (core): prebuilt agent architecture + provider abstraction. The official page names OpenAI, Google Gemini, Claude (Anthropic), OpenRouter, Fireworks, Baseten, Ollama, Azure, AWS Bedrock, HuggingFace, and more as official integration examples.
- LangGraph: the official docs state “LangChain’s agents are built on top of LangGraph.” It handles graph-based durable execution and persistence. Also MIT open source.
- LangSmith: an observability, tracing, and evaluation platform. The official docs put it as “Use LangSmith to trace requests, debug agent behavior, and evaluate outputs.” It’s a paid SaaS with a separate plan structure. The Developer plan includes 1 seat + 5,000 base traces a month free; the Plus plan includes unlimited seats + 10,000 base traces a month.
Language support: core LangChain is Python (99.3%), and JavaScript/TypeScript is provided in a separate repo (LangChain.js). So on a single-codebase basis, the Python advantage is clear.
Latest release: as of May 2026, langchain-core==1.4.0 (released 2026-05-11) is the latest. In other words, it’s an active project under vigorous maintenance.
My real-world impression: I adopted LangChain as the main framework on one client project that needed multi-model routing. The biggest strength is that you can swap the model provider with a one-line code change — a Claude → GPT → Gemini comparison experiment is possible in 30 seconds. The biggest weakness, on the other hand, is that the high abstraction level makes debugging hard — when an error occurs you have to climb back up LangChain’s internal callback chain, so to trace what payload the actual model call went out with, an observability tool like LangSmith becomes effectively mandatory.
Sources: LangChain GitHub, LangChain Overview Docs
Three-way comparison matrix — the whole thing in one table
| Criterion | Claude Agent SDK | OpenAI Responses API | LangChain |
|---|---|---|---|
| Abstraction level | Agent loop + built-in tools | Hosted stateful API | Multi-model framework |
| Provider lock-in | Anthropic models only | OpenAI models only | Multi-provider (10+) |
| Language | Python, TypeScript | All OpenAI SDK languages | Python (core), JS separate |
| License | Commercial ToS | Commercial ToS | MIT open source |
| Built-in tools | Read/Write/Edit/Bash/Glob/Grep/WebSearch/WebFetch/Monitor/AskUserQuestion (10 listed) | File search/Web search/Computer use/MCP/Code interpreter | User-defined + integration modules |
| MCP support | First-class (dedicated tab in official docs) | First-class (remote MCP stated) | Available via integration modules |
| Session/memory | JSONL file + resume |
Hosted stateful | LangGraph durable execution |
| Permission control | allowed_tools + Permissions API |
Per-tool enablement | User-implemented |
| Observability | Hooks + local logs | OpenAI console | LangSmith (paid) |
| Model pricing (2026-05) | Opus 4.7 $5/$25, Sonnet 4.6 $3/$15, Haiku 4.5 $1/$5 | Separate official price sheet | Chosen model’s rate as-is |
| Status (2026-05-18) | Active, GA | Assistants sunsets 2026-08-26, moving to Responses | Active, langchain-core 1.4.0 |
Selection guide — recommendations by use case
1. Automating code/file work with Claude models → Claude Agent SDK
With built-in Read/Write/Edit/Bash, you start immediately without implementing your own tools. Best for CI/CD pipelines and code-review bots. In this scenario I’ve never seen a choice beyond the Agent SDK.
2. OpenAI models + hosted stateful + code interpreter → OpenAI Responses API
File search, Code Interpreter, and Computer use are provided as hosted, so the infra burden is low. But start any new project on the Responses API without fail — the Assistants beta sunsets on August 26, 2026.
3. Multi-model comparison/routing/avoiding vendor lock-in → LangChain + LangGraph
When you want to swap Claude, GPT, and Gemini within one codebase. MIT-licensed, so no SDK cost of its own. The debugging burden is offset by LangSmith.
4. Production + minimal infra → Claude Managed Agents or OpenAI Responses API
As the official page states, Claude Managed Agents run on “Anthropic-managed infrastructure,” and OpenAI Responses is a hosted stateful API. If you’d rather not run sandbox and session infrastructure yourself, these two options are the natural answer.
5. Local prototyping + direct filesystem access → Claude Agent SDK
Because it’s a library that runs on “files on your infrastructure,” it’s the most natural when you have to touch a local codebase directly.
Three things to double-check before you decide
Whichever of the three SDKs you pick, I recommend confirming these three once more before you commit.
First, the cost of provider lock-in. The Claude Agent SDK and OpenAI Responses API each bind you to a single provider. Switching to another model can cost you a rewrite. LangChain absorbs that burden with abstraction, but the price is higher debugging cost.
Second, the migration deadline. The OpenAI Assistants beta is confirmed to sunset on August 26, 2026, so if you’re starting fresh now you have to go with the Responses API, no exceptions. If you have existing Assistants code, you’ll need to migrate via OpenAI’s official “Assistants to Conversations migration guide.”
Third, the cost structure of the observability tool. If you use LangChain seriously in production, LangSmith effectively becomes your companion, and the Plus plan carries a separate SaaS cost of unlimited seats + 10,000 traces a month. By contrast, the Claude Agent SDK’s Hooks are free and observable enough with local logs.
The three SDKs aren’t competitors but friends occupying different levels of abstraction. Even within the same project, I split the work — code tasks to the Claude Agent SDK, the search interface to the OpenAI Responses API, and the multi-model evaluation pipeline to LangChain. Try to entrust everything to one SDK and that SDK’s weakness becomes your project’s weakness. I hope this piece serves as a one-page map that draws the boundary lines between the three SDKs clearly.
Sources: Claude Agent SDK Overview · Claude API Pricing · OpenAI Assistants Deprecation notice · OpenAI Responses API Reference · LangChain GitHub · LangChain Overview Docs