AutoGen is a programming framework for creating multi-agent AI applications that can act autonomously or work in collaboration with humans. The framework was pioneered by Microsoft Research and once drove experimental exploration of multi-agent orchestration patterns.
Purpose AutoGen is aimed at developers who need to build multi-agent AI applications, supporting both the creation of a single assistant agent and the orchestration of multiple specialized agents working together to complete tasks. Typical uses include multi-agent conversations, group chats, code execution, web browsing, and more.
Main Capabilities The framework adopts a layered and extensible design, with each layer having clear responsibilities, allowing developers to use it at different levels of abstraction:
- Core API: Implements message passing, event-driven agents, and local and distributed runtimes, with cross-language support for .NET and Python.
- AgentChat API: Built on top of the Core API, it provides a simpler API that is closer to common multi-agent patterns (such as two-agent chats and group chats), suitable for rapid prototyping.
- Extensions API: Supports first-party and third-party extensions, continuously expanding the framework's capabilities, including concrete implementations of LLM clients (such as OpenAI and AzureOpenAI) and capabilities such as code execution. The ecosystem also provides two developer tools: AutoGen Studio provides a no-code GUI for building multi-agent applications; AutoGen Bench provides an evaluation suite for assessing agent performance.
Usage AutoGen requires Python 3.10 or later. The current stable version can be found in releases. Users upgrading from AutoGen v0.2 can refer to the migration guide. The example code calls the OpenAI API, so you must first create an account and export the key: export OPENAI_API_KEY="sk-...". You can create an assistant agent that uses the OpenAI GPT-4o model, or create a web-browsing assistant agent that uses the Playwright MCP server. AgentTool can be used to set up basic multi-agent orchestration; for more advanced multi-agent orchestration and workflows, refer to the AgentChat documentation.
Use Cases Suitable for building AI applications that require multi-agent collaboration, such as tasks that need web browsing, code execution, and file handling. Magentic-One is an example of a multi-agent team built using the AgentChat API and Extensions API.AutoGen Studio is suitable for rapidly prototyping multi-agent workflows, but the official documentation clearly states that it is not a production-ready application; developers should use the AutoGen framework to build their own applications and implement the authentication, security, and other capabilities required for deployment.
Limitations and Current Status AutoGen is now in maintenance mode, no longer accepting new features or enhancements, and has transitioned to community management. New users should switch to Microsoft Agent Framework; existing users are advised to migrate by referring to the AutoGen → Microsoft Agent Framework migration guide. Microsoft Agent Framework is the enterprise-grade successor to AutoGen, released as a production-ready version, offering stable APIs and a long-term support commitment, and supporting enterprise-grade multi-agent orchestration, multi-provider model support, and cross-runtime interoperability through A2A and MCP. Community support is available through the Discord server or GitHub Discussions, but responses may be limited. Regarding contributions, because it is in maintenance mode, these are limited to bug fixes, security patches, and documentation improvements.
Security Notice Only connect to trusted MCP servers, because they may execute commands or expose sensitive information in the local environment.
License Microsoft and contributors grant a license for the documentation and other content in this repository under the Creative Commons Attribution 4.0 International Public License, and for the code in the repository under the MIT License.