Hermes Agent VPS install: self-host Nous Research's agent 24/7

· 0x.cloud Team

Hermes Agent VPS install: self-host Nous Research's agent 24/7

A Hermes Agent VPS install takes 10–15 minutes: run Nous Research's official script as a dedicated user, pick a model with hermes setup, connect Telegram with hermes gateway setup, then register the gateway as a systemd service with hermes gateway install so it runs 24/7. No GPU is needed: the model runs at your provider, and the server holds the agent's memory, skills and scheduled jobs. Commands match the official docs for Hermes Agent v0.23.3 (the stable release on Nov 20, 2026) on Ubuntu 24.04.

Prompt for an AI agent with the 0x.cloud MCP connected:

Prompt for an AI agent

Create an s1-2 server with Ubuntu 24.04 on 0x.cloud. Show me the dry_run price first and wait for my "yes". Then, with run_command, create a user called hermes without sudo, install git and curl, install Hermes Agent as the hermes user with the official script https://hermes-agent.nousresearch.com/install.sh and run loginctl enable-linger for hermes. I'll choose the model and enter the Telegram token myself: send me the hermes setup and hermes gateway setup commands.

What Hermes Agent is

Hermes Agent is an open-source (MIT) AI agent from Nous Research. It remembers past conversations, writes reusable skills as it works, runs cron-style jobs and reaches you through Telegram, Discord, Slack, WhatsApp, Signal or email. It works with any provider: Nous Portal, OpenRouter, OpenAI or your own OpenAI-compatible endpoint. If you're choosing between agents, read OpenClaw vs Hermes.

Requirements and plan

Nous Research's Docker deployment docs list:

Resource Minimum Recommended
RAM 1 GB 2–4 GB (at least 2 GB with browser tools)
CPU 1 core 2 cores
Data disk 500 MB 2 GB+, grows with sessions and skills

In practice:

  • s1-2 (1 vCPU, 2 GB RAM, 30 GB NVMe, $7.99/mo) runs a Telegram agent without the browser;
  • s2-4 (2 vCPU, 4 GB RAM, $15.99/mo) handles Chromium browser tools, several platforms and scheduled jobs.

Why s1-2 rather than s1-1: the docs allow 1 GB without a browser, but the installer adds Chromium by default, and browser tools need at least 2 GB. On 1 GB the first browser search can take the process down. Ready-made configurations are on Hermes Agent VPS hosting.

You can start on hourly billing: s1-2 is $0.054725 an hour ($7.99 / 730 × 5) and never more than $7.99 in a calendar month. Setup is $0. Delete it and the remainder returns to your balance.

Deploy to 0x.cloud

Prepare the server

Hermes runs shell commands, so give it its own user without sudo. As root (or a sudo user), install prerequisites and create that user:

sudo apt update && sudo apt upgrade -y
sudo apt install -y git curl tar
sudo adduser --disabled-password --gecos "" hermes
sudo loginctl enable-linger hermes

The installer needs Git, curl, tar and SHA-256 tools (sha256sum ships with Ubuntu). enable-linger lets the hermes user's services keep running with no login session open. Check: loginctl show-user hermes -p Linger prints Linger=yes.

The agent doesn't need inbound ports, so allow SSH only (details in the ufw firewall guide):

sudo ufw allow OpenSSH
sudo ufw enable
sudo ufw status

Expect Status: active and an OpenSSH ALLOW Anywhere line.

Hermes Agent VPS install with the official script

