Skip to main content

AG2

Open-source multi-agent framework, formerly AutoGen

LLM FrameworksFreeOpen source

AG2 is the open-source multi-agent framework that continued from AutoGen under a new name. It is Apache-2.0 licensed and maintained by the AG2 community.

Key specs
5,060 GitHub stars source
as of 2026-11-12

What we know

LicenseApache-2.0source, checked 2026-11-30
Open sourceYessource, checked 2026-11-30
PricingFreefrom our original listing, not yet re-checked
GitHub stars5,094source, checked 2026-11-30

Overview

AG2 is an open-source framework for building AI agents and getting several agents to cooperate on a task. It continued from AutoGen under a community of volunteer maintainers. Version 1.0 introduced a new protocol-driven framework, while the classic AutoGen-style API moved to a separate AG2 Classic project that is still maintained.

Key capabilities

  • Multi-agent cooperation: agents that work together on tasks.
  • Provider extras: OpenAI, Anthropic, Gemini, Ollama and more.
  • Classic compatibility: existing AutoGen-style code keeps working on AG2 Classic.
  • Research focus: aimed at both building and studying agentic systems.

Tradeoffs

  • v1.0 breaks compatibility with Classic code; plan a migration.
  • Two parallel projects (v1.0 and Classic) can confuse newcomers.
  • Volunteer-maintained rather than backed by one company.

Ideal for

  • Teams already on AutoGen-style agents
  • Research on multi-agent systems
  • Python developers building cooperative agents

Not ideal for

  • Teams wanting a stable API with no migration
  • Non-Python stacks

Getting started

  1. Make sure you have Python 3.11 or newer.
  2. Install with the extra for your model provider, for example pip install 'ag2[openai]' or ag2[anthropic].
  3. Set your provider's standard API key environment variable; AG2 reads it automatically.
  4. Follow the Quick Start in the AG2 docs. If you have existing import autogen code, stay on pip install ag2-classic until you migrate.

Technical notes

  • Install: pip install ag2[openai] (Python 3.11+)
  • Classic: pip install ag2-classic
  • License: Apache-2.0
  • Source: ag2ai/ag2
  • GitHub stars: 5,060 (as of 2026-11-12)

FAQ

Is AG2 the same as AutoGen?

AG2 grew out of AutoGen. The original AutoGen-style framework (`import autogen`, ConversableAgent, GroupChat) now lives in a separate repository as AG2 Classic. This repository is AG2 v1.0, imported as `ag2`.

Can I upgrade from AG2 Classic to v1.0 directly?

No. The project says v1.0 is not a drop-in upgrade: the agent model, orchestration and imports changed. Existing code can stay on `pip install ag2-classic`.

Which model providers does it support?

Install the extra for your provider, such as ag2[openai], ag2[anthropic], ag2[gemini] or ag2[ollama].

Alternatives

Is your tool an alternative to AG2? Sponsor this spot for 30 days, marked Sponsored.

Integrations

None listed.

Built on

None listed.

For the team behind AG2

Growth plan: from $399 a month

SEO, AI search (how ChatGPT, Perplexity and Google describe AG2), UX, CRO and support from one account manager, with a monthly report. Includes a Featured launch on db.fyi. Starts with a free audit.

Founding offer: $299 a month for your first 3 months, plus a free case study.

Get a free audit

Listed 2026-11-12 · updated 2026-11-12