Skip to main content

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

Verify you have Python 3.10 or later:
If you need to upgrade, download from python.org.
2

Create a virtual environment (recommended)

Using a virtual environment keeps AutoGen dependencies isolated:
To deactivate later:

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

For most users, install AgentChat with model client extensions:
This installs:
  • autogen-core (dependency)
  • autogen-agentchat for high-level agents and teams
  • autogen-ext[openai] for OpenAI/Azure OpenAI support

Extension Options

The autogen-ext package supports many optional dependencies. Install only what you need:
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

Download and install .NET 8.0 SDK or later.Verify installation:
2

Create a new project

Package Options

AutoGen for .NET has two package families:
  • Microsoft.AutoGen.* (new, event-driven model) - Recommended
  • AutoGen.* (legacy, v0.2 style) - Being gradually deprecated
This guide focuses on the new packages.

Sample .NET Code

Here’s a simple agent using the legacy packages:

Verify .NET Installation

Run your project:
For more examples, see the .NET samples.

Development Installation

If you want to contribute to AutoGen or use the latest unreleased features:

Platform-Specific Notes

PowerShell Execution PolicyIf you can’t activate virtual environments, run:
Long Path SupportEnable long paths to avoid installation issues:
Python InstallationUse Homebrew for the latest Python:
M1/M2/M3 MacsSome extensions may require Rosetta for x86 dependencies:
System DependenciesSome extensions need system packages:Ubuntu/Debian:
CentOS/RHEL:

Troubleshooting

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:
On Linux/Mac, you might need --user flag:
Or use a virtual environment (recommended).
Update certificates:
Or temporarily bypass (not recommended for production):
Make sure you’re using the correct Python environment:
If using a virtual environment, ensure it’s activated.
AutoGen has specific version requirements. If you get conflicts:

Upgrading AutoGen

Update to the latest version:
Check installed version:
Migrating from AutoGen v0.2? The new version has breaking changes. See the Migration Guide for detailed upgrade instructions.

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

Having installation issues? Ask for help on GitHub Discussions or Discord.