Claude Agent SDK vs LangGraph: which agent framework should you use?

updated · #3 vs #4 in agent frameworks & automation · prices checked

Claude Agent SDK8.5#3 of 9 in agent frameworkssame since nov 24form: held its place every day for 5 days
LangGraph8.0#4 of 9 in agent frameworkssame since nov 24form: held its place every day for 5 days

which one should you use?

want an agent that reads your files, edits code and runs commands, with Claude Code's own loop, tools, hooks and subagents, inside your Python or TypeScript app? Claude Agent SDK, and it ranks higher on our board. need a long-running workflow you draw yourself, with saved state, crash recovery, human sign-off and any model you like? LangGraph.

Claude Agent SDK ranks higher on our board: #3 vs #4 of 9 agent frameworks, 8.5/10 vs 8.0/10.

#3 of 9 in agent frameworks

Claude Agent SDK

numptr says8.5/10

Claude Code's engine, minus the terminal. bolt it into your own app.

best for
shipping Claude-powered agents that work on files and run commands
why 8.5
same tools, hooks and subagents as Claude Code. you pay API rates, so watch the meter.

full Claude Agent SDK review

#4 of 9 in agent frameworks

LangGraph

numptr says8.0/10

for Python workflows that branch like a family tree.

best for
complex stateful agents
why 8.0
durable and human-in-the-loop. LangSmith seats add up.

full LangGraph review

who wins for which job

agents that work on files and run commands, out of the box

Claude Agent SDK

best for: shipping Claude-powered agents that work on files and run commands.

stateful, branching workflows on any model

LangGraph

best for: complex stateful agents.

the open source licence

LangGraph

LangGraph free tier: framework open source; LangSmith Developer $0 (1 seat). Claude Agent SDK: SDK free to use; Claude API usage billed per token (no free API tier confirmed).

overall, on our scores

Claude Agent SDK

#3 of 9 agent frameworks, 8.5/10. LangGraph: #4, 8.0/10.

the differences, side by side

rank

Claude Agent SDK#3 of 9 in agent frameworks

LangGraph#4 of 9 in agent frameworks

numptr score

Claude Agent SDK8.5/10

LangGraph8.0/10

best for

Claude Agent SDKshipping Claude-powered agents that work on files and run commands

LangGraphcomplex stateful agents

free tier

Claude Agent SDKSDK free to use; Claude API usage billed per token (no free API tier confirmed)

LangGraphframework open source; LangSmith Developer $0 (1 seat)

paid plans

Claude Agent SDKfree SDK; pay Claude API token rates (see Anthropic pricing); governed by Anthropic Commercial Terms

LangGraphopen-source framework free (MIT); LangSmith Developer $0 (1 seat); LangSmith Plus $39/seat/mo + usage (10k base traces and one free small serverless deployment); Enterprise custom

price checked

Claude Agent SDK2026-11-30 at code.claude.com/docs/en/agent-sdk/overview

LangGraph2026-11-30 at langchain.com/pricing

# straight from our rankings data. prices from each vendor's own page.

pick neither if

quick answer: Claude Agent SDK vs LangGraph is a ready-made agent against a box of parts. on our agent frameworks board Claude Agent SDK is #3 (8.5/10) and LangGraph #4 (8.0/10). the Claude Agent SDK wins because it hands you Claude Code's whole agent loop as a library: file editing, shell commands, web search, hooks, subagents, MCP and sessions, working on day one. LangGraph wins when you want to design the workflow yourself: a graph of state, nodes and edges with durable execution and human-in-the-loop, MIT licensed, on any model. as of dec 1, 2026.

the short version

Claude Agent SDK LangGraph
our rank #3, 8.5/10 #4, 8.0/10
best at shipping Claude-powered agents that work on files and run commands complex stateful agents
what it is Claude Code as a library: the same tools, agent loop and context management a low-level orchestration framework and runtime for long-running, stateful agents
you get out of the box built-in tools (read, write, edit files, run commands, search the web), hooks, subagents, MCP, permissions, sessions, skills and plugins graphs of state, nodes and edges, durable execution, streaming, human-in-the-loop, persistence, memory
models Claude only, via an API key, Amazon Bedrock, Claude Platform on AWS, Google Cloud's Agent Platform or Microsoft Foundry your pick. LangGraph doesn't prescribe a model and doesn't need LangChain
languages Python 3.10+ and TypeScript (Node.js 18.14+) Python (pip install -U langgraph) and JavaScript/TypeScript (@langchain/langgraph)
licence governed by Anthropic's Commercial Terms of service MIT
what it costs the SDK is free; every run uses Claude API tokens the framework is free; LangSmith Developer $0 (1 seat, 5k base traces a month), Plus $39 a seat a month (10k traces, one small agent server at no charge)

