Choosing among open source AI agents is less about finding the "best" framework and more about matching a project to the architecture, language, and deployment model you already have. A graph-based orchestration library, a lightweight SDK, and a full agent platform can all appear on the same top-ten list, but they solve different problems at different layers of the stack.
This comparison narrows the field to ten open source AI agent frameworks that were actively maintained as of October 2026. It explains what each is designed for, how it handles state, human approval, and observability, what it takes to run, and where it falls short. It is a research-led comparison based on official repositories, license files, package registries, and project documentation. FlowQik did not install or benchmark these frameworks, so the article makes no claims about speed, reliability, or output quality.
If you need the conceptual foundation first (what agents are, how they use tools, and where they fit), start with FlowQik's AI agents guide. This page assumes you already know you want to build with code.
Repository facts in the comparison below were checked against official sources on October 11, 2026; versions may have changed since.
| Framework | Best for | Language(s) | License | Layer / deployment | Maintenance signal | Key tradeoff |
|---|---|---|---|---|---|---|
| LangGraph | Explicit, stateful graph orchestration | Python, TypeScript | MIT | Low-level orchestration library; self-host in your own service | Frequent releases; stable 1.x line | Most control, most code; best tracing and managed deployment are commercial LangSmith products |
| Microsoft Agent Framework | Enterprise teams on .NET or Python | Python, C#/.NET, Go | MIT | SDK plus workflow runtime; self-host or Azure-hosted | Multiple releases per month; stable 1.x | Azure-leaning defaults; newer project with fast-moving surface |
| CrewAI | Role-based multi-agent teams plus event-driven flows | Python | MIT | Framework; self-host, optional commercial control plane | Very high release cadence | High-level abstractions can hide behavior; rapid change |
| OpenAI Agents SDK | Lightweight agents with handoffs and guardrails | Python, TypeScript | MIT | Lightweight SDK; runs in your process | Frequent releases; still 0.x | Thin orchestration; tracing defaults are OpenAI-centric |
| Google ADK | Hierarchical multi-agent systems with built-in evaluation | Python, TypeScript, Java, Go | Apache 2.0 | Framework plus workflow runtime; any container, or Google Cloud | Frequent releases; 2.x line | Optimized for Gemini and Google Cloud |
| Pydantic AI | Type-safe Python agents and structured output | Python | MIT | Agent library; runs in your process | Very frequent releases | Python only; multi-agent orchestration is something you compose |
| Strands Agents | Model-driven agents you embed with no control plane | Python, TypeScript | Apache 2.0 | In-process SDK plus optional harness | Frequent releases | Fewer prescriptive orchestration patterns |
| Mastra | TypeScript teams building agents into web apps | TypeScript | Apache 2.0 core, separate license for ee/ code | Framework; embed in Node apps or run as a server | Very high release cadence | Enterprise directories are not Apache-licensed |
| Agno | Teams that want a framework plus a self-hosted agent runtime | Python | Apache 2.0 | Framework plus AgentOS runtime | Very active contributor base | Platform-style surface is more to operate |
| smolagents | Minimal code-writing agents and experimentation | Python | Apache 2.0 | Small library | Slowing: last release May 2026 | Code execution needs sandboxing; few production features |
What Qualifies As An Open-Source AI Agent Framework Here
Many projects mention agents. Far fewer are built around them. To make this list, a project had to meet all of the following:
- Verified open-source license. The license file in the official repository is a recognized open-source license (MIT or Apache 2.0 for every project below).
- Agents are central. Building, orchestrating, or running agents is the project's main purpose, not one example in a broader toolkit.
- Active maintenance. Recent commits and releases, checked against the repository and package registry rather than an old roundup.
- Current documentation. Enough official material to evaluate architecture, state, and deployment responsibly.
- Developer-first. A code library, SDK, or framework, rather than a visual builder or a hosted product with a small open-source client.
GitHub stars were not a selection criterion. Stars measure how many people noticed a project at some point. They say little about whether its APIs are stable, whether maintainers respond to issues, or whether the project is still the vendor's recommended path. AutoGen is the clearest example: it remains one of the most-starred agent repositories, yet Microsoft now tells new users to start elsewhere.
Framework, SDK, Runtime, Or Platform
The projects below sit at different layers, and that matters more than feature lists suggest.
A library or SDK (Pydantic AI, OpenAI Agents SDK, Strands Agents, smolagents) runs inside your application process. You bring the web server, database, queue, and deployment. A framework with a workflow runtime (LangGraph, Microsoft Agent Framework, Google ADK, Mastra, CrewAI) adds orchestration primitives such as graphs, checkpointing, and resumable execution. An agent platform (Agno with AgentOS) ships a runtime and API server meant to be deployed as a service. And agent applications such as coding agents are finished products you run rather than frameworks you build on, so they are outside this comparison.
Comparing a library to a platform on features alone is misleading. The library will look thinner because it expects you to own more of the stack.
The Frameworks, Evaluated
Each entry lists the facts that most often decide a shortlist, then covers architecture, state and control, deployment, and limitations. Version numbers reflect what was on PyPI or npm on October 11, 2026.
1. LangGraph: Best For Explicit, Stateful Graph Orchestration
Language: Python, TypeScript (LangGraph.js) · License: MIT · Maintainer: LangChain Inc. · Layer: low-level orchestration library · Latest: Python 1.2.14 (October 2026), JS 1.4.21 (October 2026)
LangGraph describes itself as a low-level orchestration framework for long-running, stateful agents. You model an agent or multi-agent system as a graph of nodes and edges with shared state, which gives you precise control over branching, loops, and where a model is allowed to make decisions. Its design draws on Google's Pregel and Apache Beam, and the repository is explicit that it provides infrastructure rather than prescribing an agent architecture.
State is where LangGraph is strongest. The official documentation covers durable execution (agents resume from where they stopped after a failure), interrupts that pause a run so a person can inspect or modify state, and both short-term and long-term memory. Checkpointing is pluggable, and the repository includes a checkpoint conformance suite for persistence backends. Model support comes through LangChain's integration packages, which include hosted providers and local runtimes. For teams that want a faster start, LangChain now points to Deep Agents, a higher-level package built on top of LangGraph.
The open-source library can run anywhere Python or Node runs, inside your own API service. The tracing, evaluation, and managed deployment features that the README highlights belong to LangSmith and LangSmith Deployment, which are commercial products. You can use LangGraph without them and send traces elsewhere, but some of the polished debugging experience assumes that ecosystem.
Limitations: The low-level design means more code and more concepts (state schemas, reducers, checkpointers) than higher-level frameworks. Teams that only need a single tool-calling agent may find it heavier than necessary.
Consider it if you need deterministic control over agent flow, durable long-running runs, or approval checkpoints, and you are comfortable writing orchestration code.
2. Microsoft Agent Framework: Best For Enterprise Teams Working In ..NET Or Python
Language: Python, C#/.NET, Go (separate repository) · License: MIT · Maintainer: Microsoft · Layer: SDK plus graph workflow runtime · Latest: Python 1.21.0 (October 2026), marked Production/Stable on PyPI
Microsoft Agent Framework (MAF) is Microsoft's successor to AutoGen and is positioned for teams moving agents from prototype to production. It offers consistent APIs across Python and .NET, with a Go SDK maintained in a separate repository. That makes it the most natural option on this list for organizations whose backend is C#.
The framework combines individual agents with graph-based workflows that support sequential, concurrent, handoff, and group-collaboration patterns. According to the repository, workflows include checkpointing, streaming, human-in-the-loop steps, and time-travel debugging. Other documented features include a middleware system for request and exception handling, built-in OpenTelemetry tracing, declarative agents defined in YAML, a local DevUI for testing, and an evaluation sample set. Provider samples include Azure and Foundry models as well as Ollama for local models.
You can self-host MAF agents like any Python or .NET service. Microsoft also offers Foundry-hosted agents, a managed option that the README says takes a couple of extra lines of code. Experimental work lives in a separate "AF Labs" package, which is a useful signal: the core is meant to be stable, and anything in Labs is not.
Limitations: Defaults and samples lean toward Azure services, so non-Azure teams should check that their preferred providers and storage backends are equally well documented. The API surface is still expanding quickly.
Consider it if you are a .NET shop, are migrating from AutoGen or Semantic Kernel, or need governance features such as middleware, OpenTelemetry, and approvals from day one.
3. CrewAI: Best For Role-Based Multi-Agent Teams With Event-Driven Flows
Language: Python (3.10 to 3.13) · License: MIT · Maintainer: crewAI, Inc. · Layer: framework · Latest: 1.15.27 (October 2026)
CrewAI offers two complementary abstractions. Crews organize agents by role, goal, and backstory and let them collaborate on tasks, which is a fast way to express "researcher, writer, reviewer" style systems. Flows provide event-driven, deterministic control over execution and can call single LLM steps or entire crews. The combination lets teams start with autonomous collaboration and add tighter control as a system matures.
Current documentation covers human input during execution, checkpointing, structured outputs, and memory. The README states that CrewAI supports local models through tools such as Ollama and LM Studio, in addition to hosted providers. The open-source framework is self-hostable. The commercial CrewAI AMP Suite adds managed deployment, tracing, governance, and enterprise support, so keep in mind which observability features you are evaluating.
Release cadence is a notable signal. CrewAI published well over ninety PyPI releases between mid-July and October 2026. That shows active development, but it also means frequent change, and the repository maintains versioned documentation for a reason.
Limitations: Role-based abstractions are quick to start but can make it harder to see exactly what prompts and calls are being made, which matters when debugging cost or behavior. Multi-agent designs also add coordination overhead and model calls compared with a single well-scoped agent.
Consider it if your problem maps naturally to specialized roles, you work in Python, and you want a path from quick multi-agent prototypes to more controlled flows.
4. OpenAI Agents SDK: Best Lightweight SDK For Handoffs And Guardrails
Language: Python, TypeScript · License: MIT · Maintainer: OpenAI · Layer: lightweight SDK · Latest: Python 0.23.1 (October 2026), JS 0.20.0 (October 2026)
The OpenAI Agents SDK is deliberately small. Its core concepts are agents with instructions and tools, handoffs and agents-as-tools for delegation, guardrails for input and output validation, sessions for conversation history, human-in-the-loop mechanisms, and built-in tracing. Newer additions include sandbox agents that work inside a container for longer tasks, plus realtime and voice agents.
Despite the vendor name, the README describes the SDK as provider-agnostic. It supports OpenAI's Responses and Chat Completions APIs and, through its LiteLLM integration, more than 100 other models. Tools can be plain functions, MCP servers, or OpenAI-hosted tools (the hosted ones naturally require OpenAI). Because it runs in your process, deployment is whatever you already use for Python or Node services. A Temporal example in the repository shows one route to durable execution.
Limitations: The SDK is still on 0.x versions, so expect API changes. It provides primitives rather than a workflow engine, so complex branching, persistence, and resumability are largely your responsibility. Built-in tracing is designed around OpenAI's dashboard, so teams on other providers will want to configure their own trace processors.
Consider it if you want minimal abstraction, clear multi-agent delegation, and a codebase that is easy to read, in either Python or TypeScript.
5. Google Agent Development Kit (ADK): Best For Hierarchical Multi-Agent Systems With Built-In Evaluation
Language: Python (3.11+), TypeScript, Java, Go · License: Apache 2.0 · Maintainer: Google · Layer: framework plus workflow runtime · Latest: Python 2.11.0 (October 2026), npm 2.2.1 (October 2026)
ADK is the widest multi-language option here, with official repositories for Python, TypeScript, Java, and Go. Version 2.0 added a graph-based workflow runtime that supports routing, fan-out and fan-in, loops, retries, state management, and nested workflows, alongside a Task API for structured agent-to-agent delegation. Agents can be composed into hierarchies, and tools can come from custom functions, OpenAPI specifications, or MCP servers.
ADK documents a tool-confirmation flow for human-in-the-loop approval, and evaluation is a first-class part of the project rather than an add-on. The repository includes samples for running Gemma through Ollama and for using other providers through LiteLLM. Google describes ADK as optimized for Gemini but model-agnostic.
Agents can be containerized and run anywhere, with documented paths to Cloud Run and Vertex AI Agent Engine for teams that want Google-managed infrastructure.
Limitations: Gemini and Google Cloud receive the deepest integration, so teams committed to other providers should check that the features they need work equally well outside that ecosystem. The 2.0 workflow runtime is relatively new.
Consider it if you need Java or Go support, want evaluation built in, or already run on Google Cloud.
6. Pydantic AI: Best For Type-Safe Python Agents And Structured Output
Language: Python (3.11+) · License: MIT · Maintainer: Pydantic · Layer: agent library · Latest: 2.55.0 (October 2026), marked Production/Stable
Pydantic AI comes from the team behind Pydantic, and its design reflects that: agents return validated, typed outputs, tools receive typed dependencies through a run context, and switching models is a one-string change. It is well suited to agents that must produce reliable structured data for downstream systems.
The library has grown well beyond a simple wrapper. It now offers composable "capabilities," a separate Harness package for long-running work (file access, shell, sub-agents, context management), deferred tool calls that can pause for human approval, an evaluation package (pydantic-evals), and durable execution through integrations such as Temporal. Its model support includes Ollama for local models and a LiteLLM provider. Pydantic Logfire, the team's commercial observability product, is the most integrated tracing option, but it is optional.
Limitations: It is Python only. Multi-agent systems are composed from agents, tools, and delegation rather than provided as prebuilt orchestration patterns. Rapid releases mean you should pin versions.
Consider it if your team values type safety, testability, and validated outputs, and you prefer a library over a framework that dictates architecture.
7. Strands Agents: Best For Model-Driven Agents With No Hosted Control Plane
Language: Python, TypeScript · License: Apache 2.0 · Maintainer: Strands Agents project (originated at AWS) · Layer: in-process SDK plus optional harness · Latest: Python 1.59.0 (October 2026), TypeScript 1.20.0 (October 2026)
Strands takes a model-driven approach: you give the model tools and instructions, and the agent loop lets it plan and act, rather than you encoding every step in a graph. The README positions it as the option for teams that would otherwise write their own agent loop, noting that it runs in your process with no hosted control plane. A prebuilt "harness" offers a fully assembled agent, and you can drop down to the SDK to control the loop, tools, providers, memory, sessions, and hooks.
Documented features include hooks for intercepting any step, guardrails, steering handlers, MCP, streaming, structured output, multi-agent patterns, human-in-the-loop interventions, and an evaluation SDK. Model support covers Amazon Bedrock, Anthropic, OpenAI, Gemini, Ollama, and LiteLLM, along with custom providers. The project's canonical code now lives in a single monorepo (strands-agents/harness-sdk) containing both SDKs, the harness, and the docs.
Limitations: Model-driven loops give the model more say over control flow, which suits open-ended tasks but offers less built-in determinism than graph-first frameworks. Teams that need strict workflow guarantees will need to add structure themselves.
Consider it if you want a clean, provider-flexible agent loop you can embed and own, especially on AWS, in either Python or TypeScript.
8. Mastra: Best For TypeScript Teams Building Agents Into Web Applications
Language: TypeScript · License: Apache 2.0 for core, separate license for ee/ directories · Maintainer: Kepler Software, Inc. · Layer: framework; embedded or standalone server · Latest: @mastra/core 1.75.0 (October 2026)
Mastra is the most complete TypeScript-native option here. It combines agents, a graph-based workflow engine, memory, retrieval, evaluations, and observability, and is designed to integrate with React, Next.js, and Node.js or to run as a standalone server. Its model router connects to more than 40 providers through one interface, and its documentation includes Ollama and LM Studio providers for local models.
Workflows support suspend and resume, which is how Mastra implements human approval: a run pauses, its state is stored, and it continues once input arrives. Mastra can also author MCP servers that expose agents and tools to other systems. Mastra Studio provides a local interface for building and testing agents and workflows.
Licensing needs a careful read. The repository's license file states that code in directories named ee/ (including enterprise authentication and some editor and agent-builder components) is under a separate enterprise license, while everything else is Apache 2.0. The core framework is open source. Some enterprise features are not.
Limitations: It is TypeScript only. The very high release cadence (core versions move frequently) means upgrades need attention, and teams should confirm that any feature they rely on is not in an ee/ directory.
Consider it if your product is a TypeScript web application and you want agents, workflows, and memory in the same stack.
9. Agno: Best For Teams That Want A Framework And A Self-Hosted Agent Runtime Together
Language: Python · License: Apache 2.0 · Maintainer: Agno (formerly Phidata) · Layer: framework plus AgentOS runtime · Latest: 3.1.2 (October 2026)
Agno describes itself as a framework and runtime for agent platforms. You build agents with the SDK, run them with the AgentOS runtime, and manage them through a web interface. The starter templates set up a REST API for serving agents, a Postgres database for sessions, memory, knowledge, and traces, and an MCP server, all running in Docker.
That platform orientation means more is included out of the box than with most libraries here: more than 50 API endpoints with streaming, storage in your own database, human approval that can block sensitive tools, OpenTelemetry tracing and audit logs, JWT-based role-based access control with multi-tenant isolation, scheduling, and interfaces for Slack, Telegram, WhatsApp, Discord, AG-UI, and A2A. The cookbook includes checkpointing for crash recovery and local-model examples using Ollama and vLLM.
Two details are worth checking before adoption. Agno sends a telemetry event per agent run by default (the README says prompts and outputs are not sent, and it can be disabled with AGNO_TELEMETRY=false). And because the management UI is part of a broader product, confirm which pieces you can self-host fully and which are hosted.
Limitations: A runtime-plus-framework product gives you more to operate and upgrade than a library does. Teams that only need an agent embedded in an existing service may not want the platform layer.
Consider it if you want to self-host agents as a service with storage, access control, and approvals already designed in, and you work in Python.
10. smolagents: Best Minimal Library For Code-Writing Agents And Experimentation
Language: Python · License: Apache 2.0 · Maintainer: Hugging Face · Layer: small library · Latest: 1.26.0 (May 2026)
smolagents keeps its agent logic to roughly a thousand lines, which makes it easy to read end to end. Its distinctive feature is the CodeAgent, which writes its actions as Python code rather than JSON tool calls. It is model-agnostic, including local Transformers and Ollama models, accepts tools from MCP servers and LangChain, and can share tools and agents through the Hugging Face Hub.
Because CodeAgent executes generated code, sandboxing is essential. The README says so plainly and lists options including E2B, Blaxel, and Modal (managed cloud sandboxes) and Docker (self-hosted isolation).
The maintenance picture has changed. As of October 2026, the latest release was in May, and recent commits were mostly CI and security hardening rather than new features. That does not mean the project is abandoned, but it is a weaker signal than the rest of this list.
Limitations: Persistence, approval gates, and workflow orchestration are comparatively thin by design. Treat it as a research, learning, and prototyping tool unless your own infrastructure fills those gaps.
Consider it if you want to understand or experiment with code-acting agents, or you need a small dependency for a narrow task.
Projects Whose Status Has Changed
Several frequently recommended projects are missing from the main list because their current status does not match how older roundups describe them.
AutoGen. Microsoft's AutoGen repository now carries a maintenance-mode notice: no new features or enhancements, community management going forward, and a recommendation that new users start with Microsoft Agent Framework. Its last PyPI release (0.7.5) dates to September 2025. Existing users can follow Microsoft's official migration guide.
AG2. AG2 is a separately governed, Apache 2.0 project that grew out of AutoGen's earlier line and is actively released. Its current 1.x package no longer ships the classic autogen import or the ConversableAgent and GroupChat classes, which now live in a separate "AG2 Classic" package. Read the migration notes before assuming older AutoGen tutorials apply.
Letta (formerly MemGPT). Letta remains active and Apache 2.0 licensed, and it is well known for stateful agents with persistent memory. However, its original repository's README now says current development lives in a different repository (letta-code), which bundles an agent harness, terminal UI, and app server. Teams evaluating Letta should evaluate that codebase directly.
LlamaIndex and Haystack. Both are active, permissively licensed frameworks (MIT and Apache 2.0 respectively) with agent capabilities, but their center of gravity is retrieval and data pipelines. They are strong choices when an agent is mostly a knowledge-retrieval system, and they are better treated as adjacent options than core agent frameworks.
License Differences That Matter For Commercial Use
Every framework in the main list uses either MIT or Apache 2.0. Both are permissive: you can use, modify, and ship the code in commercial products without releasing your own source. The practical difference is that Apache 2.0 includes an explicit patent license and requires you to carry notices for modified files, while MIT is shorter and simpler. For most teams either is acceptable, but your legal team should review the exact terms. This is general information, not legal advice.
The more important risk is that "open source" is often used loosely in this category. Watch for these patterns:
- Open core with carve-outs. Mastra's core is Apache 2.0, but ee/ directories carry a separate enterprise license. Check which features you depend on.
- Source-available licenses. n8n is distributed under its Sustainable Use License, with .ee files under an enterprise license. That is not an OSI-approved open-source license, and it restricts certain commercial uses. Detailed evaluation belongs in FlowQik's n8n review. <!-- INTERNAL LINK: n8n Review (URL to be confirmed) -->
- Modified permissive licenses. Dify uses a modified Apache 2.0 license that requires a commercial license for operating multi-tenant environments and restricts removing branding from its frontend.
- Open SDK, proprietary runtime. The Claude Agent SDK's Python package is MIT licensed, but it bundles and drives the Claude Code CLI, which is not open source, and it is built around Anthropic's models. That makes it a different proposition from the provider-neutral frameworks above.
- Commercial companions. LangSmith, CrewAI AMP, Pydantic Logfire, and managed cloud hosting from Microsoft and Google are paid products around open-source cores. They are optional, but some documentation assumes you use them.
Architecture And Deployment Differences That Shape A Shortlist
Feature lists across these frameworks increasingly look alike: nearly all of them now document tool calling, MCP support, multiple model providers, and some form of human-in-the-loop. The differences that actually separate them are architectural.
Control model. LangGraph, Microsoft Agent Framework, Google ADK's workflow runtime, and Mastra's workflows let you define execution as an explicit graph, so you decide where the model has discretion. Strands and smolagents lean toward model-driven loops, where the model plans its own steps. CrewAI sits between them, with autonomous Crews and deterministic Flows. The OpenAI Agents SDK and Pydantic AI provide primitives you compose. More explicit control usually means more predictable behavior and more code. For the design patterns themselves, see FlowQik's agentic workflows guide.
Durability and resumability. Long-running agents fail mid-task. LangGraph, Microsoft Agent Framework, CrewAI, Agno, and Mastra document built-in checkpointing or suspend-and-resume. Pydantic AI, Strands, and the OpenAI Agents SDK document durable execution through integrations such as Temporal. If agents will run for minutes or hours, or wait for human approval, this matters more than almost any other feature.
Multi-agent support. Nearly every framework here supports multiple agents, through graphs, handoffs, hierarchies, or role-based crews. More agents are not automatically better. Each additional agent adds model calls, cost, latency, and another place for coordination to fail, and multi-agent traces are harder to debug. A single well-scoped agent with good tools often outperforms a crew on simple tasks.
Where it runs. Libraries (Pydantic AI, OpenAI Agents SDK, Strands, smolagents) run inside whatever service you already deploy. Frameworks with runtimes (LangGraph, Microsoft Agent Framework, ADK, Mastra, CrewAI) also typically need a persistence backend for checkpoints and memory, such as Postgres or Redis. Agno's AgentOS is designed to be deployed as its own containerized service. All ten can be self-hosted. Managed options exist from LangChain, CrewAI, Microsoft, and Google for teams that prefer not to operate infrastructure.
Local models. Every framework in the main list documents a path to local models, usually through Ollama, LM Studio, vLLM, or an OpenAI-compatible endpoint. The framework is rarely the constraint. Smaller local models are often less reliable at multi-step tool calling than hosted frontier models, so test your actual workflow before committing to a fully local stack.
Observability. Microsoft Agent Framework, Agno, and Strands document OpenTelemetry tracing directly. LangGraph, CrewAI, Pydantic AI, and the OpenAI Agents SDK have built-in tracing hooks with commercial dashboards from the same vendor, and most can export to other tools. Google ADK and Pydantic AI include evaluation tooling in the open-source project. Plan for observability early, because debugging an agent without step-level traces is mostly guesswork.
What "Free" Open Source AI Agents Actually Cost
Free open source AI agents are free to download, modify, and deploy. Running them is not free. The usual costs are:
- Model usage. Hosted model APIs charge per token, and agents make many calls per task, especially in multi-agent and retry-heavy designs.
- Infrastructure. Compute for the agent service, a database for state and checkpoints, and often a vector store for retrieval.
- Sandboxing. Code-executing agents need isolated environments, either self-hosted containers or paid sandbox services.
- Observability. Tracing and evaluation platforms are often paid beyond small free tiers.
- Developer time. Usually the largest cost: building, testing, monitoring, and upgrading a fast-moving dependency.
Local models can remove per-token API costs, but they shift the expense to GPU hardware or rented compute, and they may require more engineering to reach acceptable reliability.
How To Choose An Open-Source AI Agent Framework
Start with constraints you cannot change, then narrow by architecture, and only then compare features. A practical sequence:
- 1. Start from your language and runtime. This removes more options than any other factor. Python teams can consider almost everything here. TypeScript teams should look first at Mastra, LangGraph.js, the OpenAI Agents SDK for JS, Strands, and ADK for TypeScript. .NET teams should start with Microsoft Agent Framework. Java and Go teams have ADK, plus Microsoft Agent Framework's Go SDK.
- 2. Decide how much control the model should have. If the process path is mostly known and must be auditable, choose a graph-first framework (LangGraph, Microsoft Agent Framework, ADK workflows, Mastra workflows, CrewAI Flows). If the task is open-ended and you are comfortable letting the model plan, a model-driven loop (Strands, OpenAI Agents SDK, Pydantic AI, smolagents) keeps code smaller. How much autonomy to grant is a separate design question, covered in FlowQik's guide to autonomous AI agents.
- 3. Check durability and human approval. If runs are long or must pause for sign-off, confirm the framework supports checkpointing and resumable approval steps natively, or that you are ready to add a durable execution engine.
- 4. Confirm model and deployment flexibility. List the providers you need now and might need later, including local models. Check whether self-hosting is fully documented or whether the smoothest path runs through a vendor's cloud.
- 5. Read the license file, not the marketing page. Confirm the license in the repository, look for directories or files under separate terms, and check whether features you need are in a paid companion product.
- 6. Judge maintenance by more than stars. Look at release cadence over the last few months, the number of active contributors, whether maintainers respond to issues, whether the project has a stable major version, and whether the README carries maintenance or migration notices. Very fast release cadence signals activity but also churn, so pin versions.
- 7. Plan observability and evaluation before you build. Choose how you will trace tool calls, inspect state, and run evaluation sets. Retrofitting this after an agent misbehaves in production is much harder.
Shortlist By Situation
| If you are... | Shortlist first |
|---|---|
| Building a stateful, auditable workflow with approval steps | LangGraph, Microsoft Agent Framework |
| A .NET or Azure-centered team | Microsoft Agent Framework |
| Building in TypeScript inside a web app | Mastra, LangGraph.js, OpenAI Agents SDK (JS) |
| Prototyping role-based multi-agent systems in Python | CrewAI |
| Working on Google Cloud, or needing Java or Go | Google ADK |
| Prioritizing typed, validated outputs in Python | Pydantic AI |
| Wanting a minimal agent loop you fully own | Strands Agents, OpenAI Agents SDK |
| Self-hosting agents as a service with access control | Agno |
| Experimenting with code-acting agents | smolagents |
By role: Developers will usually weigh language fit, debuggability, and how much abstraction stands between them and the model call. Technical founders should weigh license terms, how quickly a small team can ship, vendor independence, and how easy it is to hire for the stack (Python and TypeScript have the largest talent pools). Automation architects should focus on state, checkpointing, approval gates, observability, and the system boundary between the agent and the business systems it touches.
If your team would rather assemble agents visually than in code, the no-code AI agents guide covers those platforms. For most code-first teams, the realistic next step is to pick two frameworks from the shortlist above and build the same small, real task in each. The differences in state handling, tracing, and code clarity tend to show up within a day.
Discussion
Comments
No approved comments yet. Be the first to join the discussion.