knowledge/main/about/setup-and-deployment.md
Agent Zero is distributed as a Docker image: agent0ai/agent-zero.
docker pull agent0ai/agent-zero
docker run -p 50001:80 agent0ai/agent-zero
The web UI is then accessible at http://localhost:50001. The container exposes port 80 internally; map any host port to it.
All user data lives in /a0/usr/ inside the container. Without a volume mount, data is lost when the container is removed.
Map /a0/usr to a host directory for persistence:
docker run -p 50001:80 -v /path/on/host:/a0/usr agent0ai/agent-zero
Contents of /a0/usr/:
settings.json - all configuration including API keys and model settingsmemory/ - FAISS vector indexes and knowledge import stateknowledge/ - user-added knowledge filesagents/ - custom agent profilesplugins/ - user pluginsprojects/ - project workspaceswork/ - default working directory for agent file outputOn first run, open Settings (gear icon) and configure:
Settings are saved to usr/settings.json immediately on change.
The recommended update process is to use Self Update:
You'll also be prompted through the UI when a new A0 version is released. Note that backups are automatically managed internally during the self-update process.
If upgrading from v0.9.8 or earlier, the architecture has significantly changed. You must use the new install scripts and manually migrate your data:
usr/ directory.curl -fsSL https://bash.agent-zero.ai | bash for macOS/Linux or irm https://ps.agent-zero.ai | iex for Windows).usr/ contents into the new installation's a0/usr/ directory to preserve your settings, memory, and plugins.Settings → External Services → Flare Tunnel → Create Tunnel
This generates a public HTTPS URL without requiring firewall changes or a static IP. Set a username and password before creating the tunnel to enable authentication.
Access from other devices on the same network using the host machine's IP:
http://<host-ip>:<mapped-port>
Supported as an alternative to Flare for users in Microsoft environments. Configure under External Services in Settings.
Agent Zero is a Progressive Web App (PWA). On mobile, open the web UI URL in a browser, then add to home screen for an app-like experience. Works with both local network and tunnel URLs.
Agent responds but no memory/knowledge recall:
"Model not found" or API errors:
anthropic/claude-sonnet-4-5)Container starts but web UI unreachable:
docker psKnowledge files not being recalled:
.md, .txt, .pdf, .csv, .html, .jsonknowledge/ (framework level) or usr/knowledge/<subdir>/agent_knowledge_subdir must match the subdir where files are placedOllama / local model setup:
http://host.docker.internal:<port> as the API URL for Ollama (not localhost)ollama pull <model-name>git clone https://github.com/agent0ai/agent-zero
cd agent-zero
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
pip install -r requirements2.txt
python run_ui.py
The dev server runs on http://localhost:5000 by default. User data is written to usr/ in the project root.