ranks and scores come straight from our agent frameworks & automation board, and nobody pays to move up it. facts and prices are from each vendor's own docs and pricing pages tonight, in USD before tax.

why the Claude Agent SDK ranks higher

the agent is already built. an agent, in Anthropic's words, plans its own steps and calls tools that read files, run commands or edit code. the SDK gives you the loop that powers Claude Code, so "find the bug in this repo and fix it" is the quickstart, not a fortnight of plumbing.

the grown-up bits come free. permissions decide which tools run on their own and which need a yes from you. hooks run your code at key points in the agent's life, subagents take focused side jobs, sessions resume or fork later, and MCP plugs in outside tools. skills, commands and memory load from your project's .claude/ folder, same as Claude Code.

Python or TypeScript, your choice. both SDKs are first-class, so it fits a FastAPI backend or a Node service without a second language in the building.

the honest bit: it's Claude or nothing, so the bill is Claude API tokens and the model menu is Anthropic's. it's governed by Anthropic's Commercial Terms, not an open source licence. you can't offer claude.ai login or its rate limits in your product unless Anthropic has approved it, and there are branding rules: "powered by Claude" is fine, calling your thing "Claude Code" isn't. full token sums in Claude API pricing.

where LangGraph makes more sense

you draw the map. you define the workflow as a graph and mix fixed steps with model-driven ones in the same graph. when the job is "check this, branch on that, wait for approval, retry the bit that failed", that control is the whole point.

it survives a bad night. durable execution and persistence mean a long-running agent can pick up where it stopped, and human-in-the-loop lets a person approve or steer actions before they happen. built-in memory keeps context across sessions.

any model, open licence. it's MIT on GitHub, it doesn't prescribe prompts, models or agent architecture, and it doesn't need LangChain. you can even put Claude inside it, as one node among many.

the honest bit: it's low-level on purpose, so there's no file-editing, command-running agent in the box: you build the tools and the loop, or reach for LangChain agents or Deep Agents on top. tracing, evals and hosted deployment live in LangSmith, where Plus is $39 a seat a month and usage past the included traces is pay as you go.

can i use both?

yes, and plenty will. LangGraph runs the big workflow (intake, approvals, retries, hand-offs), and one node hands the "go and change the code" job to a Claude Agent SDK agent. you pay for LangSmith if you use it, plus Claude tokens for that node.

which should you pick?

the rest of the field

the table: the rest of the field
rank tool best for free tier paid from numptr score
#3 Claude Agent SDK shipping Claude-powered agents that work on files and run commands SDK free to use; Claude API usage billed per token (no free API tier confirmed) free SDK 8.5/10
#4 LangGraph complex stateful agents framework open source; LangSmith Developer $0 (1 seat) open-source framework free 8.0/10
#1 Mastra production TypeScript agents framework free (Apache 2.0 core; ee/ enterprise code has its own licence); hosted Free plan $0/mo (100K observability events, 15-day trace retention) open-source framework free to self-host 8.5/10
#2 Vercel AI SDK chat UIs, simple tool-calling open source, free free 8.5/10
#5 OpenAI Agents SDK Python multi-agent apps on OpenAI models (others supported) open source (MIT), free free 8.0/10

faq

is the Claude Agent SDK better than LangGraph?

on our board, yes: #3 (8.5/10) to LangGraph's #4 (8.0/10). it's the quicker way to a working agent that touches files and runs commands. LangGraph is the better fit when you need to control every step of a long-running workflow, or use models other than Claude.

can i use Claude with LangGraph?

yes. LangGraph doesn't prescribe a model, so a Claude model can sit in any node, and a node can also call a Claude Agent SDK agent.

are they free?

both cost nothing to install. LangGraph is MIT; LangSmith, its tracing and deployment platform, has a $0 developer plan (1 seat) and Plus at $39 a seat a month. the Claude Agent SDK is governed by Anthropic's Commercial Terms, and every run uses Claude API tokens.

do they work in Python and TypeScript?

both do. the Claude Agent SDK asks for Python 3.10+ or Node.js 18.14+ (pip install claude-agent-sdk, npm install @anthropic-ai/claude-agent-sdk). LangGraph installs with pip install -U langgraph or npm install @langchain/langgraph @langchain/core.

sources

checked 2026-12-01, ~12:43-12:46 AM ET

numptrlast price check 243 prices 76 toolsbuild 439400c6ac · dec 1