61,769
stars
+13
9,391
forks
521
watchers
3,965
prs
3,104
issues
98
releases
1,165
discussions

README

AutoGen 

AutoGen is a framework for creating multi-agent AI applications that can act autonomously or work alongside humans.

 [!CAUTION]
 ⚠️ Project archived and no longer maintained

 This project has been archived and is no longer actively maintained by Microsoft.

 Microsoft is not providing bug fixes, security fixes, new features, or support for this project. The repository remains available for historical/reference purposes.

 Use archived repositories with caution. Without ongoing maintenance or security fixes, vulnerabilities in this project and its dependencies may remain unaddressed, increasing the security risks of continued use. Carefully assess these risks before using AutoGen, particularly when handling sensitive data. AutoGen was developed for research and experimentation and as it transitions to archived, we continue to advise against production use.

 We thank the AutoGen community for the code, documentation, bug reports, ideas, and discussions that helped shape this project.

 New users should start with Microsoft Agent Framework. Existing users are encouraged to migrate using the AutoGen → Microsoft Agent Framework migration guide.

 Microsoft Agent Framework (MAF) is the enterprise‑ready successor to AutoGen. Microsoft Agent FrameworkAF in now available as a production-ready release: stable APIs, and a commitment to long-term support. Whether you're building a single assistant or orchestrating a fleet of specialized agents, Microsoft Agent Framework 1.0 gives you enterprise-grade multi-agent orchestration, multi-provider model support, and cross-runtime interoperability via A2A and MCP.

 Installation

AutoGen requires Python 3.10 or later.

bash
 Install AgentChat and OpenAI client from Extensions
pip install -U "autogen-agentchat" "autogen-ext[openai]"


The current stable version can be found in the releases. If you are upgrading from AutoGen v0.2, please refer to the Migration Guide for detailed instructions on how to update your code and configurations.

bash
 Install AutoGen Studio for no-code GUI
pip install -U "autogenstudio"


 Quickstart

The following samples call OpenAI API, so you first need to create an account and export your key as export OPENAI_API_KEY="sk-...".

 Hello World

Create an assistant agent using OpenAI's GPT-4o model. See other supported models.

python
import asyncio
from autogen_agentchat.agents import AssistantAgent
from autogen_ext.models.openai import OpenAIChatCompletionClient

async def main() - None:
    model_client = OpenAIChatCompletionClient(model="gpt-4.1")
    agent = AssistantAgent("assistant", model_client=model_client)
    print(await agent.run(task="Say 'Hello World!'"))
    await model_client.close()

asyncio.run(main())


 MCP Server

Create a web browsing assistant agent that uses the Playwright MCP server.

python
 First run npm install -g @playwright/mcp@latest to install the MCP server.
import asyncio
from autogen_agentchat.agents import AssistantAgent
from autogen_agentc

Top issues

Discussions

Latest release

python-v0.7.5 python-v0.7.5 2025-09-30
What's Changed
 Fix docs dotnet core typo by @lach-g in https://github.com/microsoft/autogen/pull/6950
 Fix loading streaming Bedrock response with tool usage with empty argument by @pawel-dabro in https://github.com/microsoft/autogen/pull/6979
 Support linear memory in RedisMemory by @justin-cechmanek in https://github.com/microsoft/autogen/pull/6972
 Fix message ID for correlation between streaming chunks and final mes… by @smalltalkman in https://github.com/microsoft/autogen/pull/6969
 fix: extra args not work to disable thinking by @liuyunrui123 in https://github.com/microsoft/autogen

Snapshot: 2026-11-10T09:35:25Z · Data license Apache-2.0 · JSON