Skip to main content

AutoGen Cheatsheet

AutoGen is Microsoft's open-source conversational AI agent framework enabling multiple agents to autonomously converse and complete complex tasks. Supports code execution, tool calling, human-in-the-loop, and group chat.

Updated: 2026-07-20·7 commands

Quick Start

``bash pip install pyautogen export OPENAI_API_KEY=sk-xxx ``

Startup & Modes(7)

CommandLevel
pip install pyautogen
Install AutoGen
Basic
autogen two-agent chat
Start a conversation between two agents
Intermediate
autogen group chat
Start multi-agent group chat
Expert
autogen code execution
Agent with code execution capability
Intermediate
export OPENAI_API_KEY
Set LLM API key
Basic
autogen tools
Register tool functions for agents
Expert
autogen web surfing
Agent with web browsing capability
Intermediate

FAQ

This cheatsheet is compiled from official tool documentation. Last updated: 2026-07-20.