# LangGraph vs CrewAI vs OpenAI Agents SDK vs Claude Agent SDK

Source: https://lowob.com/research/agent-sdks-compared/
Publisher: lowob (https://lowob.com/)
Author: Chris Wells
Published: 2026-11-29
Function: Strategy
Research checked: 2026-11-28

> Summary: LangGraph, CrewAI, OpenAI Agents SDK and Claude Agent SDK compared on state, human approval, tracing, MCP, hosting and license. Choose on recovery, not demos.

<section id="answer">

**Choose an agent framework on who owns state and how you recover from a failed step, not on demos.** LangGraph checkpoints a graph and resumes it. CrewAI persists Flow state and is quickest for role-based crews. The OpenAI Agents SDK is a light toolkit with serializable run state. The Claude Agent SDK gives you Claude Code's full agent loop, tools and permissions.

</section>

**IN SHORT:** All four support tool calling, MCP and some form of human approval. They differ in where state lives, what survives a crash, and how much of the agent is decided for you. This comparison is based on vendor documentation as of November 2026, not hands-on testing.

## Key facts

| | |
| --- | --- |
| Compared | LangGraph, CrewAI, OpenAI Agents SDK, Claude Agent SDK |
| Licenses | MIT (LangGraph, CrewAI, OpenAI Agents SDK); Anthropic Commercial Terms (Claude Agent SDK) |
| GitHub stars (November 2026) | CrewAI about 60.6k; LangGraph about 44.0k; OpenAI Agents SDK about 30.4k |
| MCP support | All four |
| Durable state | LangGraph checkpointers (Postgres recommended for production); CrewAI @persist (SQLite default) |
| Languages | Claude Agent SDK: Python and TypeScript; the others are compared here on their Python docs |
| Basis | Vendor docs and GitHub pages, checked November 28, 2026 |

## Why state and recovery decide it

An agent is a loop: the model picks a step, a tool runs, the result goes back to the model. Demos run the loop once and it works. Production runs it thousands of times, and some of those runs fail halfway: a timeout, a rate limit, a human who takes two days to approve a refund.

The question that matters is what happens next. Can you resume from step four, or do you start again and send the email twice? That depends on who owns state: the framework, a database you pick, or your own code. Read [what an agent framework is](https://lowob.com/research/what-is-an-agent-framework/) for the basics.

## Side-by-side comparison

| | LangGraph | CrewAI | OpenAI Agents SDK | Claude Agent SDK |
| --- | --- | --- | --- | --- |
| **State model** | Graph state saved as checkpoints per thread (`thread_id`); separate stores for long-term memory | Flow state (dict or Pydantic model) with a UUID; `@persist` saves it | Sessions hold conversation history; `RunState` can be serialized | Session transcript (prompts, tool calls, results) written to disk as JSONL |
| **Recovery from a failed step** | Resume from the last checkpoint on the same thread | Resume with `kickoff(inputs={"id": ...})`; fork with `restore_from_state_id` | Restore `RunState` from JSON and run again; approval isn't exactly-once, so use idempotency keys | `resume` by session ID; sessions persist the conversation, not files; file checkpointing reverts edits |
| **Human-in-the-loop** | `interrupt()` pauses; `Command(resume=...)` continues; needs a checkpointer | `@human_feedback` (CrewAI 1.8.0+) pauses a Flow | `needs_approval` on tools; `result.interruptions`; approve or reject, then resume | Permission rules, modes and a `canUseTool` callback; hooks can block any call |
| **Tracing and OTel** | LangSmith; OTel export to other backends supported | Built-in tracing to CrewAI AMP; OTel spans to its platform | Built-in tracing to OpenAI; 30+ third-party processors; OTel not mentioned | OTLP export of metrics, log events and traces (traces in beta) |
| **MCP** | MCP adapter (beta `langchain.mcp`) | `mcps` field on agents, or `MCPServerAdapter` | MCP tools alongside function tools | Native MCP connections |
| **Hosting** | Self-host, or LangSmith Deployment | Self-host, or CrewAI AMP (cloud or on-premise) | Self-host in your own Python app | Self-host; the SDK runs the Claude Code CLI as a child process. Anthropic's Managed Agents is a separate hosted option |
| **License** | MIT | MIT | MIT | Anthropic Commercial Terms |

The detail fluent readers will care about: in LangGraph, a node restarts from its beginning when you resume after an interrupt. Any code before `interrupt()` runs again, so side effects there must be idempotent (safe to repeat). The OpenAI docs give the same warning from the other direction: approval doesn't guarantee a tool runs exactly once after a crash.

## The same task, built four ways

The task: a renewal agent reads an account's usage, drafts a renewal email with a discount, waits for a manager to approve the discount, then sends it and logs the result in the CRM. The approval might take two days.

| Step | LangGraph | CrewAI | OpenAI Agents SDK | Claude Agent SDK |
| --- | --- | --- | --- | --- |
| Read usage, draft email | Two nodes in a graph | A Crew inside a Flow step | An agent with a usage tool | One `query()` with a CRM MCP server |
| Pause for approval | `interrupt()` in the approve node; Postgres checkpointer saves state | `@human_feedback` on the approve step, with `@persist` | Mark the send tool `needs_approval=True`; store `RunState` as JSON on your server | A `canUseTool` callback or ask rule on the send tool; store the session ID |
| Two days later | Invoke with `Command(resume=...)` and the same `thread_id` | `kickoff(inputs={"id": ...})` | `RunState.from_json(...)`, approve, `Runner.run(...)` | `resume=session_id`; across hosts, use a `SessionStore` |
| Avoid double-send | Keep the send after the interrupt; idempotency key on the send | Idempotency key on the send | Idempotency key (the docs say so) | Idempotency key; a hook can block repeat sends |

What this shows: LangGraph and CrewAI were built for the "wait two days" case. The OpenAI Agents SDK supports it if you store and protect the run state yourself. The Claude Agent SDK can do it, but its approval model is built around tool permissions in a live session, and session files live on the machine that created them. To resume on another host you add a `SessionStore`, or, as the docs suggest, capture the results as application state and pass them into a fresh session.

## When to use none of them

Don't use an agent framework if you can draw the flowchart in advance. If the renewal email is always "pull usage, fill template, send for approval", that's a workflow with one model call in it. Plain code or a workflow tool is cheaper, faster and easier to audit. See [workflow automation vs AI agents](https://lowob.com/research/workflow-automation-vs-ai-agents/) and [build vs buy for AI agents](https://lowob.com/research/build-vs-buy-ai-agents/).

Use an agent when the next step genuinely depends on what the last one found.

## Verdict by use case

<section id="verdict">

| Use case | Our pick | Why |
| --- | --- | --- |
| Long-running, approval-heavy workflows (finance, renewals, regulated) | **LangGraph** | Checkpoints per thread, a documented interrupt and resume pattern, Postgres for production |
| Fast multi-agent prototypes with clear roles | **CrewAI** | Crews of role-based agents, Flows for control, persistence in one decorator |
| Light agents on OpenAI or mixed models, inside an existing app | **OpenAI Agents SDK** | Few primitives, built-in tracing, tool-level approvals, works with 100+ models |
| Agents that work on files, code, documents and shell, with strict tool permissions | **Claude Agent SDK** | Claude Code's built-in tools, layered permissions and hooks, OTLP export |
| Fixed, predictable steps | **None** | A workflow is cheaper and easier to debug |

</section>

## How we'd test it

We haven't run these head to head. Here's the test we'd use, and that we'd suggest you run before committing:

1. Build the renewal task above in each framework you're considering.
2. Kill the process while it waits for approval. Restart. Check it resumes without redoing the draft.
3. Approve twice from two browser tabs. Check only one email goes out.
4. Send traces to your existing backend over OpenTelemetry. Check you can find one run by account ID.
5. Swap the model. Count the lines of code you change.
6. Time how long a new engineer takes to explain the code back to you.

## What we'd do

1. Write down your top agent use case and whether it needs to wait for a person.
2. If it waits for hours or days, shortlist LangGraph and CrewAI first.
3. If it works on files or code, add the Claude Agent SDK to the list.
4. Run the six-step test above on two frameworks, not four.
5. Put idempotency keys on every tool that sends, pays or writes, whatever you pick.

## Common questions

**LangGraph vs CrewAI: which is better?**
LangGraph if you need exact control over state and recovery: it checkpoints the graph per thread and resumes from saved state. CrewAI if you want role-based multi-agent crews quickly, with Flows and @persist for state. For regulated or long-running work, LangGraph's model is easier to reason about.

**What's the difference between the Claude Agent SDK and the OpenAI Agents SDK?**
The Claude Agent SDK runs Claude Code's agent loop as a library, with built-in file, shell and web tools, permissions and hooks. The OpenAI Agents SDK is a lighter toolkit of agents, handoffs, guardrails and sessions that works with OpenAI and 100+ other models.

**Which agent frameworks support MCP?**
All four. LangChain has an MCP adapter, CrewAI agents take an mcps field, the OpenAI Agents SDK exposes MCP tools alongside function tools, and the Claude Agent SDK connects MCP servers natively.

**Which frameworks support OpenTelemetry?**
LangSmith can send LangGraph traces over OpenTelemetry to other backends. The Claude Agent SDK exports OTLP traces (beta), metrics and log events. CrewAI exports OTel spans to its own platform. The OpenAI Agents SDK uses its own tracing with pluggable processors; its tracing page doesn't mention OpenTelemetry.

**Are these frameworks open source?**
LangGraph, CrewAI and the OpenAI Agents SDK are MIT-licensed. The Claude Agent SDK is governed by Anthropic's Commercial Terms of Service, except components with their own license file.

**How do I recover when an agent step fails?**
It depends on who owns state. LangGraph and CrewAI resume from saved state. The OpenAI Agents SDK lets you serialize run state and resume. The Claude Agent SDK resumes a session's conversation, but not file changes, which need file checkpointing.

**When should I not use an agent framework at all?**
When the steps are known in advance. A fixed sequence of API calls with one model call in the middle is a workflow, and plain code or a workflow tool is cheaper to run and easier to debug.

**Which agent framework is most popular?**
By GitHub stars in November 2026, CrewAI leads with about 60.6k, then LangGraph with about 44.0k and the OpenAI Agents SDK with about 30.4k. Stars measure interest, not production fitness, so test recovery before you pick.

## Next move

Run the kill-and-resume test on your top two candidates this week. For the wider field, see our [top 5 agent frameworks for production](https://lowob.com/research/top-5-agent-frameworks-for-production-by-state-model-and-cloud/) and [what an agent framework is](https://lowob.com/research/what-is-an-agent-framework/).

## Changelog

- 2026-11-28: Edited and fact-checked before launch: rechecked licenses, GitHub stars, CrewAI Flow persistence and `@human_feedback` (1.8.0+), LangGraph interrupt behavior, OpenAI tracing (no OpenTelemetry mention, 30+ processors) and the Claude Agent SDK's sessions, permissions and OTLP export against the docs; corrected the Claude Agent SDK hosting note (it runs the Claude Code CLI as a child process) and noted Managed Agents as Anthropic's hosted option; added an eighth Common question; added visual direction.

## Sources

- [LangGraph docs: persistence](https://docs.langchain.com/oss/python/langgraph/persistence)
- [LangGraph docs: interrupts](https://docs.langchain.com/oss/python/langgraph/interrupts)
- [LangGraph on GitHub](https://github.com/langchain-ai/langgraph)
- [LangSmith docs: trace with OpenTelemetry](https://docs.langchain.com/langsmith/trace-with-opentelemetry)
- [LangChain docs: MCP](https://docs.langchain.com/oss/python/langchain/mcp)
- [CrewAI docs: Flows](https://docs.crewai.com/en/concepts/flows)
- [CrewAI docs: MCP overview](https://docs.crewai.com/en/mcp/overview)
- [CrewAI docs: tracing](https://docs.crewai.com/en/observability/tracing)
- [CrewAI on GitHub](https://github.com/crewAIInc/crewAI)
- [OpenAI Agents SDK docs](https://openai.github.io/openai-agents-python/)
- [OpenAI Agents SDK docs: human in the loop](https://openai.github.io/openai-agents-python/human_in_the_loop/)
- [OpenAI Agents SDK docs: tracing](https://openai.github.io/openai-agents-python/tracing/)
- [OpenAI Agents SDK on GitHub](https://github.com/openai/openai-agents-python)
- [Claude Agent SDK overview](https://code.claude.com/docs/en/agent-sdk/overview)
- [Claude Agent SDK: sessions](https://code.claude.com/docs/en/agent-sdk/sessions)
- [Claude Agent SDK: permissions](https://code.claude.com/docs/en/agent-sdk/permissions)
- [Claude Agent SDK: observability with OpenTelemetry](https://code.claude.com/docs/en/agent-sdk/observability)

*Last checked November 28, 2026. Written by Chris Wells, **lowob**.*
