Skip to content

AI Agent Frameworks in 2026: LangGraph, CrewAI, ADK Compared

A practical comparison of LangGraph, CrewAI, OpenAI Agents SDK, Google ADK and others, sorted by who owns the loop and where state lives.

Technology AI 14 min read Add as preferred source
Editorial illustration of several branching paths converging on one glowing checkpoint marker
Editorial illustration of several branching paths converging on one glowing checkpoint marker

Most of what separates the big agent frameworks in 2026 is marketing. What actually separates them is two questions: who owns the agent loop, and where does the state live when your process gets killed halfway through a refund?

Here’s the short answer before the long one. LangGraph and Google’s ADK 2.0 have landed on the same shape: an explicit workflow graph that can pause, persist and resume, and Microsoft’s Agent Framework has its own workflow layer. CrewAI gives you role-based “crews” and, next to them, Flows, which is the part I’d put in production. The OpenAI and Claude SDKs are thin loops around one vendor’s models, and that’s a feature. And OpenAI now also sells you the loop itself, hosted, which shifts the question more than any framework release this year.

If you’ve had a prototype that was flawless in a notebook on Friday and then someone asked on Tuesday what happens when the worker restarts mid-run, you know the problem. A model call and a tool call in a while loop is the easy part. Everything below is organised around the Tuesday question.

Strip an agent down and it’s a loop. Send messages to a model, and if it asks for a tool, run the tool, feed the result back and go round again until the model says it’s done. Frameworks differ in three things layered on top of that: who runs the loop, what survives between iterations, and how you stop a run to ask a human something.

OpenAI’s own docs draw the cleanest version of this. Their Agents API runs a managed Codex harness for you and saves the session’s configuration, turns and items on their side. The Agents SDK runs inside your application, and you own deployment, storage and approvals. Calling the Responses API directly means you build the loop yourself[1]. That’s three possible owners: your code, a library’s runtime, or the vendor’s servers.

The graph runtimes sit in the middle. You describe the workflow as nodes and edges, the library checkpoints state after each step to storage you choose, and a paused run is just a saved checkpoint waiting for an answer. LangGraph and ADK 2.0’s Workflow work this way, and Microsoft Agent Framework has a workflow layer of its own. Pick on that axis first, and the logo second.

A diagram with three columns showing who runs the agent loop (your code, a graph runtime, the vendor) and where state is stored in each case

LangChain and LangGraph both hit 1.0 in October 2025, and the relationship between them flipped from what most people assume. LangChain’s create_agent is built on the LangGraph runtime, with middleware hooks for things like summarisation and human approval[2]. LangChain called 1.0 its first major stable release and promised no breaking changes until 2.0[3]. So “LangChain or LangGraph?” is mostly a dead question. If you use create_agent you’re already running a LangGraph graph, and you drop down a level when you want to draw the graph yourself. LangChain says Uber, LinkedIn and Klarna run LangGraph in production, which is a vendor claim, but a specific one[4]. On 7 November 2026 pip resolved langgraph 1.2.20.

Here’s the Tuesday question answered in LangGraph. A refund over 100 needs a human, and the run has to survive however long that human takes.

from typing import TypedDict
from langgraph.graph import StateGraph, START, END
from langgraph.types import interrupt, Command
from langgraph.checkpoint.memory import InMemorySaver
class State(TypedDict):
order_id: str
amount: float
result: str
def lookup(state: State) -> dict:
return {"amount": 180.0} # stand-in for a real order lookup
def route(state: State) -> str:
return "approve" if state["amount"] > 100 else "refund"
def approve(state: State) -> dict:
# Pauses the run here. The payload is surfaced to whoever resumes it.
ok = interrupt({"question": f"Refund {state['amount']} for {state['order_id']}?"})
return {"result": "refunded" if ok else "denied"}
def refund(state: State) -> dict:
return {"result": "refunded"}
builder = StateGraph(State)
builder.add_node("lookup", lookup)
builder.add_node("approve", approve)
builder.add_node("refund", refund)
builder.add_edge(START, "lookup")
builder.add_conditional_edges("lookup", route, {"approve": "approve", "refund": "refund"})
builder.add_edge("approve", END)
builder.add_edge("refund", END)
graph = builder.compile(checkpointer=InMemorySaver())
cfg = {"configurable": {"thread_id": "refund-1042"}}
graph.invoke({"order_id": "1042"}, cfg) # runs until interrupt(), then stops
graph.invoke(Command(resume=True), cfg) # the human said yes; continues inside approve()

