Best Open-Source AI Agent Frameworks in 2026: 15 Frameworks for Teams That Want to Own Their Stack

Best open-source AI agent frameworks shown as an owner-controlled modular chassis with recovery and self-hosting components

Turn this article into takeaways for your work.

Each assistant summarizes the article only for you and suggests best practices for your work.

The best open-source AI agent framework in 2026 depends more on your licence tolerance and your runtime than on any feature checklist: LangGraph and CrewAI lead production Python deployments, Mastra and Flowise lead if your team lives in TypeScript, and Dify covers the widest surface if you want a self-hosted app instead of a code library. This guide ranks 15 frameworks that are genuinely open source (a public repo, a real licence, self-hostable on your own infrastructure), not just free to try, and it names the handful that ship under an open-core or source-available licence instead of a pure permissive one.

Picking wrong here costs more than picking the wrong SaaS tool. You're choosing an abstraction your engineers will write thousands of lines against, and migrating off a graph-based orchestration layer six months in is a multi-week project, not a re-export. Every entry below is evaluated against its actual LICENSE file, current GitHub activity, language support, state and durability model, and hosted pricing where one exists, all verified against the vendor's own pages and repos in August 2026. Updated August 2026. If you're still deciding between a self-hosted framework and a managed product, our best AI agent platforms roundup covers the full landscape both sides live in.

Key Facts

  • More than 1.1 million public GitHub repositories now import an LLM SDK, up 178% year over year, with roughly 694,000 of those created in the past 12 months alone, per GitHub's 2025 Octoverse report.
  • 57% of organizations report having AI agents running in production, per LangChain's State of Agent Engineering survey of 1,340 practitioners (November 18 to December 2, 2025), though only 52.4% run offline evaluations against that traffic.
  • Gartner predicts more than 40% of agentic AI projects will be canceled by the end of 2027 over unclear ROI and weak governance, and estimates only about 130 of the thousands of self-described agentic AI vendors are the real thing.
  • Open-source models' share of enterprise LLM usage fell to 11% in 2025, down from 19% in 2024, even as total enterprise generative AI spending roughly tripled to $37 billion, per Menlo Ventures.
  • AI agents jumped from roughly 12% to 66.3% task success on OSWorld, the benchmark for real computer-use tasks, in the year leading into 2026, per Stanford HAI's AI Index.

What Changed in Open-Source Agent Frameworks This Year

  • Microsoft merged AutoGen and Semantic Kernel into Microsoft Agent Framework, which reached general availability on April 3, 2026. Both legacy repos are now officially in maintenance mode.
  • AG2, the community fork of AutoGen created after a 2024 governance split, kept building independently under Apache-2.0 and is working toward a 1.0 release.
  • OpenAI is sunsetting the Assistants API on August 26, 2026. If you're building new, use the Agents SDK covered here, not the older Assistants API.
  • CrewAI simplified its commercial pricing down to two public tiers (free AMP Basic and custom Enterprise) after briefly running a self-serve Professional plan.
  • IBM closed its acquisition of DataStax in May 2025, which means Langflow now sits inside IBM's watsonx orbit.
  • Workday acquired FlowiseAI in August 2025, folding the visual builder into its enterprise HR and finance agent roadmap.

Quick Comparison Table

Use this to shortlist by licence and language before reading the licence and self-hosting detail below.

