hermes-gateway-setup
Set up Hermes Telegram gateway and verify the bot is live.
Skill by holmart
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/holmart-hermes-gateway-setup
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/hermes-gateway-setup
What's inside
- Skill name
hermes-gateway-setup- Description
- Set up Hermes Telegram gateway and verify the bot is live.
- License
- MIT
- Instructions
- 51 lines in SKILL.md · view on GitHub
Before installing
- Instructions call the network
Files (2)
- SKILL.md
- telegram-verification.md · references/
SKILL.md (first lines)
# Hermes Messaging Gateway Setup
Use this when the user wants Hermes reachable from a chat app — most often Telegram, but the gateway also drives Discord, WhatsApp, Slack, and Signal. The gateway is Hermes's own long-polling/relay service (`hermes gateway ...`), distinct from the Nous Portal relay.
## When this applies
- "Can you set up Telegram / Discord / WhatsApp for Hermes?"
- User pastes a bot token or an enrollment code.
- Gateway is "not running" (`hermes gateway status` → ✗).
## The Telegram direct-bot path (most common, what usually works)
This path needs NO Nous Portal relay and NO connector URL — just a BotFather token.
1. **Create the bot.** In Telegram, message @BotFather → `/newbot` → name + username (must end in `bot`, e.g. `sifagent_bot`). BotFather returns a token shaped exactly like `<digits>:<long alphanumeric>`, e.g. `8461610142:AAFRWFmgboedkZksgb4rY10LtT6fJoInZBA`. That shape is your signal it's a real bot token.
2. **Get the user's ID** (so only they can talk to the bot). Message @userinfobot → it replies with a numeric ID, e.g. `8056202583`.
3. **Write the secrets to `~/.hermes/.env`** (never config.yaml — secrets belong in .env). The .env already ships a commented template; uncomment and fill:
```
TELEGRAM_BOT_TOKEN=8461610142:AAFRWFmgboedkZksgb4rY10LtT6fJoInZBA
TELEGRAM_ALLOWED_USERS=8056202583
```
Optional, recommended for cron delivery: `TELEGRAM_HOME_CHANNEL=8056202583`.
Edit via `sed -i` or a heredoc; the .env is protected from direct *reads* but the terminal can still write it.
4. **Run the gateway:**
- Try foreground first: `hermes gateway run` (Ctrl+C to stop).
- Make it permanent: `hermes gateway install` (user service) or `sudo hermes gateway install --system` (boot-time).
## VERIFY IT ACTUALLY WORKS — do not trust the logs
The gateway's Telegram adapter logs `Discovering Telegram API fallback IPs via DNS-over-HTTPS…` then `Connecting to Telegram (attempt 1/8)…` and then goes **silent** — it does NOT print a "Connected" line on success. A live, working gateway looks identical in the log to one still handshaking. **Silence is not failure here.** Confirm externally instead:
```bash
TOKEN=8461610142:AAFRWFmgboedkZksgb4rY10LtT6fJoInZBA
# 1) token valid + bot identity:
curl -s "https://api.telegram.org/bot${TOKEN}/getMe"
# expect: {"ok":true,"result":{"id":...,"is_bot":true,"username":"SifAgentBot",...}}
# 2) bot can deliver to the user (end-to-end proof):
curl -s -X POST "https://api.telegram.org/bot${TOKEN}/sendMessage" \
-d chat_id=8056202583 -d text="Hermes connected"
# expect: {"ok":true,"result":{"message_id":...,"chat":{"id":8056202583,...}}
```
If `getMe` returns HTTP 200 with `is_bot:true`, the token is valid and the network reaches Telegram. If `sendMessage` returns `ok:true` to the user's chat_id, the bot is live — tell the user to open the chat and reply. See `references/telegram-verification.md` for the full recipe and example output.
## Pitfalls
- **Stale systemd instance.** A previously installed gateway keeps running as a service; a new `hermes gateway run` exits with `✗ Another gateway instance is already running (PID X)`. Fix: `hermes gateway stop` then run again, or just `hermes gateway run --replace` to auto-replace. Kill leftovers with `pkill -f "hermes gateway"`.
- **Token-shape confusion (bot token vs relay enrollment token).** A short code like `TYDGLVC2` is NOT a BotFather token — it's a single-use **relay enrollment token** for the Nous Portal relay. The relay path needs `hermes gateway enroll --token <code> --connector-url <wss://.../relay>` AND an active `hermes portal` login (`hermes portal info` → Auth ✓). It writes `GATEWAY_RELAY_*` creds to .env. Prefer the direct bot-token path above unless the user explicitly gives you a relay code + connector URL.
- **Don't wait on "Connected".** See verification above — the log stays at "attempt 1/8" even when connected.
- **Write secrets to .env, not config.yaml.** Hard Hermes invariant; a stray indent in config.yaml can break the live gateway.
## Other platforms
Discord/WhatsApp/Slack/Signal use the same `hermes gateway` machinery with their own env keys (see the commented blocks in `~/.hermes/.env`). The verification principle (probe the platform API directly rather than trusting silent gateway logs) applies to all.From holmart/hermesBackup, MIT.
More from holmart/hermesBackup
- 0.523score
hermes-provider-config
holmart
Wire Hermes LLM providers, fallback chain, Telegram gateway.
SkillBFreshness: BClaude Code +9 - 0.520score
aws-support
holmart
Soporte y administracion de infraestructura AWS
SkillBFreshness: BClaude Code +9 - 0.517score
sif-agent-prospecting
holmart
Unified SIF Agent commercial prospecting - lead generation, enrichment, and pipeline management for fumigation companies in Colombia.
SkillBFreshness: BClaude Code +9 - 0.515score
crm-internal-field-enrichment
holmart
Enrich CRM using internal fields for name, phone, email.
SkillBFreshness: BClaude Code +9 - 0.513score
crm-query
holmart
Consultar leads del CRM de SIF Agent — filtrar por ciudad, score, estado, vertical, o texto libre
SkillBFreshness: BClaude Code +9 - 0.511score
rues-data-enrichment
holmart
Enrich CRM with official NIT and razón social from RUES.
SkillBFreshness: BClaude Code +9 - 0.508score
fsm-saas-platform
holmart
Contexto completo de la plataforma FSM SaaS (SifAgent) — arquitectura, módulos, endpoints, flujos, pantallas y reglas de negocio.
SkillBFreshness: BClaude Code +9 - 0.505score
competencia-fumigacion
holmart
Analiza la competencia en el sector de fumigación.
SkillBFreshness: BClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Aug 21, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/holmart/hermesBackup
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from holmart
- 0.523score
hermes-provider-config
holmart
Wire Hermes LLM providers, fallback chain, Telegram gateway.
SkillBFreshness: BClaude Code +9 - 0.520score
aws-support
holmart
Soporte y administracion de infraestructura AWS
SkillBFreshness: BClaude Code +9 - 0.517score
sif-agent-prospecting
holmart
Unified SIF Agent commercial prospecting - lead generation, enrichment, and pipeline management for fumigation companies in Colombia.
SkillBFreshness: BClaude Code +9 - 0.515score
crm-internal-field-enrichment
holmart
Enrich CRM using internal fields for name, phone, email.
SkillBFreshness: BClaude Code +9 - 0.513score
crm-query
holmart
Consultar leads del CRM de SIF Agent — filtrar por ciudad, score, estado, vertical, o texto libre
SkillBFreshness: BClaude Code +9 - 0.511score
rues-data-enrichment
holmart
Enrich CRM with official NIT and razón social from RUES.
SkillBFreshness: BClaude Code +9
Cite this page
hermes-gateway-setup skill. Agent Mart. https://agentmart.dev/skills/holmart-hermes-gateway-setup (last updated 2026-10-24)