AG2

AG2 is a Python framework that helps developers build AI agents that work together on tasks.

What it is good for

  • Building AI agents that call tools and return results
  • Coordinating several AI agents to finish a multi-step job
  • Adding human approval steps to automated AI workflows
  • Switching between different AI model providers in one codebase

At a glance

Who it is for
Setup
Requires programming

Level 5 of 5. You need to write code to use it.

Cost
Free and open source
Type
Framework or SDK
Tasks
Works with
OpenAI, Anthropic, Gemini, Ollama, PyPI

Momentum

Rank this week
Not ranked yet
Best rank
None yet
GitHub stars
5,040

GitHub numbers as of Nov 2, 2026. Updated weekly.

4,927 4,988 5,048 Sep 24, 2026 Nov 2, 2026
GitHub stars for AG2: 4,935 on Sep 24, 2026, 5,040 on Nov 2, 2026. Source: GitHub.

Questions

Is AG2 free?
Yes. It is free and open source (Apache-2.0 license).
Do I need to know how to code to use AG2?
Yes. You need to write code to use it.
What does AG2 work with?
According to its own documentation, it works with OpenAI, Anthropic, Gemini, Ollama, and PyPI.
What is AG2 good for?
Building AI agents that call tools and return results, coordinating several AI agents to finish a multi-step job, adding human approval steps to automated AI workflows, and switching between different AI model providers in one codebase.

Similar agents to AG2

  • LangChain

    LangChain is a framework that helps developers build AI agents and LLM-powered applications that connect to models and data sources.

  • crewAI

    CrewAI is a Python framework that lets developers build teams of AI agents that split up and complete multi-step work.

  • LangGraph

    LangGraph is a framework that helps developers build long-running agents that keep their state and resume after failures.

  • Agno

    Agno is a framework and service platform that builds, runs, and improves AI agents for developers and teams who need them available as an API or MCP server.

  • AgentScope

    AgentScope is a framework that helps developers build and run AI agents they can monitor and trust.

  • Conductor

    Conductor is a workflow engine that runs multi-step jobs and AI agents reliably, so steps survive crashes and retries, for developers.

Last updated Nov 2, 2026. Tracked since Oct 28, 2026. The summary was written by an AI model from the project's own description and checked against our copy rules. Spotted an error? Tell us.