hermes-messaging-gateways
Skill0 starsChanged 57 days agoMITView on GitHub
Set up Hermes Telegram bots and multiplex profile gateways.
- Reads credentials
In this repository156 other files it gives its agents.
- AGENTS.mdAGENTS.md
- aes-agentSkill
- aes-capabilitiesSkill
- aes-contractSkill
- aes-docsSkill
- aes-lint-arwakySkill
- aes-migrationSkill
- aes-rootSkill
- aes-surfaceSkill
- aes-taxonomySkill
- aes-testing-suiteSkill
- aes-utilitySkill
- omnirouteSkill
- xai-apiSkill
- android-emulator-linux-gpsSkill
- chromium-profile-provisioningSkill
- flatpak-chromium-automationSkill
- qwen-web-arwaky-devSkill
- qwen-webSkill
- agent-tool-collectionSkill
- coding-agent-delegationSkill
- computer-useSkill
- hermes-agentSkill
- hermes-home-cleanupSkill
- merge-reconcilerSkill
- codegraphSkill
- cleanup-consolidateSkill
- codacy-analysis-cliSkill
- codacy-cloud-cliSkill
- codacy-code-reviewSkill
- codebase-inspectionSkill
- coderabbit-reviewSkill
- configure-codacy-cloudSkill
- configure-codacySkill
- fix-bypassSkill
- fix-markdown-inline-htmlSkill
- harness-source-auditSkill
- no-mistakesSkill
- ponytail-auditSkill
- ponytail-debtSkill
- ponytail-gainSkill
- ponytail-helpSkill
- ponytail-reviewSkill
- ponytailSkill
- report-linter-false-positiveSkill
- setup-coverageSkill
- architecture-diagramSkill
- ascii-artSkill
- ascii-videoSkill
- baoyu-infographicSkill
- comfyuiSkill
- excalidrawSkill
- humanizerSkill
- manim-videoSkill
- no-ai-slopSkill
- p5jsSkill
- popular-web-designsSkill
- pretextSkill
- sketchSkill
- songwriting-and-ai-musicSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 17
Verify: hermes gateway status, then DM each bot.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Hermes Messaging Gateways (multi-bot / multiplex)
Companion to the hermes-agent hub skill (bundled — see it for general gateway commands). This skill holds source-verified internals for wiring several Telegram bots to several Hermes profiles on one machine, gathered by reading gateway/config.py, gateway/run.py, and plugin adapters in the installed repo (~/.hermes/hermes-agent/).
Standard flow
- Per-profile token goes in
<profile>/.env:TELEGRAM_BOT_TOKEN=...(+TELEGRAM_ALLOWED_USERS=<id>). Secrets live ONLY in.env; enablement lives in config. - Give each secondary profile its own provider auth:
hermes -p <name> auth add nous --type oauth— it auto-detects~/.hermes/shared/nous_auth.jsonand offers one-tap import instead of a fresh device-code login. - One process for all bots:
hermes config set gateway.multiplex_profiles trueon the DEFAULT profile, thenhermes gateway restart. Do NOT runhermes gateway startfor secondary profiles — hard error while the multiplexer runs. - Verify:
hermes gateway status, then DM each bot; unknown senders get a pairing code (hermes pairing approve telegram <CODE>).
A profile is only reachable if it declares its channel
Token in .env gets the adapter connected; delivery needs the block below in that
profile's config.yaml (copy it into every profile that should receive DMs):
platforms:
telegram:
enabled: true
home_channel:
platform: telegram
chat_id: '1060253950'
name: Raka Arwaky
thread_id: '41454'
user_id: '1060253950'
```text
Listing a platform under `platforms:` alone is NOT enough. This block lives here and
nowhere else in the pack — systemd/persistence references point back to it.
## Pitfalls
- Merely putting `TELEGRAM_BOT_TOKEN` in `.env` auto-enables the platform (`_apply_env_overrides`) — but a platform enabled with NO resolvable token can queue an infinite reconnect loop (multiplex skips empty-token primaries instead, #64674).
- Secondary profiles must NOT enable port-binding platforms under multiplex → whole profile skipped (`SecondaryPortBindingConfigError`).
- Open DM/group policy requires explicit allow-all opt-in (`GATEWAY_ALLOW_ALL_USERS=true` etc.) or startup aborts.
- Two profiles polling the same bot token = credential-collision refusal at startup.
- `gateway.multiplex_profiles` is read from top-level OR nested `gateway:` key; env `GATEWAY_MULTIPLEX_PROFILES` overrides both. Optional `gateway.multiplex_profile_allowlist` restricts served profiles (default serves all).
- Cron under multiplex: default gateway ticks every served profile's cron store (only when multiplex on).
## References
- `references/systemd-always-on.md` — **load when the user wants the gateway to survive a
crash, an SSH logout, or a PC reboot** ("make gateway always on"). Unit facts, the
`hermes gateway install` → `systemctl --user enable` procedure, the stale-want-symlink
fix, `loginctl enable-linger`, and the verify commands.
- `references/multi-bot-telegram-run.md` — verified end-to-end run: 4 Telegram bots → 4
profiles via multiplex, with the exact log lines that prove routing.
- `references/multiplex-late-profile-adoption.md` — a profile added after the multiplexer
started answers nothing, and its per-profile unit exits 78/CONFIG. Diagnosis + fix.
- `references/multiplex-internals.md` — code-path walkthrough (secret scoping, token resolution, handler stamping) with file:line pointers from v0.20.5.Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

