Python AI agent frameworks (2026)
Agent frameworks and SDKs whose listings say they are built for Python. Here are the top 25 of 27 from the AgentScout directory.
Quick answer: the top picks on this list, ranked by GitHub stars and listing maturity, are CrewAI, LlamaIndex and LangGraph, out of 25 tools listed below. At a glance: 25 open-source, 25 free or freemium and 25 local or self-hosted across 25 link-checked tools (last verified ).
Verified on : every tool link on this page was checked by our daily link check. No paid placements.
Ranked comparison (top 10)
| # | Tool | Pricing | Best for | Open source | Runs locally | GitHub stars |
|---|---|---|---|---|---|---|
| 1 | Open source + cloud | write code, build multi-agent systems | Yes | Self-hosted | 61,446 | |
| 2 | Open source + cloud | build an agent, automate workflows | Yes | Self-hosted | 53,110 | |
| 3 | Open source | build multi-agent systems, build an agent | Yes | Self-hosted | 45,728 | |
| 4 | Open source + cloud | build multi-agent systems, build an agent | Yes | Self-hosted | 43,362 | |
| 5 | Open source | write code, build an agent | Yes | Self-hosted | 39,350 | |
| 6 | Open source | build multi-agent systems, build an agent | Yes | Self-hosted | 30,989 | |
| 7 | Open source | write code, build an agent | Yes | Offline | 30,633 | |
| 8 | Open source | write code, build an agent | Yes | Offline | 21,832 | |
| 9 | Open source | build an agent, research the web | Yes | Self-hosted | 21,511 | |
| 10 | Open source | build an agent | Yes | Self-hosted | 9,369 |
Updated
How we picked and ranked: tools are matched by category, the pricing each maker states and what each tool says it does. They are ranked by GitHub stars as recorded on each listing (link checks 2026-12-04); tools without a tracked repo follow, by listing maturity. No paid placements.

1. CrewAI
CrewAI is an MIT-licensed Python framework for production multi-agent automation, independent of LangChain: Crews give role-based agents autonomy to collaborate on a task, and Flows add precise, event-driven control that mixes single LLM calls, regular code and Crews. A hosted platform adds deployment, tracing and management, and release 1.15.41 shipped Nov 12, 2026.
Pricing (as stated): Open source + paid cloud · Mature

2. LlamaIndex
LlamaIndex is an MIT-licensed Python framework for building agents and RAG pipelines over your own documents and data, with connectors, indexes, query engines and agent workflows. The company now focuses on document parsing and extraction: LlamaParse is its hosted platform for agentic OCR, parsing, extraction and indexing, and LiteParse is a free, fast open-source parser.
Pricing (as stated): Open source + paid cloud · Mature

3. LangGraph
LangGraph is LangChain's MIT-licensed low-level orchestration framework for long-running, stateful agents in Python, with a JavaScript/TypeScript sibling (LangGraph.js). You model an agent as a graph of steps with durable execution that resumes after failures, human-in-the-loop checkpoints for inspecting and editing state, short- and long-term memory, and streaming; Deep Agents is the higher-level package built on it for planning, subagents and file systems. Used by Klarna, Replit and Elastic.
Pricing (as stated): Open source · Mature

4. Agno
Python framework and runtime for building, running and managing multi-agent systems with memory, knowledge and tools.
Pricing (as stated): Open source + cloud · Mature

5. DSPy
DSPy (Declarative Self-improving Python) is Stanford NLP's MIT-licensed framework for programming rather than prompting language models. You write modular Python components (signatures and modules) for classifiers, RAG pipelines or agent loops, and DSPy's optimizers tune the prompts and, optionally, the model weights against your metric, so the pipeline improves without hand-editing brittle prompts. Install it with pip install dspy; docs live at dspy.ai.
Pricing (as stated): Open source · Mature

6. OpenAI Agents SDK (Python)
The OpenAI Agents SDK for Python is an MIT-licensed, lightweight framework for multi-agent workflows. Agents are LLMs with instructions, tools, guardrails and handoffs; sandbox agents work inside a container over long time horizons; realtime and voice agents cover speech pipelines; and built-in tracing shows each run. It is provider-agnostic, working with the OpenAI Responses and Chat Completions APIs and 100+ other LLMs, and has a JavaScript/TypeScript sibling (openai-agents-js).
Pricing (as stated): Open source · Mature, official SDK

7. smolagents
smolagents is Hugging Face's Apache-2.0 Python library for agents that think in code: its CodeAgent writes each action as a Python snippet rather than a JSON tool call, and the core agent logic fits in about 1,000 lines. Generated code can run in sandboxes such as E2B, Modal, Blaxel or Docker, tools and agents can be shared to and pulled from the Hugging Face Hub, and it works with any model, from local transformers or Ollama to OpenAI, Anthropic and other providers via LiteLLM.
Pricing (as stated): Open source · Active

8. Guidance
Guidance is an MIT-licensed Python library for steering language models: instead of plain prompts you write programs that mix generation with control flow (conditionals, loops, tool calls) and constrain output with regular expressions, context-free grammars or JSON schemas, which makes structured output reliable and can cut latency and cost. It runs on Transformers, llama.cpp, OpenAI and other backends (pip install guidance); the latest release is 0.3.2 from March 2026.
Pricing (as stated): Open source · Mature

