Installation
AutoGen is available for both Python and .NET. This guide covers installation for both platforms, prerequisites, and verification steps.Python Installation
AutoGen requires Python 3.10 or later.Prerequisites
1
Check Python version
2
Create a virtual environment (recommended)
Using a virtual environment keeps AutoGen dependencies isolated:To deactivate later:
- venv
- conda
Core Packages
AutoGen has three main packages that can be installed separately or together:autogen-core
Event-driven foundation with agent runtime, message passing, and distributed execution.
autogen-agentchat
High-level API with preset agents and team patterns. Built on
autogen-core.autogen-ext
Extensions for model clients, tools, and integrations.
Installation Options
- Recommended: AgentChat + Extensions
- Core API Only
- Studio (No-Code GUI)
For most users, install AgentChat with model client extensions:This installs:
autogen-core(dependency)autogen-agentchatfor high-level agents and teamsautogen-ext[openai]for OpenAI/Azure OpenAI support
Extension Options
Theautogen-ext package supports many optional dependencies. Install only what you need:
- Model Clients
- Tools & Capabilities
- Memory & Storage
- Advanced
You can combine multiple extensions:
pip install "autogen-ext[openai,docker,chromadb]"Verify Python Installation
Test that packages are installed correctly:Latest stable version: 0.7.5 (check releases for updates)
.NET Installation
AutoGen for .NET supports both the legacy AutoGen.* packages and the new Microsoft.AutoGen.* packages.Prerequisites
1
Install .NET SDK
2
Create a new project
Package Options
- Microsoft.AutoGen (Recommended)
- AutoGen (Legacy)
Sample .NET Code
Here’s a simple agent using the legacy packages:Verify .NET Installation
Run your project:Development Installation
If you want to contribute to AutoGen or use the latest unreleased features:- From Source (Python)
- Nightly Builds (.NET)
Platform-Specific Notes
Windows
Windows
PowerShell Execution PolicyIf you can’t activate virtual environments, run:Long Path SupportEnable long paths to avoid installation issues:
macOS
macOS
Python InstallationUse Homebrew for the latest Python:M1/M2/M3 MacsSome extensions may require Rosetta for x86 dependencies:
Linux
Linux
System DependenciesSome extensions need system packages:Ubuntu/Debian:CentOS/RHEL:
Troubleshooting
pip install fails with 'No matching distribution'
pip install fails with 'No matching distribution'
This usually means your Python version is too old. AutoGen requires Python 3.10+:Upgrade Python if needed, or use
python3.10, python3.11, or python3.12 explicitly:Permission denied errors
Permission denied errors
On Linux/Mac, you might need Or use a virtual environment (recommended).
--user flag:SSL certificate errors
SSL certificate errors
Update certificates:Or temporarily bypass (not recommended for production):
Import errors after installation
Import errors after installation
Make sure you’re using the correct Python environment:If using a virtual environment, ensure it’s activated.
Version conflicts
Version conflicts
AutoGen has specific version requirements. If you get conflicts:
Upgrading AutoGen
- Python
- .NET
Update to the latest version:Check installed version:
Next Steps
Now that AutoGen is installed:Quickstart
Build your first agent in 5 minutes
Core Concepts
Learn about agents, teams, and tools
Model Configuration
Set up OpenAI, Azure, or other providers
Examples
Explore sample applications
Additional Resources
- Python Package Index: pypi.org/project/autogen-agentchat
- .NET NuGet Gallery: nuget.org/packages/Microsoft.AutoGen.Core
- GitHub Repository: github.com/microsoft/autogen
- Release Notes: GitHub Releases
Having installation issues? Ask for help on GitHub Discussions or Discord.