The thread_id is how LangGraph finds the saved checkpoint, and Command(resume=True) is the answer that comes back from the human. InMemorySaver is for tests. Swap in a database-backed checkpointer for real work, because a pause that lives in process memory dies with the process, which defeats the whole exercise. One more trap: when a run resumes, the node that called interrupt() starts again from its first line, so any side effect you put above the interrupt will fire twice. Keep the nodes that pause small and free of side effects.

The cost is that you now own a state schema and a graph. For a three-step agent that’s overkill, and LangGraph also carries a recursion_limit setting for the day your loop doesn’t terminate.

The CrewAI project describes two building blocks. Crews are groups of agents with roles, goals and tasks that collaborate autonomously, and Flows are controlled, event-driven workflows[5]. Crews read beautifully. You write a role, a goal and a backstory, and it feels like hiring. But autonomous collaboration means every run can take a different path, and that’s exactly what you don’t want near money. My view is that the production-grade half of CrewAI is Flows, and Crews are what you call from inside a Flow step when you actually want open-ended work.

A Flow with the same refund rule looks like this.

from crewai.flow.flow import Flow, listen, router, start
class Refund(Flow):
@start()
def lookup(self):
self.state["amount"] = 180
return 180
@router(lookup)
def route(self):
return "approve" if self.state["amount"] > 100 else "refund"
@listen("approve")
def needs_approval(self):
print("queue for a human")
@listen("refund")
def auto_refund(self):
print("refund it")
Refund().kickoff()

Name your handlers differently from the labels they listen to. CrewAI 1.15.37 rejects a class where @listen("approve") sits on a method called approve, with an error about an infinite loop, at the moment the class is defined.

The thing to plan for is release speed. PyPI shows CrewAI shipping almost daily through October 2026, many of them pre-releases[6]. The recent changelog adds conversational flows, declarative flow definitions run with crewai run --definition, and JSON-first crews[7]. That’s a lot of surface moving at once. Pin your version.

The Agents SDK is the smallest of the big abstractions: agents, tools, handoffs, guardrails, sessions and tracing. It’s provider-agnostic, supporting the Responses and Chat Completions APIs plus 100+ other models, and needs Python 3.10 or newer[8]. It also ships a TypeScript package[9]. It’s still 0.x, with 0.24.0 uploaded on 15 October 2026[8], so read changelogs before upgrading.

from agents import Agent, Runner, function_tool
@function_tool
def get_order_status(order_id: str) -> str:
"""Look up the shipping status of an order."""
return "shipped" # stand-in
agent = Agent(
name="Support",
instructions="Answer order questions. Use the tool for status.",
tools=[get_order_status],
)
result = Runner.run_sync(agent, "Where is order 1042?", max_turns=5)
print(result.final_output)

The max_turns argument is your runaway-loop brake, and in 0.24.0 it defaults to 10. Handoffs are the SDK’s answer to multi-agent work: one agent hands the conversation to another. They suit delegation well and get awkward for true parallel collaboration, which is where graph runtimes earn their complexity.

The bigger news is that OpenAI stopped being only a library vendor. The Agents API went into public beta on 10 September 2026 and runs the Codex harness on OpenAI’s side[10]. OpenAI’s docs rate its integration effort as low, against medium for the SDK, and let you pick an OpenAI-hosted sandbox, your own, or none[1]. Meanwhile Agent Builder, the visual workflow tool from the 2025 AgentKit bundle, is scheduled to shut down on 30 November 2026[10]. Its migration path exports workflows as Agents SDK code, which tells you where OpenAI thinks serious work ends up: in code.

ADK Python 2.0 reached general availability on 19 May 2026, and ADK Go 2.0 followed on 30 June 2026[11]. The headline of 2.0 is graph-based workflows, plus collaborative agents and dynamic workflows, and the docs flag breaking changes coming from 1.x[11]. Sessions written by 2.0 are reportedly readable by ADK 1.28 and later but not by older 1.x versions. On 7 November 2026 pip resolved google-adk 2.14.0.

from google.adk import Agent
def get_order_status(order_id: str) -> dict:
"""Look up the shipping status of an order."""
return {"status": "shipped"}
root_agent = Agent(
name="support",
model="gemini-2.5-flash", # swap for whichever Gemini model you're on
instruction="Answer order questions. Use the tool for status.",
tools=[get_order_status],
)

