Why AG2 exists

In April 2026, Microsoft put AutoGen in maintenance mode and shipped Microsoft Agent Framework 1.0 as the enterprise successor.

The community forked AutoGen into AG2, which now owns the `pip install autogen` package on PyPI.

AG2 follows the same API patterns as AutoGen but with active community development, bug fixes, and its own roadmap to v1.0.

Step 1: Install AG2

Run `pip install ag2` or `pip install autogen` (both install AG2 as of June 2026).

Verify the installation: `python -c 'import autogen; print(autogen.__version__)'` should show an AG2 version.

Step 2: Update imports

Most AutoGen code works with AG2 without changes. The core API is backward compatible.

Minor changes may be needed for: `AssistantAgent` → `ConversableAgent`, and some tool registration patterns.

Check the AG2 migration guide at https://ag2.ai/migration for the complete list.

Step 3: Test your existing workflows

Run your existing AutoGen workflows under AG2. Most should work as-is.

Pay attention to: tool execution patterns, group chat configurations, and termination conditions.

Fix any compatibility issues using the AG2 migration guide.

Step 4: Evaluate Microsoft Agent Framework 1.0

For enterprise .NET/Python teams, Microsoft Agent Framework 1.0 merges AutoGen + Semantic Kernel into one SDK.

It supports MCP and A2A protocols natively and is the recommended path for new enterprise projects.

Evaluate which path fits your team: AG2 for community-driven evolution, Microsoft Agent Framework for enterprise integration.

FAQ

Do I have to migrate immediately?

AutoGen still works, but it will not receive updates, bug fixes, or security patches. Migration is recommended to stay on a supported codebase.

Can I use AG2 and Microsoft Agent Framework together?

They are separate projects with different architectures. Choose one based on your stack — AG2 for Python-only, Microsoft Agent Framework for .NET/Python enterprise.

Migrate AutoGen to AG2

  1. Install AG2: pip install ag2
  2. Update import paths per migration guide
  3. Run existing workflows and fix compatibility
  4. Test tool execution and group chat patterns
  5. Evaluate Microsoft Agent Framework for enterprise

Ready to see the full catalog?

Browse all 42 agent-ready business kits. Each includes pre-configured agent roles, prompts, workflows, install steps, and approval gates.

Shop all business kits