FlexoHost Logo
FlexoHost Logo
Back to guides
VPS4 min readNov 8, 2026

How to Install Hermes Agent on a VPS and Connect Telegram (2026)

Install Nous Research’s Hermes Agent on an Ubuntu VPS, choose a model, connect it to Telegram and keep it running 24/7. Server size and commands.

FlexoHost Team

Technical guides & hosting tips

On this page
How to Install Hermes Agent on a VPS and Connect Telegram (2026)

Hermes Agent is an open-source AI agent from Nous Research (MIT licence). It remembers your conversations, learns skills over time and can talk to you on Telegram, Discord, Slack, WhatsApp or Signal. On a VPS it stays online 24/7, so it keeps answering and running scheduled tasks when your computer is off.

Disclosure: FlexoHost wrote this guide and sells VPS plans. The steps work on any Ubuntu VPS. Our Hermes Agent hosting includes setup if you prefer not to do it yourself.

What you need

Item Recommendation
VPS Ubuntu 22.04 or 24.04, 2 GB RAM to start, 4 GB for several platforms and tools
AI model An API key from a provider such as OpenRouter or OpenAI
Telegram A Telegram account to create your bot
Time About 15 minutes

Choose a BDIX VPS if the agent mainly works with people and systems in Bangladesh, or a USA VPS if it mostly calls international AI APIs.

Step 1: connect to the server

ssh root@YOUR_SERVER_IP
sudo apt update && sudo apt upgrade -y

Step 2: run the official installer

Nous Research publishes a one-line installer for Linux, macOS and WSL2:

curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash

Reload your shell so the hermes command is available:

source ~/.bashrc

Step 3: run the setup wizard

hermes setup

The wizard configures everything in one pass. Choose your model provider, paste your API key and pick a model. You can change the model later with hermes model and turn tools on or off with hermes tools.

Test it by starting a chat in the terminal:

hermes

Step 4: create a Telegram bot

  1. In Telegram, open @BotFather and send /newbot.
  2. Give the bot a name and a username ending in bot.
  3. Copy the bot token BotFather sends you. Keep it private.

Step 5: connect Hermes to Telegram

hermes gateway setup

Choose Telegram and paste the bot token. Then start the messaging gateway:

hermes gateway start

Send a message to your bot in Telegram to check that it answers.

Step 6: keep it running after you log out

A simple way is to run the gateway inside tmux, which keeps running when you close SSH:

sudo apt install -y tmux
tmux new -s hermes
hermes gateway start

Press Ctrl+B, then D, to leave it running. Reconnect later with tmux attach -t hermes. Check hermes gateway --help for service options in your version.

Step 7: update and troubleshoot

hermes update    # update to the latest version
hermes doctor    # check the installation and report problems

Keep it safe

  • Never share your model API key or bot token.
  • Keep the bot for yourself or your team; do not post its username publicly.
  • Keep the server updated with sudo apt update && sudo apt upgrade -y.

Prefer not to do it yourself?

FlexoHost's Hermes Agent hosting is a VPS with Hermes Agent installed by our team, on BDIX (Dhaka) or USA servers, paid in taka with bKash. You can run n8n on the same VPS if it has enough memory.

Source for the commands: the Hermes Agent README on GitHub (NousResearch/hermes-agent).

সাধারণ জিজ্ঞাসা (FAQ)

What is Hermes Agent?

An open-source AI agent from Nous Research, released under the MIT licence. It learns skills from experience, remembers past conversations and can be reached from Telegram, Discord, Slack, WhatsApp and Signal.

How much RAM does Hermes Agent need on a VPS?

Hermes Agent does not publish a fixed minimum. With a hosted AI model (OpenAI, OpenRouter and others), 2 GB is enough to start and 4 GB is a safer choice for several platforms and tools. Running large models locally needs far more memory or a GPU.

Do I pay for the AI model separately?

Yes. The VPS runs the agent; the model provider you choose bills you for model use.

How do I update Hermes Agent?

Run 'hermes update'. If something stops working, 'hermes doctor' checks the installation and reports problems.

Can FlexoHost install Hermes Agent for me?

Yes. With FlexoHost's Hermes Agent hosting, our team sets it up on your VPS, and you keep full root access.

কোনটা নেবেন বুঝতে পারছেন না?

৫টা প্রশ্নের উত্তর দিন, ১ মিনিটে আপনার সাইটের জন্য সঠিক প্ল্যান আর দাম দেখুন।

প্ল্যান খুঁজুন

Need fast hosting for your website?

NVMe SSD, LiteSpeed, free SSL and 24/7 support, with servers in Bangladesh (BDIX) and abroad.

Related guides

Need Help? We Are Here To Help You

Please feel free to consult with one of our experts, who will thoroughly evaluate your specific requirements and provide a tailored proposal that perfectly aligns with your company's unique needs and realities.