AI agent frameworks are libraries that handle the repetitive parts of building an agent. They run the loop that calls a model and executes tools, and they add retries, tracing and human approval around it. Ten projects lead going into 2027. LangGraph and the OpenAI Agents SDK are the most discussed; CrewAI, Pydantic AI, Google’s Agent Development Kit, Microsoft Agent Framework, the Claude Agent SDK, AWS’s Strands Agents, LlamaIndex and Hugging Face’s smolagents complete the list.
Most comparisons rank these on impressions. I pulled release histories from PyPI and counted commits and contributors in each project’s GitHub repository for the twelve months to 19 November 2026, ran two of the frameworks offline to check how they behave, and read what developers report after shipping with them. The data separates projects under heavy development from projects that have gone quiet, which matters when you are choosing a dependency for years.

The short version
- For most production agents, LangGraph (explicit control) or the OpenAI Agents SDK (fast to start) are the safest defaults.
- Pydantic AI is the strongest choice when typed, validated outputs matter; it shipped 186 releases in twelve months.
- CrewAI suits role-based multi-agent pipelines that non-developers need to understand.
- AutoGen is in maintenance: no PyPI releases in the last year. Microsoft points new work to Microsoft Agent Framework, which reached 1.0 in April 2026.
- Every major framework now supports MCP, so tools you build once can move between them.
What AI agent frameworks do

At the core of every agent is a short loop: call the model, run the tool it asks for, feed the result back, repeat until done. You can write that loop in a few dozen lines, and Anthropic’s engineering guidance suggests starting with direct API calls before adopting a framework. Frameworks earn their place with what surrounds the loop:
| Need | What frameworks provide |
|---|---|
| Tool calling | schemas generated from your functions, argument validation, error handling |
| State | a record of messages and intermediate data that survives across steps |
| Persistence | checkpoints so a run can pause, resume or recover after a crash |
| Human in the loop | pausing for approval before sensitive actions |
| Multi-agent patterns | hand-offs, supervisors, group chats, crews |
| Observability | traces of every model call and tool call, with cost |
| Model choice | one interface across several model providers |
| MCP | connecting to tools exposed by Model Context Protocol servers |
If your task needs none of these, a framework mostly adds abstraction between you and the prompts. Our guide to agentic AI covers when an agent is the right design in the first place.
The 10 AI agent frameworks at a glance
| Framework | Maker | Style | First PyPI release | Latest version (19 Nov 2026) | Licence |
|---|---|---|---|---|---|
| LangGraph | LangChain | graph and state machine | Jan 2024 | 1.2.23 | MIT |
| OpenAI Agents SDK | OpenAI | agents with hand-offs and guardrails | Mar 2025 | 0.25.0 | MIT |
| CrewAI | CrewAI | role-based crews and flows | Nov 2023 | 1.15.43 | MIT |
| Pydantic AI | Pydantic | typed agents with validated outputs | May 2024 | 2.71.0 | MIT |
| Google ADK | code-first agents, multi-agent hierarchies | Mar 2025 | 2.14.1 | Apache 2.0 | |
| Microsoft Agent Framework | Microsoft | agents plus graph workflows (.NET and Python) | Apr 2026 (stable) | 1.26.0 | MIT |
| Claude Agent SDK | Anthropic | the agent loop behind Claude Code | Sep 2025 | 0.2.185 | MIT |
| Strands Agents | AWS | model-driven agents in few lines | May 2025 | 1.65.0 | Apache 2.0 |
| LlamaIndex | LlamaIndex | data and retrieval-centred agents and workflows | Feb 2023 | 0.14.26 | MIT |
| smolagents | Hugging Face | agents that write Python code to call tools | Dec 2024 | 1.26.0 | Apache 2.0 |
AutoGen, once one of the most popular multi-agent libraries, is missing from this list on purpose. Its last PyPI release of autogen-agentchat was version 0.7.5 on 30 September 2025, and Microsoft describes Agent Framework as its successor, with AutoGen kept for bug fixes and security patches (Visual Studio Magazine).
Which AI agent frameworks are most active?

Releases in the last twelve months
I counted final releases (no pre-releases) on PyPI between 19 November 2025 and 19 November 2026:
| Framework | Releases in 12 months |
|---|---|
| Pydantic AI | 186 |
| Claude Agent SDK | 148 |
| OpenAI Agents SDK | 83 |
| CrewAI | 72 |
| Google ADK | 61 |
| Strands Agents | 55 |
| LangGraph | 42 |
| Microsoft Agent Framework | 33 (since its stable release in April 2026) |
| LlamaIndex (main package) | 16 |
| smolagents | 3 |
| AutoGen (AgentChat) | 0 |
Release counts reflect release habits as much as activity. Pydantic AI and the Claude Agent SDK ship small releases very often; LangGraph ships fewer, larger ones under a promise of no breaking changes until version 2.0. smolagents’ last release was in May 2026.
Contributors and commits