Put that in a package and adk web gives you a local dev UI, and adk run gives you a terminal loop. The README describes deployment to Cloud Run or Vertex AI Agent Engine, and integration with the A2A protocol for talking to remote agents[12]. Java, Kotlin and TypeScript packages exist alongside Python and Go[13], though feature parity between languages isn’t guaranteed. If you’re a Google Cloud shop, ADK is the obvious pick. If you’re not, nothing in it is a reason to move.

Microsoft Agent Framework hit 1.0 general availability on 3 April 2026 for .NET and Python, as an open-source successor that folds Semantic Kernel and AutoGen into one SDK[14]. One analyst write-up puts Semantic Kernel in maintenance mode, with critical fixes and security patches promised through at least April 2027[15], and says AutoGen has been in maintenance since 2 October 2025[16]. If you have Semantic Kernel code in production, that’s your migration clock. If you’re starting fresh in C#, it’s the default. If you’re on Python and not near Azure, you have more interesting options.

The Claude Agent SDK is the harness behind Claude Code, packaged as a library for Python and TypeScript. The docs frame the difference from the plain client SDK neatly: with the client SDK you implement the tool loop, with the Agent SDK Claude handles it with built-in tool execution. It reaches Claude through Anthropic’s API or through Bedrock, Google Cloud and Microsoft Foundry[17]. That’s a deliberate trade. You get a very capable file-and-shell agent out of the box and give up model choice.

Pydantic AI is the one I’d look at for typed Python services. Its durable-execution story is unusually broad: Temporal, DBOS, Prefect, Restate, AWS Lambda, Airflow and two more engines[18]. That’s a different philosophy from LangGraph. Instead of shipping its own checkpoint store, it hands durability to infrastructure you may already run.

Strands Agents is AWS’s open-source SDK, released in May 2025 and built on a model-driven idea: you give the model a prompt and tools and let it plan. It’s Python, with TypeScript in preview, and pairs with Bedrock AgentCore, the managed runtime, though it runs fine on Lambda, Fargate, EC2 or EKS without it[19].

My own stack is TypeScript on Cloudflare Workers, so this is the shelf I read hardest. Mastra reached 1.0 in January 2026[20] and has a Cloudflare deployer, with one warning that matters: Workers has no filesystem, so file-based storage configs have to be swapped for something like Turso or Postgres[21]. Cloudflare’s own Agents SDK takes a different approach. Each agent is a Durable Object with its own SQL storage, scheduling and recoverable execution, and the docs say the SDK exists to make agent harnesses run well on Cloudflare[22]. That sentence is the whole industry trend in miniature, and I’ll come back to it.

Frameworks churn. The protocols underneath them stopped. The Linux Foundation launched the Agentic AI Foundation in December 2025 with three projects, and by 22 October 2026 it hosted ten, including MCP, A2A, AGENTS.md, goose, Agent Skills, Open Responses, OpenEnv and OpenSandbox[23]. A2A joined on 17 August 2026, so the protocol for reaching tools and the protocol for agents reaching each other now share a neutral home[24].

The practical upshot is modest but real. If your tools are MCP servers and your cross-agent calls speak A2A, swapping the framework above them costs you orchestration code, not integrations. That’s the cheapest insurance in this whole space.

For a single agent with a short life, one vendor and no human in the loop, use the vendor’s SDK and set a turn limit. Don’t build a graph for something that’s three steps long.

When runs last minutes or days, branch on business rules, or need an approval, you want a graph runtime. Choose by where you live: LangGraph if you’re cloud-neutral and in Python or TypeScript, ADK 2.0 if you’re on Google Cloud or need Go or Java, Microsoft Agent Framework if you’re on .NET. If you’d rather keep orchestration in Temporal or DBOS, Pydantic AI is the cleaner fit.

For role-based prototypes that a non-engineer needs to read, start in CrewAI, but move the control flow into a Flow before real users arrive. For TypeScript on Workers, read Cloudflare’s Agents SDK before you read anything else, because it solves the state problem where your code already runs.

There’s a reasonable counter-view that all of this is too much machinery, and that a 50-line loop over a model’s tool-calling API beats any framework you’ll have to pin and upgrade. For one tool and one prompt, I agree. It stops being true the day you need to pause a run, because that’s when you start rebuilding checkpointing by hand.

