Coding agents on TrueNAS
Hermes Agent, Claude Code, Codex and 14 more agents on TrueNAS Community Edition, installed as a custom app from EnvHaven's open-source workspace image, with VS Code in the browser and a terminal session that keeps running. The dataset, the app settings, updates and what is left to you.
Updated November 23, 2026
TrueNAS is built to stay on, which suits Hermes Agent and the other assistants that answer from chat apps at any hour, and coding agents that work through the night. EnvHaven’s workspace image runs on it as a custom app: one container with 17 agents, 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; its source is at github.com/envhaven/envhaven.
Besides Hermes Agent, it carries Claude Code, Codex, OpenCode, Antigravity CLI, Grok Build, Kimi Code CLI, Muse Code, OpenClaw, 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 to EnvHaven. The steps below follow TrueNAS Community Edition 25.10, the release TrueNAS currently recommends for general use.
Prepare a dataset
The app wizard cannot be paused to create storage, so make the dataset first.
- If you have never opened Apps, open it and choose a pool for apps when TrueNAS asks. Later, the same choice lives under Configuration > Choose Pool.
- In Datasets, select the parent dataset and click Add Dataset.
- Name it
envhaven, set Dataset Preset to Apps, and save. The Apps preset gives group 568, TrueNAS’s apps group, modify access to it.
Install the custom app
Go to Apps, click Discover Apps, then Custom App, and fill in the sections of the Install iX App wizard that opens:
- Application Name:
envhaven. - Image Configuration: Repository
ghcr.io/envhaven/envhaven, Taglatest. - Container Configuration: choose your Timezone and set Restart Policy to Unless Stopped. Under Environment Variables, add a Name and Value for each of
PASSWORD,SUDO_PASSWORDandPUBLIC_KEY_URL(https://github.com/<you>.keys), plusPUIDandPGID, both568. - Security Context Configuration: leave Privileged and Custom User unselected.
- Network Configuration: under Ports, map Container Port 8443 to Host Port 8443 and Container Port 22 to Host Port 2222, both TCP. TrueNAS’s own SSH service uses port 22.
- Portal Configuration, optional: a portal with Protocol HTTP, Use Node IP selected and port 8443 puts a Web UI button on the app’s Application Info widget.
- Storage Configuration: add an entry, set Type to Host Path (Path that already exists on the system), enter
/configas the Mount Path and choose theenvhavendataset as the Host Path. - Resources Configuration: if you cap CPU and memory here, leave the app several gigabytes of memory, which builds and browsers need.
Click Install. The app appears on the Installed applications screen and starts once the image has downloaded, which takes a while: it is several gigabytes.
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. 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; with 568, files in the dataset belong to TrueNAS’s apps user and to the group the Apps preset already gave modify access. Custom User would run the whole container as a fixed user, and LinuxServer.io says its images do not support that yet.
If you would sooner write Compose, the menu on the Discover screen has Install via YAML, which takes the same settings as a Compose file in Custom Config.
The image includes the Docker CLI as well. It does nothing until you mount the host’s /var/run/docker.sock into the container, and that mount gives the container control of every container on the server, your other apps included. Leave it out unless that is what you want.
Where your work lives
/config is the container’s home and the one place that persists: projects, dotfiles, every agent’s sign-in and its settings. It is your envhaven dataset, so snapshots and replication of that dataset cover the workspace too. Everything outside /config resets when the image updates.
First run
Open http://<truenas-ip>:8443, or the Web UI button if you added the portal, and enter your PASSWORD. Then open a terminal. It attaches to a session that keeps running when you close the tab. Set up Hermes Agent there:
hermes setup
Setup adds a model provider, either signing in over OAuth or storing an API key, and hermes starts the agent afterwards. Claude Code (claude), Codex (codex) and the others start by name and sign in the first time. ssh -p 2222 abc@<truenas-ip> reaches the same session, and haven connect . abc@<truenas-ip>:2222 syncs a local folder with the container through the Haven CLI.
Restarts and updates stop anything started in the terminal. Start it again afterwards, a Hermes gateway included.
Updating
TrueNAS checks for newer images while Check for docker image updates is on, as it is by default, and marks the app when one is out. To apply it, select the app, open the menu on its Application Info widget and choose Update. The dataset behind /config is left alone.
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:
ssh -N -L 8443:localhost:8443 -p 2222 abc@<truenas-ip>, thenhttp://localhost:8443. For a proper address, put a reverse proxy with a certificate in front of port 8443, such as Nginx Proxy Manager from the TrueNAS catalog, and let it pass the WebSockets the editor depends on. - Reaching it from outside your home network. The catalog’s Tailscale and WG Easy apps give your own devices a way in. Forwarding 8443 on your router would expose a terminal to the internet behind one password.
- A public address for apps. An app an agent builds is reachable through the ports you map in Network Configuration. Serving it on the internet with HTTPS takes a domain, DNS, an open port on your router and the reverse proxy.
- Uptime. Agents work while the server is on. A reboot or a power cut stops them; the restart policy brings the app back, and you start the agents again.
- Updates. TrueNAS, the image and the apps around it are yours to keep current.
If you would rather not run the server
TrueNAS runs the image for free. If you would rather hand the server to someone else, a managed EnvHaven workspace gives you an always-on Linux server of its own, in one of 11 regions, opened from any browser. Agents are signed in once from the Launch menu. The app you build gets a public HTTPS preview URL and can take custom domains. Plus and Pro include Docker, and plans start at $15 a month, billed annually.