Coding agents on Unraid
Claude Code, Codex, OpenClaw and 14 more agents in one Unraid container, from EnvHaven's open-source workspace image, with VS Code in the browser and a terminal session that keeps running. The Docker tab steps, appdata, updates, and what running it yourself leaves to you.
Updated November 23, 2026
An Unraid server usually runs all day, which is most of what a coding agent asks of a machine. EnvHaven’s workspace image gives the agents a home on it: one container with 17 of them installed, VS Code in the browser, and a terminal session that keeps running after you close the tab. The image is ghcr.io/envhaven/envhaven:latest, MIT-licensed and built on LinuxServer.io’s code-server image, with its source at github.com/envhaven/envhaven.
The agents are Claude Code, Codex, OpenCode, Antigravity CLI, Grok Build, Kimi Code CLI, Muse Code, OpenClaw, Hermes Agent, Pi, Goose, Qwen Code, Mistral Vibe, Factory Droid, Kiro, Amp and fx. Each signs in with your own account or API key. Nothing in the image reports back to EnvHaven.
The settings
| Type | Container path, port or key | Host path, port or value |
|---|---|---|
| Path | /config | /mnt/user/appdata/envhaven |
| Port | 8443 | 8443 |
| Port | 22 | 2222 |
| Variable | PASSWORD | A long password |
| Variable | SUDO_PASSWORD | A second password |
| Variable | PUBLIC_KEY_URL | https://github.com/<you>.keys |
| Variable | PUID | 99 |
| Variable | PGID | 100 |
Port 8443 serves VS Code over plain HTTP, and port 22 inside the container is SSH. PASSWORD signs you in to VS Code; without it, the editor listens only inside the container and the port shows nothing. SUDO_PASSWORD is for sudo in the terminal. SSH accepts keys only, so PUBLIC_KEY_URL imports yours from GitHub, or PUBLIC_KEY takes a single key.
PUID and PGID map the container’s user to one on the server, which decides who owns the files in appdata. The image defaults to 1000, and 99 and 100 are the values Unraid’s own documentation gives for file permissions.
The image also includes the Docker CLI. It does nothing until you map the host’s /var/run/docker.sock into the container, and that mapping gives the container control of every container on the server, your other apps included. Leave it out unless that is what you want.
Add it on the Docker tab
The image is several gigabytes, and Unraid keeps images in its Docker vdisk, apart from appdata, so make sure the vdisk has room first.
- On the Docker tab, click Add Container.
- Name it
envhaven, enterghcr.io/envhaven/envhaven:latestin the repository field, and leave Network Type at Bridge. - For each row of the table, click Add another Path, Port, Variable, Label or Device and fill it in. A variable’s name and key are the same.
- Click Apply, wait for the download to finish, then click Done.
- Turn on the container’s Auto-Start switch on the Docker tab so it starts with the array.
Where your work lives
Everything worth keeping sits in /config. It is the container’s home, and it holds projects, dotfiles, every agent’s sign-in and its settings. With the mapping above that is /mnt/user/appdata/envhaven, so a backup of that folder is a backup of the workspace. Everything outside /config resets when the image updates, packages you add with sudo apt-get included. The image declares /config a volume, and without a mapping Docker keeps it in an anonymous volume that is easy to lose when the container is replaced.
First run
Open http://<server-ip>:8443 and enter your PASSWORD. Then open a terminal. It attaches to a session that keeps running when you close the tab, so an agent you start there carries on while you are away. Start Claude Code and sign in with your own account:
claude
The other agents also start by name, codex, opencode or goose for example; OpenClaw and Hermes Agent set themselves up with openclaw onboard and hermes setup. With your key in PUBLIC_KEY_URL, ssh -p 2222 abc@<server-ip> lands in the same session. For your own editor, the Haven CLI syncs a local folder with the container: haven connect . abc@<server-ip>:2222.
Processes you start in the terminal stop whenever the container restarts or updates, so start them again afterwards, a long-running OpenClaw or Hermes gateway included.
Updating
New releases are published under the same latest tag. To move to one, switch the Docker tab to Advanced View and click Force update for the container. Unraid downloads the image again and recreates the container from the same template, and appdata stays as it was.
What running it yourself leaves to you
- HTTPS. Opened by IP address over plain HTTP, VS Code runs in what browsers call an insecure context, and code-server warns that web views, the clipboard and other features may not work there. For one computer, an SSH tunnel is enough: run
ssh -N -L 8443:localhost:8443 -p 2222 abc@<server-ip>and openhttp://localhost:8443, which browsers count as secure. A proper address takes a reverse proxy with a certificate, set up to pass the WebSockets the editor depends on. - Reaching it from outside your home network. Unraid’s Tailscale plugin (Settings → Tailscale) and its built-in WireGuard (Settings → VPN Manager) both let your own devices reach the server and its containers. The Use Tailscale switch in a container’s settings can also put that one container on your tailnet with an HTTPS address, though Unraid’s documentation says the integration does not work with every container. Forwarding 8443 on your router would leave a terminal on the internet behind a single password.
- A public address for apps. Whatever an agent builds is reachable only on ports you publish from the container. Giving it a public HTTPS address takes a domain, DNS, and a reverse proxy or tunnel of your own.
- Uptime. Agents work while the server and the array are up. A reboot or a power cut stops them mid-task, and you start them again.
- Updates. The image, Unraid and anything you add on top are yours to keep current.
If you would rather not run the server
The image is free to run on hardware you already own. A managed EnvHaven workspace takes the server off your hands: each one is an always-on Linux server of its own, in one of 11 regions, opened from any browser. Its agents are signed in once from the Launch menu, the app you build gets a public HTTPS preview URL, and custom domains attach to it. Plus and Pro include Docker, and plans start at $15 a month, billed annually.