Run Hermes Agent on a virtual machine
Hermes Agent is an open-source AI agent made by Nous Research. It runs as a long-lived process on a server, and you talk to it from a terminal or from a messaging app such as Telegram or Discord. This guide puts it on a ProVM.
Hermes Agent is third-party software. Doprax provides the virtual machine (VM); the commands below are from Hermes’s own documentation.
Before you start
Section titled “Before you start”- A Doprax account with credit.
- An account with a model provider that Hermes supports, for example an OpenRouter API key. Hermes does not contain a language model: it sends requests to the provider you choose. ProVM plans have no GPU, so plan for a hosted model.
- Optional: a Telegram bot token, if you want to message the agent from your phone. You get one
from
@BotFatherin Telegram.
1. Create the VM
Section titled “1. Create the VM”- In the dashboard, open Virtual Machines, then Create Virtual Machine.
- Choose a provider: ProVM.
- Choose a location: the one closest to you.
- Choose a size: a plan with at least 2 vCPU and 4 GB of memory. See Plans and prices.
- Choose an image source: Ubuntu.
- Choose an access method: SSH Key (recommended), or Password (auto-generated). See SSH keys.
- Enter a name and select Create Virtual Machine.
Create your first virtual machine describes each step.
2. Connect to the VM
Section titled “2. Connect to the VM”ssh root@YOUR_VM_IP3. Install Hermes
Section titled “3. Install Hermes”The installer needs git and curl. Install them, then run the installer:
apt update && apt install -y git curlcurl -fsSL https://hermes-agent.nousresearch.com/install.sh | bashThe installer downloads Hermes and everything it needs into ~/.hermes/, and puts the hermes
command in ~/.local/bin/. When it has finished, reload your shell so that the command is found:
source ~/.bashrc4. Choose a model provider
Section titled “4. Choose a model provider”hermes setupThe wizard asks which model provider to use and for its credentials. For OpenRouter you paste an API key.
To change the model later without running the whole wizard again:
hermes model5. Have a first conversation
Section titled “5. Have a first conversation”hermesThis opens the interactive chat in your terminal. Send a short message first to confirm that the model answers. Then ask for something that needs a tool, for example “run uptime and tell me the result”, to confirm that the agent can run commands on the VM.
6. Connect a messaging app (optional)
Section titled “6. Connect a messaging app (optional)”-
Set up the platform:
Terminal window hermes gateway setupThe wizard asks which platform to add and for its credentials, such as the Telegram bot token.
-
Run the gateway once in the foreground and send your bot a message:
Terminal window hermes gatewayStop it with
Ctrl+Cwhen you have seen it answer. -
Install the gateway as a system service, so that it runs after you log out and starts again when the VM reboots:
Terminal window hermes gateway install --systemhermes gateway start --systemHermes’s documentation writes these two commands with
sudo. You are logged in asroot, so it is not needed. -
Check it:
Terminal window hermes gateway status --systemjournalctl -u hermes-gateway -f
For Telegram and Discord, the gateway connects out to the service. It does not need any port opened towards your VM.
The Doprax dashboard has no firewall setting. On a ProVM every port can be reached from the
internet, so any program on the VM that listens on a port is public. If you add something with a
web interface later, protect it with a password, or limit who can reach it with a firewall inside
the VM, such as ufw.
Check and update
Section titled “Check and update”To check the installation, the configuration, the provider and the tools:
hermes doctorTo update Hermes to the latest version:
hermes updateGood to know
Section titled “Good to know”- Everything Hermes remembers, including its configuration and the skills it writes, is in
~/.hermes/on the VM. Deleting or rebuilding the VM removes it. Take a snapshot first if you want to keep it. - The model provider charges you for the requests the agent makes. That cost is separate from the VM’s price.
From the earlier documentation, first published on 25 May 2026. Being corrected against the product.