# AutoAgent

> Build and run LLM agents using plain natural language, no coding

- Category: Agents & Automation / Agent Frameworks & Builders
- Language: Python
- Licence: MIT
- Repository: https://github.com/HKUDS/AutoAgent
- Website: https://arxiv.org/abs/2502.05957
- Canonical page: https://ai-tldr.dev/tools/autoagent/

## In short

AutoAgent is a fully-automated, zero-code framework for building and running LLM agents. Instead of writing Python or configuring a pipeline, you describe what you want in plain language and AutoAgent constructs the agents, tools, and workflows for you. It sits in the Agent Frameworks & Builders category of the Agents & Automation tools and is open-source, written in Python and licensed MIT.

## Overview

AutoAgent is a fully-automated, zero-code framework for building and running LLM agents. Instead of writing Python or configuring a pipeline, you describe what you want in plain language and AutoAgent constructs the agents, tools, and workflows for you.

It ships with a ready-to-use multi-agent system called user mode, which works as a deep research assistant for searching, analysis, and report writing. For custom builds, the agent editor and workflow editor modes let you assemble your own agents through conversation.

AutoAgent works with many LLM providers through LiteLLM, including Anthropic Claude, OpenAI, Gemini, DeepSeek, Groq, Mistral, and OpenRouter, so you can pick the model that fits your task and budget. It was formerly known as MetaChain.

## What it does

- Natural-language agent building: construct and orchestrate collaborative agent systems through dialogue, with no manual coding required
- Three modes: user mode (deep research agents), agent editor (build agents without a workflow), and workflow editor (build agents with a workflow)
- Self-managing workflow generation that creates, optimizes, and adapts agent workflows from a high-level task description
- Ready-made deep research assistant that handles information retrieval, analysis, report generation, and file uploads
- Broad model flexibility via LiteLLM model names, covering Claude, OpenAI, Gemini, DeepSeek, Groq, Mistral, and OpenRouter
- Containerized agent-interactive environment using Docker, with the prebuilt image pulled automatically for your machine's architecture

## Getting started

Install AutoAgent from source, install Docker for the agent environment, set the API keys for the LLMs you want to use, then launch the CLI.

1. Install AutoAgent

   Clone the repository and install it in editable mode with pip. You also need Docker installed; AutoAgent pulls the right prebuilt image for your architecture automatically.

```bash
git clone https://github.com/HKUDS/AutoAgent.git
cd AutoAgent
pip install -e .
```

2. Set up API keys

   Create an environment file like .env.template and set the keys for the LLMs you want to use. Only add what you need; for example, set your Anthropic key to use Claude.

```bash
ANTHROPIC_API_KEY=your_anthropic_api_key
```

3. Start the CLI

   Run auto main to launch the full experience, including user mode, agent editor, and workflow editor. The default model is claude-3-5-sonnet-20241022; use a lighter deep-research-only mode with auto deep-research.

```bash
auto main
```

4. Pick a different model

   Set COMPLETION_MODEL to any LiteLLM model name to switch providers. For example, run with OpenAI's GPT-4o.

```bash
COMPLETION_MODEL=gpt-4o auto main
```

## When to use it

- Run deep research tasks that gather information, analyze it, and produce a written report, as a self-hosted alternative to paid deep research subscriptions
- Create custom agents and tools for a specific job by describing the requirement in plain language, without writing or maintaining code
- Design multi-step agent workflows from a high-level task description and let AutoAgent generate and adapt the orchestration
- Experiment across many LLM providers (Claude, OpenAI, Gemini, DeepSeek, Groq) from one CLI to compare cost and quality
