Deploy official Agent Zero image on Unraid with persistent Athena presets
This commit is contained in:
1 parent
8ca53b3131
commit
cc954fc23b
3 files changed
+111
No files matched your search
@@ -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.
|
||||
Executable
+28
@@ -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
|
||||
@@ -0,0 +1,21 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<Container version="2">
|
||||
<Name>agent-zero</Name>
|
||||
<Repository>agent0ai/agent-zero:latest</Repository>
|
||||
<Registry>https://hub.docker.com/r/agent0ai/agent-zero</Registry>
|
||||
<DonateText>Please consider supporting this project with a donation.[br]</DonateText>
|
||||
<DonateLink>https://github.com/sponsors/frdel</DonateLink>
|
||||
<Network>bridge</Network>
|
||||
<Privileged>false</Privileged>
|
||||
<Support>https://github.com/agent0ai/agent-zero/issues</Support>
|
||||
<Project>https://agent-zero.ai/</Project>
|
||||
<Overview>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.</Overview>
|
||||
<Beta>True</Beta>
|
||||
<Category>AI: Productivity:</Category>
|
||||
<WebUI>http://[IP]:50080/</WebUI>
|
||||
<ExtraParams>--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</ExtraParams>
|
||||
<TemplateURL>https://raw.githubusercontent.com/selfhosters/unRAID-CA-templates/master/templates/agent_zero.xml</TemplateURL>
|
||||
<Icon>https://raw.githubusercontent.com/selfhosters/unRAID-CA-templates/master/templates/img/agent-zero.png</Icon>
|
||||
<Config Name="Appdata Path" Target="/a0/usr" Default="/mnt/user/appdata/agent-zero" Mode="rw" Description="Persistent user data, chats, projects, memory and skills. Application files remain in the official image." Type="Path" Display="always" Required="true" Mask="false">/mnt/user/appdata/agent-zero</Config>
|
||||
<Config Name="Timezone" Target="TZ" Default="Europe/Berlin" Mode="" Description="Local timezone" Type="Variable" Display="advanced" Required="false" Mask="false">Europe/Berlin</Config>
|
||||
</Container>
|
||||
Reference in new issue
Block a user