You can connect Hermes Agent to Telegram in three stages: create a bot with @BotFather, identify the Telegram account that is allowed to use it, and configure a Hermes gateway with the bot token and numeric user ID. The recommended command is hermes gateway setup. After a foreground test with hermes gateway, install the gateway as a background service with hermes gateway install.
Antihost offers VPS plans with one-click Hermes Agent, NVMe storage and a 14-day free trial.
The allowlist is essential. A Telegram bot token proves that Hermes is controlling the bot, not that an incoming message came from you. Hermes must also be told which numeric Telegram user IDs may interact with the agent.
As an Amazon Associate I earn from qualifying purchases.
Free tools Windows power users keep installed
One-click scans. No signup required.
What you need before starting
Have these prerequisites ready:
- A working Hermes Agent installation and a shell in the profile where you want to run the gateway.
- A Telegram account. You will use it to create the bot and to send the first test message.
- Permission to create a bot through Telegram’s @BotFather.
- A plan for keeping the bot token private. Treat it like a password.
The commands below describe the standard Telegram polling setup. Hermes also exposes an optional webhook mode, covered later. Labels and prompts can change between Hermes releases, so if a wizard prompt differs slightly, choose the Telegram integration and provide the same two values: the bot token and the allowed numeric user ID or IDs.
How the connection works
Telegram delivers messages to the bot associated with your token. Hermes’ gateway reads those messages, checks the sender against TELEGRAM_ALLOWED_USERS, and passes messages from approved accounts to the agent. The gateway then sends the agent’s replies back through Telegram.
#1 Best Overall
- [Ultra-Lightweight Ear Buds Designed for Small Ears] Each earbud weighs only 3.7g and features a compact, ergonomic in-ear design made especially for small ears. Secure, low-profile, and comfortable for workouts, all-day wear or overnight sleeping.The ultra-slim profile sits flush in your ear with no hard edges poking or rubbing, so you can even sleep on your side without discomfort.
- [Immersive Stereo Sound with TOZO OrigX Technology] TOZO OrigX tuning delivers clear vocals, balanced mids, and natural stereo sound for music, podcasts, and videos.
- [Long Battery Life for Daily Use] Get up to 7 hours of playtime on a single charge, with up to 32 hours total using the charging case—ideal for workdays, commuting, and extended listening sessions.
- [Bluetooth 5.3 & Stable Connection] Bluetooth 5.3 provides fast pairing, stable wireless performance, and reduced dropouts as you move around home or office.
- [Deep Bass with Clear Vocals] High-performance drivers produce punchy bass while keeping vocals clean and detailed for everyday listening.
There are two separate credentials in this arrangement:
| Value | What it identifies | Where it is used |
|---|---|---|
| Bot API token | The Telegram bot that Hermes controls | TELEGRAM_BOT_TOKEN |
| Numeric Telegram user ID | The human account allowed to use the bot | TELEGRAM_ALLOWED_USERS |
Do not substitute your Telegram @username for the numeric ID. Usernames can change; the numeric ID is the value the allowlist expects.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
Step 1: Create the Telegram bot in BotFather
- Open Telegram and start a chat with @BotFather.
- Send
/newbot. - Enter a display name when BotFather asks for one. This is the readable name shown in chats.
- Enter a unique username. Telegram requires bot usernames to end in
bot, for examplemy-hermes-assistant_bot. - Copy the API token BotFather returns. It has a numeric section, a colon, and a random string.
Store the token in a password manager or another protected secret store. Do not paste it into a public issue, commit it to a repository, or include it in screenshots. Anyone with a valid token can operate the bot through Telegram’s API.
If the username you want is unavailable
Bot usernames are globally unique. Change the username while keeping the required bot ending. The display name and username are separate, so you can keep the display name you prefer while trying another username.
Step 2: Find your numeric Telegram user ID
- In Telegram, open a conversation with @userinfobot.
- Send a message such as
/startif the account requests one. - Copy the numeric user ID it reports.
Use the number exactly as returned. Do not include the @ sign, your display name, or your Telegram username. If more than one person should be able to use the bot, collect each person’s numeric ID before configuring Hermes.
Step 3: Configure Hermes with the setup wizard
The documented, least error-prone route is the interactive wizard:
Rank #2
- 【IP68 Waterproof Multifunctinal Smart Watch】Torjalph fitness activity tracker smart watch is IP68 waterproof technology ,you can wear it when swimming,handwashing,it's rain-proof which means that you perform multiple exercise modes outside without worrying about sweat or rain corroding your fitness smart watch,and this watch equipped with a 230 mAh large capacity battery magnetic charging ,and this sports activity tracker watch can be used 5-7 days If fully charged.
- 【Larger 1.83'' Full Screen Watch & Multi-dial Selection】1.83 inch full HD color touch screen smart watch for men / women provides excellent 240*284 resolution image quality ,This Bluetooth smart watch offers a better touch experience and remarkable immersion and ,more than 200 watch faces for you to choose from App"Da Fit ", you can change the dial style according to your mood to wear keeping the world on your wrist
- 【Accurate Activity Tracker Smart Watch 】sports watch activity tracker uses sweat and dust resistant breathable silicone strap, our Fitness Tracker Smart Watch for Android iOS Phones supports 12 sports modes,walking,running,bicycle,swimming,badminton,basketball,football,rope skipping. This bluetooth calls smart watch for men women is lightweight and stylish, bringing more convenient and relaxing sports experience while also providing more protection.
- 【Your 24 Hour Personal Daily Health Monitor】Fitness watch for women men full touch screen IP67 waterproof bluetooth smartwatch for Android iOS Phones with heart rate blood pressure monitor multifunction Andriod smart watch with steps counter sleep monitor sports fitness watch, monitoring blood oxygen saturation allows you to understand your physical condition in real time to track fitness progress ,to know your health status in time.
- 【More Functions Bluetooth Call Smart Watch】This fitness activity smart watch full screen for iPhone and Android phones includes a bunch of new features including:The bluetooth smart watch can hang up the phone, receive and display WhatsAPP /Text /Facebook /Twitter /Messenger reminder.Support sedentary reminder, alarm clock, stopwatch, timer,weather information,music control, remote camera control compatible with Android 5.0 and above or iOS 9.0 and above smartphones.
hermes gateway setup
- Run the command from the Hermes installation or profile you intend to use.
- Choose Telegram when the channel list appears.
- Paste the BotFather token.
- Enter the allowed numeric Telegram user ID. For multiple users, provide the IDs in the format requested by the prompt; the resulting configuration uses comma separation.
- Finish the wizard and allow it to write the profile configuration.
The wizard writes the values Hermes needs, reducing the chance of a spelling error in an environment variable or an incorrect configuration path. If you run several Hermes profiles, repeat this process separately for each profile with a different Telegram bot token.
Manual configuration with ~/.hermes/.env
Manual editing is useful for scripted deployments or environments where an interactive wizard is inconvenient. Open the Hermes environment file for the profile:
~/.hermes/.env
Add the two variables below:
TELEGRAM_BOT_TOKEN=your_bot_token_here
TELEGRAM_ALLOWED_USERS=123456789
Replace your_bot_token_here with the complete token from BotFather and replace 123456789 with your numeric Telegram user ID. For multiple users, separate IDs with commas:
TELEGRAM_ALLOWED_USERS=123456789,987654321
Keep the token on one line and avoid adding quotation marks unless your Hermes installation specifically documents them. Save the file, restrict access to the account that runs Hermes, and restart the gateway after any change.
The Tool Desk
Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →Wizard or manual file: which route should you choose?
| Route | Best for | Important detail |
|---|---|---|
hermes gateway setup |
Most first-time installations | Guides you through Telegram selection, token entry, and allowed IDs. |
~/.hermes/.env |
Automation, scripted setup, or non-interactive environments | Variable names and comma-separated IDs must be entered exactly. |
Step 4: Test the gateway in the foreground
Before installing a background service, run Hermes interactively:
hermes gateway
- Leave the command running in the terminal.
- Open Telegram and open the bot you created.
- Send a simple message, such as
hello. - Confirm that Hermes receives the message and returns a response.
- Press
Ctrl+Cin the terminal to stop the test process.
This test separates configuration problems from service-management problems. If the bot does not respond while the gateway is in the foreground, installing a service will not fix the underlying token, allowlist, or profile issue.
Rank #3
- [Low Noise High Fidelity] New bee guitar cord with 22AWG oxygen-free-copper center conductors provides enhanced signal transfer, the PVC insulation material and the high-density stranded copper double shield provide noise rejection for quiet operation
- [Ideal for Choice] New bee 1/4 straight and right angle metal connectors, ensures a secure connection in any instrument, pedal, or amp jack. L shape great fro on stage guitar stands
- [Wide Compatible] Suitable for mixer, power amplifier, microphone, effector, decoder, equalizer, electoronic organ, electric guitar, electric bass and other electronic equipments. Widely used in the installation of smart home, karaoke speaker, professional stage audio, etc
- [Easy Disassemble] Making incidental repairs quick and easy! Very nice, flexible cable
- [Dont Hesite to Order] 24 hours customer services and professional technology team are standing by
Step 5: Run Hermes continuously
Once the foreground test succeeds, install the gateway as a persistent service:
hermes gateway install
On Linux, this creates a user-level systemd service by default. On macOS, it creates a launchd service. A user-level service normally runs under your account rather than as a machine-wide daemon.
Quick wins for a faster PC:
Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Repair Windows errors before they cause bigger problemsFix Now →For a Linux service that starts at boot for the system, use:
hermes gateway install --system
Use the system-wide option only when that operating model fits your machine. Whichever mode you choose, make sure the service runs the same Hermes profile whose .env file contains the Telegram settings. A common mistake is testing one profile in a shell and installing a service that points at another.
Foreground testing versus a persistent service
| Mode | Command | When to use it |
|---|---|---|
| Foreground | hermes gateway |
Initial setup, diagnostics, and watching live errors. |
| User service | hermes gateway install |
Normal background operation under your user account. |
| System service on Linux | hermes gateway install --system |
Boot-time machine service when system-level management is required. |
Optional QR setup in the dashboard or desktop app
If your Hermes dashboard or desktop application exposes the Telegram QR flow, it can automate the same setup. The flow creates the bot, detects your Telegram user ID, writes TELEGRAM_BOT_TOKEN and TELEGRAM_ALLOWED_USERS to the profile’s .env file, and restarts the gateway.
Use the QR route when you want the graphical setup to handle discovery and configuration. After it completes, send a test message from the approved Telegram account and verify that the gateway is running the intended profile.
Do these 3 things before closing this tab:
1Clear out junk files and repair common Windows errors2Fix the driver behind crashes, sound loss and screen glitches3Repair Windows errors before they cause bigger problemsRank #4
- Digital Family Calendar: BSIMB digital calendar wall touch screen puts an end to your chaotic life. Designed for busy families, the digital calendar keeps you organised and in step with your family. Assign different colours and tasks to each family member to make family scheduling easier and more intuitive.
- Easy Setup and Auto-Sync: Plug in, connect to WLAN and auto-syn your electric calendar in minutes. Digital wall calendar compatible with Google calendar, iCloud calendar, Outlook calendar, Cozi calendar and Yahoo calendar. Add events directly on the device or through the ecalendar app. Electronic calendar stays current whether you're at work or traveling—no manual updates needed.
- All-In-One Home Assistant: Smart calendar builds habits and encourage independence with personalised chores. Display daily meal plan to reduce the daily ‘What's for dinner?’ stress. To-do lists keep track of everything you want. Turning chores into valuable achievements with stars and rewards, making life easier and more enjoyable.
- Manage Anytime Anywhere: BSIMB electronic calendar for family stay connected with the powerful ecalendar app. Access and manage your digital wall calendar anytime, anywhere with free features like stars & rewards, photo screensaver, chore charts, meals plans, to-do lists etc. Electronic planner paid features like Magic Import tailor advanced tools for users with special needs.
- Stay in Touch with Loved Ones: Share photos or videos from your phone to electronic wall calendar with app, instantly update your life moment, and keep in touch with your family, especially those who are far away; you can also surprise your smart calendar digital wall by sending him a wish card; it's also great for keeping tech-illiterate elders in touch with the youngsters.
Optional webhook mode
Hermes can be configured for Telegram webhook delivery instead of the default gateway behavior. Webhook mode uses:
TELEGRAM_WEBHOOK_URL=your_webhook_url
TELEGRAM_WEBHOOK_SECRET=your_webhook_secret
TELEGRAM_WEBHOOK_SECRET is required when webhook mode is enabled. The exact reverse-proxy, certificate, and hosting arrangement depends on your deployment, so confirm the current Hermes webhook requirements before switching from the standard setup. If you do not specifically need webhook delivery, use the normal gateway setup first; it is easier to validate locally.
Security: protect the token and enforce the allowlist
Why the allowlist is not optional
The bot token authenticates Hermes to Telegram. It does not identify the person sending a message. Without TELEGRAM_ALLOWED_USERS, an unintended Telegram account may be able to reach your agent, depending on the active Hermes configuration. Restrict access to the numeric IDs that should control the profile.
What to do if the token leaks
- Open @BotFather in Telegram.
- Use the
/revokecommand for the affected bot. - Copy the replacement token BotFather issues.
- Update
TELEGRAM_BOT_TOKENthroughhermes gateway setupor in~/.hermes/.env. - Restart or reinstall the gateway service so it loads the replacement.
- Send a test message from an allowed account.
Revoking the token invalidates the leaked credential. It does not replace the need for an allowlist.
Protect the environment file
- Do not commit
~/.hermes/.envto source control. - Do not paste the token into chat, support tickets, or shell history that others can read.
- Limit file access to the account that runs Hermes.
- When copying configuration between machines, transfer the secret through a protected channel.
Multiple Hermes profiles
Use one Telegram bot token per running Hermes profile. If you operate several profiles, create a separate bot for each profile and run one gateway per profile. Do not reuse one token across gateways that are running at the same time; competing gateways can produce unpredictable message handling and make it unclear which profile receives a conversation.
Give each bot a distinct display name and username so you can identify the destination in Telegram. Configure a separate TELEGRAM_ALLOWED_USERS value for each profile, even if the same human account is allowed to use all of them.
Best Value
Troubleshooting checklist
The setup wizard rejects the token
- Copy the entire BotFather token, including the numeric prefix, colon, and random suffix.
- Check for an accidental leading or trailing space when pasting.
- Confirm that you are configuring the profile where you will run the gateway.
- If the token was exposed or revoked, request a replacement through BotFather and update the configuration.
The bot receives no reply
- Stop any background gateway temporarily so only one test process is active.
- Run
hermes gatewayin the foreground. - Send a message from the Telegram account whose numeric ID is in
TELEGRAM_ALLOWED_USERS. - Watch the terminal for configuration or connection errors.
- Confirm that the bot username is the one created for this token.
If the foreground process works but the service does not, inspect the service’s profile and environment rather than changing the Telegram bot.
One user works but another is blocked
Ask the second user to obtain their own numeric ID from @userinfobot, then add it to the comma-separated allowlist. Re-enter the complete value and restart the gateway. An @username will not substitute for the numeric ID.
The service starts but uses old settings
Environment changes are read when the gateway starts. Stop and restart the service after editing ~/.hermes/.env. If you installed a system service, verify that it points to the same Hermes profile and environment file used during your successful foreground test.
Several gateways answer the same bot
Stop the duplicate gateways and assign a separate bot token to each Hermes profile. A single token should not be reused across running gateways.
Recommended setup sequence
- Create a bot with
/newbotin @BotFather and save the token securely. - Get your numeric Telegram user ID from @userinfobot.
- Run
hermes gateway setup, select Telegram, and enter the token and allowed ID. - Start
hermes gatewayin the foreground. - Send a Telegram message and confirm a response.
- Stop the test with
Ctrl+C. - Install the persistent service with
hermes gateway install, or use--systemfor a Linux boot-time system service. - Retest after the service starts.
This order gives you a known-good token, a verified sender ID, a validated foreground connection, and only then a background service.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.
Recommended Free Tools




