Skip to content

What is AG2?

Latest launch Apache-2.0

Summary

AG2 (formerly AutoGen) is an Apache-2.0 Python framework for AI agents and multi-agent networks, installed from PyPI as ag2 and imported as ag2.

Category
Frameworks
Open source
Yes
License
Apache-2.0
Pricing
AG2 is Apache-2.0 and free to install from PyPI. You pay your model provider for tokens.

AG2 is a Python framework for single agents and networks of agents. Since v1.0 the core class is Agent, the API is async throughout, and multi-agent work runs through a Network of a hub and channels. Code: ag2ai/ag2, Apache-2.0. Site: ag2.ai.

The name matters if you are coming from AutoGen. pip install ag2 no longer ships the autogen import or the classic classes such as ConversableAgent and GroupChat. Those live in AG2 Classic, a separate repository and docs site. The README says v1.0 is not a drop-in upgrade from Classic, so existing AutoGen-style code should pin ag2-classic until it is ported.

Recent releases came four to ten days apart through 1.2.2 on October 27, 2026, then 1.3.0 on November 4, 2026, per GitHub and PyPI. The latest dated note is AG2 1.3.0.

Compare it with other Python agent frameworks in the frameworks category: CrewAI for role-based crews, LangGraph for durable graphs, the OpenAI Agents SDK and Agno.

AG2 alternatives

AG2 compared with its alternatives
ToolLicensePricing note
AG2This pageAG2 (formerly AutoGen) is an Apache-2.0 Python framework for AI agents and multi-agent networks, installed from PyPI as ag2 and imported as ag2.
Apache-2.0AG2 is Apache-2.0 and free to install from PyPI. You pay your model provider for tokens.
CrewAICrewAI is a framework for orchestrating role-playing, autonomous AI agents that work together.
MITNot stated
LangGraphLangGraph is an open-source orchestration runtime for building stateful, resilient agents.
MITNot stated
OpenAI AgentsOpenAI's agent harness, shipped as a Python SDK update in April 2026 and as the hosted Agents API in September 2026.
Open sourceSDK and Agents API use standard token and tool pricing. The Agents API has no additional fee.
AgnoAgno is an orchestration and service layer for agents, exposing them through a REST API and an MCP server.
Apache-2.0Not stated

Launches and updates

Questions

What is AG2?

AG2 is the open-source agent framework that grew out of AutoGen. Its README calls it an open-source AgentOS for building AI agents and getting several agents to cooperate on tasks. It is maintained by volunteers from several organizations.

Is AG2 the same as AutoGen?

It started as AutoGen. Since AG2 v1.0 the package imports as ag2 with an Agent class and Network for multi-agent work. The older autogen namespace, with ConversableAgent and GroupChat, moved to AG2 Classic (ag2ai/ag2-classic, pip install ag2-classic), which is still maintained.

How do I install AG2?

pip install ag2 with the extra for your provider, such as ag2[openai], ag2[anthropic], ag2[gemini] or ag2[ollama]. AG2 1.3.0 requires Python 3.11 or newer, matching the release notes and the package's requires_python field on PyPI.

Is AG2 open source?

Yes. The GitHub API reports Apache-2.0 for ag2ai/ag2.

What is the latest launch covered here?

AG2 1.3.0, published November 4, 2026. It requires Python 3.11, adds observers for a whole delegation tree and scoped variables, and deprecates several 1.0 entry points ahead of removal in 1.4.0.