Switch to the hermes user and run the installer. The user has no password, so use sudo -iu here (you'll need sudo machinectl shell hermes@ for the systemctl --user step below):

sudo -iu hermes
curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash
source ~/.bashrc
hermes doctor

The script clones the source into ~/.hermes/hermes-agent/, bootstraps uv, installs pinned Python, Node.js, ripgrep and FFmpeg, and puts the hermes launcher in ~/.local/bin. hermes doctor should finish without errors (warnings about an unconfigured model before hermes setup are expected). It also installs Chromium for browser tools. To skip it on a small server: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash -s -- --skip-browser.

Older guides point to hermes-agent.org/install.sh. That URL is broken; use the nousresearch.com domain.

Pick a model

hermes setup

The wizard asks for a provider and model. hermes setup --portal signs in to Nous Portal with OAuth. For OpenRouter or OpenAI, you can set the key directly:

hermes config set OPENROUTER_API_KEY sk-or-...

Secrets land in ~/.hermes/.env and other settings in ~/.hermes/config.yaml. See how to store API keys on a server for safe handling. Run hermes to open a chat in the terminal and confirm it works.

Connect Telegram

  1. Create a bot with @BotFather and copy the token.
  2. Get your numeric Telegram ID (for example from @userinfobot).
  3. Run the wizard:
hermes gateway setup

It saves the token (TELEGRAM_BOT_TOKEN) and your allowlist. You can also set the allowlist in ~/.hermes/.env:

TELEGRAM_ALLOWED_USERS=123456789

The gateway denies anyone not on the list. The alternative is pairing: an unknown user DMs the bot, gets a one-time code, and you approve it with hermes pairing approve telegram CODE (codes expire after an hour). Never set GATEWAY_ALLOW_ALL_USERS=true: this bot has terminal access to your server.

Run Hermes 24/7 with systemd

Install the gateway as a user service. systemctl --user and journalctl --user need a full user session; after sudo -iu hermes they fail with Failed to connect to bus, so log in like this:

sudo machinectl shell hermes@

(install the systemd-container package if the command is missing). Then:

hermes gateway install
hermes gateway start
hermes gateway status
journalctl --user -u hermes-gateway -f

hermes gateway status should report running; message your bot on Telegram and a reply confirms it works. Thanks to enable-linger, the service starts at boot and doesn't depend on a login session. For a system-level unit, use sudo hermes gateway install --system and read logs with journalctl -u hermes-gateway -f.

Self-host Hermes Agent with Docker

If Docker is already installed (how to install Docker on Ubuntu 24.04), you can skip the script. One-time setup:

mkdir -p ~/.hermes ~/hermes-docker && cd ~/hermes-docker
docker run -it --rm -v ~/.hermes:/opt/data nousresearch/hermes-agent setup

Since June 2026 the Hermes dashboard refuses to start on a network address without login: inside the container it binds 0.0.0.0, and with no auth provider configured it fails closed. Put a username and password in a .env file next to compose.yaml:

printf 'DASH_USER=admin\nDASH_PASSWORD=%s\nDASH_SECRET=%s\n' "$(openssl rand -base64 18)" "$(openssl rand -hex 32)" > .env
chmod 600 .env
cat .env

Note the password from the output. For a persistent gateway, create compose.yaml:

services:
  hermes:
    image: nousresearch/hermes-agent:stable
    container_name: hermes
    restart: unless-stopped
    command: gateway run
    shm_size: 1g
    ports:
      - "127.0.0.1:8642:8642"
      - "127.0.0.1:9119:9119"
    environment:
      - HERMES_DASHBOARD=1
      - HERMES_DASHBOARD_BASIC_AUTH_USERNAME=${DASH_USER}
      - HERMES_DASHBOARD_BASIC_AUTH_PASSWORD=${DASH_PASSWORD}
      - HERMES_DASHBOARD_BASIC_AUTH_SECRET=${DASH_SECRET}
    volumes:
      - ~/.hermes:/opt/data
docker compose up -d
curl -s http://127.0.0.1:8642/health

A {"status": "ok"} reply means the gateway is up. Port 8642 serves the OpenAI-compatible API and health check; 9119 is the dashboard. Both are bound to 127.0.0.1 because Docker's published ports bypass ufw, and an agent dashboard with shell access must never face the internet. Incoming connections from the internet don't reach 0x.cloud servers; on a server with a public address, open it through an SSH tunnel: ssh -L 9119:127.0.0.1:9119 user@SERVER_IP, then browse to http://localhost:9119. If you need the API from outside, put Nginx with HTTPS and authentication in front of it.

Update Hermes Agent

hermes update
hermes gateway status

hermes update restarts the gateway on the new code itself and prints a version table; if the gateway is busy, it restarts at its first idle moment. Before updating, Hermes takes a quick state snapshot in state-snapshots/. For a full zip of the data folder, set updates.pre_update_backup: full in config.yaml. With Docker:

cd ~/hermes-docker
docker compose pull && docker compose up -d

Back up ~/.hermes

Everything that matters lives in ~/.hermes: memory, skills, sessions, cron jobs and keys. Archive it without the source checkout and logs:

tar czf ~/hermes-$(date +%F).tar.gz -C ~ \
  --exclude='.hermes/hermes-agent' --exclude='.hermes/logs' .hermes

The archive contains .env with your keys, so store it like a password. On 0x.cloud you can turn on automatic backups (7 daily copies, +20% of the plan price) or take a $0.99/mo snapshot before updates.

Common errors

Symptom Cause and fix
hermes: command not found Run source ~/.bashrc or reconnect
Bot is silent on Telegram You're not in TELEGRAM_ALLOWED_USERS, or the gateway is down (hermes gateway status)
Gateway stops when you log out Run sudo loginctl enable-linger hermes
systemctl --user: Failed to connect to bus You switched with sudo -iu. Use sudo machinectl shell hermes@
Docker dashboard won't start, log mentions an auth provider HERMES_DASHBOARD_BASIC_AUTH_* not set. Add them as in the Docker section
hermes gateway install fails in a container In Docker, run gateway run as the main process with restart: unless-stopped
Chromium crashes Not enough memory: use s2-4 with shm_size: 1g, or install with --skip-browser
404 on hermes-agent.org/install.sh Outdated URL; use hermes-agent.nousresearch.com

For diagnostics run hermes doctor. 0x.cloud servers are in Warsaw, and support answers in about 30 minutes on average during business hours (06:00–20:00 UTC). If the agent breaks the system, an OS reinstall costs $0. Official sources: Hermes Agent docs and the NousResearch/hermes-agent repository.

FAQ

What is Hermes Agent? An open-source (MIT) AI agent from Nous Research. It keeps memory across sessions, creates its own skills, runs scheduled jobs and talks to you through Telegram, Discord, Slack and other platforms.

Does Hermes Agent need a GPU? No. It calls an external model provider (Nous Portal, OpenRouter, OpenAI or any OpenAI-compatible endpoint), so the server never runs inference. 1–2 vCPU and 2–4 GB of RAM are enough.

How do I update Hermes Agent? Run hermes update. For Docker, run docker compose pull and docker compose up -d. Your data in ~/.hermes is kept either way.

Why doesn't my Hermes bot reply on Telegram? The gateway denies anyone who isn't allowlisted. Add your numeric ID to TELEGRAM_ALLOWED_USERS or approve your pairing code with hermes pairing approve telegram CODE.

Where does Hermes store keys and memory? In ~/.hermes: secrets in .env, settings in config.yaml, OAuth logins in auth.json, memory in memories/ and skills in skills/. The Docker image mounts the same folder at /opt/data.

Deploy to 0x.cloud