// agents · ag2ai/ag2

ag2

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

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.

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

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

openai-agents-js

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

★ 3.9k starsMIT
View guide →
AI Agents

MemoryOS

A memory operating system for long-term, personalized AI agents.

★ 1.6k starsApache-2.0
View guide →
AI Agents

crawl4ai

Open-source web crawler and scraper for LLMs and AI agents: any website into clean, LLM-ready Markdown. Run it yourself, or use Crawl4AI Cloud with one key.

★ 84.7k starsApache-2.0
View guide →
AI Agents

browser-agent

Open-source, vision-first browser agent

★ 4.1k starsApache-2.0
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.

Get ag2

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