Version churn is the first. ADK moved from 1.x to 2.0 with breaking changes, the OpenAI SDK is still 0.x, and CrewAI releases most days. Pin versions, and read changelogs as if they were migration guides.

The second is dependency collisions. On 7 November 2026, installing crewai 1.15.37 into the same environment as openai-agents 0.24.0 made pip complain: the OpenAI SDK wants openai 3.x, and CrewAI had resolved 2.54.0. Mixing frameworks in one virtualenv is a way to spend an afternoon. Give each its own environment, or its own service.

Third, the OpenAI Agents API is a beta. One third-party write-up says it isn’t available if you need zero data retention or EU residency, while the Responses API is[10]. And a managed harness means your sessions live on someone else’s servers.

Fourth, evidence. I’m not giving you a benchmark table, because I couldn’t find one comparing these frameworks on the same task that I’d trust. GitHub star counts in the roundups come from different dates and I’ve left them out. The LangGraph and CrewAI snippets above were run with stubbed steps and no model attached, against langgraph 1.2.20 and crewai 1.15.37. The OpenAI and ADK snippets were only import-and-construct checked, and nothing here was run against a live model. Run them yourself before you build on them.

Read the evidence in a row. LangChain rebuilt its agent abstraction on a graph runtime. Google rebuilt ADK around one. Microsoft merged two frameworks into one SDK with its own workflows. CrewAI added Flows next to Crews. Everyone arrived at the same shape: explicit workflow, checkpointed state, a pause for a human, MCP for tools, and A2A for peers. When four competitors converge like that, the shape has stopped being a differentiator.

At the same time the loop is moving into platforms. OpenAI runs it for you in the Agents API. AWS pairs Strands with a managed runtime. Cloudflare says its SDK exists to run harnesses well on its platform. The Agent Builder shutdown, with its path back to SDK code, says the visual-builder layer lost to code-first.

So here’s the claim I’ll defend: the lock-in in agent systems isn’t your orchestration code, it’s your persisted state. Checkpoints, sessions and tool-call histories are what you can’t move cheaply, and ADK’s 1.x to 2.0 session note is a small preview of the problem. Rewriting a graph is an afternoon. Migrating ten thousand paused runs is a project. Choose a framework the way you’d choose a database: by where the data ends up and how you get it out.

A diagram showing agent frameworks as a thin layer between a stable protocol layer (MCP and A2A) below and a persisted-state layer above

  • Write down who owns the loop: your code, a graph runtime, or the vendor.
  • Name where a paused run’s state is stored, and how you’d export it.
  • Set a hard turn or recursion limit on every agent.
  • Put any approval or money-moving step behind an explicit pause, not a prompt.
  • Expose tools through MCP and cross-agent calls through A2A where you can.
  • Pin framework versions and keep one virtual environment per framework.
  • Test a restart mid-run before you demo anything.

This is for engineers about to choose a framework for something that talks to real users or real money, and for the person asked on Tuesday what happens when the worker dies. If you’re running a notebook experiment, or you have one tool and one prompt, skip the framework debate and write the loop. If your company has already standardised on Semantic Kernel or ADK, your decision was made for you, and the useful part here is the state-portability point.