I also cloned each repository’s history for the same twelve months and counted commits and distinct authors, excluding bot accounts:
| Repository | Human commits | Distinct human authors |
|---|---|---|
| pydantic/pydantic-ai | 4,235 | 417 |
| google/adk-python | 3,123 | 536 |
| strands-agents/sdk-python | 2,395 | 291 |
| openai/openai-agents-python | 1,459 | 236 |
| crewAIInc/crewAI | 1,404 | 129 |
| run-llama/llama_index | 580 | 280 |
| langchain-ai/langgraph | 551 | 45 |
| anthropics/claude-agent-sdk-python | 489 | 51 |
| huggingface/smolagents | 72 | 29 |
| microsoft/autogen | 6 | 3 |
Two caveats. Commit counts depend on workflow: projects that squash many changes into one merge commit look quieter than they are, and LangGraph’s history shows a high share of automated commits. Google’s repository also includes changes synced from internal systems. These numbers separate live projects from dormant ones; they are too coarse to rank close competitors. I could not clone Microsoft Agent Framework’s repository in my environment, so it has release data only.
How each framework thinks about agents

LangGraph: agents as state machines
LangGraph models an agent as a graph of nodes (steps) and edges (transitions), with a shared state object. You decide exactly where the model chooses and where code decides. LangChain released LangGraph 1.0 in October 2025 with durable state that survives server restarts, native pauses for human review and a promise of “no breaking changes until 2.0” (LangChain).
The graph model makes routing logic plain Python. I ran this loop without any model at all:
from typing import TypedDict
from langgraph.graph import StateGraph, START, END
class State(TypedDict):
draft: str
attempts: int
def write(state: State) -> State:
return {"draft": state["draft"] + "!", "attempts": state["attempts"] + 1}
def review(state: State) -> str: # code, not the model, decides whether to loop
return "done" if state["draft"].count("!") >= 3 or state["attempts"] >= 5 else "retry"
g = StateGraph(State)
g.add_node("write", write)
g.add_edge(START, "write")
g.add_conditional_edges("write", review, {"retry": "write", "done": END})
app = g.compile()
Streaming it from {"draft": "hello", "attempts": 0} ran the write node three times and stopped, with a hard cap of five attempts. Swap write for a model call and review for a model-graded check and you have an evaluator-optimiser loop with guaranteed termination.
Trade-off: more concepts to learn up front. One developer who has shipped with most of these frameworks described a learning curve of two to three days in a HackerNoon ranking, while praising its visual debugging.
OpenAI Agents SDK: agents, hand-offs and guardrails
The OpenAI Agents SDK keeps the surface small. An agent has instructions and tools, can hand off to other agents, and runs with guardrails on its input and output. Tracing is built in. It is the quickest of the major frameworks to get running. The same HackerNoon author reported a prototype working within hours, and also an outage at the model provider that took his agent down with no fallback. The SDK can call models from other providers too, but it is designed around OpenAI’s APIs first.
CrewAI: roles that people outside engineering understand
CrewAI describes work as a crew of agents, each with a role and a goal, plus “flows” for deterministic orchestration. Non-technical stakeholders tend to grasp the role metaphor quickly. The cost is latency and tokens: multi-agent crews pass work between several model calls, and the HackerNoon review measured roughly two to four times the latency of a single agent.
Pydantic AI: typed inputs and validated outputs
Pydantic AI comes from the team behind Pydantic, the validation library used across the Python ecosystem. Agents declare their dependencies and output types, and the framework validates tool arguments and final outputs against those types, retrying when the model returns malformed data. It also ships test models for running agents offline in unit tests.
I used that feature to test a one-tool agent with no API key:
from pydantic_ai import Agent
from pydantic_ai.models.test import TestModel
agent = Agent("test", instructions="Answer questions about order status using the tools.")
@agent.tool_plain
def order_status(order_id: str) -> str:
"""Look up the shipping status of an order."""
return {"A100": "shipped", "A101": "processing"}.get(order_id, "unknown")
result = agent.run_sync("Where is order A100?", model=TestModel())
print(result.usage) # RunUsage(input_tokens=109, output_tokens=14, requests=2, tool_calls=1)
The test model calls every tool with generated arguments, so the answer itself is meaningless (it asked about order “a”). The value is in the trace: one user question produced two model requests and one tool call, and the whole run executed in a normal unit test. That kind of offline testing is rare among agent frameworks and very useful in continuous integration.
Google ADK: code-first with Google Cloud deployment
Google’s Agent Development Kit, first released in March 2025, organises agents into hierarchies and workflow agents that run steps in sequence, in parallel or in a loop. It deploys naturally to Google Cloud. It works with Gemini first but supports other models. Its repository had the most distinct contributors in my count (536).
Microsoft Agent Framework: the successor to AutoGen and Semantic Kernel
Microsoft Agent Framework merges Semantic Kernel and AutoGen into one SDK for .NET and Python. Version 1.0 shipped in April 2026 with what Microsoft called “stable APIs, and a commitment to long-term support,” graph-based workflows and MCP support. It also ships several multi-agent patterns, including hand-off and group chat. It is the natural choice for teams already on Azure and .NET.
Claude Agent SDK: Claude Code’s agent loop as a library
Anthropic’s Claude Agent SDK exposes the agent loop that powers Claude Code, with file editing and shell commands built in, plus sub-agents and permission controls. It suits agents that work in a filesystem and terminal, such as coding agents, and it ships very frequent releases (148 in twelve months on PyPI). It is built for Claude models.
Strands Agents: AWS’s model-driven approach
Strands Agents, released by AWS in May 2025, leans on the model to plan, with minimal orchestration code. It integrates with Amazon Bedrock and AWS services and supports MCP. Its contributor count (291) put it third in my data.
LlamaIndex and smolagents
LlamaIndex started as a retrieval library and remains strongest when the agent’s job centres on your documents and data. smolagents from Hugging Face takes a different approach: agents write Python code to call tools instead of emitting JSON tool calls. It is small and readable, but its release activity has slowed sharply, with three releases in the last year.
AI agent frameworks compared on what matters in production
| LangGraph | OpenAI Agents SDK | CrewAI | Pydantic AI | Google ADK | MS Agent Framework | |
|---|---|---|---|---|---|---|
| Control over flow | very high | medium | medium (flows add more) | high | high | high |
| Time to first agent | slower | fastest | fast | fast | fast | medium |
| Typed, validated outputs | via your own code | supported | supported | core feature | supported | supported |
| Durable state and resume | built in | sessions | supported | via integrations | supported | built in |
| Multi-agent | graphs, supervisors | hand-offs | crews | agent delegation | hierarchies | many patterns |
| Model flexibility | any provider | OpenAI first, others supported | any provider | any provider | Gemini first, others supported | any provider |
| MCP support | yes | yes | yes | yes | yes | yes |
| Languages | Python, JavaScript | Python, JavaScript | Python | Python | Python, Java, others | Python, .NET |
What developers complain about
Patterns from community discussion and practitioner write-ups in 2026:
- Abstraction overhead. A common complaint about heavyweight frameworks is that they hide the prompts, which makes failures hard to debug. Anthropic’s guidance says the same, and suggests understanding the code under any framework you adopt.
- Churn. Fast release cycles bring breaking changes. LangGraph’s “no breaking changes until 2.0” promise was a direct answer to this.
- Multi-agent cost. Crews and group chats multiply model calls. The HackerNoon author reported one AutoGen run costing $12 because agents debated with no termination condition.
- Vendor coupling. Provider-first SDKs are fastest on their own models and less smooth elsewhere.
- Operations. A recurring r/AI_Agents theme in 2026 was that building an agent is no longer the hard part. Running it is: versioning prompts and tools, managing permissions, and debugging multi-agent runs. Our guide to AI agents in production covers those problems.
How to choose an AI agent framework

