Hermes Agent: install it, run it in Docker, keep it online
Hermes Agent is an open-source AI agent from Nous Research that writes reusable skills from its own work, answers you through a messaging gateway (Telegram, Discord, Slack and others) and runs shell commands through a terminal backend you pick. It is MIT licensed and installs with one command: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash. To keep it online, run its gateway on a machine that stays up, either directly or in the official Docker image with a mounted data directory.
If you want to try it away from your laptop first, Lizard (lizard.build) gives you an isolated Linux machine in one command with the Lizard CLI: lizard sandbox create -t base -s small --timeout 0. I installed Hermes Agent v0.23.3 in one in 2 minutes 4 seconds. A sandbox has a deadline: during the 7-day trial it is deleted after 1 hour at most (see the limits), and on a paid plan it stops after 596 hours at most, which is a little under 25 days. For a gateway that must never stop, use a VPS or a container host with a restart policy.
Lizard publishes this guide. I ran the install, Docker and sandbox commands below on 22 November 2026 in a Small sandbox on Lizard Sandboxes (2 vCPU, 4 GB RAM, Alpine Linux). I had no model key in that machine, so the install, the Docker image, the gateway start and the pause and resume are tested. Model replies, chat platforms, hermes setup and the SSH backend are not.
What is Hermes Agent?
Hermes Agent is a self-hosted AI agent built by Nous Research and released under the MIT license. Its README describes a "built-in learning loop": the agent creates skills after complex tasks, improves them during use, keeps a memory of you across sessions and can search its own past conversations. You talk to it in a terminal UI, in Hermes Desktop, or from a chat app through one gateway process. It works with any model provider you configure, including Nous Portal, OpenRouter, OpenAI or your own endpoint.
On 22 November 2026 the repository had 265,270 GitHub stars and the latest release was v0.23.3, published on 20 November 2026.
How do you install Hermes Agent?
On Linux, macOS and WSL2 you install Hermes Agent with the official script, then run hermes setup to choose a model. The installation docs list the same one-liner as the README:
curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash
source ~/.bashrc
hermes setupOn native Windows the PowerShell command is iex (irm https://hermes-agent.nousresearch.com/install.ps1). macOS (Apple Silicon only) and Windows also have desktop packages on the Hermes website.
The script clones the source into ~/.hermes/hermes-agent, installs its own pinned Python, Node.js, ripgrep and FFmpeg, and puts a hermes launcher in ~/.local/bin. Your config, keys, sessions, skills and memories live in ~/.hermes. Back up that directory and you have backed up the agent.
For a server or a script, the docs give two flags I used: --non-interactive skips the stages that need input, and --skip-browser leaves out the bundled Chromium.
curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash -s -- --non-interactive --skip-browserIn my sandbox this took 2 minutes 4 seconds and left 1.9 GB in ~/.hermes. It synced 44 bundled skills. hermes --version then printed:
Hermes Agent v0.23.3 (2026.9.24) · stable · local caafe5389ae5
Install method: git
Python: 3.14.9After the install, these are the commands you need:
hermesstarts a chat in the terminal.hermes modelpicks the provider and model.hermes gateway setupconnects Telegram, Discord and the other platforms.hermes gateway runruns the gateway in the foreground, andhermes gateway installregisters it as a systemd or launchd service.hermes doctorchecks the install. Mine reported one issue: no API keys yet.
How do you run Hermes Agent in Docker?
You run Hermes Agent in Docker with the official nousresearch/hermes-agent image and one host directory mounted at /opt/data. The Hermes Docker docs say the image is stateless: config, API keys, sessions, skills and memories all sit in that directory, so you can pull a new image without losing anything.
Run the setup wizard once, interactively:
mkdir -p ~/.hermes
docker run -it --rm \
-v ~/.hermes:/opt/data \
nousresearch/hermes-agent setupThen start the gateway in the background:
docker run -d \
--name hermes \
--restart unless-stopped \
-v ~/.hermes:/opt/data \
-p 8642:8642 \
nousresearch/hermes-agent gateway runPort 8642 is the gateway's OpenAI-compatible API server and health endpoint. The docs call it optional if you only use chat platforms, and the API server stays off until you set API_SERVER_ENABLED=true. In my test, without that variable, nothing answered on the port. If Telegram or Discord is all you need, drop the -p line and open no port at all.
What I measured with the second command on 22 November 2026:
docker imagesshowed the image at 4.59 GB, so give the host at least 10 GB of disk.- The pull, a version check and the first gateway start took about 80 seconds together.
- The gateway idled at 273 MiB of memory (
docker stats), with no platform connected. docker exec hermes hermes --versionprintedHermes Agent v0.23.3, install methoddocker.docker exec hermes hermes gateway statusprinted "Gateway is running".
The docs recommend 1 GB of memory as the minimum and 2 to 4 GB if you use browser tools. Inside the image the gateway runs under s6 supervision, so a crashed gateway process is restarted without the container exiting. --restart unless-stopped covers the other case, a host reboot.
The same docs carry two warnings. Paste the commands over SSH, because some browser consoles at VPS providers turn : into ; and break -v ~/.hermes:/opt/data. And on Docker Desktop for macOS or Windows, a bind mount crosses a VM boundary that can corrupt the session database in WAL mode, so the docs suggest a named volume (-v hermes-data:/opt/data) there.
Where should Hermes Agent run 24/7?
Hermes Agent should run 24/7 on a machine that reboots by itself and keeps ~/.hermes on a real disk. For most people that is a small VPS with the Docker image. Telegram uses long polling by default, which the Telegram docs for Hermes describe as outbound requests from the gateway, so the host needs no public address. It only needs to stay awake.
| Where | Monthly cost | Isolation from your files | Always on | What a restart loses |
|---|---|---|---|---|
| Your laptop | $0 | None with the local backend | No, it stops when the lid closes | Nothing on disk; the gateway stays down until you start it |
| VPS, script install | About $5, the figure in the Hermes README | A separate machine | Yes, with hermes gateway install | Nothing; the service starts again |
| VPS, Docker image | The same VPS | A separate machine plus a container | Yes, with --restart unless-stopped | Nothing in /opt/data; the container starts again |
| Hermes Cloud | Set in Nous Portal; I did not check it | Hosted by Nous Research | Managed for you | Not tested |
| Lizard Sandboxes, Small | $0.0162 an hour, $9.66 for the 596-hour maximum | A Firecracker microVM with its own kernel | Up to 596 hours on a paid plan, 1 hour on the trial | A pause keeps files and ends processes; a delete removes everything |
The Lizard price is from lizard.build/pricing, read on 22 November 2026: a Small sandbox has 2 vCPU, 4 GB RAM and a 20 GB disk for $0.0162 an hour, billed per second, idle time included. Lizard Pro costs $19 a month and includes $19 of usage, so even a full 730-hour month of a Small sandbox ($11.83) would fit inside it. A paused sandbox has no compute charge and pays $0.14 per GB-month for its used disk. If you create a sandbox with no -s small, you get a Medium at $0.0324 an hour on a paid plan.
I tested the restart column for the sandbox row. After lizard sandbox pause and lizard sandbox resume, ~/.hermes and the Docker data directory were intact and hermes --version still worked. The gateway process was gone, as a pause ends running processes. The Hermes container came back by itself once the Docker daemon started, which on a Lizard sandbox happens on the first docker command after the resume. So after a resume you start the gateway again, or run one docker command.
That makes a sandbox a good place to evaluate Hermes or to give it a clean machine for a few weeks, and a poor place for a bot that must answer in month three. A VPS is the simpler permanent home. A container platform also works if it keeps a persistent disk at /opt/data; Lizard runs apps as containers too, but I did not deploy Hermes that way, so there is no command for it here. Our Telegram bot guide covers that route for long-polling bots in general.
The sandbox test comes down to four commands, with the ID that the first one prints. lizard sandbox exec stops waiting after 150 seconds, and the install can take longer than that, so the second command starts it in the background and the third reads its log:
lizard sandbox create -t base -s small --timeout 0
lizard sandbox exec <id> -- sh -c 'curl -fsSL https://hermes-agent.nousresearch.com/install.sh -o /tmp/install.sh && nohup bash /tmp/install.sh --non-interactive --skip-browser > /tmp/install.log 2>&1 &'
lizard sandbox exec <id> -- tail -n 5 /tmp/install.log
lizard sandbox rm <id>When the log ends with "Hermes Agent install complete", the hermes launcher is in ~/.local/bin.
Which terminal backend should Hermes use?
Use the Docker backend when Hermes runs on a machine whose files you care about, and the local backend when the machine is already disposable. The terminal backend is separate from the gateway. The gateway is the Hermes process itself: it holds your keys, memory and chat connections. The terminal backend decides where the agent's shell commands execute. The two can be on different machines.
The configuration docs list six built-in backends, set with hermes config set terminal.backend <name>:
| Backend | Where commands run | Isolation, as the docs put it |
|---|---|---|
local | The machine Hermes runs on | None |
docker | One persistent container | Full (namespaces, cap-drop) |
ssh | A remote server | Network boundary |
modal | A Modal cloud sandbox | Full (cloud VM) |
daytona | A Daytona workspace | Full (cloud container) |
vercel_sandbox | A Vercel Sandbox | Full (cloud microVM) |
Plugins add Singularity/Apptainer and Sprites on Fly.io. Lizard is not among the built-in backends.
local is the default, and it means a prompt sent from Telegram runs commands as your user, next to your SSH keys. On a laptop or a shared server, switch to docker: the docs say it drops all capabilities and reuses one persistent container, so installed packages, files in /workspace and background processes carry over between calls. The ssh backend needs TERMINAL_SSH_HOST and TERMINAL_SSH_USER, and suits a setup where the gateway sits on a cheap VPS and the work happens on a bigger box.
For the cloud backends, the docs are careful about what persistence means. With container_persistent: true, Hermes tries to keep the filesystem of a Modal, Daytona, Vercel Sandbox or Sprites sandbox when it is recreated. The docs do not promise that the same live sandbox or its background processes will still be running.
If Hermes already lives inside a throwaway machine, such as a sandbox or a VPS that holds nothing else, local is reasonable, because the machine is the boundary. That is how I ran it. I did not test pointing the ssh backend at a Lizard sandbox. For more on containers against microVMs as a boundary, see Docker Sandboxes.
Hermes Agent vs OpenClaw: what is the difference?
Hermes Agent and OpenClaw are both MIT-licensed, self-hosted agents that you reach from chat apps through a gateway. Hermes is written in Python and built around a loop that writes its own skills. OpenClaw is written in TypeScript, has more GitHub stars and ships native apps. The facts below come from each project's README and GitHub page, read on 22 November 2026.
| Hermes Agent | OpenClaw | |
|---|---|---|
| Maintainer | Nous Research | OpenClaw Foundation, a 501(c)(3) |
| Main language | Python | TypeScript |
| License | MIT | MIT |
| GitHub stars | 265,270 | 395,011 |
| Latest release | v0.23.3, 20 Nov 2026 | v2026.11.6, 19 Nov 2026 |
| Install | curl script, desktop package or Docker | Installer script or the openclaw npm package |
| Where tools run | A terminal backend you choose, six built in | On the host for the main session unless you configure sandboxing |
| Learning | Creates and improves skills from its own tasks | Skills and plugins you add, with a hub at ClawHub |
| Hosted option | Hermes Cloud in Nous Portal | None: the README says "no paid tier, hosted service, or token" |
Moving from one to the other is a documented path. Hermes has hermes import-agent openclaw, which the README says brings over the persona file, memories, skills, messaging settings and, with --migrate-secrets, an allowlist of API keys. Add --dry-run to preview it.
If you are setting up OpenClaw instead, our OpenClaw Docker guide has the tested steps, and you can deploy OpenClaw in one click on Lizard.
FAQ
Is Hermes Agent free to use? Yes. Hermes Agent is open source under the MIT license, and the install script, the Docker image and the desktop packages cost nothing. You pay for the model you connect, such as an OpenRouter or OpenAI key or a Nous Portal subscription, and for the machine it runs on.
What does it cost to run Hermes Agent? The software costs $0. Hosting is about $5 a month on a small VPS, the figure the Hermes README uses, or $0.0162 an hour for a Small sandbox on Lizard (lizard.build/pricing, 22 November 2026). Model usage is separate and depends on the provider and on how much the agent works.
Is Hermes a local agent? Hermes Agent runs on a machine you control: a laptop, a server or a container. The model can be local as well, since the docs include guides for Ollama and other local models, or it can be a hosted provider. Nous Research also offers hosted instances called Hermes Cloud.
Does Hermes Agent need Docker? No. The install script sets up Hermes without Docker, and the default terminal backend runs commands directly on the machine. Docker is optional in two places: as a way to run Hermes itself, and as a terminal backend that keeps the agent's commands in a container.
How much memory does Hermes Agent need? The Hermes Docker docs give 1 GB of memory and 1 CPU core as the minimum, and 2 to 4 GB if you use browser tools. In my test the idle gateway in Docker used 273 MiB, and the image took 4.59 GB of disk.
How do I update Hermes Agent? Run hermes update on a script install. With Docker, pull the new nousresearch/hermes-agent image and recreate the container; the data in /opt/data stays.
Build with AI. Ship with Lizard
You don't need a platform team to go live. Your whole cloud, one CLI command away.
- Services
- —
- Add-ons
- —
- Deployments
- —
- Sandbox starts
- —