You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AutoAgent (formerly MetaChain) is a zero-code autonomous agent framework from HKUDS that lets you describe agents in plain English and have them generated, tested, and deployed automatically. With 9,116 GitHub stars and an academic paper (arxiv:2502.05957), it represents a significant step toward democratizing multi-agent system development.
What You Will Learn
This tutorial walks through AutoAgent from first install to production-grade multi-agent pipelines. By the end, you will understand how the MetaChain engine works under the hood, how all three operating modes fit together, and how to extend the framework with your own tools, agents, and workflows.
Developers who want to build research or automation agents without writing orchestration boilerplate
ML engineers evaluating AutoAgent for benchmarks (GAIA, Math500, Agentic-RAG)
Contributors looking to add tools, agents, or new evaluation suites to the ecosystem
Naming Note
The internal codebase uses the class name MetaChain throughout — the project was publicly renamed from MetaChain to AutoAgent in February 2025. You will see from autoagent import MetaChain and MetaChain.run() in all source files. This tutorial uses "AutoAgent" when referring to the product and "MetaChain" when referring to the specific class or import.
Three Operating Modes
Mode
Entry Point
Best For
User Mode (Deep Research)
auto main
Open-ended research, file analysis, web browsing
Agent Editor
auto main → "create agent"
Generating new agents from NL descriptions
Workflow Editor
auto main → "create workflow"
Composing async parallel pipelines
Tutorial Chapters
Getting Started — Install, .env setup, first research task, three-mode overview
flowchart TD
U[User] --> CLI["auto main CLI"]
CLI --> UM[User Mode / Deep Research]
CLI --> AE[Agent Editor]
CLI --> WE[Workflow Editor]
UM --> MC["MetaChain Engine (core.py)"]
AE --> MC
WE --> EE["EventEngine (flow/)"]
MC --> DE["DockerEnv\n(TCP :12346)"]
MC --> BE["BrowserEnv\n(Playwright)"]
MC --> MB["RequestsMarkdown\nBrowser"]
MC --> REG["Registry\n(tools/agents/workflows)"]
Loading
Quick Start
git clone https://github.com/HKUDS/AutoAgent
cd AutoAgent
pip install -e .# Set up .env with your provider keys
cp .env.example .env
# Edit .env: OPENAI_API_KEY, ANTHROPIC_API_KEY, etc.
auto main