From cc954fc23b34163070d571c2582e3b54f0b7b887 Mon Sep 17 00:00:00 2001 From: Mikei386 <44135113+Mikei386@users.noreply.github.com> Date: Thu, 15 Oct 2026 22:17:42 +0200 Subject: [PATCH] Deploy official Agent Zero image on Unraid with persistent Athena presets --- integrations/agent-zero-unraid/README.md | 62 +++++++++++++++++++ integrations/agent-zero-unraid/install.sh | 28 +++++++++ .../agent-zero-unraid/my-agent-zero.xml | 21 +++++++ 3 files changed, 111 insertions(+) create mode 100644 integrations/agent-zero-unraid/README.md create mode 100755 integrations/agent-zero-unraid/install.sh create mode 100644 integrations/agent-zero-unraid/my-agent-zero.xml diff --git a/integrations/agent-zero-unraid/README.md b/integrations/agent-zero-unraid/README.md new file mode 100644 index 0000000..af9f3b5 --- /dev/null +++ b/integrations/agent-zero-unraid/README.md @@ -0,0 +1,62 @@ +# Agent Zero on Unraid + +User-authorized trial deployment, 2026-10-15. Uses the official prebuilt +`agent0ai/agent-zero:latest` image; no local image build or custom runtime. + +## Installation and updates + +The included DockerMan v2 template derives from the Selfhosters Community Apps +[template](https://github.com/selfhosters/unRAID-CA-templates/blob/master/templates/agent_zero.xml). +Changes: remove NVIDIA runtime/devices, obsolete branch post-argument and +localhost model fallbacks; persist only `/a0/usr` as required by the current +[manufacturer guide](https://github.com/agent0ai/agent-zero/blob/main/docs/setup/installation.md). +Mounting all of `/a0` would hide application files and impede image updates. + +- Container: `agent-zero`, standard `bridge`, restart `unless-stopped`. +- Web UI: `http://192.168.1.2:50080/` (published on the LAN address only). +- User data: `/mnt/user/appdata/agent-zero` -> `/a0/usr`. +- DockerMan template: `/boot/config/plugins/dockerMan/templates-user/my-agent-zero.xml`. +- Resource envelope for the trial: 2 CPUs, CPU shares 128, 4 GiB RAM/no extra swap, + 1024 PIDs, 512 MiB shared memory, bounded Docker logs. +- No GPU, Docker socket, host home, or existing shares mounted. + +On the intended Unraid host, pull the official image, place `install.sh` and +`my-agent-zero.xml` together, then run `bash install.sh`. The script refuses to +replace an existing container, data directory, ; an existing template is replaced only when its Name is exactly `agent-zero`. No unrelated +container or host restart is part of installation. + +For updates, use the published image through DockerMan and retain the user-data +mount. Follow upstream backup/migration instructions for major version changes. +The `latest` tag moves; record the installed digest for each accepted deployment. + +## Persistence and recovery + +Settings, chats, projects, memory and skills live in the private user-data +mount. This Unraid directory is not automatically covered by Athena Deck's +backup. Back it up separately as private data, including any model credentials. +Keep its permissions restricted; never commit it to Git. Source/template files +alone cannot restore conversations or memory. Fresh-host restore has not been +tested. The future native Athena installation has no dependency on this optional +Unraid application. + +## Initial access + +Initial LAN-only onboarding uses upstream defaults. Configure login credentials +through the supported UI before granting broader access. No domain or reverse +proxy is created by this recipe. The image provides the application; tools for +specific projects and MCPs still require configuration. + +## Verified deployment — 2026-10-15 + +- Official image digest: `sha256:b0c9763df7b8c4c5ddbdac9c101e8f84de8b7cdf9185203e446e2d7d8ebf2f1c`. +- Installed image ID: `sha256:46e4e5fd59568521ba64de19bb8e866dca7df57d98545cfb272777af6e915fae`; unpacked size 8,475,011,964 bytes. +- UI reports `M v2.14 2026-10-13`. HTTP 200 and browser UI verified. +- Athena API `http://192.168.1.212:8120/v1`, existing OpenCode Athena credential transferred internally to the new application's private `usr/.env` (`API_KEY_OPENAI`, mode 0600); never printed or committed. +- Local presets in `usr/plugins/_model_config/presets.yaml` (0600): Default = Strata IQ3 262144; Athena Strata 512K = 524288; Athena Strata Dual 256K = 262144 per slot. Main and utility use the same chosen model to avoid switching Deck profiles for internal helper tasks. CPU Hugging Face embedding default retained. +- Medium preset uses 80000 tokens per request: `/props` reports 160000 shared across two slots, confirmed against Deck's llama.cpp launch construction. This corrects only the new Agent Zero preset, not other clients. +- All four model IDs confirmed in Athena's authenticated `/v1/models`. +- Browser acceptance task asked for exactly one `pwd`, no reads or writes. Agent executed it and returned `/a0/usr/workdir`. This proves basic model/tool integration, not comprehensive task quality or long-term memory retrieval. +- Only the new Agent Zero container was restarted to load its configuration; no Athena, OpenCode, Unraid or other app restart. +- Existing old DockerMan template with matching Name was updated; there was no existing Agent Zero container or user-data directory. + +User authentication, reverse proxy/domain and MCP import are not configured by this installation. Initial access is LAN HTTP using upstream onboarding defaults. diff --git a/integrations/agent-zero-unraid/install.sh b/integrations/agent-zero-unraid/install.sh new file mode 100755 index 0000000..17fcf8e --- /dev/null +++ b/integrations/agent-zero-unraid/install.sh @@ -0,0 +1,28 @@ +#!/bin/bash +set -euo pipefail +name=agent-zero +base=/mnt/user/appdata/agent-zero +template=/boot/config/plugins/dockerMan/templates-user/my-agent-zero.xml +source_dir=$(cd -- "$(dirname -- "$0")" && pwd) +if docker container inspect "$name" >/dev/null 2>&1; then + echo 'agent-zero already exists; no changes made.' >&2 + exit 1 +fi +test ! -e "$base" +if test -e "$template"; then + php -r '$x=simplexml_load_file($argv[1]); if (!$x || (string)$x->Name !== "agent-zero") exit(1);' "$template" +fi +docker image inspect agent0ai/agent-zero:latest >/dev/null +mkdir -p "$base" +chmod 700 "$base" +cp "$source_dir/my-agent-zero.xml" "$template" +chmod 600 "$template" +docker run -d --name "$name" --network bridge --restart unless-stopped \ + --cpus=2 --cpu-shares=128 --memory=4g --memory-swap=4g \ + --pids-limit=1024 --shm-size=512m \ + --log-opt max-size=10m --log-opt max-file=2 \ + --label net.unraid.docker.managed=dockerman \ + --label 'net.unraid.docker.webui=http://[IP]:50080/' \ + --label net.unraid.docker.icon=https://raw.githubusercontent.com/selfhosters/unRAID-CA-templates/master/templates/img/agent-zero.png \ + -p 192.168.1.2:50080:80 -e TZ=Europe/Berlin \ + -v "$base:/a0/usr:rw" agent0ai/agent-zero:latest diff --git a/integrations/agent-zero-unraid/my-agent-zero.xml b/integrations/agent-zero-unraid/my-agent-zero.xml new file mode 100644 index 0000000..b0197d8 --- /dev/null +++ b/integrations/agent-zero-unraid/my-agent-zero.xml @@ -0,0 +1,21 @@ + + + agent-zero + agent0ai/agent-zero:latest + https://hub.docker.com/r/agent0ai/agent-zero + Please consider supporting this project with a donation.[br] + https://github.com/sponsors/frdel + bridge + false + https://github.com/agent0ai/agent-zero/issues + https://agent-zero.ai/ + Agent Zero official prebuilt image, adapted from the Selfhosters Community Apps template. Persistent user data under /a0/usr; no GPU, Docker socket or existing shares. Configure the model provider through the Web UI. + True + AI: Productivity: + http://[IP]:50080/ + --publish=192.168.1.2:50080:80/tcp --cpus=2 --cpu-shares=128 --memory=4g --memory-swap=4g --pids-limit=1024 --shm-size=512m --log-opt=max-size=10m --log-opt=max-file=2 + https://raw.githubusercontent.com/selfhosters/unRAID-CA-templates/master/templates/agent_zero.xml + https://raw.githubusercontent.com/selfhosters/unRAID-CA-templates/master/templates/img/agent-zero.png + /mnt/user/appdata/agent-zero + Europe/Berlin + \ No newline at end of file