Ubuntu 26.04 LTS Incus VM for Hermes Agent. It runs a vanilla Xfce desktop on X11 so Hermes can drive a real, visible Google Chrome over CDP and use cua-driver for computer use without Wayland workarounds or a GPU.
The VM is provisioned by cloud-init/user-data.yaml
and the chezmoi source in dotfiles/, which the VM pulls from
this repository.
| Component | Source | Notes |
|---|---|---|
| Xfce on X11, LightDM | apt (xubuntu-core) |
Autologin for agent (UID 1000, passwordless sudo) |
| GNOME Keyring | apt | login keyring with an empty password, so autologin never prompts |
| Google Chrome | Google apt repository | hermes-browser.service, CDP on 127.0.0.1:9222 |
1Password, op |
1Password apt repository | Autostarted; sign in or unlock manually |
| Nextcloud desktop | apt | Autostarted; connect the account once, syncs ~/Nextcloud |
| Tailscale | Tailscale apt repository | Joined with just tailscale-up |
| xrdp + x11vnc | apt | RDP on :3389 shows the live autologin desktop |
| Hermes Agent | upstream installer | Latest stable; hermes update owns upgrades; manages its own cua-driver |
| Hermes WebUI | GitHub, latest release | hermes-webui.service on 127.0.0.1:8787 |
| OpenChamber, OpenCode | npm, Homebrew | openchamber.service on 0.0.0.0:3000 |
| Traefik | Homebrew | traefik.service on :443, Cloudflare DNS-01 certificates |
User services:
| Unit | Purpose |
|---|---|
hermes-gateway.service |
Messaging platforms, cron, API server on 127.0.0.1:8642; generated by hermes gateway install |
hermes-serve.service |
Dashboard / remote backend on 127.0.0.1:9119 |
hermes-webui.service |
WebUI; requires ~/.config/hermes/webui.env |
hermes-browser.service |
Visible Chrome with a dedicated CDP profile in ~/.hermes/chrome-cdp |
x11vnc.service |
Loopback VNC server on the X11 display, used by xrdp |
traefik.service |
Requires ~/.config/traefik/traefik.env |
openchamber.service |
Requires ~/.config/openchamber/startup.env |
personal-graph.service |
Requires ~/graph |
Traefik routes (dotfiles/dot_config/traefik/dynamic/), all pointing at the
VM's Tailscale address in Cloudflare DNS:
hermes.<base_domain>→ WebUIhermes-gateway.<base_domain>→ dashboard,/gw→ gateway API servergraph.<base_domain>→ personal graph, tailnet only
The defaults target the jarvis: Incus remote; override them with the
AGENTBOX_* variables at the top of the Justfile.
just create # create the VM with cloud-init user-data
just wait # wait for cloud-init, its reboot, and the X11 session
TS_AUTHKEY=tskey-... just tailscale-up
just statuscloud-init installs the desktop and third-party apt repositories, creates
agent, installs Homebrew and chezmoi, and runs
chezmoi init --apply https://github.com/xtruder/agentbox.git before rebooting
into the autologin session. chezmoi's scripts install Hermes, the WebUI and
OpenChamber, generate local passwords, and enable the user services.
To apply later changes to this repository inside the VM:
just shell
chezmoi updateThe host's KVM/QEMU exposes CET user shadow stacks incorrectly to the
host-passthrough guest CPU. systemd uses them and eventually page-faults as
PID 1, panicking the kernel with Attempted to kill init! exitcode=0x0000000b.
cloud-init adds nousershstk to the kernel command line through
/etc/default/grub.d/90-agentbox.cfg.
Incus 7.5.1's agent reboots a cloud-init guest before telling the host that it
applied the image templates, so the host re-applies them on every boot and the
VM never finishes booting. just create clears volatile.apply_template right
after the first start to avoid this. The bug is fixed upstream by
lxc/incus@4e799f7287; the
workaround can be removed once the host runs a release containing it.
Nothing secret is stored in this repository. After provisioning, these files live only in the VM:
| File | Contents | Origin |
|---|---|---|
~/.hermes/.env, config.yaml, auth.json, mcp-tokens/ |
Hermes credentials and configuration | Migrated or hermes setup |
~/.config/hermes/webui.env |
HERMES_WEBUI_PASSWORD |
Generated on first apply |
~/.config/x11vnc/password |
RDP/VNC password (8 characters, a VNC limit) | Generated on first apply |
~/.config/traefik/traefik.env, acme.json |
CF_DNS_API_TOKEN, certificates |
Copy from traefik.env.example |
~/.config/openchamber/startup.env |
OPENCHAMBER_UI_PASSWORD, OPENCHAMBER_LAN_URL |
Created manually |
The WebUI, Traefik and OpenChamber units do not start until their files exist, so a fresh VM never serves these apps without authentication.
defaultruns everything locally in the VM and owns the messaging channels.codinguses the SSH terminal backend, so its terminal and file tools run on a development host. It has its own Discord bot and is also available from the WebUI profile picker or withhermes -p coding(aliascoding). Web search (Exa) and the browser (agentbox Chrome over CDP) run on agentbox.
The single hermes-gateway.service serves both profiles and their bots.
The SSH backend uses $HOME/.hermes of the remote user as its sync directory:
it pushes the profile's skills, credential files and caches there, and on
session cleanup downloads that whole directory as a tar. The remote user must
not have its own Hermes installation in ~/.hermes, or every session copies
it to agentbox.
The profile lives in Hermes state, not in this repository. To recreate it:
hermes profile create coding
hermes -p coding config set model.provider opencode-go
hermes -p coding config set model.default glm-5.3
hermes -p coding config set terminal.backend ssh
hermes -p coding config set terminal.cwd /home/offlinehq/Code
hermes -p coding config set web.backend exa
hermes -p coding config set browser.cdp_url ws://127.0.0.1:9222
# ~/.hermes/profiles/coding/.env: OPENCODE_GO_API_KEY, OPENROUTER_API_KEY,
# EXA_API_KEY, DISCORD_BOT_TOKEN, DISCORD_ALLOWED_USERS, DISCORD_HOME_CHANNEL and
# TERMINAL_SSH_HOST=jarvis-dev.tail3a123.ts.net
# TERMINAL_SSH_USER=offlinehq
# TERMINAL_SSH_KEY=/home/agent/.ssh/id_ed25519chezmoi generates ~/.ssh/id_ed25519 on first apply; append
~/.ssh/id_ed25519.pub to the target user's ~/.ssh/authorized_keys.
- Ubuntu: unattended-upgrades installs security and
-updatespackages plus Google Chrome, 1Password and Tailscale daily at 04:00 (/etc/apt/apt.conf.d/52agentbox-unattended-upgrades) and reboots at 04:30 when an update requires it. - Hermes Agent and WebUI:
agentbox-update-hermes.timerruns~/.local/bin/agentbox-update-hermeson Sundays at 05:00. It runshermes updateon the stable channel and checks out the latest WebUI release, restarts the services, and verifies them: gateway readiness with all platforms connected, the WebUI rejecting unauthenticated requests, the serve backend, and one real agent turn. If verification fails, OpenCode (opencode-go/glm-5.3) gets one time-boxed repair attempt; if that fails too, both are rolled back to the previous commits and configs. Every outcome is posted to the default profile's Discord home channel, and logs are kept in~/.local/state/agentbox-update/.
The updater runs from systemd rather than Hermes cron because hermes update
restarts the gateway that would be running the cron job.
Run it manually with systemctl --user start agentbox-update-hermes.service.
Connect an RDP client to the VM's Tailscale address on port 3389 and enter the
password from ~/.config/x11vnc/password. xrdp proxies to x11vnc on the
autologin display, so you see the same desktop that Hermes automates rather
than a second session.
hermes-browser runs the system Google Chrome visibly with:
- a dedicated
--user-data-dir, because Chrome 136+ ignores--remote-debugging-porton the default profile; - CDP bound to
127.0.0.1:9222, used by Hermes throughbrowser.cdp_url; --disable-blink-features=AutomationControlledand no--enable-automation, sonavigator.webdriverisfalse;- SwiftShader WebGL, because the VM has no GPU and pages without WebGL are easier to fingerprint.
~/.config/environment.d/50-agentbox.conf sets DISPLAY=:0 and
XAUTHORITY for all user services, so the gateway and WebUI can use computer
use even when they start before the desktop session.