Framework Licence Language Best For Hosted Tier
LangGraph MIT Python, TypeScript Stateful, production-grade agent workflows LangSmith Plus $39/seat/mo
CrewAI MIT Python Role-based multi-agent crews, fast to start AMP: free or custom Enterprise
AutoGen (Microsoft) MIT (code) Python, .NET Legacy conversational multi-agent, now maintenance mode Folding into Microsoft Agent Framework
AG2 Apache-2.0 Python Same pattern as AutoGen, actively maintained None, community project
OpenAI Agents SDK MIT Python, TypeScript Minimal SDK backed by a model vendor Pay-per-token via OpenAI or 100+ providers
Pydantic AI MIT Python Type-safe, validated agent outputs Logfire from $0, Team $49/mo
Microsoft Semantic Kernel MIT .NET, Python, Java Existing enterprise .NET investments Folding into Microsoft Agent Framework
LlamaIndex Workflows MIT Python, TypeScript Retrieval-heavy, event-driven agents LlamaCloud, usage-based
Agno Apache-2.0 Python High-concurrency, low-overhead agent fleets AgentOS, custom pricing
Mastra Apache-2.0 (core) TypeScript Full-stack JS teams Mastra Cloud: free, Teams $250/mo
smolagents Apache-2.0 Python Minimal, auditable, code-executing agents None, community project
Haystack Apache-2.0 Python Production retrieval and document pipelines Enterprise Platform, custom
Dify Modified Apache-2.0 (source-available) Python, TypeScript Self-hosted LLMOps app, not just a library Cloud: $0 to $159/mo, Enterprise custom
Langflow MIT Python Visual prototyping, MIT with no carve-outs Part of IBM/DataStax ecosystem
Flowise Apache-2.0 (core) TypeScript Visual builder inside a Node stack Cloud: $0 to $65/mo, Enterprise custom
OpenHands MIT Python Autonomous coding agent, not general orchestration Cloud: free individual, custom Enterprise

How to Read "Open Source" Here: Licence Reality Check

Not everything billed as "open source" in the agent space carries the same rights, and this is the detail most roundups skip. An OSI-approved licence (MIT, Apache-2.0) puts no restriction on how you use, modify, or resell the code. A source-available or open-core licence publishes the code but reserves a specific right, usually the right to resell it as your own hosted SaaS, for the vendor. That distinction rarely shows up until legal review, which is too late.

AI agent framework licence spectrum separating unrestricted open source, open core, and source-available resale restrictions

Dify is the clearest case: its licence is a modified Apache-2.0 (the "Dify Open Source License") that explicitly blocks running Dify to operate a multi-tenant SaaS without a commercial licence from LangGenius, and it locks the console's branding outside a paid tier. That's a real, meaningful restriction an OSI licence would not permit, which makes Dify source-available rather than open source in the strict sense, even though the vast majority of its code is genuinely Apache-2.0. Mastra and Flowise both take a cleaner open-core approach: their core frameworks are unrestricted Apache-2.0, and only a specific enterprise directory (ee/ for Mastra, enterprise/ for Flowise) sits behind a separate commercial licence. Everything you'd need to self-host a production agent in either framework is in the open part.

Framework Licence OSI Open Source What It Restricts
LangGraph MIT Yes Nothing
CrewAI MIT Yes Nothing
AutoGen (Microsoft) MIT (code), CC-BY-4.0 (docs/samples) Yes, code Nothing on the code itself
AG2 Apache-2.0 Yes Nothing
OpenAI Agents SDK MIT Yes Nothing
Pydantic AI MIT Yes Nothing
Microsoft Semantic Kernel MIT Yes Nothing
LlamaIndex Workflows MIT Yes Nothing
Agno Apache-2.0 Yes Nothing
Mastra Apache-2.0 (core) Core: yes ee/ directory needs a paid licence in production
smolagents Apache-2.0 Yes Nothing
Haystack Apache-2.0 Yes Nothing
Dify Modified Apache-2.0 No Multi-tenant SaaS resale and console branding
Langflow MIT Yes Nothing
Flowise Apache-2.0 (core) Core: yes enterprise/ directory is proprietary

None of this stops a company from self-hosting any of the 15 for internal use. It matters the moment you plan to embed one inside a product you sell.

Self-Hosting, Language, and State: The Engineering Fit

The 15 frameworks split into three real categories: code-first orchestration libraries you import into a service (LangGraph, CrewAI, AutoGen/AG2, OpenAI Agents SDK, Pydantic AI, Semantic Kernel, LlamaIndex Workflows, Agno, Mastra, smolagents, Haystack), self-hosted visual or full-app platforms (Dify, Langflow, Flowise), and a specialized coding-agent runtime (OpenHands). All 15 run entirely on your own infrastructure with no forced call-home. What differs is how much durability you get for free versus how much you build yourself.

Open-source agent engineering fit across code libraries, visual self-hosted apps, coding runtimes, language branches, and durable state

