Privacy choices: we'd like to measure visits anonymously (our own cookie-free counter plus Google Analytics, which sets its own cookies; no ads) and load Beehiiv's newsletter sign-up, which may set its own cookies. Nothing optional runs until you choose. Privacy policy

AgentScout / Popular lists / Python AI agent frameworks

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)

#ToolPricingBest forOpen sourceRuns locallyGitHub stars
1CrewAI logoCrewAIOpen source + cloudwrite code, build multi-agent systemsYesSelf-hosted61,446
2LlamaIndex logoLlamaIndexOpen source + cloudbuild an agent, automate workflowsYesSelf-hosted53,110
3LangGraph logoLangGraphOpen sourcebuild multi-agent systems, build an agentYesSelf-hosted45,728
4Agno logoAgnoOpen source + cloudbuild multi-agent systems, build an agentYesSelf-hosted43,362
5DSPy logoDSPyOpen sourcewrite code, build an agentYesSelf-hosted39,350
6OpenAI Agents SDK (Python) logoOpenAI Agents SDK (Python)Open sourcebuild multi-agent systems, build an agentYesSelf-hosted30,989
7smolagents logosmolagentsOpen sourcewrite code, build an agentYesOffline30,633
8Guidance logoGuidanceOpen sourcewrite code, build an agentYesOffline21,832
9Pydantic AI logoPydantic AIOpen sourcebuild an agent, research the webYesSelf-hosted21,511
10Strands Agents logoStrands AgentsOpen sourcebuild an agentYesSelf-hosted9,369

Updated

27 matching tools27 open source27 free or with a free tierMost starred: CrewAI (★ 61,446)

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 logo

    1. CrewAI

    frameworksOpen source + cloud★ 61,446 GitHub stars

    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 logo

    2. LlamaIndex

    frameworksOpen source + cloud★ 53,110 GitHub stars

    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 logo

    3. LangGraph

    frameworksOpen source★ 45,728 GitHub stars

    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 logo

    4. Agno

    frameworksOpen source + cloud★ 43,362 GitHub stars

    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 logo

    5. DSPy

    frameworksOpen source★ 39,350 GitHub stars

    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) logo

    6. OpenAI Agents SDK (Python)

    frameworksOpen source★ 30,989 GitHub stars

    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 logo

    7. smolagents

    frameworksOpen source★ 30,633 GitHub stars

    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 logo

    8. Guidance

    frameworksOpen source★ 21,832 GitHub stars

    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 logo

    9. Pydantic AI

    frameworksOpen source★ 21,511 GitHub stars

    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 logo

    10. Strands Agents

    frameworksOpen source★ 9,369 GitHub stars

    Strands open-source SDK for building production agent harnesses in Python and TypeScript.

    Pricing (as stated): Open source · Mature

  11. Claude Agent SDK (Python) logo

    11. Claude Agent SDK (Python)

    frameworksOpen source★ 8,694 GitHub stars

    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 logo

    12. Upsonic

    frameworksOpen source★ 7,971 GitHub stars

    Python framework for building autonomous AI agents.

    Pricing (as stated): Open source · Mature

  13. Genkit logo

    13. Genkit

    frameworksOpen source★ 6,671 GitHub stars

    Google's open-source framework for building agentic apps in JavaScript, Go, Dart and Python.

    Pricing (as stated): Open source · Mature

  14. Marvin logo

    14. Marvin

    frameworksOpen source★ 6,206 GitHub stars

    Python library from Prefect for building AI agents and structured LLM workflows.

    Pricing (as stated): Open source · Mature

  15. Antigravity SDK logo

    15. Antigravity SDK

    frameworksOpen source★ 4,366 GitHub stars

    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 logo

    16. Langroid

    frameworksOpen source★ 4,157 GitHub stars

    Python framework for multi-agent programming with LLMs.

    Pricing (as stated): Open source · Active

  17. BeeAI Framework logo

    17. BeeAI Framework

    frameworksOpen source★ 3,461 GitHub stars

    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 logo

    18. Bub

    frameworksOpen source★ 1,708 GitHub stars

    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 logo

    19. Innovation Lab Examples

    frameworksOpen source★ 1,560 GitHub stars

    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 logo

    20. Mirascope

    frameworksOpen source★ 1,538 GitHub stars

    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 logo

    21. Chidori

    frameworksOpen source★ 1,373 GitHub stars

    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 logo

    22. AgenticX

    frameworksOpen source★ 1,328 GitHub stars

    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 logo

    23. Sage

    frameworksOpen source★ 1,228 GitHub stars

    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 logo

    24. Dynamiq

    frameworksOpen source★ 1,072 GitHub stars

    Python orchestration framework for building agentic and RAG applications from reusable nodes and workflows.

    Pricing (as stated): Open source · Active

  25. Cayu logo

    25. Cayu

    frameworksOpen source★ 730 GitHub stars

    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.