Best Of · 11 frameworks
This page is for developers choosing which open-source framework to build on — not for people looking for a pre-built AI tool. All 11 frameworks here are open source. They are not interchangeable: they fall into four distinct types. Orchestration frameworks (LangGraph, CrewAI, AutoGen, Semantic Kernel, Mastra, VoltAgent) coordinate multi-agent behaviour and task state. Data / RAG frameworks (LlamaIndex) connect agents to external documents and knowledge sources. Code-first libraries (Pydantic AI, Smolagents) offer minimal, composable primitives for building single or simple multi-agent flows. Visual builders (Dify, Flowise) let you build agent workflows without writing orchestration code. Every framework has a full individual profile in our directory.
| Framework | Type | Best for | Language | Setup | Pricing | Hosted | Docs |
|---|---|---|---|---|---|---|---|
| LangGraph LangChain | Orchestration | Developers building production multi-agent systems that need fine-grained control over state, execution flow, and human-in-the-loop checkpoints — and who are willing to trade setup time for that control | Python | hard | Free | No | Yes |
| CrewAI CrewAI | Orchestration | Orchestrating autonomous agent teams for enterprise tasks | Python | medium | Freemium | Yes | Yes |
| AutoGen Microsoft | Orchestration | Developers experimenting with conversational multi-agent patterns or building iterative workflows (code generation + review, research + verification) where the solution emerges from agent dialogue rather than a predefined execution graph | Python, .NET | medium | Free | No | Yes |
| Semantic Kernel Microsoft | Orchestration | Adding AI agents to .NET, Python, and Java apps | Python, .NET, Java | medium | Free | No | Yes |
| LlamaIndex LlamaIndex | Data / RAG | Developers building RAG systems and document-grounded agents who need intelligent data parsing, indexing, and retrieval — especially teams with large or complex document sets | Python | medium | Freemium | Yes | Yes |
| Pydantic AI Pydantic | Code-first | Type-safe Python agents with validated structured outputs | Python | medium | Free | No | Yes |
| Smolagents Hugging Face | Code-first | Minimal code-first agents with Hugging Face ecosystem | Python | medium | Free | No | Yes |
| Dify LangGenius | Visual Builder | No-code agentic workflows and RAG pipelines | Not listed | easy | Freemium | Yes | Yes |
| Flowise FlowiseAI | Visual Builder | Visual drag-and-drop agent and RAG workflow building | Not listed | easy | Freemium | Yes | Yes |
| Mastra Mastra | Orchestration | TypeScript-first AI agents and workflows for Node.js teams | TypeScript | medium | Free | No | Yes |
| VoltAgent VoltAgent | Orchestration | TypeScript multi-agent apps with built-in observability | TypeScript | easy | Free | No | Yes |
If…
I want full control over multi-agent state
→ LangGraph. Graph-based execution model, deterministic, production-ready.
If…
I want role-based agents with minimal boilerplate
→ CrewAI. Fastest to set up a multi-agent crew; opinionated but flexible.
If…
I'm building a RAG pipeline over documents
→ LlamaIndex. Purpose-built for connecting LLMs to external data sources.
If…
I use TypeScript / Node.js
→ Mastra or VoltAgent. Both are TypeScript-native; Mastra for Next.js apps, VoltAgent for streaming agents.
If…
I want a no-code visual builder
→ Dify or Flowise. Drag-and-drop agent builder; no orchestration code required.
If…
I need the simplest possible single-agent setup
→ Smolagents. Minimal codebase, easy to understand, good for prototypes.
If…
My team uses .NET or Java
→ Semantic Kernel. Microsoft-backed, multi-language (Python, C#, Java).
If…
I'm building research or academic workflows
→ AutoGen. Strong conversational multi-agent model with good research tooling.
LangGraph is an open-source framework, available in Python and JS/TS (LangGraph.js), that models agent workflows as graphs — nodes represent actions, edges define control flow. It is designed for developers who need fine-grained, deterministic control over multi-agent state, branching logic, and human-in-the-loop checkpoints in production systems.
Best for
Developers building production multi-agent systems that need fine-grained control over state, execution flow, and human-in-the-loop checkpoints — and who are willing to trade setup time for that control
Not ideal for
Teams who need a faster path to a working multi-agent prototype, or anyone not already comfortable with Python and graph-based execution models
An open-source framework and hosted platform for building teams of AI agents that collaborate on complex tasks autonomously.
Best for
Orchestrating autonomous agent teams for enterprise tasks
Not ideal for
Solo developers who need a lightweight single-agent setup
AutoGen is Microsoft's open-source framework for building multi-agent AI systems where agents collaborate through structured conversations. It supports Python and .NET, and is designed for developers building agentic pipelines where agents exchange messages, use tools, and work alongside humans to complete complex tasks.
Best for
Developers experimenting with conversational multi-agent patterns or building iterative workflows (code generation + review, research + verification) where the solution emerges from agent dialogue rather than a predefined execution graph
Not ideal for
Teams building production pipelines that need deterministic execution order, explicit state management, or reliable branching logic — LangGraph is a stronger fit for those requirements
A Microsoft SDK for building, orchestrating, and deploying AI agents and multi-agent systems in .NET, Python, and Java.
Best for
Adding AI agents to .NET, Python, and Java apps
Not ideal for
Non-developers or teams outside the Microsoft ecosystem
A Python framework for connecting LLM applications to documents, databases, and APIs. Handles data ingestion, indexing, retrieval, and agent orchestration for RAG and document-grounded AI systems.
Best for
Developers building RAG systems and document-grounded agents who need intelligent data parsing, indexing, and retrieval — especially teams with large or complex document sets
Not ideal for
General-purpose agent orchestration without a document/data focus; teams needing multi-agent control flow or task decomposition (use LangGraph, CrewAI, or AutoGen instead); non-Python environments
A Python agent framework with built-in validation and structured outputs, built by the team behind Pydantic.
Best for
Type-safe Python agents with validated structured outputs
Not ideal for
Non-Python developers or teams needing a visual agent builder
A barebones Python library where agents think and act by writing code, built by Hugging Face.
Best for
Minimal code-first agents with Hugging Face ecosystem
Not ideal for
Complex multi-agent orchestration or teams needing visual tooling
An open-source platform for building agentic workflows and RAG pipelines with a visual no-code interface.
Best for
No-code agentic workflows and RAG pipelines
Not ideal for
Developers who need full code-level control over agent behaviour
An open-source drag-and-drop platform for building AI agents, RAG systems, and multi-agent workflows visually.
Best for
Visual drag-and-drop agent and RAG workflow building
Not ideal for
Developers who prefer code-first agent frameworks with full programmatic control
An open-source TypeScript framework for building, deploying, and observing AI agents and workflows.
Best for
TypeScript-first AI agents and workflows for Node.js teams
Not ideal for
Python-first teams or those needing a visual no-code builder
An open-source TypeScript framework for building multi-agent AI systems with observability and memory.
Best for
TypeScript multi-agent apps with built-in observability
Not ideal for
Python-first teams or those needing a no-code builder
Most frameworks are Python-first. If your team uses TypeScript, Mastra is currently the only dedicated option. For .NET or Java, Semantic Kernel is the strongest choice.
Dify and Flowise offer drag-and-drop interfaces — faster to prototype, but less flexible for custom logic. The rest are code-only and give you full control.
If you need multiple agents working together, LangGraph, CrewAI, and AutoGen are designed for multi-agent orchestration. Pydantic AI and Smolagents are better for single-agent or simple pipeline use cases.
CrewAI, Dify, Flowise, and LlamaIndex offer cloud-hosted options alongside self-hosting. The others are self-hosted only — you manage your own infrastructure.
If your primary problem is connecting an LLM to documents, databases, or APIs for retrieval-augmented generation, start with LlamaIndex. If your primary problem is coordinating multiple agents or controlling task flow, start with LangGraph or CrewAI. Many production systems use both — LlamaIndex for the retrieval layer, LangGraph for the orchestration layer.
Smolagents and CrewAI are faster to prototype with — less boilerplate, higher-level abstractions. LangGraph and Semantic Kernel are built with production deployments in mind — better observability, finer control over state and failure handling. If you're not sure which you need yet, start with CrewAI and switch to LangGraph when you hit its limits.
Control vs. speed of setup
LangGraph gives you the most control over agent state and execution flow, but requires the most configuration. CrewAI and Smolagents are faster to get working but give you less control over how agents step through tasks. If you are still learning, start with CrewAI and move to LangGraph when you need finer control.
Orchestration vs. retrieval-first
LlamaIndex is the strongest choice when your primary problem is connecting an LLM to documents, databases, or external knowledge — it is a data framework first. LangGraph, CrewAI, and AutoGen are orchestration frameworks — they coordinate agent behaviour and task state but do not specialise in retrieval. Many production systems combine both: LlamaIndex for the RAG layer, LangGraph for the orchestration layer.
Code-first vs. no-code
Dify and Flowise let you build agent workflows visually without writing orchestration code — faster to prototype, easier to share with non-developers, but harder to customise for complex logic. All other frameworks require Python or TypeScript. If prototyping speed matters more than customisation, start with Dify or Flowise.
Self-hosted only vs. hosted option
All 11 frameworks are open source and self-hostable. CrewAI, Dify, Flowise, and LlamaIndex also offer managed cloud hosting — which removes infrastructure overhead but introduces a cost and vendor dependency. The rest are self-hosted only.
Experimentation vs. production
Smolagents and Pydantic AI are optimised for simplicity and fast iteration — small codebases, easy to read, good for prototypes. LangGraph and Semantic Kernel are built with production deployments in mind — better observability hooks, finer control over failure handling, and more mature documentation. AutoGen and CrewAI sit in between.
An AI agent framework is a library or platform that provides the building blocks for creating AI agents — programs that can reason, use tools, and take actions autonomously. Frameworks handle orchestration, state management, and LLM integration so you can focus on defining agent behaviour.
Most frameworks in this list are Python-first: LangGraph, CrewAI, Pydantic AI, Smolagents, and AutoGen all support Python. LangGraph and CrewAI are the most full-featured; Pydantic AI is strongest for type safety; Smolagents is the most minimal.
Dify and Flowise both offer drag-and-drop visual interfaces for building agent workflows without writing orchestration code. The other frameworks are code-only.
Mastra and VoltAgent are the TypeScript-native frameworks in this list. Mastra integrates with Next.js, Express, and Hono. VoltAgent is designed for building multi-agent systems in TypeScript with a focus on real-time streaming. Semantic Kernel also has some TypeScript/JavaScript support alongside .NET and Python.
All 11 are open source. LangGraph, AutoGen, Semantic Kernel, Pydantic AI, Smolagents, Mastra, and VoltAgent are fully free. CrewAI, Dify, Flowise, and LlamaIndex offer free open-source cores with optional paid cloud hosting.
LangGraph gives you fine-grained control over agent state and execution flow using a graph-based model — good for complex, custom workflows where you need predictability. CrewAI abstracts that away with role-based agents and a simpler API — good for multi-agent pipelines where each agent has a clear job. LangGraph has a steeper learning curve; CrewAI is faster to prototype with.
LlamaIndex is primarily a data framework — it excels at connecting LLMs to external data sources, building RAG pipelines, and indexing documents. LangGraph is an orchestration framework — it excels at controlling agent behaviour, state, and multi-step reasoning. They solve different problems; many teams use both together.
Smolagents (by Hugging Face) is the most minimal — a small codebase with a straightforward API for single-agent tasks. CrewAI is the easiest multi-agent framework. Dify and Flowise require no code at all if you prefer a visual builder. LangGraph has the highest learning curve of the code-first options.
AutoGen models agents as conversational participants that exchange messages to complete tasks — well-suited for research workflows, iterative problem solving, and human-in-the-loop scenarios. CrewAI models agents as role-based crew members with explicit tasks and goals — better suited for structured multi-step pipelines where each agent has a clearly defined job. AutoGen is more flexible for open-ended conversational workflows; CrewAI is faster to configure for defined pipelines.
Most do. LangGraph, CrewAI, AutoGen, Pydantic AI, Smolagents, Mastra, and VoltAgent are provider-agnostic and support OpenAI, Anthropic, Google, and local models via APIs. LlamaIndex supports most major providers through its integration layer. Semantic Kernel is officially backed by Microsoft and integrates tightly with Azure OpenAI but also supports other providers. Dify and Flowise let you configure any compatible LLM through their visual interface.
See the full Agent Frameworks category with detailed profiles.
Browse all Agent Frameworks →Looking for AI coding assistants instead of frameworks?
Best AI Coding Agents →