AutoGen vs AG2 in 2026: which package you are actually installing

In 2026, picking an agent framework means parsing three names that sound interchangeable: Microsoft AutoGen (maintenance on GitHub), AG2 (the founders' fork, now at 1.0 on the ag2 PyPI package), and Microsoft Agent Framework (the production successor Microsoft wants new projects on). The best agent framework for your team depends on orchestration style, cloud alignment, and whether you need conversation patterns or graph workflows.

Key takeaways:

  • Microsoft AutoGen (microsoft/autogen) is in maintenance mode: bug fixes and security patches only; new users are directed to Microsoft Agent Framework. (Source: AutoGen GitHub)
  • The autogen PyPI name has changed hands twice. As of 2026-07-27 it ships the classic ConversableAgent line at 0.14.1 in maintenance mode, and points to ag2 as the actively developed project; in June it resolved to AG2 instead. Verify what you installed before you migrate. (Source: PyPI autogen)
  • Microsoft Agent Framework 1.0 (April 2026) is the vendor successor with stable graph workflows, MCP, and multi-agent patterns including Magentic-One. (Source: Microsoft Agent Framework 1.0)
  • Build 2026 (June 2-3) tied agents to enterprise context (Work IQ, Foundry IQ) and OS containment (MXC, OpenClaw on Windows). (Source: Build 2026 Live Blog)
  • LangGraph and CrewAI remain strong when you want provider-neutral graphs or fast role-based crews; provider SDKs win when you are already locked to one model vendor. (Inference: synthesis from ecosystem comparisons)

The point is not "which GitHub repo has more stars." It is which orchestration contract you can still debug at 2 a.m. in 2028 without a surprise package rename.

Primary sources: AutoGen GitHub README, AG2 GitHub, Microsoft Learn migration guide, Microsoft Agent Framework 1.0 announcement, Build 2026 live blog, PyPI autogen metadata (verified 2026-06-08).

AutoGen vs AG2: the difference in one table

Short answer: AutoGen is Microsoft's original repo, now frozen in maintenance mode. AG2 is the fork run by AutoGen's founding authors, and it is the branch still receiving features. They are no longer the same project, and they no longer resolve to the same PyPI package.

AutoGen (microsoft/autogen)AG2 (ag2ai/ag2)
MaintainerMicrosoft, community managedag2ai volunteers, founding authors
StatusMaintenance mode, no new featuresActively developed, 1.0
PyPI packagesautogen-core, autogen-agentchat, autogen-ext, autogenstudioag2, plus ag2-classic for the legacy line
LicenseMIT for code, CC-BY-4.0 for docsApache 2.0
GitHub starsAbout 60kAbout 4.8k
Where new work landsMicrosoft Agent FrameworkAG2 itself

Figures verified 2026-07-27. The star gap is a branding artifact, not an engineering verdict: microsoft/autogen accumulated its roughly 60,000 stars across the years when it was the only AutoGen, and its README now states that "AutoGen is now in maintenance mode" and is community managed going forward. AG2 shows a smaller count because the fork started from zero in 2024. (Sources: AutoGen GitHub, AG2 GitHub)

Update, 2026-07-27: the PyPI split moved again since this piece first published. pip install autogen no longer pulls AG2. The autogen project page now describes itself as the classic ConversableAgent framework at version 0.14.1, released 2026-06-30, in maintenance mode with security and critical bug fixes only, and points readers to ag2 as "the current, actively developed version." AG2 itself reached 1.0 and moved the classic codebase into a separate ag2ai/ag2-classic repo. Re-check any pin you set based on the June behavior recorded in the operator note below. (Sources: PyPI autogen, AG2 GitHub)

What shipped

  • Maintenance mode on microsoft/autogen: The README carries an orange maintenance badge and a CAUTION block stating AutoGen receives no new features and is community managed; new users should start on Microsoft Agent Framework. (Source: AutoGen GitHub)
  • Microsoft Agent Framework 1.0 (April 8, 2026): GA for Python and .NET with stable APIs, graph-based Agent Workflows, MCP tool discovery, multi-agent orchestration (sequential, concurrent, handoff, group chat, Magentic-One), checkpointing, and published AutoGen and Semantic Kernel migration guides. (Source: Microsoft Agent Framework 1.0)
  • AG2 fork momentum: The ag2ai/ag2 repo shows roughly 4.8k GitHub stars and Apache 2.0 licensing as of 2026-07-27, bills itself as "AG2 (formerly AutoGen): The Open-Source AgentOS," and has reached 1.0, moving the classic framework into ag2ai/ag2-classic. It is maintained by volunteers from several organizations under open governance at ag2.ai. (Source: AG2 GitHub)
  • PyPI name collision: The autogen PyPI package at v0.13.3 declares requires_dist: ag2==0.13.3, while Microsoft's 0.4 stack publishes separately as autogen-agentchat (v0.7.5 at verification time). (Source: PyPI autogen)
  • Build 2026 agent stack (June 2-3, 2026): Microsoft positioned Agent Framework 1.0 as GA, highlighted Microsoft IQ (Work IQ, Foundry IQ, Web IQ), previewed Microsoft Execution Containers (MXC) for policy-driven agent containment, and announced OpenClaw running on Windows through MXC. (Source: Build 2026 Live Blog)
  • Migration guide shipped: Microsoft Learn documents side-by-side AutoGen-to-Agent Framework mappings for model clients, single agents, GroupChat patterns, checkpointing, and observability. (Source: Microsoft Learn Migration Guide)

The three-way split: repo, PyPI, and successor

Practitioner payoff: most migration failures here are import errors, not architecture debates.

Path A: microsoft/autogen (maintenance). This repo hosts AutoGen 0.4's layered packages (autogen-core, autogen-agentchat, autogen-ext). Microsoft will accept bug fixes and security patches, but feature development moved to Agent Framework. If you already run AssistantAgent from autogen_agentchat, you are on this path. (Source: AutoGen GitHub)

Path B: AG2 on PyPI (ag2, with ag2-classic for the legacy line). The original research authors forked to ag2ai and kept the lineage going under their own package names. That preserves conversable-agent and group-chat patterns familiar from pre-0.4 AutoGen, with Apache 2.0 governance outside Microsoft. (Source: AG2 GitHub)

Path C: Microsoft Agent Framework (agent-framework). This is Microsoft's unified successor, merging Semantic Kernel enterprise features with AutoGen orchestration ideas into typed graph workflows, hosted tools, and first-party Azure or Foundry connectors. (Source: Microsoft Learn Migration Guide)

Operator note (first-hand): On 2026-06-08, unauthenticated PyPI metadata showed autogen 0.13.3 with requires_dist pinning ag2==0.13.3, while autogen-agentchat resolved to 0.7.5 as a separate package. Running pip install autogen in a fresh venv therefore pulled AG2, not Microsoft's maintenance repo stack, on that date. Pin autogen-agentchat explicitly if you intend the Microsoft 0.4 line. See the 2026-07-27 update above: the autogen package has since been repointed at the classic ConversableAgent line, so this alias behavior is version dependent and worth re-testing rather than assuming. (Source: PyPI autogen)

Microsoft Agent Framework: when the vendor path wins

Why this matters: Agent Framework is the only branch Microsoft commits to for long-term support and enterprise integration.

Decision rule: choose Microsoft Agent Framework when you are starting a new multi-agent system and can accept graph-first orchestration, especially on Azure, Microsoft Foundry, or .NET estates.

Key benefit: Version 1.0 locks stable workflow APIs, middleware hooks, declarative YAML agents, MCP integration, and checkpointed long-running processes. The April announcement positions A2A cross-runtime messaging with "A2A 1.0 support coming soon." (Source: Microsoft Agent Framework 1.0)

Practitioner payoff: The Learn migration guide maps AutoGen Team and GroupChat patterns to Agent Framework Workflow graphs. Expect a partial rewrite of orchestration code, not a semver bump. Model client setup stays familiar, but tool decorators, agent defaults, and multi-agent composition change shape. (Source: Microsoft Learn Migration Guide)

Defensive focus: Build 2026 adds operator context beyond the SDK. Work IQ and Foundry IQ supply organizational grounding; MXC supplies OS-level containment for agents like OpenClaw on Windows. Inference: teams already standardizing on Microsoft 365 plus Azure should treat MAF plus IQ plus MXC as one procurement story, not three optional add-ons. (Sources: Build 2026 Live Blog, Microsoft Agent Framework 1.0)

AG2: when the community fork wins

Why this matters: AG2 is the continuity bet for codebases that depended on classic AutoGen conversation loops and the original PyPI install path.

Decision rule: choose AG2 when you want open governance, Apache 2.0 licensing clarity, and minimal disruption to conversable-agent tutorials, but you can self-fund observability, hosting, and enterprise compliance.

Key benefit: AG2 ships active releases (v0.13.3 in early June 2026), supports MCP and multi-agent patterns, and documents itself as "Open-Source AgentOS." The fork's smaller star count versus microsoft/autogen reflects branding confusion, not necessarily engineering stagnation. (Source: AG2 GitHub)

Common mistake: assuming microsoft/autogen stars guarantee the package you installed. The star-rich repo and the PyPI alias point to different maintainers after the fork.

Defensive focus: AG2 does not ship Microsoft's Build 2026 enterprise envelope (Work IQ, Agent 365, MXC). Inference: AG2 fits research-heavy teams and startups with strong Python ops; regulated enterprises should budget extra for governance layers. (Inference: AgenticWire read)

LangGraph, CrewAI, and provider SDKs: the honest alternatives

The durable concept beneath the AutoGen fracture is framework fragmentation: no single repo owns "agents" anymore.

Framework | Orchestration style | Best for | Maintenance / vendor | Migration from AutoGen
Microsoft Agent Framework | Graph workflows + multi-agent | Azure/.NET teams, greenfield MAF | Microsoft GA 1.0 | Guided guide; partial rewrite
AG2 | Conversation / group chat | Legacy PyPI users, open governance | Community (ag2ai) | Lowest friction on ag2/autogen PyPI
autogen-agentchat (0.4) | Event-driven AgentChat | Existing 0.4 deployments | Microsoft maintenance | Stay put; plan MAF move
LangGraph | Directed graph / state machine | Production control, checkpointing | LangChain ecosystem | Redesign topology; no drop-in
CrewAI | Role-based crews | Fast multi-agent prototypes | CrewAI Inc. + OSS | Rewrite roles vs conversations
OpenAI Agents SDK | Handoffs + tool loop | OpenAI-first production | OpenAI vendor | New harness; see SDK coverage

LangGraph ranks highly in independent 2026 comparisons for production state machines and traceability; CrewAI wins when teams need a working crew in hours. Provider SDKs (OpenAI Agents SDK, Claude Agent SDK, Google ADK) tighten integration at the cost of neutrality. (Inference: synthesis from AlphaCorp developer guide and AgenticWire provider coverage)

Framework choice in 2026 is less about demo speed and more about who owns your orchestration contract when the original maintainers fork, rebrand, or enter maintenance.

Decision rules for teams picking in 2026

Greenfield, Microsoft-aligned: pip install agent-framework, follow the Learn quickstart, adopt MCP early for tool portability, and treat A2A as preview until 1.0 ships. (Source: Microsoft Agent Framework 1.0)

Greenfield, provider-neutral: prototype in CrewAI if roles fit; graduate to LangGraph when you need deterministic graphs, pause/resume, and audit trails. (Inference: AgenticWire read)

Legacy pip install autogen scripts: inspect import autogen provenance. If PyPI pulled ag2, stay on AG2 intentionally or pin autogen-agentchat and plan MAF migration. (Source: PyPI autogen)

Existing AutoGen 0.4 production: remain on maintenance branch for stability; schedule MAF migration per Learn guide; do not expect new AutoGen features. (Source: AutoGen GitHub)

Enterprise Windows agent deployments post-Build 2026: evaluate MXC containment for any autonomous runtime (OpenClaw, Copilot CLI, Claude Code) before approving wide install. (Source: Build 2026 Live Blog)

Context: how AutoGen fractured

AutoGen began as Microsoft Research work on multi-agent conversation, gained massive GitHub traction, and split along governance lines. Microsoft steered the flagship repo toward a 0.4 architecture and, by 2026, maintenance mode with Agent Framework as successor. The founding authors forked to AG2, retained PyPI package names, and argued open governance would speed community contribution. (Sources: AutoGen GitHub, AG2 GitHub)

That fracture mirrors a wider 2026 pattern: vendors productize agent harnesses and sandboxes while open-source frameworks compete on orchestration primitives. For how Microsoft packages graph workflows and MCP in the successor SDK, see our Microsoft Agent Framework 1.0 workflows and MCP coverage. For harness versus compute separation on long runs, see OpenAI Agents SDK harness versus sandbox.

FAQ

What is the new name for AutoGen?

There are two answers, which is the source of most of the confusion. The community fork run by AutoGen's founding authors is AG2, whose repository bills itself as "AG2 (formerly AutoGen)". Microsoft's own successor is a separate product with a separate codebase: Microsoft Agent Framework. (Sources: AG2 GitHub, AutoGen GitHub)

What are the disadvantages of AutoGen?

The main one is a ceiling rather than a defect. Microsoft's repo is in maintenance mode, so it gets bug fixes and security patches but no new features or protocol integrations. Secondary problems are package-name confusion across autogen, ag2, and autogen-agentchat, plus GroupChat's non-deterministic routing. (Source: AutoGen GitHub)

Are AutoGen and LangChain the same?

No. They are separate projects from separate organizations. AutoGen originated in Microsoft Research and centers on multi-agent conversation loops; LangChain is an independent ecosystem whose agent runtime, LangGraph, models execution as an explicit state graph instead. Neither is a fork or a repackaging of the other. (Inference: AgenticWire read)

Is AutoGen still maintained in 2026?

Yes, but only in maintenance mode. Microsoft's README states AutoGen receives bug fixes and critical security patches, not new features, and directs new users to Microsoft Agent Framework. Community support continues on Discord and GitHub Discussions with variable response times. (Source: AutoGen GitHub)

What is AG2 and how is it different from Microsoft AutoGen?

AG2 is the community fork maintained by AutoGen's original authors under ag2ai. It continues development on the legacy PyPI packages (ag2, autogen, pyautogen). Microsoft's microsoft/autogen repo tracks the separate 0.4 autogen-agentchat architecture now in maintenance. (Sources: AG2 GitHub, AutoGen GitHub)

Should new projects start on Microsoft Agent Framework or AG2?

Microsoft Agent Framework if you want vendor-supported graph workflows, Azure or Foundry integration, and a published migration path from AutoGen. AG2 if you prioritize open governance, Apache 2.0 licensing, and continuity with classic conversable-agent APIs, and you will self-host governance. (Sources: Microsoft Agent Framework 1.0, AG2 GitHub)

Which agent framework is best for production in 2026?

There is no universal winner. LangGraph leads for explicit stateful graphs; Microsoft Agent Framework leads for Microsoft-centric enterprises; CrewAI leads for fast multi-agent prototypes; provider SDKs lead when you are already committed to one model vendor. Production readiness depends more on observability, checkpointing, and governance than GitHub stars. (Inference: AgenticWire read)

Can I keep using pip install autogen after the fork?

Yes, but you are installing AG2. PyPI's autogen 0.13.3 package depends on ag2==0.13.3. For Microsoft's 0.4 stack, install autogen-agentchat and related packages explicitly. (Source: PyPI autogen)

How do I migrate from AutoGen to Microsoft Agent Framework?

Follow Microsoft's Learn migration guide: map model clients first, then single agents, then multi-agent GroupChat patterns to Agent Framework workflows. Expect orchestration code changes where AutoGen Teams become typed workflows. Test checkpointing and observability early. (Source: Microsoft Learn Migration Guide)

References