Black Friday: Save 10% for life on all of our VPS plans, now through Cyber Monday

10% off on selected plans for as long as you keep the service · new orders · up to 10 uses per customer · ends Dec 1, 2026, 12:00 AM EST.

See plans
Guideschevron_rightServers

Servers · 8 min read · Updated

How to Run Hermes Agent on a VPS

To run Hermes Agent on a VPS, create a non-root user, run Nous Research's installer (curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash), choose a model with hermes setup, then connect your chat apps with hermes gateway setup and install the gateway as a service. Allow only your own accounts to message it, and switch its terminal to the Docker backend so the commands it runs stay inside a container.

1. Prepare the Server

On Ubuntu 24.04, secure the server and install Docker for the sandbox in step 4. The installer needs only Git, curl and tar to start; it fetches its own Python, Node.js and tools. Create a user for the agent, since its docs say never to run the gateway as root:

sudo apt install -y git curl tar
sudo adduser hermes
sudo usermod -aG docker hermes        # lets it start sandbox containers
sudo loginctl enable-linger hermes    # keep its service running after logout
sudo -iu hermes

Membership of the docker group is close to root on that server, which is one more reason to give the agent a server of its own.

2. Install and Choose a Model

As hermes:

curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash
source ~/.bashrc
hermes setup          # the full wizard: provider, model, tools
hermes doctor         # checks the install

Settings live in ~/.hermes/config.yaml, and API keys in ~/.hermes/.env. Change one later with hermes config set, for example hermes config set OPENROUTER_API_KEY your_key. Run hermes to talk to it in the terminal.

3. Connect Your Chat Apps

hermes gateway setup       # pick platforms and paste their bot tokens
hermes gateway install     # a systemd user service
hermes gateway status
journalctl --user -u hermes-gateway -f

By default the gateway refuses anyone who is not on an allowlist or paired. Keep it that way: put your own user IDs in ~/.hermes/.env, for example TELEGRAM_ALLOWED_USERS=123456789, or approve a pairing code with hermes pairing approve telegram CODE. The docs warn against GATEWAY_ALLOW_ALL_USERS=true on any agent that can run commands.

4. Keep Its Commands in a Sandbox

With the default local backend, the agent's commands run directly on the server. Switch to Docker in ~/.hermes/config.yaml:

terminal:
  backend: docker
  container_memory: 2048      # MB; the default is 5120
  container_persistent: true

Containers drop almost every Linux capability and cannot gain new privileges. Environment variables you forward into them with docker_forward_env are visible to whatever the agent runs, so forward only what a task needs. Restart the gateway with hermes gateway stop && hermes gateway start after changing the config.

Command approval stays on in smart mode, asking before risky commands and refusing if nobody answers within five minutes. Leave the --yolo switch for experiments.

Updates, Backups and Size

  • Update with hermes update, then restart the gateway.
  • Back up ~/.hermes: memory, skills, sessions and keys all live there. Treat the backup as secret, and keep it on a storage box with Borg.
  • Size: with a hosted model, the agent itself is light, and the sandbox containers are what use memory. Running the model on your own hardware is a different scale: see how much VRAM an LLM needs and GPU servers.

Comparing agents? See running OpenClaw on a VPS.

Common Questions

  • What is Hermes Agent?

    An open-source, MIT-licensed AI agent from Nous Research. It works in a terminal or through a messaging gateway (Telegram, Discord, Slack, WhatsApp, Signal, email and more), keeps its own memory, searches past sessions, and writes reusable skills after complex tasks.

  • Which models can Hermes Agent use?

    Its README lists Nous Portal, OpenRouter, OpenAI and custom endpoints among many providers. Choose one with hermes model, and switch during a chat with /model.

  • Is it safe to let an agent run commands on my server?

    Only with limits. Hermes asks before dangerous commands by default and always blocks a short list such as wiping the disk, but its documentation recommends a container or cloud backend to keep the agent's commands away from the host. A VPS that holds nothing else adds one more wall.

  • Can I move from OpenClaw?

    Yes. hermes import-agent openclaw --dry-run shows what it would bring across from ~/.openclaw before you run the import for real.

Plans and prices

VPS Plans

KVM servers with NVMe storage and full root access, online around the clock.

See all plans
  • Bronze

    3 vCPU · 6 GB RAM · 75 GB NVMe

    2 TB transfer

    $37.50/mo

    Configure inAshburnDallas
  • Silver

    4 vCPU · 8 GB RAM · 100 GB NVMe

    4 TB transfer

    $46.50/mo

    Configure inAshburnDallas
  • Gold

    6 vCPU · 12 GB RAM · 150 GB NVMe

    6 TB transfer

    $60.00/mo

    Configure inAshburnDallas
  • Diamond

    8 vCPU · 16 GB RAM · 200 GB NVMe

    8 TB transfer

    $73.50/mo

    Configure inAshburnDallas

Network port: 10 Gbps in Ashburn, VA, 50 Gbps in Dallas, TX. Pick the location when you configure.

Keep Reading

All guides