Install Agent-Zero Without Docker #1211
Replies: 7 comments 6 replies
-
|
A non-Docker path would help a lot of people, especially anyone trying to test quickly on an existing workstation or integrate with a local environment that already has Python, Node, and browser dependencies installed. |
Beta Was this translation helpful? Give feedback.
-
|
Already succed without Docker thanks to AI!
|
Beta Was this translation helpful? Give feedback.
-
|
You aren't alone... I'm working through building am installer script to setup agent zero in an lxc instead of using docker. I prefer LXC deployment or bare metal over docker... We seem to be the minority... |
Beta Was this translation helpful? Give feedback.
-
|
Almost all of this will be done by a CLI agent from the cmd prompt
Here's your complete Agent-Zero Without Docker installation guide: Phase 1: Repository SetupStep 1: Clone Agent-Zero# Windows (PowerShell as Admin) or Linux
git clone https://github.com/agent0ai/agent-zero.git
cd agent-zeroStep 2: Copy Docker Contents (if you have existing container)If you have a running Docker container with Agent-Zero and want to preserve data: # Create destination directory
mkdir -p ./a0/usr
# Copy from running container (if available)
docker cp agent-zero:/a0/usr ./a0/
docker cp agent-zero:/a0/logs ./a0/ 2>$nullPhase 2: Install CLI AgentInstall one of these CLI agents to help with the migration: Here's the Ollama CLI quick setup for Agent-Zero: 1. Install Ollama # macOS/Linux
curl -fsSL https://ollama.com/install.sh | sh
# Windows (PowerShell Admin)
winget install Ollama.Ollama
# OR
# Download from https://ollama.com/download/windows2. Pull a Coding Model # Good for coding tasks (Agent-Zero compatible)
ollama pull qwen2.5-coder:14b
ollama pull llama3.2:3b # Fast, lightweight
ollama pull deepseek-coder:6.7b # Great for code3. Quick Ollama CLI Reference ollama # ollama on boarding
ollama list # Show downloaded models
ollama run qwen2.5-coder:14b # Chat interactively
ollama serve # Start API server (daemon)
ollama ps # Show running models
ollama rm llama3.2:3b # Delete model
ollama pull qwen2.5-coder:latest # Update modelor Install OpenAI Codex (Recommended): npm install -g @openai/codex
# Or visit: https://github.com/openai/codexor Install Kimi Code (K2.5): # Visit https://www.moonshot.cn/ (requires API access)
# Or use OpenRouter with Kimi K2.5 modelor Install Goose: curl -fsSL https://github.com/block/goose/releases/download/stable/download_cli.sh | bashor Install Claude Code: npm install -g @anthropic-ai/claude-codePhase 3: Environment Setup - Have CLI Agent Do the RestCreate Virtual Environment# Windows
python -m venv .venv
.venv\Scripts\activate
# Linux/macOS
python3 -m venv .venv
source .venv/bin/activateInstall Dependenciespip install --upgrade pip setuptools
pip install -r requirements.txt
playwright install chromiumEnvironment VariablesCreate # Required API Keys
API_KEY_OPENAI=your_key_here
API_KEY_ANTHROPIC=your_key_here
API_KEY_OPENROUTER=your_key_here
# A0 Configuration (bypass Docker)
A0_SET_rfc_enabled=false
A0_SET_execution_local=true
A0_SET_docker_enabled=false
# Paths (adjust for your OS)
A0_BASE_PATH=/path/to/agent-zero/a0 # Linux
# A0_BASE_PATH=C:\path\to\agent-zero\a0 # Windows
# Web UI Config
WEB_UI_PORT=50001
WEB_UI_HOST=0.0.0.0Phase 4: Critical Code ModificationsUse your CLI agent (Codex/Kimi/Goose) to make these changes. Point it to your agent-zero folder and give it these specific instructions: 4.1 Fix Hardcoded Docker PathsTarget files: Search patterns:
Example fix for path resolution: # Add to python/helpers/paths.py (create if missing)
import os
from pathlib import Path
def get_a0_base():
"""Get base path for A0 data (works inside and outside Docker)"""
# Check environment variable first
if os.getenv('A0_BASE_PATH'):
return Path(os.getenv('A0_BASE_PATH'))
# Default to project directory
return Path(__file__).parent.parent.parent / 'a0'
def get_usr_path():
return get_a0_base() / 'usr'
def get_work_path():
return get_a0_base() / 'work'4.2 Bypass RFC Container CallsTarget: The Problem: RFC tries to call Fix instruction for CLI agent: Example bypass pattern: # In python/helpers/rfc_client.py (create/modify)
import os
def rfc_call(function_name, *args, **kwargs):
"""Bypass RFC if running native, else call container"""
if os.getenv('A0_SET_rfc_enabled', 'false').lower() == 'false':
# Execute locally - import and call the function directly
module_path, func_name = function_name.rsplit('.', 1)
module = __import__(module_path, fromlist=[func_name])
func = getattr(module, func_name)
return func(*args, **kwargs)
else:
# Original HTTP RFC call to container
return original_rfc_call(function_name, *args, **kwargs)4.3 Fix Tool Execution (Critical)Target: Changes needed:
Instruction for CLI agent: 4.4 Fix Imports for Windows/LinuxCommon issues:
Create compatibility layer ( import sys
import os
IS_WINDOWS = sys.platform == 'win32'
IS_LINUX = sys.platform == 'linux'
IS_MAC = sys.platform == 'darwin'
def get_shell():
if IS_WINDOWS:
return os.getenv('COMSPEC', 'cmd.exe')
return os.getenv('SHELL', '/bin/bash')
def get_terminal_size():
try:
import shutil
return shutil.get_terminal_size()
except:
return os.terminal_size((80, 24))4.5 Update All Container ReferencesSearch entire codebase for:
Regex search patterns: /docker.*exec/
/localhost:\d+/
/\/a0\//
/ssh.*localhost/Phase 5: Specific File ModificationsBased on your previous memory about the missing 5.1 Fix intervention_state.pyAdd the missing function: def parse_intervention_command(command: str) -> dict:
"""Parse intervention commands from agent output"""
# Basic implementation - expand as needed
if not command:
return {}
parts = command.strip().split()
return {
'action': parts[0] if parts else None,
'args': parts[1:] if len(parts) > 1 else [],
'raw': command
}5.2 Fix run_ui.py and run_cli.pyEnsure they don't assume Docker: # At start of both files
import os
os.environ.setdefault('A0_SET_rfc_enabled', 'false')
os.environ.setdefault('A0_SET_execution_local', 'true')Phase 6: Directory Structure SetupCreate necessary directories locally: # Linux/macOS
mkdir -p a0/usr/{chats,files,knowledge,memory,skills,agents}
mkdir -p a0/work
mkdir -p a0/logs
mkdir -p a0/prompts
# Windows PowerShell
New-Item -ItemType Directory -Force -Path a0\usr\chats,a0\usr\files,a0\usr\knowledge,a0\usr\memory,a0\usr\skills,a0\usr\agents
New-Item -ItemType Directory -Force -Path a0\work,a0\logs,a0\promptsCopy default prompts: # Copy from repo to a0/prompts
cp -r prompts/* a0/prompts/ 2>/dev/null || echo "Using repo prompts"Phase 7: Testing (Smoke Test Protocol)Test 1: Basic Importpython -c "from python.helpers import paths; print('Imports OK')"Test 2: Web UI Launchpython run_ui.py
# Should start on http://localhost:50001
# Check for no RFC connection errors in consoleTest 3: CLI Modepython run_cli.py
# Should start interactive mode without Docker errorsTest 4: Code Execution (Critical)In the UI/CLI, test: Expected: Output appears without "RFC connection refused" or "Container not found" errors. Test 5: File System AccessVerify: File appears in Test 6: Memory/DatabaseStart a chat, send a message, restart the app. Phase 8: Platform-Specific TweaksWindows-Specific
Linux-Specific
Troubleshooting Common Issues
Final ChecklistBefore declaring success, verify:
Security Warning: Running Agent-Zero without Docker removes the security isolation. The agent can now directly access your host filesystem and execute commands. Only run trusted tasks and consider running in a VM for untrusted operations . Would you like me to elaborate on any specific phase or provide the exact code patches for the RFC bypass layer? |
Beta Was this translation helpful? Give feedback.
-
i make some change on src....only one prompt to fina result output! ❤ using lmstudio & qwen3.5-9b with 162790 context lgth
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
It can work on it self if u clone the repo in project manager! And then work on
it as you like :)
©2025 Kunstig Intelligens IT.
https://www.kiit.no - Skreddersydde Chatboter og IT Support!
Sent from Proton Mail for Android.
…-------- Original Message --------
On Wednesday, 04/15/26 at 17:34 johnnycoderbot-cloud ***@***.***> wrote:
Get Nvidia NIM they have some good free coding api. Agent zero doesn't like to
work on itself (definitely a crash risk). you have to constant make sure all
imports are still operation. Domino effects.
DuckDuckGo removed one tracker. More
Report Spam
Get Nvidia NIM they have some good free coding api. Agent zero doesn't like to
work on itself (definitely a crash risk). you have to constant make sure all
imports are still operation. Domino effects. I used kimi cli/ codex cli in the
cmd to fix my agent. Its a nightmare but it is worth it to free your agent
from docker. I think if you install some MCPs and skills it can do whatever
you ask. If you are in a docker environment ollama needs the correct Base url.
just ask google (select AI mode) it was helpful in getting me on the right
track.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.




Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
can we get Agent-Zero Without Docker installation 🤷♀️
Beta Was this translation helpful? Give feedback.
All reactions