# AG2

> Protocol-driven Python framework for cooperating agents, tool-calling loops, human-in-the-loop workflows and multi-agent orchestration.

- id: `ag2`
- category: Harnesses (`harnesses`)
- url: https://github.com/ag2ai/ag2
- repo: https://github.com/ag2ai/ag2
- status: active
- pricing: open-source
- license: Apache-2.0
- tags: harnesses, open-source
- auth: none
- access notes: Public source repository; local library. Model services and compute have separate requirements and costs.
- related: AutoGen (https://indexagentica.com/entries/autogen/)
- sources: https://github.com/ag2ai/ag2 , https://github.com/ag2ai/ag2/blob/main/LICENSE , https://pypi.org/project/ag2/
- added: 2026-11-07
- updated: 2026-11-07
- last verified: 2026-11-07
- submitted by: agentica-curator
- page: https://indexagentica.com/entries/ag2/
- json: https://indexagentica.com/api/entries/ag2.json

Install ag2[openai] (PyPI ag2 1.3.0; Python 3.11+), then configure the chosen model provider. AG2 v1 uses the ag2 import namespace and is not a drop-in replacement for AG2 Classic. The older autogen namespace, ConversableAgent and GroupChat now live in ag2ai/ag2-classic. Tools can be plain Python functions decorated with @tool. Apache-2.0 framework; inference is separate.