Framework Language(s) Self-Hosted Built-In State and Durability
LangGraph Python, TypeScript Yes Native checkpointing, pause, resume, and time-travel debugging
CrewAI Python Yes, or CrewAI Factory Flow state persists locally; deeper durability lives in the AMP cloud
AutoGen / AG2 Python, .NET Yes In-memory conversation history by default; you add persistence
OpenAI Agents SDK Python, TypeScript Yes Sessions API for basic history; durable state is on you
Pydantic AI Python Yes Message-history objects you persist yourself
Microsoft Semantic Kernel .NET, Python, Java Yes Planners persist state; durability typically layers on Azure services
LlamaIndex Workflows Python, TypeScript Yes Workflow context can serialize and resume between steps
Agno Python Yes Built-in session and state storage designed for high concurrency
Mastra TypeScript Yes Native workflow suspend/resume plus pluggable memory storage
smolagents Python Yes Stateless by default; you wire persistence
Haystack Python Yes Pipeline state via document stores, not turn-by-turn checkpointing
Dify Python, TypeScript (Docker) Yes Conversation and workflow state stored in its own database
Langflow Python Yes Flow state stored per session in its database
Flowise TypeScript Yes Chat history and flow state stored in its own database
OpenHands Python Yes Session state in its runtime; long runs checkpoint to the workspace

If your agent needs to survive a server restart mid-task, that "built-in" column is the one to read closely, not the star count.

Maintenance and Community Health: Who's Actually Still Building

A star count alone tells you almost nothing about whether a project is safe to build on. Governance and recent activity tell you much more: a company-controlled repo can enter maintenance mode overnight, the way AutoGen and Semantic Kernel just did, while a smaller, community-governed fork can keep shipping past the point where the company that started it moves on.

GitHub star counter measuring popularity compared with governance and recent activity signals measuring framework health

Framework GitHub Stars (Aug 2026) Primary Backer Governance Last Push
LangGraph 39,848 LangChain Inc Company-led Same week
CrewAI 57,200 CrewAI Inc Company-led Same day
AutoGen (Microsoft) 60,463 Microsoft Company-led, maintenance mode April 2026
AG2 4,868 AG2ai community org Open governance Same day
OpenAI Agents SDK 28,711 OpenAI Company-led Same day
Pydantic AI 19,351 Pydantic Validation Ltd Company-led Same day
Microsoft Semantic Kernel 28,459 Microsoft Company-led, maintenance mode Same week
LlamaIndex Workflows 51,697 LlamaIndex Inc Company-led Same day
Agno 41,742 Agno Company-led Same day
Mastra 27,241 Mastra AI Company-led Same day
smolagents 28,836 Hugging Face Company-led Same month
Haystack 26,231 deepset Company-led Same day
Dify 152,676 LangGenius Inc Company-led Same day
Langflow 153,344 DataStax (IBM) Company-led Same day
Flowise 55,376 FlowiseAI (Workday) Company-led Same week
OpenHands 84,273 All Hands AI Company-led Same day

Stars and push dates are a snapshot pulled directly from each repository's GitHub API record on August 17, 2026, not a permanent ranking, they change daily. The pattern worth noting: 14 of these 15 projects are led by a single company, which means the roadmap, and occasionally the licence, can shift whenever that company's strategy does. AG2 is the one project here with genuinely open, non-corporate governance.

1. LangGraph: The Production Standard for Stateful Agents

LangGraph, from LangChain Inc, models an agent as a graph of nodes and edges instead of a single prompt loop, which is what makes pause, resume, branching, and "time travel" debugging native rather than bolted on. That checkpointing model is the main reason it shows up so often as the production default once a team moves past a prototype. It works standalone or alongside the broader LangChain ecosystem, and ships for both Python and TypeScript.

The trade-off is the graph mental model itself: it takes longer to learn than a role-based crew, and the best observability layer, LangSmith, is free for one seat but priced per seat beyond that. For a hands-on walkthrough, see our build an AI agent with LangGraph tutorial.

What you get What you don't
Native checkpointing, pause, resume, time-travel debugging Steeper learning curve than role-based frameworks
Human-in-the-loop approval steps as a first-class primitive Full observability (LangSmith) is paid beyond one free seat
Large integration ecosystem via LangChain More boilerplate than CrewAI for a simple single-agent task
Python and TypeScript support Deployment tooling (LangGraph Platform) is a separate paid layer

