// agents · ag2ai/ag2

ag2

ag2 is an open-source ai agents project by ag2ai (ag2ai/ag2 on GitHub). It has 4,983 GitHub stars and 739 forks, is released under the Apache-2.0 license, and was last updated on GitHub on 8 October 2026.

The open-source AgentOS, formerly known as AutoGen.

★ 5.0k stars⑂ 739 forksApache-2.0updated 2026-10
▦ visual — this project's README ships no embeddable screenshot,
so here's a placeholder. The guide below is complete regardless.
// project facts

Project facts

Repository
ag2ai/ag2
GitHub stars
4,983
Forks
739
License
Apache-2.0
Last updated on GitHub
8 October 2026
Category
AI Agents
Listing
Full install guide
Official site
Official site
// how it works

How it works

  1. Define the job

    Write down the task or workflow you want the agent to handle.

  2. Get the code

    Clone the repository and read the README's prerequisites.

  3. Set up your environment

    Install dependencies and configure keys or endpoints.

  4. Try the quickstart

    Run the sample script and check the output against the docs.

// features

Why people love it

Multi-agent

Agents converse and collaborate.

AgentOS vision

An operating layer for agents.

Human-in-the-loop

People can join the conversation.

Research pedigree

Born at Microsoft Research.

Active community

Discord and ongoing development.

Apache-2.0

Open and commercially friendly.

Advertisement
// run it

Run it yourself

  1. Step 1 - Clone the repo

    Download the source and move into the project folder.

    git clone https://github.com/ag2ai/ag2.git
    cd ag2
  2. Step 2 - Install dependencies

    Create a virtual environment and install the requirements.

    python -m venv .venv && source .venv/bin/activate
    pip install -r requirements.txt
  3. Step 3 - Run an example

    Treat these as starting points - the README documents the exact commands.

    python examples/quickstart.py
// use cases

What you can build

  • Build a team of specialist agents that collaborate.
  • Prototype multi-agent coding workflows.
  • Add human approval steps to agent pipelines.
  • Experiment with conversational agent patterns.
Advertisement
// faq

Questions, answered

Who is behind ag2?

The project lives at ag2ai/ag2 and has attracted 739 forks. Browse its commit history and contributor list for a sense of maintenance pace.

Is ag2 free to use?

Yes - it is Apache-2.0 licensed, so it is free for commercial use with attribution.

Do I need a paid API to use it?

The framework itself is free - but you will need a model to drive it, which usually means your own API key or a local model.

AG2 vs single-agent frameworks?

AG2 shines when tasks decompose across cooperating agents. For a single focused agent, a lighter framework may be simpler - reach for AG2 when collaboration is the point.

Where should I start?

The README and the official docs site are the fastest path: run the quickstart example first, then adapt it to your use case.

// keep exploring

Similar tools

AI Agents

fastagency

Take multi-agent AutoGen workflows to production, fast.

★ 547 starsApache-2.0
View guide →
AI Agents

Autogen

A programming framework for agentic AI

★ 61.3k starsCC-BY-4.0
View guide →
AI Agents

AstrBot

AI Agent Assistant & development framework that integrates lots of IM platforms, LLMs, plugins and AI feature, and can be your openclaw alternative. ✨

★ 41.3k starsAGPL-3.0
View guide →
AI Agents

mastra

Mastra is the modern TypeScript framework for AI-powered applications and agents.

★ 28.5k starsUnknown
View guide →
AI Agents

Product-Manager-Skills

Product Management skills framework built on battle-tested methods for Claude Code, Cowork, Codex, and AI agents.

★ 7.2k starsUnknown
View guide →
AI Agents

openai-agents-js

OpenAI's lightweight TypeScript framework for multi-agent workflows and voice agents.

★ 3.9k starsMIT
View guide →
// alternatives

Alternatives in AI Agents

The most-starred other AI Agents projects in the LibreAI catalogue — the realistic shortlist if ag2 is not the right fit.

  • openclaw★ 391.6k

    A personal AI that really does things — on any OS, with your data staying yours.

  • superpowers★ 294.9k

    An agentic skills framework & software development methodology that works.

  • ECC★ 275.2k

    Agent harness optimization system with skills, memory and security for Claude Code, Codex and more

  • hermes-agent★ 252.0k

    The agent that grows with you — a Python framework for adaptive AI agents.

  • deepseek-harness★ 245.5k

    DeepSeek's plugin-based agent harness where everything is a plugin.

// more in agents

More in AI Agents

Nearby AI Agents projects in the catalogue, closest in stars to ag2 — keep exploring the shelf either side of it.

  • exa-mcp-server★ 5.1k

    Exa's MCP server for web search and crawling — give your AI agent a live, high-quality web index.

  • ha-mcp★ 5.0k

    The unofficial Home Assistant MCP server — control and automate your smart home from any AI assistant.

  • 01★ 5.2k

    Talk to your computer — an open-source voice interface.

  • eko★ 5.0k

    Build production-ready agentic workflows from natural language — agents that operate browsers and computers.

  • FrontierAgent★ 5.2k

    An open agent framework with a native terminal TUI, ReAct and Agent Team modes — one command to run.

  • zep★ 5.0k

    Examples and integrations for Zep — the memory layer for AI agents.

Get ag2

Free and open — grab the source, star the repo, and start creating.