Open source · Python
Best Python agent frameworks
The 34 open-source agent frameworks written in Python in this index, ranked by real maintained adoption (GitHub stars and recent commit activity), never by sponsorship. langchain leads the set at 147,201 GitHub stars, and 24 of the 34 have shipped a commit in the last 90 days. Every project here is Python-first, self-hostable, and free to run; the trade-off is you host and maintain it yourself. Right now it's led by langchain (147k stars), with MetaGPT and autogen close behind. Rankings shift as projects gain stars and ship commits.
langchainFrameworkThe agent engineering platform.Open sourcePython · MITVerified · Active 147kGitHub starsMetaGPTFrameworkA multi-agent framework that assigns software-company roles to LLM agents to turn a requirement into a project.Open sourcePython · MITVerified 71kGitHub starsautogenFrameworkA programming framework for agentic AI; upstream is in maintenance mode.Open sourcePython · CC-BY-4.0Verified 61kGitHub starscrewAIFrameworkFramework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.Open sourcePython · MITVerified · Active 59kGitHub starsLangGraphFrameworkLangChain's low-level orchestration framework for stateful, controllable agents.Open sourcePython · MITVerified · Active 42kGitHub starsDSPyFrameworkStanford's framework for programming, not prompting, language models, with optimisers for prompts and weights.Open sourcePython · MITVerified · Active 38kGitHub starsAgentScopeFrameworkA production-ready Python agent framework built around model reasoning and tool use rather than rigid orchestration.Open sourcePython · Apache-2.0Verified · Active 33kGitHub starsOpenAI Agents SDK (Python)FrameworkOpenAI's lightweight, provider-agnostic Python framework for multi-agent workflows.Open sourcePython · MITVerified · Active 30kGitHub starsAgent Development Kit (Google ADK)FrameworkGoogle's open-source, code-first Python framework for building, evaluating and deploying AI agents.Open sourcePython · Apache-2.0Verified · Active 22kGitHub starspydantic-aiFrameworkAI Agent Framework, the Pydantic wayOpen sourcePython · MITVerified · Active 20kGitHub starsCAMELFrameworkAn open-source multi-agent framework from the CAMEL-AI community for studying and building agent societies.Open sourcePython · Apache-2.0Verified · Active 18kGitHub starsSuperAGIFramework<> SuperAGI - A dev-first open source autonomous AI agent framework. Enabling developers to build, manage & run useful autonomous agents quickly and reliably.Open sourcePython · MITVerified 18kGitHub stars
Make your product part of the discovery.Explore advertising agent-frameworkFrameworkA framework for building, orchestrating and deploying AI agents and multi-agent workflows with support for Python and.NET.Open sourcePython · MITVerified · Active 14kGitHub starstxtaiFrameworkAn all-in-one Python framework for semantic search, LLM orchestration and language-model workflows.Open sourcePython · Apache-2.0Verified · Active 13kGitHub starshiveFrameworkMulti-Agent Harness for Production AIOpen sourcePython · Apache-2.0Verified · Active 11kGitHub starsmcp-agentFrameworkA composable Python framework for building agents from MCP servers and simple workflow patterns.Open sourcePython · Apache-2.0Verified 8.6kGitHub starsharness-sdkSDK / libraryBuild an agent harness and control it end-to-end. Open-source SDK for production AI agents in Python & TypeScript - any model, any cloud.Open sourcePython · Apache-2.0Verified · Active 8.5kGitHub starsUpsonicFrameworkBuild autonomous AI agents in Python.Open sourcePython · MITVerified 8.0kGitHub starsSwarmsFrameworkA Python multi-agent orchestration framework with prebuilt sequential, concurrent and hierarchical architectures.Open sourcePython · Apache-2.0Verified · Active 7.2kGitHub starsintentkitFrameworkIntentKit is an open-source, self-hosted cloud agent cluster that manages a collaborative team of AI agents for you.Open sourcePython · MITVerified · Active 6.5kGitHub starsagent-governance-toolkitSDK / libraryAI Agent Governance Toolkit — Policy enforcement, zero-trust identity, execution sandboxing, and reliability engineering for autonomous AI agents. Covers 10/10 OWASP Agentic Top 10.Open sourcePython · MITVerified · Active 6.4kGitHub starsAtomic AgentsFrameworkA lightweight, modular Python framework for building agent pipelines from small, composable pieces.Open sourcePython · MITVerified · Active 6.3kGitHub starsagentsFrameworkAn Open-source Framework for Data-centric, Self-evolving Autonomous Language AgentsOpen sourcePython · Apache-2.0Verified 6.0kGitHub starsrllmFrameworkDemocratizing Reinforcement Learning for LLMsOpen sourcePython · Apache-2.0Verified · Active 5.8kGitHub starsag2FrameworkAG2 (formerly AutoGen): The Open-Source AgentOS.Join us at: https://discord.gg/sNGSwQME3xOpen sourcePython · Apache-2.0Verified · Active 5.0kGitHub starsyoutu-agentFrameworkA simple yet powerful agent framework that delivers with open-source modelsOpen sourcePythonVerified 4.6kGitHub starsLangroidFrameworkA lightweight Python framework for multi-agent LLM applications, from CMU and UW-Madison researchers.Open sourcePython · MITVerified · Active 4.1kGitHub starsfast-agentFrameworkCode, Build and Evaluate agents - excellent Model and Skills/MCP/ACP/A2A SupportOpen sourcePython · Apache-2.0Verified · Active 3.9kGitHub starsVibe-SkillsSDK / libraryVibe-Skills is an all-in-one AI skills package.Open sourcePython · Apache-2.0Verified · Active 3.5kGitHub starsBeeAI FrameworkFrameworkA framework for production-ready multi-agent systems with matching Python and TypeScript libraries.Open sourcePython · Apache-2.0Verified · Active 3.4kGitHub starsverl-agentFrameworkverl-agent is an extension of veRL, designed for training LLM/VLM agents via RL. verl-agent is also the official code for paper "Group-in-Group Policy Optimization for LLM Agent Training"Open sourcePython · Apache-2.0Verified 2.3kGitHub starsharmonistFrameworkPortable AI agent orchestration with mechanical protocol enforcement. 186 agents, zero runtime dependencies.Open sourcePython · MITVerified 2.3kGitHub starsDemoGPTFrameworkCreate LLM agents in a second with your prompts. Everything you need to create an LLM Agent - tools, prompts, frameworks, and models - all in one place.Open sourcePython · MITVerified 1.9kGitHub starsAgentlyFramework[GenAI Application Development Framework] Build GenAI application quick and easy Easy to interact with GenAI agent in code using structure data and chained-calls syntax Use Event-Driven FlowOpen sourcePython · Apache-2.0Verified · Active 1.7kGitHub stars
Frequently asked
- What are the best Python agent frameworks?
- By maintained adoption — GitHub stars plus recent commit activity — langchain, MetaGPT and autogen lead the Python agent frameworks in this index of 34. The full ranking is below; it reflects what is genuinely used and still maintained, not what pays.
- Are these Python agent frameworks open source and free?
- Yes — every project on this page is open source and written primarily in Python. MIT is the most common licence here, on 16 of 34, across 3 licences in total. The software is free to run and self-host; you still pay for the infrastructure you run it on and any model or API usage it makes.
- Why choose Python agent frameworks specifically?
- Staying in your team's primary language — Python — makes self-hosting, extending, and debugging far easier, because you can read and modify the source directly instead of treating it as a black box. It also makes upstream activity something you can judge: 24 of these 34 shipped in the last 90 days, and reading a quiet project's source is how you tell finished from abandoned.