Licence: MIT. Best for: Teams building agents that must pause, resume, and recover state without losing progress.

2. CrewAI: Role-Based Crews, Fastest Time to a Working Demo

CrewAI defines agents by role, goal, and backstory, groups them into a crew, and runs them sequentially or hierarchically against a set of tasks. That structure, plus a large tutorial and course ecosystem, is why it's often the fastest path from zero to a working multi-agent demo. Flows add a more deterministic, code-first control layer for teams who outgrow pure autonomous crews.

CrewAI Inc's hosted AMP platform handles deployment and observability, and pricing simplified in 2026 to a free Basic tier (50 executions per month) and a custom Enterprise tier, after a self-serve Professional plan was discontinued. For hands-on setup, see build an AI agent with CrewAI.

What you get What you don't
Fastest path to a working multi-agent demo Role-play abstraction can feel like overhead for one simple agent
Both autonomous crews and deterministic Flows in one framework Production-grade observability lives behind the AMP cloud product
Large community, courses, and templates No public self-serve paid tier anymore, only free or Enterprise
MIT licence, fully permissive Deep durability across long-running tasks is thinner than LangGraph

Licence: MIT. Best for: Teams that want role-based multi-agent collaboration running in an afternoon.

3. AutoGen and AG2: One Framework, Two Paths After the Split

Microsoft's AutoGen was one of the first widely-adopted multi-agent conversation frameworks. In late 2024, several of its original creators left Microsoft and forked the project into AG2, first as a GitHub fork and then as its own organization, inheriting the autogen and pyautogen PyPI package names in the process. The split was about governance: Microsoft kept AutoGen company-led, while AG2 became community-governed.

AutoGen maintenance path toward Microsoft Agent Framework compared with AG2 continuing active community-led development

As of 2026, Microsoft's AutoGen is officially in maintenance mode: no new features, with development redirected into Microsoft Agent Framework (merged with Semantic Kernel, GA April 3, 2026). AG2, by contrast, is actively developed under Apache-2.0, with a published roadmap toward 1.0 and cross-framework interoperability work under an "AgentOS" banner. If you want the conversational multi-agent pattern AutoGen popularized, with ongoing open-source development, AG2 is now the living project. For the underlying pattern either way, see multi-agent systems.

What you get What you don't
AutoGen: mature conversational multi-agent pattern, huge existing codebase examples AutoGen: no new features, migration guides point to Microsoft Agent Framework
AG2: same pattern, Apache-2.0, actively maintained, open governance AG2: far smaller community and star count than AutoGen or LangGraph
Both: proven multi-agent "conversation as control flow" model Both: less native durability tooling than LangGraph's checkpointing

Licence: AutoGen: MIT (code), CC-BY-4.0 (non-code assets). AG2: Apache-2.0. Best for: Teams already invested in AutoGen's pattern who need to decide between following Microsoft or staying open source with AG2.

4. OpenAI Agents SDK: The Lightest SDK, Built by the Model Vendor

The OpenAI Agents SDK is the production successor to OpenAI's experimental "Swarm" pattern: a deliberately small set of primitives (Agents, Handoffs, Guardrails, Sessions) built on top of the Responses API. Despite the name, it isn't locked to OpenAI models. An official LiteLLM extension gives it access to more than 100 providers, including Anthropic, Gemini, and Bedrock, through the same agent code.

Worth stating plainly: this is a different product from the OpenAI Assistants API, which OpenAI is retiring on August 26, 2026. The Agents SDK is the actively developed path forward; the Assistants API is not.

What you get What you don't
Minimal surface area, fast to learn end to end Youngest major framework here, fewer battle-tested production patterns
Backed directly by a frontier model lab Thinner built-in persistence story than LangGraph's checkpointing
Genuine multi-provider support via the official LiteLLM extension Name invites confusion with the deprecated Assistants API
Python and TypeScript, MIT licence LiteLLM provider support is officially best-effort, still in beta

Licence: MIT. Best for: Teams that want the smallest possible dependency footprint and are comfortable wiring their own persistence.

5. Pydantic AI: Type-Safe Agents for FastAPI-Trained Teams

