Nous ResearchHermes Agent
Deploy Now

Set Up Telegram Access

·hermes agent telegramtelegramgatewaymobile

Connect Hermes Agent to Telegram in 10 minutes flat — full step-by-step with your own bot. Works 24/7 from any device, anywhere.

Want to try Hermes Agent yourself?

Try Hermes Free → Deploy in 60 seconds

The Telegram gateway is how most users access Hermes — from your phone, anywhere, for an always-on personal agent. Here is how to set it up and common fixes for issues. Unlike ChatGPT or Claude, Hermes runs 24/7 on your own server.

Why Telegram

  • Mobile access from anywhere
  • Reliable push notifications
  • Voice message support
  • Media handling (images, documents)
  • Group chat support with access controls

The gateway runs as a background service via the multi-platform gateway. When you message the bot, the gateway forwards to Hermes and replies back.

Step-by-Step Setup

1. Create Your Bot

  1. Open Telegram, message @BotFather
  2. Send /newbot
  3. Choose a display name (e.g., "My Hermes")
  4. Choose a username ending in bot (e.g., myhermes_agent_bot)
  5. BotFather replies with your token — copy it

Your token looks like: 1234567890:ABCdefGhijklMNOPqrstuvwXYZ

2. Get Your User ID

  1. Message @userinfobot on Telegram
  2. It replies with your numeric ID (e.g., 123456789)

3. Configure Hermes

hermes gateway setup

Select Telegram, paste your bot token, enter your user ID for allowed_user_ids.

Allowed user IDs can be a list for team use:

telegram:
  allowed_user_ids:
    - 123456789
    - 987654321

4. Start the Gateway

hermes gateway start

Message your bot. You should get a response.

Multi-User Setup

For teams, configure multiple user IDs in gateway config. Each user gets their own conversation thread with shared memory.

For completely separate instances, run multiple Hermes profiles:

hermes profile create dev  # creates separate profile
hermes profile use dev
hermes gateway start

Use Cases

Mobile Access

Run Hermes on a VPS, access from your phone. Check on servers, run tasks, get notifications — anywhere.

Team Bot

Shared agent for the team. Configure multiple allowed users. All conversations share memory and skills.

Channel-Based Access

Add the bot to a group, configure which group IDs (not user IDs) can access.

Common Issues

Bot Not Responding

  1. Check gateway is running: hermes gateway status
  2. Verify your user ID is in allowed_user_ids
  3. Restart gateway: hermes gateway restart
  4. Check logs: hermes gateway logs

"Unauthorized user triggered thread"

Fixed in PR #4373. Update to latest Hermes version.

Token Overhead (15-20k vs 6-8k)

The gateway loads extra context. In recent versions, make sure it starts from your home directory, not the repo directory.

Bot Can't See Messages

  • Bot must be admin or have "Read Messages" permission in group
  • Or use group ID instead of user IDs

Security Note

Telegram messages transit through Telegram's servers — not end-to-end encrypted. For sensitive work, consider:

  • Running Hermes locally and only accessing via CLI for sensitive tasks
  • Using Signal instead (also supported)
  • Using Ollama for fully offline operation

Setup guide Discord setup


FAQ

Can I use Telegram and Discord on the same Hermes? Yes — multiple gateways can run simultaneously. hermes gateway setup configures each.

Does Telegram keep conversation history? Yes, within the Telegram chat. Hermes sessions are separate threads.

Connect Discord too

flyhermes.ai

Frequently Asked Questions

How do I get Hermes working on Telegram in under 10 minutes?

Create a bot via @BotFather to get a token, message @userinfobot to get your numeric user ID, run `hermes gateway setup` and select Telegram, paste the token and user ID, then run `hermes gateway start`. Message your bot and it responds immediately.

Is it safe to give Hermes access through Telegram?

Telegram messages transit through Telegram's servers, so they're not end-to-end encrypted. For sensitive work, restrict allowed_user_ids to your own ID only, use Signal instead (also supported), or run sensitive tasks via CLI on your local machine.

Can multiple people use the same Hermes bot on Telegram?

Yes. Add multiple user IDs to the allowed_user_ids list in the gateway config. Each user gets their own conversation thread with shared memory and skills. For completely isolated instances per user, run separate Hermes profiles instead.

Why is my Telegram bot not responding even though the gateway is running?

Check your user ID is in allowed_user_ids (the bot replies with 'unauthorized' for unknown users), verify the bot token is correct in config, and ensure MESSAGE CONTENT INTENT is enabled in your bot's settings. Restart the gateway after any config change.

Does Telegram gateway use more tokens than CLI and how do I reduce it?

Older Hermes versions had a bug where Telegram used 2–3x more tokens per request than CLI. Update to v0.6.0+ and restart the gateway — this was fixed by changing the gateway's working directory to your home folder.

Ready to Run Your Own AI Agent?

Self-host Hermes in 60 seconds. No credit card, no cloud lock-in.

Deploy Hermes Free →

Related Posts