← All projects
AI agents

AG2

An open-source framework for building AI agents that work together to complete tasks (formerly AutoGen).

Research-backedNew this week

What it does

AG2 is a programming framework for building AI agents, programs that use AI models, call tools and carry out tasks. Several agents can be coordinated to work together, and a person can be asked to confirm steps along the way.

It works with providers such as OpenAI, Anthropic, Gemini and local models through Ollama. It also offers ways for agents to keep knowledge and shorten long conversation histories.

The README explains that the original AutoGen-style version now lives in a separate repository called AG2 Classic, and that the new version is not a drop-in replacement.

Who it's for

Developers and researchers building single or multi-agent AI systems in Python.

Can I use it without coding?

Developers only. It's a Python framework and requires coding. New to this? Start here.

Can I run it?

Cost
Free, but needs an AI accountThe software is free, but it uses an online AI service (like OpenAI or Anthropic), which usually charges for use.
Computer
An ordinary computer is fine
Privacy
Your choice: run it on your device or use an online service
API key
Not needed

Try it

Using Claude Code, Cursor or another AI coding assistant? Paste the prompt and it will walk you through the setup.New to this?

Before you install

  • Only download from the official GitHub page. Copies with similar names exist for many popular projects.
  • License (Apache-2.0): Permissive: free to use, change and share, including for business.
  • More on staying safe

Where people are talking about it