Pydantic AI comes from the team behind Pydantic itself, the validation library most Python web APIs already depend on, and it shows: agent outputs are structured and validated by construction rather than parsed hopefully from a text blob, and tool dependencies are injected the way FastAPI injects request dependencies. That makes malformed tool calls a type error you catch in testing, not an incident you catch in production.

The framework itself is fully open and free. Logfire, the team's optional observability product, is separate: a free tier with 10 million spans a month, a Team tier at $49 a month for five seats, and a Growth tier at $249 a month for unlimited seats, all confirmed on pydantic.dev/pricing.

What you get What you don't
Structured, validated outputs by construction, not by hope Younger ecosystem than LangGraph or CrewAI, fewer community templates
FastAPI-style dependency injection makes testing straightforward Multi-agent choreography is less opinionated, you design more of it yourself
Backed by a team most Python shops already trust Smaller catalog of pre-built integrations than the LangChain ecosystem
Model-agnostic, MIT licence Optional Logfire observability is a separate paid product

Licence: MIT. Best for: Python teams that want agent outputs to fail a type check instead of failing in production.

6. Microsoft Semantic Kernel: Enterprise .NET and Python, Now in Maintenance Mode

Semantic Kernel built its reputation on enterprise connectors: Azure AD, Key Vault, Application Insights, and a plugin/planner model that mirrors how .NET shops already structure business logic. It's also the only framework on this list with mature Java support alongside .NET and Python.

The fact that matters most for anyone evaluating it new: Microsoft merged Semantic Kernel with AutoGen into Microsoft Agent Framework, generally available since April 3, 2026, and Semantic Kernel itself is now in maintenance mode. It still receives security fixes, but new orchestration patterns are landing in the successor, not here.

What you get What you don't
Mature enterprise connector ecosystem (Azure AD, Key Vault, App Insights) Officially in maintenance mode as of 2026
Rare multi-language support: .NET, Python, and Java New projects are steered toward Microsoft Agent Framework
Strong plugin and function-calling model Python examples and docs lag behind .NET
MIT licence, fully permissive Migration planning is now a real line item, not optional

Licence: MIT. Best for: Teams with an existing Semantic Kernel investment who need a stable bridge while planning a Microsoft Agent Framework migration.

7. LlamaIndex Workflows: Event-Driven Orchestration From a RAG Pedigree

LlamaIndex Workflows models an agent as a set of async steps that emit and consume typed events, so a multi-step agent reads like a small state machine instead of a dedicated graph DSL. It grew directly out of LlamaIndex's data-connector and retrieval heritage, LlamaHub included, which shows in how naturally it handles agents whose core job is pulling from documents and structured data rather than pure conversation.

LlamaIndex Inc's hosted LlamaCloud handles parsing and indexing at usage-based rates, kept separate from the orchestration framework, which stays free and open.

What you get What you don't
Best-in-class data connectors and retrieval primitives Smaller multi-agent-specific community than LangGraph or CrewAI
Lightweight event model, easy to reason about step by step Most tutorials still assume a RAG use case even for general agents
Works standalone or layered under the full LlamaIndex stack Workflow context serialization is newer than LangGraph's checkpointing
Python and TypeScript, MIT licence Hosted LlamaCloud is a separate usage-based product, not free

Licence: MIT. Best for: Teams building agents where retrieval over documents or data is the core job, not an add-on.

8. Agno: The Performance-First Framework Formerly Known as Phidata

Agno, renamed from Phidata in January 2025, now positions itself less as a library and more as an "agentic operating system," built around Agents, Teams, and Workflows abstractions plus a runtime called AgentOS that owns durable state and exposes it over HTTP. The pitch is speed: Agno's own published benchmarks claim roughly 5,000 times faster agent instantiation and about 50 times less memory than LangGraph. That's a vendor claim worth benchmarking against your own workload before you rely on it, not an independently verified figure.

What you get What you don't
Genuinely lightweight runtime, useful for high-concurrency agent fleets Performance claims are vendor-published; verify on your own workload
Built-in multi-modal support and session storage Smaller community and fewer third-party tutorials than the top frameworks
Fast release cadence since the 2025 rebrand Younger governance model than the Microsoft- or LangChain-backed options
Apache-2.0, fully permissive AgentOS hosted control plane pricing isn't publicly listed

