Guides 15 min read ·
Best VPS for Hermes Agent: Specs, Self-Hosting on Ubuntu or Docker, and Cost
How much VPS Hermes Agent really needs, how to self-host it on Ubuntu 24.04 with systemd or Docker, secure it, and what it costs to run each month in India.
A VPS for Hermes Agent doesn't need to be big. Hermes, the open-source AI agent from Nous Research, sends the heavy work to a language model over an API, so your server only runs the agent itself: the project's Docker guide lists 1 GB of RAM and 1 CPU core as the minimum and 2–4 GB with 2 cores as recommended. Any Linux VPS with 2–4 GB of RAM, a dedicated IP and Ubuntu can run Hermes 24/7 and answer you on Telegram. You need far more memory, and ideally a GPU, only if the model runs on the same server.
This guide uses Hermes Agent v0.23.3 (released 19 November 2026) on Ubuntu 24.04 LTS, checked against the project's docs as of November 2026.
What is Hermes Agent?
Hermes Agent is an MIT-licensed AI agent built by Nous Research, with about 265,000 GitHub stars on 23 November 2026. You talk to it in a terminal or a chat app, and it works with tools: it runs shell commands, edits files, browses the web, runs scheduled jobs from a built-in cron scheduler, and writes reusable "skills" after complex tasks. Nous also publishes the Hermes language models; those are a separate product, and this guide is about the agent.
Hermes doesn't include a model. You connect a provider with an API key or a sign-in: Nous Portal (Nous Research's subscription), OpenRouter, Anthropic, OpenAI, Google Gemini, DeepSeek and dozens more, or a local server such as Ollama or vLLM. Its state lives in ~/.hermes: secrets in .env, settings in config.yaml, its memory in memories/MEMORY.md (notes about its environment) and memories/USER.md (your preferences), and every conversation in a searchable SQLite database, state.db (memory docs). Comparing agents? See OpenClaw on a VPS and Claude Code on a VPS.
Why run Hermes Agent on a VPS instead of your laptop?
The README puts it simply: "talk to it from Telegram while it works on a cloud VM." A server gives you:
- Always online. The gateway must be running to receive your messages, and a cron job only fires if the machine is on. A sleeping laptop misses both.
- Long tasks that finish. In a chat app,
/bgstarts a background job and the result arrives in the same chat when it's done. - A fixed IP address. You can allowlist the VPS's dedicated IPv4 at an API or database, and use it later for Telegram's webhook mode or Hermes's API server.
- Distance from your personal files. The agent runs shell commands. On a VPS, your browser logins, documents and work SSH keys aren't there.
How much CPU and RAM does Hermes Agent need?
The agent waits for messages, calls the model's API and runs tools, so it's light. From the Docker guide and configuration reference:
| Memory | CPU | Disk | |
|---|---|---|---|
| Minimum | 1 GB | 1 core | 500 MB for data |
| Recommended | 2–4 GB | 2 cores | 2 GB or more, growing with sessions and skills |
| With browser tools (Chromium) | At least 2 GB | ||
| Optional Docker sandbox for its commands | Up to 5 GB by default | 1 core by default | Up to 50 GB by default |
The stable Docker image is about 1.1 GB to download, and the script install brings its own Python, Node.js and Chromium. So 2 GB runs Hermes for chat, 4 GB is comfortable with browser tools, and 8 GB leaves room for a command sandbox and other apps.
A local model changes the sums. Hermes rejects models with less than 64,000 tokens of context, and its provider docs note that Ollama defaults to 4,096 tokens on machines with under 24 GB of GPU memory, so you must raise it. A model that handles multi-step tool calls with a 64K window needs many gigabytes of RAM on top of Hermes, and without a GPU it runs on CPU cores alone. See running Ollama on a VPS for what fits; for most people, a hosted model plus a small VPS is the practical choice.
How to self-host Hermes Agent on Ubuntu 24.04 (script and systemd)
Hermes is tested on the latest Ubuntu and says distributions with glibc and systemd are likely to work; its installer brings its own Python 3.14, so Ubuntu 24.04's system Python doesn't matter. This set-up uses the default local backend, so the agent's commands run directly as its user; for an agent that browses the web or reads email, use the Docker set-up below instead. Start from a server with SSH keys, updates and ufw set up as in how to set up a VPS.
1. Create a user just for the agent
Hermes's security checklist says never to run the gateway as root. A user without sudo rights can't hand the agent root, even if the agent is talked into trying. From your admin account:
sudo apt update && sudo apt install -y git curl libatomic1
sudo adduser --disabled-password hermes # press Enter through the questions
sudo loginctl enable-linger hermes # lets its services start at boot
sudo mkdir -p /home/hermes/.ssh
sudo cp ~/.ssh/authorized_keys /home/hermes/.ssh/
sudo chown -R hermes:hermes /home/hermes/.ssh
sudo chmod 700 /home/hermes/.ssh
sudo chmod 600 /home/hermes/.ssh/authorized_keys
The installer requires git and curl, and its Node.js needs libatomic1; installing that now means it never asks for sudo. Logging in over SSH as hermes, rather than switching with su, gives the systemd user service in step 4 a proper session.
2. Install Hermes as that user
ssh hermes@YOUR_SERVER_IP
curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash
source ~/.bashrc
hermes doctor
The installer puts the current stable release in ~/.hermes/hermes-agent and the hermes command in ~/.local/bin. Over SSH it then starts the setup wizard: pick your model and connect Telegram there, or skip it and use steps 3 and 4, which do the same jobs one at a time. Pipe it to bash -s -- --skip-browser instead to leave out Chromium; if you keep it, Chromium can also need Linux system libraries that an administrator must install (see the browser docs). Only use installers from hermes-agent.nousresearch.com: the docs warn about fake Hermes websites. hermes doctor reports anything missing.
3. Pick a model and test a chat
hermes model # choose a provider and paste its API key
hermes # ask a test question, then type /quit
mkdir -p ~/work
hermes config set terminal.cwd /home/hermes/work
Get one chat working before adding more. terminal.cwd gives gateway and cron sessions their own working folder, as the security checklist recommends.
4. Connect Telegram and run the gateway as a service
In Telegram, create a bot with @BotFather and copy its token, then message @userinfobot for your numeric user ID. On the server:
hermes gateway setup # choose Telegram, paste the token and your user ID
hermes gateway install # systemd user service (skip if the wizard did it)
hermes gateway start
hermes gateway status
tail -f ~/.hermes/logs/gateway.log
The wizard writes TELEGRAM_BOT_TOKEN and TELEGRAM_ALLOWED_USERS to ~/.hermes/.env. Telegram uses long polling by default, so the gateway only connects outwards and needs no open port (Telegram docs). With linger on, the user service starts at boot with nobody logged in. The messaging docs also offer a system service, but that needs root for every restart, including the one after hermes update; for a user without sudo, their headless-machine option is this user service with linger. Reboot once from your admin account and check the bot answers. More on always-on bots: hosting a Telegram bot 24/7.
5. Update it
hermes update --check
hermes update
hermes update follows the stable release channel, snapshots your config, pairing data and cron jobs before it changes anything, and restarts the gateway afterwards.
How to run Hermes Agent in Docker on a VPS
The official image, nousresearch/hermes-agent, puts the whole agent in a container that can reach only the files you mount. The project's security policy names this whole-process wrapping as the supported set-up for production and for agents that read content you don't control, such as web pages, email or group chats. Install Docker Engine (see Docker on a VPS), then create a data folder owned by the container's user, UID 10000, and a Compose file:
sudo mkdir -p /srv/hermes/data
sudo chown 10000:10000 /srv/hermes/data
sudo chmod 700 /srv/hermes/data
sudo nano /srv/hermes/compose.yaml
services:
hermes:
image: nousresearch/hermes-agent:stable
container_name: hermes
restart: unless-stopped
command: gateway run
shm_size: "1gb" # Chromium (browser tools) needs shared memory
volumes:
- ./data:/opt/data # keys, config, memory, sessions and skills
deploy:
resources:
limits:
memory: 4G
cpus: "2.0"
sudo docker run -it --rm -v /srv/hermes/data:/opt/data nousresearch/hermes-agent:stable setup
cd /srv/hermes
sudo docker compose up -d
sudo docker compose logs -f
The first command runs the setup wizard: choose your provider, paste its key and, as the Docker docs recommend, set up Telegram at this point too (bot token and your numeric user ID, as in step 4 above). Everything is saved in the data folder. To add or change a chat app later, run sudo docker exec -it hermes hermes gateway setup, then sudo docker compose restart so the gateway loads the new settings; docker exec runs Hermes as the container's own user, so the files stay readable by the gateway. No ports are published, because a chat-only agent needs none. Inside the image, s6-overlay restarts a crashed gateway, and restart: unless-stopped brings the container back after a reboot. Never point two gateway containers at one data folder.
hermes update doesn't work in Docker. Pull the new image instead; config migrations run automatically, with a backup first:
cd /srv/hermes
sudo docker compose pull
sudo docker compose up -d
Where do the API keys go, and how do you protect them?
Secrets go in ~/.hermes/.env (in Docker, the .env in your data folder); Hermes can also fetch them at startup from Bitwarden Secrets Manager or 1Password (secrets docs). Then:
- Lock the file with
chmod 600 ~/.hermes/.env. Outside containers, Hermes also locks~/.hermesto its owner on every start. - Give the agent its own key with a spending cap. OpenRouter, for example, lets you set a limit on each API key. Never reuse your production apps' keys.
- Enter keys in the wizard, not the chat. Chat messages go to the model provider and are stored in
state.db, and keys typed as command arguments land in your shell history. - Be careful with passthrough. The agent's commands run without Hermes's own keys, but variables you list in
terminal.env_passthroughordocker_forward_env, and any a loaded skill declares, are passed to them, and the docs warn that code receiving them can read and exfiltrate them. - Back up the data folder privately. It holds keys, memory and sessions, and the Docker docs say never to make it world-readable.
How do you secure a Hermes Agent VPS?
SECURITY.md calls Hermes "a single-tenant personal agent" and says the only security boundary against an adversarial model is the operating system. Its approval gate and scanners catch mistakes but don't count as containment. So:
- Give it its own user or container. With the default local backend, the agent has its user's file access. The
hermesuser above owns nothing else and has no sudo; the Docker set-up confines it to its data folder. If the agent reads content you don't control (web pages, inbound email, group chats), use the container: SECURITY.md says running the default local backend with such input is outside its supported security posture. - Stop the agent adding its own SSH keys. The
hermesuser can log in over SSH, so an agent that has been talked into it could append a key to its ownauthorized_keys. Once setup is done, hand that folder to root (sshd accepts root-owned key files), and repeat this whenever you change the keys:sudo chown -R root:root /home/hermes/.ssh && sudo chmod 755 /home/hermes/.ssh && sudo chmod 644 /home/hermes/.ssh/authorized_keys. - Keep production credentials off the server. No SSH keys to other servers, cloud admin keys or live database passwords. Anything the agent can read, a prompt-injected web page can ask it to send somewhere.
- Allowlist who can talk to it. The gateway denies anyone not allowlisted or paired by default. Set
TELEGRAM_ALLOWED_USERSor approve people withhermes pairing approve, and never setGATEWAY_ALLOW_ALL_USERS=true, which the docs say is not for bots with terminal access. - Leave approvals on. In the default
smartmode a helper model judges risky commands and escalates unclear ones to you; an unanswered prompt is denied after 300 seconds. Don't use--yoloorapprovals.mode: offoutside a container. - Open only SSH. A polling Telegram bot needs no inbound port, so keep 8642 and 9119 closed. If you want the dashboard in Docker, set
HERMES_DASHBOARD=1, publish it only on the host's loopback (127.0.0.1:9119:9119), set a login (the image refuses to serve it on a non-loopback address without one) and reach it through an SSH tunnel. Docker's documentation says published container ports bypass ufw. - Review skills and plugins before installing. They run inside the agent with its full privileges.
- Update regularly for security patches, and check
~/.hermes/logs/for unauthorised access attempts, as the checklist says.
terminal.backend: docker, which runs the agent's commands in a sandbox container. With the script install, that means giving the hermes user Docker access, and Docker's documentation says the docker group grants root-level privileges. Running the whole agent in the official image avoids that trade-off.How much does it cost to run Hermes Agent?
Hermes itself is free. You pay for the server, a flat monthly price, and for the model, which providers bill per token, usually in US dollars. On HostEthical the server starts at ₹860 a month, or about ₹774.17 a month when billed yearly, paid in rupees.
The model bill grows faster than your message count:
- Every step is a full request. An agent works in a loop, calling the model again after each tool result, so one task can mean several model calls (fewer when the model asks for several tools at once). The FAQ says the system prompt and tool schemas are sent on every call, and the provider docs say they alone can use 4,000 to 8,000 tokens, before memory and the conversation so far.
- Chat sessions keep growing. A Telegram chat is one session that survives restarts, and the memory docs warn that one left running for weeks "grows expensive". Send
/newwhen a task is done and/compressin long sessions. - Background work costs too. Every cron run spends tokens, and smart approvals, compression and image reading make extra model calls. Auxiliary tasks use your main model by default; you can point each at a cheaper one.
- Per-token prices differ widely between models, so check your provider's pricing page.
Run hermes prompt-size to see the fixed cost of each request and /usage inside a session, and switch off unused toolsets with hermes tools. Nous Portal is the subscription route: one login for 300+ models, billed to your Nous plan. Either way, set a spending cap first.
Can you run Hermes Agent with Coolify or Dokploy?
Yes. Both have templates for the official image (see Coolify vs Dokploy; the panels need RAM of their own). Check the defaults:
- Coolify has two one-click services; Hermes Agent (Dashboard) is the single-container one that Coolify suggests for the simplest set-up. After deploying, run
hermes setupin the hermes-agent container's terminal and restart it. The template setsGATEWAY_ALLOW_ALL_USERStotrue, which lets anyone who finds your bot give orders to an agent that runs shell commands. Before connecting a chat app, set it tofalsein Coolify's environment variables and add your user ID. Use the variable name from Hermes's own docs,TELEGRAM_ALLOWED_USERS; Coolify's page namesTELEGRAM_ALLOWED_USER_IDS, which Hermes's docs don't list. Then message the bot from another Telegram account: it should reply with a pairing code, not an answer. - Dokploy's Hermes template pins the image to
v2026.6.19, a June 2026 build, and routes both the dashboard (basic auth) and the API server (bearer key) to public domains. Change the tag tostable, and drop the public API route if you only use Telegram.
Both templates put the dashboard on a public address behind a username and password, and Hermes's Docker docs call that login unsuitable for direct public-internet exposure. Restrict who can reach it, for example over a VPN or SSH tunnel, or remove its public domain when you aren't using it.
Running Hermes Agent on HostEthical
A HostEthical Cloud VPS is well above the minimums in Hermes's docs: unmanaged KVM with full root, a dedicated IPv4 address, SSD storage and Ubuntu 24.04 LTS, built automatically after payment, usually within 5 to 15 minutes. You pay in rupees by UPI or binance Pay (USDT), and the price stays the same at renewal.
| Plan | vCPU | RAM | Storage | Paid monthly | Paid up front, per month | At renewal |
|---|---|---|---|---|---|---|
| VPS Starter | 4 cores | 8 GB | 100 GB SSD | ₹860 | ₹774.17 (yearly) | Same price |
| VPS Pro | 6 cores | 12 GB | 200 GB SSD | ₹1,170 | ₹1,053.33 (yearly) | Same price |
| VPS Max | 8 cores | 24 GB | 300 GB SSD | ₹2,190 | ₹1,971.67 (yearly) | Same price |
VPS Starter (4 vCPU, 8 GB RAM) is more than Hermes needs, leaving room for browser tools, a command sandbox and other apps such as a website or n8n. Move to VPS Pro or Max for several Hermes profiles, Coolify or Dokploy with many services, or a local model through Ollama, where you size the server for the model.
Our reasoning here, not a measured result: a chat reply spends most of its time waiting for the model provider to generate text, and Telegram relays your messages through its own servers, so the VPS's distance from you matters less than it does for a website. Hermes's FAQ does list a distant API server among the causes of slow replies, so the route from the VPS to your model provider can matter too. Germany, with no location fee, suits most personal agents. Choose Mumbai, for ₹380 a month more, if the agent works with services hosted in India, serves Indian users through an API or web front end, or you want its files, memory and logs kept in India (prompts still go to your model provider). See VPS hosting in Mumbai for the trade-off.
If you add a web front end or the API server later, register a domain with us and point an A record at the VPS with our nameservers and DNS editor.
Frequently asked questions
Is Hermes Agent free?
Yes. Hermes Agent is open source under the MIT licence and costs nothing to install. You pay for the server it runs on and for the model: per token through an API key, or through a subscription such as Nous Portal, which covers 300+ models with one login. Local models served by Ollama or vLLM have no per-token charge, but need a much larger server.
Can I install Hermes Agent with pip?
Not in a supported way. As of November 2026 the project's platform support page lists installs from PyPI (pip install hermes-agent or uv tool install hermes-agent) and from Homebrew as unsupported. On a Linux VPS, use the official install script from hermes-agent.nousresearch.com or the nousresearch/hermes-agent Docker image.
Can I use my Claude Pro or ChatGPT subscription with Hermes Agent?
Partly. According to the Hermes provider docs (November 2026), Claude Pro cannot use the Anthropic sign-in, so Pro users need a pay-per-token Anthropic API key, and a Claude Max sign-in draws only on extra usage credits bought on top of the plan. ChatGPT and Codex plans can sign in with a device code, but the docs do not yet say how that usage counts against your plan limits.
Which chat apps can Hermes Agent connect to?
Its messaging gateway supports Telegram, Discord, Slack, WhatsApp, Signal, email, SMS, Matrix, Mattermost, Microsoft Teams, Home Assistant and many more, all from one gateway process. Run hermes gateway setup to configure them. By default the gateway refuses anyone who is not on a platform allowlist or approved with a one-time pairing code.
Can several people share one Hermes Agent?
They can all message the same instance if you add each of them to the gateway allowlist, but the project's security policy describes Hermes as a single-tenant personal agent, so everyone shares its memory, files and command access. For separate people or teams, run a separate instance for each under its own Linux user or container, with its own bot token: the policy says profiles under one user are not a security boundary, and Telegram rejects two gateways polling the same token.