Frameworks will keep shipping every other day. The Tuesday question isn’t going to change: when the process dies, where’s the run?

  1. ^ a b OpenAI. “Agents” (guide comparing the Agents API, Agents SDK and Responses API). OpenAI developer docs. https://developers.openai.com/api/docs/guides/agents
  2. ^ LangChain Team. “LangChain and LangGraph 1.0” announcement. LangChain blog, October 2025. https://www.langchain.com/blog/langchain-langgraph-1dot0
  3. ^ LangChain Team. “LangChain 1.0 now generally available.” LangChain changelog. https://changelog.langchain.com/announcements/ann_j9EkbzqXXeNod
  4. ^ LangChain Team. “LangChain & LangGraph 1.0 alpha releases.” LangChain blog, 2 September 2025. https://www.langchain.com/blog/langgraph-v1
  5. ^ “CrewAI.” Wikipedia. Accessed 7 November 2026. https://en.wikipedia.org/wiki/CrewAI
  6. ^ “crewai.” PyPI release history. Accessed 7 November 2026. https://pypi.org/project/crewai/
  7. ^ CrewAI. Changelog, v1.15.x documentation. https://docs.crewai.com/v1.15.6/en/changelog.md
  8. ^ a b “openai-agents 0.24.0.” PyPI, uploaded 15 October 2026. https://pypi.org/project/openai-agents/0.24.0/
  9. ^ Developers Digest. “OpenAI Agents SDK: features, install and latest version.” Read 18 October 2026 by the source. https://www.developersdigest.tech/agent-frameworks/openai-agents-sdk
  10. ^ a b c hassann. “OpenAI Agents API vs Responses API vs Agents SDK vs AgentKit: which one to build on.” DEV Community (third-party; cites OpenAI pages). https://dev.to/hassann/openai-agents-api-vs-responses-api-vs-agents-sdk-vs-agentkit-which-one-to-build-on-46d9
  11. ^ a b Google. “Welcome to ADK 2.0.” adk-docs repository. https://github.com/google/adk-docs/blob/main/docs/2.0/index.md
  12. ^ Google. adk-python README. GitHub. https://github.com/google/adk-python
  13. ^ Developers Digest. “Google Agent Development Kit (ADK): features, install and latest version.” https://www.developersdigest.tech/agent-frameworks/google-adk
  14. ^ Microsoft Azure Developer Community. “The Future of Agentic AI: Inside Microsoft Agent Framework 1.0.” Microsoft Tech Community. https://techcommunity.microsoft.com/blog/azuredevcommunityblog/the-future-of-agentic-ai-inside-microsoft-agent-framework-1-0/4510698
  15. ^ Atlan. “Microsoft Semantic Kernel Explained: Features & What Replaced It” (third-party analysis). https://atlan.com/know/ai-agent/microsoft/semantic-kernel/
  16. ^ Atlan. “Microsoft Agent Framework” (third-party analysis). https://atlan.com/know/ai-agent/microsoft/agent-framework/
  17. ^ Anthropic. “Agent SDK overview.” Claude Code docs. https://code.claude.com/docs/en/agent-sdk/overview
  18. ^ Pydantic. “Durable Execution.” Pydantic AI docs. https://pydantic.dev/docs/ai/capabilities/durable_execution/overview/
  19. ^ AWS Builder Center. “Strands Agents vs. AgentCore.” https://builder.aws.com/content/3CJ46VRteYg1vg0FIqbvcQBrGt8/strands-agents-and-agentcore-two-pieces-of-the-same-puzzle
  20. ^ NeuronFeed. “Mastra” (third-party profile; 1.0 in January 2026). https://neuronfeed.com/startups/mastra
  21. ^ Mastra. “CloudflareDeployer.” Mastra docs. https://mastra.ai/guides/deployment/cloudflare-deployer
  22. ^ Cloudflare. “Agents.” Cloudflare Docs. https://developers.cloudflare.com/agents
  23. ^ Linux Foundation. “Agentic AI Foundation Announces Four New Projects: Agent Skills, Open Responses, OpenEnv, and OpenSandbox.” 22 October 2026. https://www.linuxfoundation.org/press/agentic-ai-foundation-announces-four-new-projects-agent-skills-open-responses-openenv-and-opensandbox
  24. ^ Tobira. “A2A and MCP now share a home. What the Agentic AI Foundation settles, and what it leaves open.” https://blog.tobira.ai/a2a-mcp-agentic-ai-foundation/

Frequently asked questions

Which AI agent framework should I use in 2026?

Decide who owns the loop and where state lives before you compare logos. A thin vendor SDK suits short single-agent jobs. A workflow runtime such as LangGraph, Google ADK 2.0 or Microsoft Agent Framework suits approvals, branching and long runs. CrewAI is quickest for role-based prototypes, and its Flows are the part to run in production.

Is LangGraph still worth learning if LangChain has create_agent?

Yes, because create_agent in LangChain 1.0 is built on the LangGraph runtime, so you are already running a LangGraph graph. You drop down to LangGraph itself when you need custom control flow, durable state or human approval steps.

What is the difference between the OpenAI Agents SDK and the Agents API?

The Agents SDK is an open-source library whose runner executes inside your own application, so you own storage and deployment. The Agents API, in public beta since 10 September 2026, runs OpenAI's managed Codex harness and saves session state on OpenAI's side.

Do MCP and A2A depend on which framework I choose?

No. Both protocols now sit under the Linux Foundation's Agentic AI Foundation. MCP connects an agent to tools and data, and A2A lets agents find each other and hand over tasks. Pick a framework that speaks both and your tool integrations stay portable.

You're offline Check your connection.