Licence: Apache-2.0. Best for: Teams running large numbers of concurrent lightweight agents where instantiation overhead is a real, measured bottleneck.

9. Mastra: TypeScript-Native Agents for Full-Stack JS Teams

Mastra, built by a team that includes former Gatsby engineers, is the first framework on this list designed API-first for TypeScript rather than ported from a Python design. Workflows, agents, RAG, evals, and a memory layer are built to sit naturally inside an existing Next.js or Node service, which matters if standing up a separate Python microservice just to run agents isn't worth the operational overhead.

The core framework is Apache-2.0. An ee/ directory carries a separate Mastra Enterprise licence, source-available for development but requiring a paid licence in production, and the optional Mastra Cloud control plane starts free (100,000 observability events, 24 CPU hours, 15-day retention) with a Teams tier at $250 a month, confirmed on mastra.ai/pricing.

What you get What you don't
API-first TypeScript design, not a ported Python framework Open-core licence: ee/ directory needs a paid licence in production
Fits naturally inside an existing Next.js or Node stack Younger than the Python-first incumbents, fewer production war stories
Native workflow suspend and resume, pluggable memory Smaller plugin ecosystem than LangChain's ten thousand-plus integrations
Active docs and a fast release cadence Mastra Cloud overage pricing ($10/100K events, $0.35/CPU hour) adds up at scale

Licence: Apache-2.0 (core), separate commercial licence for ee/. Best for: JavaScript and TypeScript teams that don't want to stand up a separate Python service just to run agents.

10. smolagents: Hugging Face's Minimal, Code-Writing Agents

smolagents takes a different bet than the rest of this list: instead of chaining JSON tool calls, its core "CodeAgent" writes and executes small pieces of Python as its primary action. Hugging Face's argument is that this cuts the number of steps and the error rate compared to classic tool-calling loops, since a model writing results = [search(q) for q in queries] does in one step what three sequential tool calls would need. The core library is deliberately small, small enough to read end to end in an afternoon.

What you get What you don't
Genuinely tiny, auditable core you can read in an afternoon Minimal by design, so you assemble more production scaffolding yourself
Code-as-action pattern reduces tool-call chaining errors Less suited to complex multi-agent choreography out of the box
Native Hugging Face Hub and Inference integration Smaller ecosystem of third-party integrations than LangChain or LlamaIndex
Apache-2.0, fully permissive No official hosted deployment or observability product

Licence: Apache-2.0. Best for: Teams that want to understand every line of their agent loop, or that are already deep in the Hugging Face ecosystem.

11. Haystack: Production Retrieval Pipelines With Agents Built In

Haystack, maintained by the German company deepset, started as a search and retrieval pipeline framework years before "agent" became the industry's word of the month, and that heritage shows in how explicit and battle-tested its component and pipeline model is for retrieval and document processing. Agents in Haystack are built as components inside the same pipeline graph, not a separate bolt-on concept.

deepset sells a Haystack Enterprise Starter (support plus production templates) and a full Haystack Enterprise Platform on top of the open core, both priced by organization size rather than published as a rate card.

What you get What you don't
Explicit, mature pipeline control over retrieval and routing Pipeline-first mental model feels less conversational than CrewAI
Strong document processing and evaluation tooling from search-engine roots Smaller mindshare in agent-specific tutorials despite the maturity
Real production deployments predating the current agent hype cycle Enterprise pricing isn't published, org-size-based on request
Apache-2.0, fully permissive Fewer default multi-agent orchestration patterns than CrewAI or AutoGen

Licence: Apache-2.0. Best for: Teams whose agent's real job is accurate retrieval and document handling, with conversation as a thin layer on top.

12. Dify: The Full LLMOps App, With a Licence You Should Actually Read

Dify packages a visual workflow builder, a prompt IDE, a RAG pipeline, agent orchestration, and observability into one self-hosted application, which makes it closer to a full LLMOps platform than a code library. That breadth, plus a large community, is likely why it sits among the most-starred repositories in this entire list, second only to Langflow. LangGenius, the company behind it, also runs Dify Cloud: a free Sandbox tier, Professional at $59 a month ($590 a year billed annually), Team at $159 a month ($1,590 a year billed annually), and a custom Enterprise tier, all confirmed on dify.ai/pricing.

