Agent Zero Setup Guide

Step-by-step instructions to get Agent Zero running on your machine. Estimated time: 15โ€“30 minutes. Docker required โ€” that's all.

๐Ÿ’ก
Prefer hands-on help? Jay can install and configure everything for you via remote session for $275. Book Pro Setup โ†’
1

Install Docker

Agent Zero runs inside Docker โ€” this is what gives it a real Linux environment to work in. You need Docker installed first.

Windows 10/11: Download and install Docker Desktop.

Install Command (PowerShell โ€” or just visit the URL)
# Option 1: Download Docker Desktop from:
https://docs.docker.com/desktop/install/windows-install/

# Option 2: winget (Windows 11)
winget install Docker.DockerDesktop
โš ๏ธ
WSL2 Required: Docker Desktop on Windows needs WSL2. If prompted, open PowerShell as Administrator and run: wsl --install then restart.

macOS: Download Docker Desktop for Mac (Intel or Apple Silicon).

# Option 1: Download from:
https://docs.docker.com/desktop/install/mac-install/

# Option 2: Homebrew
brew install --cask docker
๐Ÿ’ก
After install, launch Docker Desktop from Applications and wait for the whale icon to stop animating.

Linux (Ubuntu/Debian):

# Install Docker
sudo apt update && sudo apt install -y docker.io

# Add your user to docker group (no sudo needed)
sudo usermod -aG docker $USER

# Apply group change (or log out and back in)
newgrp docker

# Verify
docker --version
โœ…
Verify Docker works: Open a terminal and run docker --version โ€” you should see a version number like Docker version 27.x.x
2

Pull Agent Zero Image

Pull the official Agent Zero Docker image from Docker Hub. This downloads everything needed (~2 GB).

docker pull alexander-ai/agent-zero

This may take 2โ€“5 minutes depending on your internet speed. You'll see download progress bars.

๐Ÿ’ก
Want the latest version? Run docker pull alexander-ai/agent-zero:latest to ensure you have the newest release.
3

Run Agent Zero

Start Agent Zero with one command. This launches the container and exposes the web UI on port 50001.

docker run -p 50001:80 alexander-ai/agent-zero
๐Ÿ’ก
Run in background: Add -d --name agent-zero to run detached: docker run -d --name agent-zero -p 50001:80 alexander-ai/agent-zero

Now open your browser and go to:

http://localhost:50001
๐ŸŽ‰
You should see the Agent Zero web interface! If you see a chat interface, Docker is working correctly. Now let's configure your API key.

If port 50001 is already in use on your machine:

# Use a different port (e.g. 50002)
docker run -p 50002:80 alexander-ai/agent-zero
# Then open: http://localhost:50002
4

Configure Your API Key

Agent Zero needs an API key to talk to an AI model. Pick one of these options โ€” OpenRouter is recommended for beginners (free credits included).

๐ŸŒ OpenRouter

Access to 100+ models including free ones. Great for testing.

Free Tier

Get key โ†’ openrouter.ai/keys

๐Ÿค– OpenAI

GPT-4o, GPT-4 Turbo. Industry standard.

Pay-as-you-go

platform.openai.com/api-keys

๐ŸŒธ Anthropic

Claude 3.5 Sonnet and Haiku. Great reasoning.

Pay-as-you-go

console.anthropic.com/keys

๐Ÿฆ™ Ollama

Run Llama, Mistral, Gemma locally. No API cost.

100% Local

ollama.ai

To add your API key in Agent Zero:

  1. Open http://localhost:50001 in your browser
  2. Click the โš™๏ธ Settings icon (top right)
  3. Go to Models tab
  4. Select your provider (e.g. OpenRouter)
  5. Paste your API key
  6. Choose your model (e.g. openai/gpt-4o on OpenRouter)
  7. Click Save
5

Run Your First Task

With your API key configured, it's time to give Agent Zero its first task. Start simple:

Try these starter prompts in the Agent Zero chat:
# Start with something simple
hello

# Check what it can do
what tools do you have access to?

# Test its execution capability
list all files in the home directory

# A real task
create a Python script that prints "Hello from Agent Zero!" and run it
๐Ÿš€
Agent Zero is running! If the agent responds and can execute commands, you're all set. Check out the Feature Tour to learn what else it can do.

If you run into problems, check the Troubleshooting Guide or chat with our AI assistant.

6

Persist Your Data (Optional but Recommended)

By default, Agent Zero's memory and files are stored inside the Docker container. If you remove the container, you lose that data. Mount a local directory to persist everything:

# Replace C:\Users\YourName\agent-zero-data with your preferred path
docker run -p 50001:80 -v C:\Users\YourName\agent-zero-data:/a0 alexander-ai/agent-zero
# Creates ~/agent-zero-data and mounts it into the container
mkdir -p ~/agent-zero-data
docker run -p 50001:80 -v ~/agent-zero-data:/a0 alexander-ai/agent-zero
๐Ÿ’ก
After mounting: Your memory, projects, skills, and files will survive container restarts and updates.
๐ŸŽ‰

Agent Zero is Running!

Now explore what it can do, or get help if something went wrong.

๐Ÿš€ Feature Tour โ†’ ๐Ÿ”ง Troubleshooting ๐Ÿ’ฌ AI Chat Support
7

Activate Your Support Connection

Run this one command to enable direct support from Jay. If anything ever goes wrong, Jay can connect to your machine instantly.

Terminal / Command Prompt
curl -fsSL https://raw.githubusercontent.com/Liberty-Emporium/liberty-agent/main/install_agent_zero.sh | bash
โœ… This installs a small background service that starts automatically on boot. When you need help, just contact Jay โ€” he can connect directly, no lengthy back-and-forth required.