AG2

github.com/ag2ai/ag2 AI Agents & Automation Open-source projectOpen source

AG2 offers open source tools for building and coordinating AI agent systems.

github.com/ag2ai/ag2
AG2 homepage screenshot

About AG2

AG2 is an open-source programming framework for building AI agents and enabling cooperation among multiple agents to solve tasks. It supports use of various large language models, tool use, autonomous and human-in-the-loop workflows, and multi-agent conversation patterns. As of v1.0, this repository provides the protocol-driven framework imported as ag2 and requires Python 3.10 or newer. The original AutoGen-derived code with import autogen and classes such as ConversableAgent and GroupChat is now maintained separately as AG2 Classic.

Key features

  • Agents that interact with each other to solve tasks
  • Support for various large language models
  • Tool use support for agents
  • Autonomous and human-in-the-loop workflows
  • Network-based multi-agent orchestration with hub and channels
  • Provider-specific installs such as ag2[openai] or ag2[ollama]
Best for: Developers and researchers building multi-agent AI systems in Python.
Good for
  • Open-source framework for agent development and research
  • Works with multiple LLM providers through install extras
  • Classic version remains maintained and installable for existing code
Watch out for
  • Requires Python 3.10 or newer
  • Version 1.0 is not a drop-in upgrade from Classic
  • This repository no longer includes the autogen import name or classic agent classes

AG2 at a glance

Type
Open-source project
Pricing
Not confirmed. Check the site
Open source
Yes · Source code
Language
English
Last checked
Oct 5, 2026 · Online when checked
Listed
Oct 5, 2026

AG2 alternatives

Tools and sites you could use instead, ranked by how closely they match.

All 24 alternatives

Popular in AI Agents & Automation

Well-known listings from the same topic.

All 313

AG2 FAQ

How do I install AG2?
AG2 requires Python 3.10 or newer and is available as ag2 on PyPI. Install with pip install ag2[openai] on Windows/Linux or pip install 'ag2[openai]' on Mac, using the extra that matches your model provider.
Where are ConversableAgent, GroupChat, or import autogen?
Those belong to AG2 Classic, now in the separate ag2ai/ag2-classic repository. Install it with pip install ag2-classic instead of ag2>=1.0.
How do I provide API keys?
Each provider configuration reads its standard environment variable, for example export OPENAI_API_KEY, so keys do not need to be hardcoded.
Is something wrong or out of date?

Tell us and an editor will check it.

Own this website?

Claim the listing and suggest updates yourself. An editor checks every claim first.

Claim this listing