Read the licence section above before betting a resold product on this one: Dify's modified Apache-2.0 licence blocks operating it as a multi-tenant SaaS without a commercial licence from LangGenius. For a fully-managed alternative that sidesteps the self-hosting question entirely, see our best no-code AI agent builders roundup.

What you get What you don't
Broadest feature surface here: builder, RAG, agents, evals, observability in one app Licence blocks reselling it as your own multi-tenant SaaS without a paid licence
Huge community, fast to a working internal tool without writing orchestration code Console branding can't be stripped outside a paid tier
Self-hosted or Dify Cloud, your choice Message-credit pricing on Cloud adds a metering layer to plan around
Among the most-starred repos in this list, very active development Source-available, not OSI open source, despite the Apache-2.0 base

Licence: Modified Apache-2.0 ("Dify Open Source License"), source-available. Best for: Teams that want an internal, self-hosted LLM app builder for employees, not a codebase to embed inside a resold product.

13. Langflow: Drag-and-Drop Building, Now Inside IBM's Orbit

Langflow puts a visual canvas over LangChain-style components, and it exports what you build as runnable Python or a callable API endpoint, which makes it a genuinely popular way to prototype an agent flow and hand it to engineers, or to demo one to a non-technical stakeholder. DataStax acquired Langflow in April 2024, and IBM closed its acquisition of DataStax in May 2025, so Langflow's roadmap now sits inside IBM's watsonx strategy.

Unlike Dify or Flowise, Langflow carries no licence carve-out: it's MIT, full stop.

What you get What you don't
True MIT licence with no enterprise carve-out Visual flows are harder to version-control and code-review at scale than plain code
Visual canvas lowers the bar for non-engineers to prototype An IBM-owned roadmap may prioritize watsonx integration over community requests
Exports to runnable Python or an API endpoint Largest repo by star count here, but that also means the most feature sprawl to sort through
Backed by IBM's distribution and enterprise sales motion Less TypeScript-native than Flowise if your stack is JavaScript-first

Licence: MIT. Best for: Teams that want a free, MIT-licensed visual builder for prototyping before committing a flow to hand-written code.

14. Flowise: The JavaScript-Native Visual Builder Workday Just Bought

Flowise is the TypeScript-native answer to Langflow's Python-first canvas, which matters if your backend is already a Node service and you don't want to bring Python into the stack just for agent prototyping. Workday announced its acquisition of FlowiseAI in August 2025, confirmed in Workday's own newsroom, and the tool is now expected to feed Workday's enterprise HR and finance agent roadmap over time.

The core framework stays Apache-2.0, with an enterprise/ directory carrying a separate proprietary licence. Flowise Cloud runs free (2 flows, 100 predictions a month), Starter at $35 a month (10,000 predictions), and Pro at $65 a month (50,000 predictions, five users included, $15 per extra user), all confirmed directly on flowiseai.com.

What you get What you don't
Easiest visual builder to self-host inside a Node stack Open-core licence keeps some enterprise capability out of the free tier
Free cloud tier for small projects Workday's ownership makes its long-term neutrality as a general tool worth watching
Enterprise-grade backing and support since the acquisition Cloud predictions pricing excludes model and vector-storage costs
Apache-2.0 core, genuinely self-hostable Smaller community than Langflow or Dify

Licence: Apache-2.0 (core), proprietary licence for enterprise/. Best for: JavaScript teams that want the Langflow experience without bringing Python into the stack.

15. OpenHands: The Open-Source Autonomous Software Engineer

OpenHands, renamed from OpenDevin in late 2024 and built by All Hands AI, does a different job than the other 14 frameworks on this list. It's not a general-purpose library you assemble a custom agent on top of, it's a specialized runtime that gives an agent a real sandboxed shell, browser, and code editor so it can plan, write, run, test, and fix code autonomously. If you're comparing it against hosted coding-agent products instead, see our best AI coding agents roundup.

All Hands AI runs OpenHands Cloud alongside the free local version: an Individual tier that's free with your own API key or pay-at-cost model access, and a custom Enterprise tier for private-VPC or self-hosted deployment with SSO, confirmed on openhands.dev/pricing.

