AutoGen
Research-backed multi-agent framework from Microsoft. Agents converse with each other and humans to solve complex tasks via code execution, tool calls, and planning.
Install
$pip install pyautogen About
AutoGen introduces the concept of conversable agents — LLM-powered agents that can talk to each other, execute code, and call tools in a structured conversation loop. A typical workflow is an AssistantAgent paired with a UserProxyAgent that runs code and returns results.
AG2 (AutoGen 0.4+) is a ground-up async rewrite with an event-driven message system, better support for long-running workflows, and a cleaner API. It is the recommended version for new projects.
Getting Started
pip install pyautogen
import autogen
assistant = autogen.AssistantAgent(
name="assistant",
llm_config={"model": "claude-sonnet-4-5", "api_key": "..."}
)
user_proxy = autogen.UserProxyAgent(name="user_proxy", human_input_mode="NEVER")
user_proxy.initiate_chat(assistant, message="Plot a sine wave and save it as plot.png")Features
References & Links
Project Info
Topics
Ready to try AutoGen?
Free and open source. Install in one command, works with Claude Code, Cursor, Windsurf, and more.
$pip install pyautogen