| If you need… | Choose |
|---|---|
| Precise control over every step, durable long-running agents | LangGraph |
| The fastest path to a working agent on OpenAI models | OpenAI Agents SDK |
| Typed outputs with offline unit tests | Pydantic AI |
| A team-of-roles metaphor for content or research pipelines | CrewAI |
| Deployment on Google Cloud with Gemini | Google ADK |
| .NET support or an Azure-centred stack | Microsoft Agent Framework |
| An agent that edits files and runs commands like Claude Code | Claude Agent SDK |
| AWS and Bedrock integration | Strands Agents |
| Agents centred on retrieval over your documents | LlamaIndex |
| A tiny library to learn the ideas, or code-writing agents | smolagents |
| Visual building with no code | an automation tool such as n8n (see our n8n vs Zapier vs Make comparison) |
A practical rule: if you cannot explain why you need a framework’s multi-agent features, start with a single agent and direct tool calls. Move to a framework when you need durable state or approvals. Then pick the one whose style matches how you already think about your process.
Model lock-in and licences
Most AI agent frameworks can call several model providers, but each has a home model and a home cloud. That matters more than the licence for most teams.
| Framework | Home model or cloud | Licence |
|---|---|---|
| OpenAI Agents SDK | OpenAI models | MIT |
| Claude Agent SDK | Claude models | MIT |
| Google ADK | Gemini and Google Cloud | Apache 2.0 |
| Microsoft Agent Framework | Azure and .NET | MIT |
| Strands Agents | AWS | Apache 2.0 |
| LangGraph, CrewAI, Pydantic AI | no single provider | MIT |
| LlamaIndex | no single provider | MIT |
| smolagents | Hugging Face Hub | Apache 2.0 |
All ten are open source under permissive licences, so the code itself will not lock you in. The coupling comes from features. Provider-first SDKs tend to support their own models’ newest capabilities first, and their tracing and deployment tools work best on their own cloud. Independent frameworks such as LangGraph and Pydantic AI give you more room to switch models, at the cost of waiting a little longer for provider-specific features.
If your model choice is likely to change, pick a provider-neutral framework or keep the provider-specific parts behind a thin interface of your own.
Switching AI agent frameworks later
Teams do change AI agent frameworks, usually when a prototype outgrows a quick-start SDK or a project slows down. A few habits make that switch cheap:
- Write tools as plain functions or MCP servers, with the framework’s decorators kept in a thin wrapper.
- Keep prompts in version-controlled files that the framework loads.
- Store conversation and task state in your own database, in a format you control.
- Keep an evaluation set of real cases, so you can check that the new framework matches the old one’s results before switching traffic.
With those in place, moving between AI agent frameworks is mostly a matter of rewriting the orchestration code, which is usually the smallest part of an agent project.
Keep your tools portable with MCP
Every framework in the main table supports the Model Context Protocol. If you expose your tools as MCP servers instead of framework-specific functions, you can switch frameworks, or run the same tools from an AI assistant, without rewriting them. Our Model Context Protocol guide shows a 40-line server in Python and how fast it answers.
Common mistakes when choosing AI agent frameworks
- Picking the framework with the most GitHub stars instead of the one whose style fits your problem.
- Starting with a multi-agent design for a task one agent could do.
- Ignoring maintenance signals: a framework with no releases in a year is a risk for a long-lived product.
- Building tools inside one framework’s format instead of as MCP servers or plain functions.
- Skipping evaluation. A framework does not tell you whether your agent is right; a test set does.
FAQ
What is the best AI agent framework in 2027?
There is no single best framework. LangGraph is the strongest choice for complex, long-running agents that need precise control. The OpenAI Agents SDK is the quickest to start with. Pydantic AI is best when typed outputs matter. CrewAI suits role-based multi-agent pipelines.
LangGraph vs CrewAI: which should I use?
Use LangGraph when you need to control exactly how an agent moves between steps, with state that survives a crash. Use CrewAI when a set of agents with roles is the natural way to describe the work and speed of building matters more than fine control. In practitioner reviews, LangGraph takes longer to learn and CrewAI’s multi-agent runs cost more per task.
Is AutoGen still maintained?
AutoGen receives bug fixes and security patches, but its last PyPI release of the AgentChat package was in September 2025. For new projects Microsoft recommends Microsoft Agent Framework, which combines AutoGen with Semantic Kernel and reached 1.0 in April 2026.
Are AI agent frameworks free?
All ten AI agent frameworks in this comparison are open source under the MIT or Apache 2.0 licence and free to use. The costs come from model usage and from optional hosted services, such as LangChain’s LangSmith for tracing or the cloud platforms that run Google ADK and Strands agents. Model tokens are usually the largest line, so budget for those first.
Do I need a framework to build an AI agent?
No. A basic agent loop takes a few dozen lines with any model API that supports tool calling. Frameworks become useful when you need persistence, approvals, tracing, multi-agent coordination or support for many models.
Which AI agent frameworks support MCP?
MCP support is standard among the major AI agent frameworks. LangGraph, the OpenAI Agents SDK and CrewAI can all connect to MCP servers, as can Pydantic AI, Google ADK, Microsoft Agent Framework, the Claude Agent SDK and Strands Agents. A tool built as an MCP server works across all of them.
The bottom line on AI agent frameworks
The field has consolidated around a handful of actively maintained projects, while older names such as AutoGen hand over to successors. In my count, Pydantic AI, Google ADK and Strands Agents had the busiest repositories over the past year, and LangGraph offered the strongest stability promise. Activity data tells you which AI agent frameworks are alive; your own prototype tells you which one fits. Choose by design style and ecosystem first, and check that the project is still releasing. Build your tools as MCP servers so they stay portable, and keep the agent as simple as the task allows.