What you get What you don't
Genuinely autonomous end-to-end loop: plan, code, run, test, fix Narrower purpose than the rest of this list, built for coding specifically
MIT licence with no carve-outs Safe, sandboxed execution takes real setup effort to run well self-hosted
Free local mode plus an at-cost hosted option Not a toolkit for building a customer support or sales agent
Large, fast-growing community (backed by an $18.8M Series A) Enterprise pricing isn't published, custom quote only

Licence: MIT. Best for: Teams that want an open, self-hostable alternative to closed coding-agent products, not a framework to build a general-purpose agent on.

The Real Cost of "Free"

Every framework's code is free in all 15 cases. What isn't free is everything that makes an agent trustworthy enough to run unattended. Almost every vendor on this list monetizes the same layer: not the orchestration code, but the observability, evaluation, and managed hosting wrapped around it.

What's Free What Usually Isn't Who Charges For It
The orchestration or builder code itself Production-grade tracing and evaluation LangSmith, Pydantic Logfire, Mastra Cloud, CrewAI AMP
Running the framework on your own infrastructure Managed deployment and hosting LangGraph Platform, Dify Cloud, Flowise Cloud, OpenHands Cloud
Basic self-hosting for internal use Enterprise support, SSO, RBAC, and SLAs Every vendor here, once you cross roughly 10 to 20 seats
Reading the documentation The engineering hours to wire memory, retries, and guardrails yourself Nobody bills for this, which is exactly why it's the real cost

Budget for that last row before you budget for a licence fee. A framework with a $0 price tag and no engineer who understands its state model is more expensive than a framework with a modest hosted tier and a team that's fluent in it.

How to Choose: Decision Framework

Match your situation to the right starting point, then read that framework's full section above before committing.

Open-source AI agent framework decision workbench matching language, state durability, visual building, retrieval, and self-hosted ownership

If you need... Pick... Why
Durable, pausable, resumable production workflows LangGraph Native checkpointing and time-travel debugging, nothing bolted on
A working multi-agent demo by end of day CrewAI Role-based crews are the fastest path to something that runs
The AutoGen conversational pattern, still actively maintained AG2 Apache-2.0, community-governed, AutoGen itself is now maintenance-only
The lightest SDK, from the model vendor itself OpenAI Agents SDK Minimal primitives, genuine multi-provider support via LiteLLM
Agent outputs that fail a type check instead of production Pydantic AI Structured, validated outputs by construction
Retrieval-heavy agents over documents and data LlamaIndex Workflows Built on the strongest RAG and data-connector heritage here
Thousands of concurrent, lightweight agents Agno Purpose-built for low instantiation overhead, verify claims yourself
A TypeScript-native framework inside a Next.js stack Mastra API-first TypeScript design, not a ported Python library
A visual builder your less technical teammates can use Langflow or Flowise MIT (Langflow) or Apache-2.0 core (Flowise), pick by Python vs Node
One self-hosted app covering builder, RAG, agents, and evals Dify Widest feature surface, but read the licence before reselling it
An autonomous agent that ships code, not conversation OpenHands Purpose-built coding-agent runtime, not a general library
An existing Microsoft stack, planning ahead Semantic Kernel, then Microsoft Agent Framework SK is stable but in maintenance mode; the successor is where new work lands

If your team would rather evaluate a fully managed platform instead of assembling one from a framework, our best enterprise AI agent platforms roundup and our choosing an AI agent platform guide both cover that path.

What to Do Next

Don't evaluate all 15 frameworks at once. Narrow to two based on your language (Python or TypeScript) and your build style (code library or visual app), then build the same small agent, one tool call, one multi-step handoff, and one deliberate failure case, in both. The framework that survives you trying to break it is the one to build on.

If your team would rather not build the agent at all, our best AI agent platforms roundup covers managed alternatives, and the how to build an AI agent guide walks through the underlying steps regardless of which framework you end up choosing.

About the author

Camellia

Camellia

Principal Product Marketing Strategist

Camellia is Principal Product Marketing Strategist at Rework, helping B2B buyers pick the right software with confidence. With 6+ years in product marketing and 150+ SaaS tools evaluated across CRM, project management, and sales engagement, Camellia turns competitive intelligence into clear, honest comparisons. Readers get vendor evaluations they can trust to cut through marketing noise and decide faster.