Hermes Agent Hosting: Where to Run Hermes Agent 24/7
Eli Mernit13 min read
Hermes Agent hosting means keeping one process online: the gateway, which connects your agent to Telegram, Discord, Slack and other platforms and runs its scheduled jobs. Any Linux machine that stays on, keeps its disk and runs the gateway as a regular user will do. That can be a fixed-price VPS, or a pay-per-second VM that you can pause and snapshot.
This guide compares the options, shows the setup with Docker and with the native installer, and prices each one with the inputs behind the number.
# On your laptop: a 2 vCPU / 4 GiB VM on the Shared CPU tier, with Docker turned on
beam vm new hermes --cpu-tier shared --cpu 2 --memory 4096 --no-desktop --docker-enabled
beam vm ssh hermes
# Inside the VM: run the setup wizard once. It writes keys and config to ~/.hermes
mkdir -p ~/.hermes
docker run -it --rm -v ~/.hermes:/opt/data nousresearch/hermes-agent setup
# Start the gateway and keep it running
docker run -d --name hermes --restart unless-stopped \
-v ~/.hermes:/opt/data nousresearch/hermes-agent gateway run
docker logs -f hermesThe --cpu-tier flag needs beam-client 0.2.236 or later. The three docker lines come from Hermes Agent's own Docker guide and work the same on any server with Docker installed.
What Hermes Agent needs from a host
Hermes Agent is an open-source agent from Nous Research, released under the MIT license. It keeps memory across sessions, writes its own skills and talks to you through chat platforms. The part you host is the gateway, which the messaging docs describe as a single background process that connects to all your configured platforms, handles sessions and runs cron jobs. Six things decide whether a host fits:
- A process that stays up. The gateway has to be running to receive a message or fire a scheduled job. Its scheduler checks for due jobs every 60 seconds. On Linux it installs as a systemd service, and the official Docker image supervises it and restarts it after a crash.
- A regular user account. The security docs say never to run the gateway as root, and
hermes gateway runrefuses to start as root by default. Many VPS tutorials skip this and work in a root shell. - Modest CPU and memory. The Docker guide gives 1 core and 1 GB of RAM as the minimum and 2 cores with 2 to 4 GB as the recommendation. Browser automation is the feature that uses the most memory, and the guide asks for at least 2 GB when browser tools are on.
- A disk that persists. Everything Hermes knows lives in
~/.hermes: the.envfile with API keys,config.yaml, sessions, memories, skills and cron jobs. Lose it and the agent starts over. - Outbound network access. Hermes calls a model provider over the network and, on Telegram, fetches messages by long polling. Neither needs an inbound port.
- A Linux distribution with systemd. The installer script runs on Linux, macOS and WSL2. It brings its own pinned Python, Node.js, ripgrep and FFmpeg, and expects Git, curl and tar to be there already.
A GPU isn't on the list. Hermes sends prompts to Nous Portal, OpenRouter, OpenAI or an endpoint you name, so the gateway's server needs only CPU and memory.
Hermes Agent hosting options compared
The table covers the four places people run Hermes Agent, what each keeps between restarts, and what you pay when the machine is off.
| Option | What you manage | State between restarts | Billing when it's off |
|---|---|---|---|
| Fixed-price VPS (Hetzner, DigitalOcean, Hostinger) | OS updates, firewall, SSH hardening, backups | The server's disk | The plan price continues while the server exists |
| Managed Hermes hosting | Model keys and channels; the host runs the server | Depends on the provider | A monthly plan |
| Beam VM | The software inside the VM | Root disk after a stop; disk, RAM and processes after a pause | No compute charge while stopped or paused; storage isn't billed yet |
| A machine at home (mini PC, spare laptop) | Hardware, power, home network | Local disk | Nothing to bill, but it's offline when the machine is |
Hermes Agent's README says it runs on a $5 VPS, and the requirements above bear that out. Several hosts now sell a one-click Hermes template on top of a regular VPS, and a few sell managed plans where you never see the server. The differences that matter are price, how much of the machine you look after, and what happens to the bill and the agent's state when you turn it off.
How to host Hermes Agent on a cloud VM
Hosting Hermes Agent natively takes four steps: create the machine, add a regular user, run the installer as that user, and install the gateway as a service. The commands below use a Beam VM, which is a CPU microVM with its own kernel, systemd, SSH and a root disk that persists. The install and service steps are the same on any Ubuntu or Debian server.
1. Create the VM. The default Beam VM has 4 vCPUs, 8 GiB of RAM and a 50 GiB disk on Ubuntu 24.04. This one is smaller and opts into the Shared CPU tier:
beam vm new hermes --cpu-tier shared --cpu 2 --memory 4096 --no-desktop
beam vm ssh hermesA VM has no idle timeout unless you set one, so it keeps running after you close the terminal. That is what an always-on agent needs, and it also means the VM bills until you stop, pause or remove it. The --no-desktop flag skips the browser desktop that the CLI adds to a fresh image by default.
2. Add a regular user. beam vm ssh opens a root shell, as most VPS providers do. Install the one system library the installer may ask an administrator for, then create the account Hermes will run under:
apt-get update && apt-get install -y libatomic1
useradd -m -s /bin/bash hermes
su - hermes3. Install Hermes Agent as that user. Hermes' install docs say to run the installer as the intended service user, so that the code, config and launcher all belong to it:
curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash
source ~/.bashrc
hermes doctor
exitAn interactive install also walks you through model and gateway setup. If you skipped that, run hermes setup and hermes gateway setup before you leave the hermes user's shell. The installer adds a pinned Chromium for browser tools by default, and on Linux Chromium needs system libraries that the installer doesn't add. Pass --skip-browser to the installer to leave browser tools out of a headless gateway, and run hermes pm install chromium later if you want them back.
4. Install the gateway as a service. Back in the root shell, install a system service that runs as the hermes user, then start it:
/home/hermes/.local/bin/hermes gateway install --system --run-as-user hermes
/home/hermes/.local/bin/hermes gateway start --system
/home/hermes/.local/bin/hermes gateway status --system
journalctl -u hermes-gateway -fHermes offers two kinds of Linux service. A user service is installed with hermes gateway install and needs loginctl enable-linger for that user so it keeps running after logout. A system service starts at boot without lingering, which is why the docs point VPS and headless hosts to it. The trade is that a system service needs root for every restart, including the one after hermes update. Don't install both.
On a Beam VM, starting a stopped VM is a new boot, and enabled systemd services start with it. Everything the installer wrote sits on the root disk, so the agent's memory and skills are there when it comes back.
How to run Hermes Agent in Docker on a server
Docker is the shorter route on a server where your shell is root. The official image, nousresearch/hermes-agent, runs the gateway as an unprivileged user inside the container and keeps all state in one host directory mounted at /opt/data. The image holds no state of its own, so you can replace it without losing configuration.
The quickstart at the top of this page is the whole setup. Two details from Hermes' Docker guide are worth knowing before you copy it:
- Port 8642 is optional. The docs' own example publishes it with
-p 8642:8642because it serves an OpenAI-compatible API and a health endpoint. Chat platforms don't need it, so the quickstart leaves it out and the container has no published ports. - Browser tools need shared memory. If you use browser automation in the container, the guide says to add
--shm-size=1gand to allow at least 2 GB of memory.
To upgrade, pull the new image and recreate the container. The data directory carries over, and Hermes backs up config.yaml and .env before it migrates them:
docker pull nousresearch/hermes-agent:latest
docker rm -f hermes
docker run -d --name hermes --restart unless-stopped \
-v ~/.hermes:/opt/data nousresearch/hermes-agent gateway runNever point two gateway containers at the same data directory. On a Beam VM, pass --docker-enabled when you create the machine. Prepared VM images already include Docker, Compose and Buildx, and Docker's images and volumes are stored on the root disk. Our post on Docker sandbox alternatives covers when a container alone is enough isolation for an agent.
Where Hermes Agent's commands run on a server
The gateway's host and the place the agent runs shell commands are two separate choices. Hermes calls the second one the terminal backend, and it ships six: local, Docker, SSH, Modal, Daytona and Vercel Sandbox.
- Local runs commands on the gateway's own machine, as the gateway's user. Hermes checks each command against a list of dangerous patterns before running it, and an approval request that nobody answers within 300 seconds is denied.
- Docker runs commands in a hardened container on the same machine. The container is the boundary, so the dangerous-command check is skipped.
- Modal, Daytona and Vercel Sandbox run commands in a cloud sandbox billed by that provider.
Hermes' security docs recommend a container or cloud sandbox backend for production gateways, and say that for maximum security the gateway should run on a separate machine or VM. A server that holds nothing except Hermes follows the second piece of advice by default: with the local backend, the most a prompt injection can reach is that one machine and the keys in its .env file.
One line in the README is easy to misread. It says Daytona and Modal let the agent's environment hibernate when idle and wake on demand. That describes the terminal backend. The gateway that listens for your messages still has to be running somewhere.
How to keep a hosted Hermes Agent private
A hosted Hermes Agent needs no open ports for chat, so the safe setup is a server that accepts SSH and nothing else. The risks are who may message the bot and who can read its state directory.
- Set an allowlist. The gateway denies every user who isn't on an allowlist or paired by direct message. Put your own ID in
TELEGRAM_ALLOWED_USERS,DISCORD_ALLOWED_USERSorGATEWAY_ALLOWED_USERS. The docs warn againstGATEWAY_ALLOW_ALL_USERS=truefor a bot with terminal access. - Keep polling, skip webhooks. Telegram works by long polling out of the box. Webhook mode is optional and needs a public HTTPS address, so leave it off unless you have a reason.
- Leave the dashboard on loopback.
hermes dashboardserves a web UI on127.0.0.1:9119that reads and writes your.envfile. Hermes refuses to bind it to any other address until a login provider is configured. Reach it through a tunnel. - Lock the state directory. Run
chmod 600 ~/.hermes/.env, and treat backups made withhermes backupas credentials.
On a VPS you build this from a provider firewall and an SSH tunnel such as ssh -N -L 9119:127.0.0.1:9119 user@server. On a Beam VM a port has no public URL until you publish it, and beam vm port-forward hermes 9119:9119 forwards the dashboard to your laptop through an authenticated tunnel. Our guide to running Claude Code unattended goes deeper on the threat model for an agent that can run commands.
What Hermes Agent hosting costs per month
An always-on Hermes Agent server costs between about $5 and $32 a month at list prices for 1 to 2 vCPUs and 2 to 6 GB of RAM. Model usage is billed separately by your model provider.
| Host | Size priced | Hours billed | Monthly price |
|---|---|---|---|
| Hostinger Hermes Agent VPS, APP 1 | 1 vCPU, 4 GB RAM, 40 GB disk | Flat, 24 months prepaid | $4.99, renewing at $9.99 |
| Hostinger Hermes Agent VPS, APP 2 | 2 vCPU, 6 GB RAM, 80 GB disk | Flat, 24 months prepaid | $6.99, renewing at $12.99 |
| Hetzner CPX12, Helsinki | 1 vCPU, 2 GB RAM, 40 GB disk | Flat | €9.99 before VAT |
| Hetzner CPX22, Helsinki | 2 vCPU, 4 GB RAM, 80 GB disk | Flat | €16.99 before VAT |
| DigitalOcean Basic Droplet | 1 vCPU, 2 GiB RAM, 50 GiB disk | Flat | $12.00 |
| DigitalOcean Basic Droplet | 2 vCPU, 4 GiB RAM, 80 GiB disk | Flat | $24.00 |
| Beam VM, Shared tier | 1 vCPU, 2 GiB RAM | 720 | $15.84 |
| Beam VM, Shared tier | 2 vCPU, 4 GiB RAM | 720 | $31.68 |
| Beam VM, Shared tier, paused outside working hours | 2 vCPU, 4 GiB RAM | 240 | $10.56 |
The inputs: Beam's Shared tier is $0.011 per vCPU-hour plus $0.0055 per GiB-hour, for VMs up to 8 vCPUs and 16 GiB. So 1 vCPU with 2 GiB is $0.022 an hour and 2 vCPUs with 4 GiB is $0.044 an hour, billed per second while the VM runs. New accounts default to the Performance tier at $0.05 per vCPU-hour plus $0.01 per GiB-hour, which makes the same 2 vCPU, 4 GiB VM $0.14 an hour, or $100.80 for 720 hours. Pass --cpu-tier shared as the examples do. Beam storage isn't billed yet; the planned rate is $0.0001 per GB-hour, about $3.60 a month for a 50 GiB disk kept for 720 hours. There are no egress fees.
Hostinger's Hermes Agent plans are paid up front for the full 24 months. Hetzner's prices are for its Helsinki location, and the CPX22 is €19.99 in Nuremberg. DigitalOcean's are regular-CPU Basic Droplets.
The 240-hour row is the other case: an agent you use during working hours, about 8 hours a day for 30 days, and pause the rest of the time. A paused VM keeps its RAM and running processes and has no compute charge. The gateway is offline while paused, so messages go unanswered and scheduled jobs don't fire until you resume, and its connections to chat platforms have to reconnect afterwards. Automatic resume doesn't change that. It wakes a VM on an SDK call, a tunnel or a request to a published URL, not on an incoming chat message. The same goes for an idle timeout: the timer counts connections such as SSH sessions and tunnels, not processes inside the VM, so a VM with a timeout set would go to sleep with the gateway still running.
Choosing between a VPS and a pay-per-second VM for Hermes Agent
Choose a fixed-price VPS when the agent has to answer at any hour and run cron jobs overnight, and you're comfortable looking after a Linux server. The monthly figures above are for exactly that case, the setup is well documented, and several hosts sell a one-click Hermes template.
A Beam VM fits better in four cases:
- The agent doesn't need to run all month. Per-second billing with stop and pause turns unused hours into zero compute cost, as the 240-hour row shows.
- You want to pause mid-task. A pause checkpoints RAM and processes along with the disk, so a long job is still in memory when you resume. A VPS that is shut down boots fresh.
- You'd rather not own the network setup. No port is public unless you expose it, and the dashboard tunnel is one command.
- You want a restore point before changing things.
beam vm snapshot create hermes --name before-updatecaptures the root disk while the VM keeps running. Hermes rewrites its own skills and memory as it works, so a snapshot before an update or a risky task gives you a known state to restore into a new VM.
Two limits apply. Beam VMs have no GPUs, so a self-hosted open-source model has to run on GPU compute elsewhere, with Hermes pointed at its endpoint. And Beam's Spot tier, at $0.0063 per vCPU-hour plus $0.00135 per GiB-hour, can be interrupted with 30 seconds' notice and has to be restarted by hand, which rules it out for an agent that should stay online.
If you're weighing Hermes against OpenClaw, our OpenClaw hosting guide walks through the same setup for that assistant. For an agent you built yourself, see the guide to AI agent hosting.
FAQ
What is Hermes Agent hosting?
Hermes Agent hosting is a server that keeps the Hermes gateway running, so your agent stays connected to its chat platforms and runs scheduled jobs when your own computer is off. In practice it's a Linux VPS or VM with a persistent disk, a regular user account for the gateway and outbound internet access.
What are the server requirements for Hermes Agent?
Hermes Agent's Docker guide lists 1 CPU core, 1 GB of RAM and 500 MB of disk as the minimum, and 2 cores, 2 to 4 GB of RAM and 2 GB or more of disk as the recommendation. Allow at least 2 GB of RAM if browser tools are on. The installer script runs on Linux, macOS and WSL2.
Can I run Hermes Agent on a VPS?
Yes. Any Ubuntu or Debian VPS works: create a regular user, run the installer as that user and install the gateway as a systemd service, or run the official Docker image. The project's README says a $5 VPS is enough for the gateway.
How much does it cost to host Hermes Agent?
At list prices a 2 vCPU, 4 GB server costs €16.99 a month before VAT on Hetzner's CPX22 in Helsinki, $24 on a DigitalOcean Basic Droplet and $31.68 on a Beam VM on the Shared tier for 720 hours. Hostinger's 1 vCPU, 4 GB Hermes plan is $4.99 a month on a 24-month prepaid term. Model API usage is extra.
Does Hermes Agent need a GPU?
No. Hermes calls a model provider over the network, so the host needs only CPU and memory. A GPU matters only if you also want to serve an open-source model yourself, and that model can run on separate GPU compute with Hermes pointed at its endpoint.
Can I run the Hermes Agent gateway as root?
You shouldn't. Hermes' security docs say never to run the gateway as root, and hermes gateway run refuses to start as root unless you set HERMES_ALLOW_ROOT_GATEWAY=1. On a server that gives you a root shell, create a regular user for Hermes or use the Docker image, which runs the gateway as an unprivileged user.
Does Hermes Agent need open ports?
Not for chat. Telegram uses long polling by default, which is an outbound connection, so the server needs no inbound port beyond SSH. The optional API server on port 8642 and the dashboard on port 9119 should stay private and be reached through a tunnel.
Can I pause a Hermes Agent server when I'm not using it?
On a host that supports it, yes. A paused Beam VM keeps its disk, RAM and processes and stops billing compute. The agent can't receive messages or run cron jobs while it's paused, so this suits working-hours use more than an agent that should reply overnight.
Give Hermes Agent its own machine
A Beam VM gives Hermes Agent a root disk that persists, systemd, Docker, a pause that keeps memory and a private tunnel to the dashboard, billed per second while it runs. Create a Beam account and run the commands at the top of this page, or read more about Beam virtual machines. Current rates are on the pricing page.
