Skip to main content

Set Up Hermes Agent Locally With Telegram

Install Hermes Agent and connect your personal AI assistant to Telegram in minutes.

By Daniel Anthonello
| Nov 16, 2026 | 3 min read | 👁️ 10 Views
Classic Outline Feed
Set Up Hermes Agent Locally With Telegram
Premium Insight

Why It Matters

Hermes Agent is free and open source, so Indian students, freelancers and small startups can try an AI agent without paying for a dollar-priced subscription, and they only pay for whichever model API they choose to use. It runs on your own machine, which gives you more control over your files and settings, though a cloud model provider still sees your messages, so check its data policy first. Telegram makes it easy to start since no extra app is needed, but setup does need some terminal skills, and results in Indian languages depend on the model you pick, so test before relying on it.

What Is Hermes Agent?

Hermes Agent is a free AI assistant made by a company called Nous Research. It runs on your own computer, and you can talk to it in the terminal or just text it on Telegram, which is honestly way easier. It works with a bunch of different AI models like OpenRouter and OpenAI, so you get to pick which one you want.

What you need first

You need a Mac, Linux or Windows computer, and a Telegram account. Hermes itself doesn’t cost anything, but the AI model you connect might, so check the prices before you start. On Windows, there’s a PowerShell installer, but people say WSL2 works best.

Step 1: Install it

Open your terminal and paste this:

curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash

It sets up Python and Node.js and everything else for you. You only need git already installed. When it finishes, type source ~/.bashrc (or source ~/.zshrc if you’re on a Mac) so your terminal can find the new command.

Step 2: Pick your AI model

Type hermes setup. A setup wizard pops up and asks which provider and model you want, plus your API key. If you change your mind later, just run hermes model.

Step 3: Make your Telegram bot

This part is pretty quick:

  1. Open Telegram and search for @BotFather.
  2. Send /newbot and answer the questions to name your bot.
  3. Copy the token it gives you. Don’t lose it.
  4. Now message @userinfobot and it’ll tell you your numeric Telegram ID.

Step 4: Connect the bot to Hermes

Open the file ~/.hermes/.env and add these two lines:

TELEGRAM_BOT_TOKEN=your_token_here
TELEGRAM_ALLOWED_USERS=your_numeric_id

Don’t skip the second line. It makes sure only you can use your bot, so random people can’t mess with your computer.

Step 5: Start it up

Run hermes gateway setup and then hermes gateway start. Go to your bot on Telegram and send it a message. If it replies, congrats, it works!

Stay safe

Since this thing can actually do stuff on your computer, be careful:

  • Only put your own ID in the allowed users.
  • Never share your bot token. If it leaks, go back to BotFather and get a new one.
  • If something breaks, run hermes doctor first.
  • Run hermes update once in a while to get fixes.

Try something small first

Don’t give it anything big at the start. Ask for something easy, like explaining a topic or a quick reminder. After you see it working fine, you can try harder stuff.

Checklist

  • Hermes installed
  • Model picked
  • Bot token saved
  • Allowed users set to my ID
  • Gateway running
  • First message answered

Found this analysis insightful?

Share with colleagues, engineers, and your research network.

Tags & Topics

Related Analysis & Next Reads

Curated

Discussion

No comments posted yet. Be the first to start the discussion!