9. Pydantic AI
Pydantic AI is the Pydantic team's free, MIT-licensed Python framework for building typed AI agents. Swapping the model is a one-line change, and the same agent can run behind a website, in a terminal, on a voice call, or in a background job. It also covers image generation and embeddings.
Pricing (as stated): Free and open source (MIT). Checked 2 Dec 2026. · Mature

10. Strands Agents
Strands open-source SDK for building production agent harnesses in Python and TypeScript.
Pricing (as stated): Open source · Mature

11. Claude Agent SDK (Python)
Anthropic's Python SDK for building agents on Claude Code's agent loop, with the CLI bundled, custom tools and hooks.
Pricing (as stated): Open source · Mature

12. Upsonic
Python framework for building autonomous AI agents.
Pricing (as stated): Open source · Mature

13. Genkit
Google's open-source framework for building agentic apps in JavaScript, Go, Dart and Python.
Pricing (as stated): Open source · Mature

14. Marvin
Python library from Prefect for building AI agents and structured LLM workflows.
Pricing (as stated): Open source · Mature

15. Antigravity SDK
Google's Python SDK for building stateful AI agents powered by Antigravity and Gemini, abstracting the agent loop and runtime.
Pricing (as stated): Free and open source (Apache-2.0); Gemini usage billed by Google · Active

16. Langroid
Python framework for multi-agent programming with LLMs.
Pricing (as stated): Open source · Active

17. BeeAI Framework
Framework for building production-ready agents and multi-agent systems in Python or TypeScript.
Pricing (as stated): Free and open source (Apache-2.0) · Active

18. Bub
Bub is an Apache-2.0 tiny agent runtime for Python 3.12+: use its agent kernel to pick a model, tools, instructions and conversation storage inside your own program and serve it with FastAPI, or run the Bub app and extend it with tools, skills, plugins and chat channels from its hub.
Pricing (as stated): Open source · Active

19. Innovation Lab Examples
Innovation Lab Examples is an open-source agent project that helps builders handle 80+ production-ready AI agent examples in Python — build autonomous agents, multi-agent.
Pricing (as stated): Open source · Active

20. Mirascope
Lightweight Python library for calling any LLM with typed outputs and tools through one interface, without a heavy framework.
Pricing (as stated): Open source · Active

21. Chidori
Chidori is an Apache-2.0 agent runtime. You write agents as async TypeScript. The README says every model request, tool request and HTTP request is recorded, so a run can be checkpointed, replayed without new model requests, and resumed after a crash. It ships one Rust binary plus TypeScript and Python SDKs. GitHub ThousandBirdsInc/chidori recorded Apache-2.0, 1,372 stars and 63 forks on 25 Nov 2026.
Pricing (as stated): Apache-2.0. No hosted price in the README checked on 25 Nov 2026. · Active

22. AgenticX
AgenticX is an open-source agent project that helps builders handle unified, production-ready multi-agent platform — Python SDK + CLI (agx) + Studio.
Pricing (as stated): Open source · Active

23. Sage
Sage is an open-source (MIT) RSI agent harness, where RSI stands for Recursive Self-Improvement: it improves agents using feedback from their tasks. Starting from a goal or a curated usage history, it runs the agent, has a separate evaluator grade the results, tunes the agent and keeps every version with its evidence, so you decide which one to adopt. It comes as a Desktop app, a multi-user Server with Agent Studio, and the SAgents Python runtime, with support for Skills, MCP, multi-agent setups and sandboxed runs with approvals.
Pricing (as stated): Free and open source (MIT); model-provider API usage is billed separately · Active

24. Dynamiq
Python orchestration framework for building agentic and RAG applications from reusable nodes and workflows.
Pricing (as stated): Open source · Active

25. Cayu
Cayu is an open-source Python framework for building and running domain-specific, long-horizon agents on a durable runtime. Sessions survive restarts and redeploys from SQLite or Postgres stores, tool policies can require human approval before side effects, spend caps are checked before each model call, and timers, background tasks, subagents and forks cover longer multi-agent work. It is Apache 2.0 licensed.
Pricing (as stated): Open source · Active
FAQ
What are the best Python AI agent frameworks?
Ranked by tracked GitHub stars, the top Python AI agent frameworks in our directory are CrewAI, LlamaIndex, LangGraph, Agno, DSPy. Stars measure popularity, not fit, so compare a few against your own task.
How many Python AI agent frameworks does AgentScout list?
27 tools match. This page shows the top 25. Pricing mix on this page: Open source (22), Open source + cloud (3).
How much do these tools cost?
Pricing is what each maker states on their site. Open-source tools are free to self-host but may need a paid model API key or offer paid cloud plans; freemium tools have a free plan with limits. Check each official site.
Where can I see every tool for building AI agents?
Our task page lists all 704 tools we match to building AI agents.
Related
Similar searches
By role: For AI engineers
Related categories
Facts come from our directory listings; pricing is as each maker states it and can change. Check official sites before you choose.