What's the difference between the Claude Agent SDK and LangGraph?

The Claude Agent SDK wraps the Claude Code binary as a library and runs only Claude, which decides for itself which built-in tool to call next; LangGraph is a model-agnostic runtime where you define the nodes, edges, and shared state by hand, mixing deterministic and LLM-driven steps. Delegation differs too: the SDK spawns a subagent inside its own implicit loop, while a LangGraph agent is only as complex as the graph you draw.

LangGraph’s own distinctive piece is checkpointing: state is persisted after every node, so a run that fails partway through re-invokes from the checkpoint just before the failing node instead of starting over. The Claude Agent SDK has sessions that resume or fork between conversations, but nothing checkpoints progress inside a single run. Tracing splits along a similar line: LangGraph’s native path is LangSmith, while the Claude Agent SDK’s OpenTelemetry spans are still behind a beta flag and use Claude Code’s own names rather than the GenAI ones.

published · updated

sources

keep reading

More on this.

Try Tessary on Cloud.

free · 10,000 traces a month · 1 GB · 30-day retention · $10 one-time credit for triage and RCA · no credit card