一键导入
hermes-gateway-onboarding
Class-level workflow for configuring Hermes Agent messaging gateway platforms, especially QR/managed onboarding flows such as Telegram.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Class-level workflow for configuring Hermes Agent messaging gateway platforms, especially QR/managed onboarding flows such as Telegram.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Set up AgentCard MCP for Hermes.
Manage prepaid virtual Visa cards for AI agents with AgentCard. Create cards, check balances, view credentials, pay for things, shop and check out at merchants like DoorDash, close cards, manage plans, and get support. Use when the user wants to create or manage virtual payment cards for AI agents, pay for online purchases, shop on their behalf, set up agent spending, or configure card billing and limits.
Use when diagnosing, comparing, or tuning an AI agent's context window, token budget, output reserve, automatic compaction threshold, or provider-specific context cap. Separates model capability from route limits and client bookkeeping, verifies live metadata before editing config, and prevents unsafe fake context-length overrides.
Use when choosing Hermes vs Claude Code / Codex / Grok Build for coding work, wiring multi-CLI specialist setup, or diagnosing specialist auth/availability on Dewey.
Use Orgo cloud computers via CLI and MCP.
Same-box Orgo Desktop API computer use via loopback :8080 (prefer over cloud MCP / CUA when Hermes is on the VM). Model tools, CLI, plugin enable path.
| name | hermes-gateway-onboarding |
| description | Class-level workflow for configuring Hermes Agent messaging gateway platforms, especially QR/managed onboarding flows such as Telegram. |
| version | 1.0.0 |
| author | Hermes Agent |
| license | MIT |
| platforms | ["linux","macos"] |
| metadata | {"hermes":{"tags":["hermes","gateway","messaging","telegram","onboarding","qr","bot"],"related_skills":["hermes-agent"]}} |
| created_by | agent |
Use this skill when setting up, repairing, or validating Hermes Agent messaging gateway integrations: Telegram, Discord, Slack, WhatsApp, Signal, Email, SMS, Matrix, Teams, or similar gateway-backed surfaces. It is especially relevant when the user wants a scannable/phone-friendly onboarding flow rather than manual token copy-paste.
Authoritative source: official Hermes docs and the installed Hermes CLI/source for the current machine. The hermes-agent skill remains the broad protected reference; this skill captures operational patterns learned from real gateway setup work.
A gateway setup is not complete when config is written. It is complete only when:
~/.hermes/.env or the active profile env file.hermes gateway status or the running gateway logs.Load current Hermes context first.
Identify the active profile.
~/.hermes/config.yaml and ~/.hermes/.env.~/.hermes/profiles/<name>/.Determine whether the user wants automatic or manual onboarding.
Configure secrets in .env, not config.yaml.
.env.config.yaml under the platform's supported section.Configure access control.
TELEGRAM_ALLOWED_USERS, platform/group allowlists, pairing, or GATEWAY_ALLOW_ALL_USERS=true is configured.TELEGRAM_HOME_CHANNEL to the owner DM chat/user ID if the user wants cron and notifications routed to Telegram.Start or restart the gateway.
hermes gateway install / hermes gateway start / hermes gateway restart.hermes gateway run --accept-hooks under a tracked background process or a deliberate detached process with logs.Validate.
Hermes includes a managed Telegram onboarding client in hermes_cli.telegram_managed_bot. It can create a user-owned bot via Telegram's managed bot flow without manual BotFather token copy-paste.
Operational sequence:
Dewey.qr_payload as terminal QR and provide the fallback deep link.TELEGRAM_BOT_TOKENTELEGRAM_BOT_USERNAME when returnedTELEGRAM_ALLOWED_USERS from owner_user_id when returnedTELEGRAM_HOME_CHANNEL from the same owner user ID when appropriateSee references/telegram-managed-qr-onboarding.md for poller pattern, desktop QR poster, expiry refresh, and BotFather manual fallback.
Managed QR is good for desk setup, fragile on live sales calls:
setup.hermes-agent.nousresearch.com often expire in ~5 minutes (API returns 410 / status: expired)./start does nothing, .env has no TELEGRAM_BOT_TOKEN, gateway logs No messaging platforms enabled..env, getMe OK (username only, never print token), gateway process up, logs show telegram connected, and ideally one real inbound/outbound message.Preferred live-call path when QR stalls: BotFather manual:
@BotFather → /newbot → display name + username ending in botconfigure_telegram_manual.sh or save_env_value('TELEGRAM_BOT_TOKEN', ...)TELEGRAM_ALLOWED_USERS + TELEGRAM_HOME_CHANNEL (owner numeric ID from managed result or @userinfobot)set -a; source ~/.hermes/.env; set +a then hermes gateway run --accept-hooks (or service restart)getMe + customer DM hiKeep a Refresh QR regenerator on the desktop for call desks; always show expiry time + deep link fallback.
.env, and start/restart the gateway.pairing_id.bot.MEDIA: attachment tags; state file paths plainly.Use these as applicable:
hermes gateway status
hermes gateway run --accept-hooks
hermes gateway restart
grep -iE 'telegram|gateway|error|started|connected' ~/.hermes/logs/gateway*.log | tail -80
For Telegram token API verification, avoid printing the token. Use a script that reads .env, calls getMe, and prints only non-secret bot metadata.
If the customer says Telegram keeps disconnecting but:
getMe returns ok:truegetWebhookInfo.pending_update_count > 0 (or logs have not advanced for hours)…then transport is fine and a single hung agent turn is blocking the poller. Look for Stream stale for 300s, huge context token counts, and skill_manage/memory failure loops in ~/.hermes/logs/.
Do not stop at process restart. Force-end the hung session, clear that chat’s routing in gateway_routing (primary) and sessions.json (mirror), recycle the gateway, and tighten compression / model.context_length. Full operator recipe: skill managed-hermes-on-orgo → references/wedged-gateway-messaging-turn.md (and references/customer-hermes-reliability-remediation.md).
From operator hosts that block the string hermes gateway restart, kill by PID on the remote box and start with gateway run --accept-hooks --replace via subprocess.Popen(..., start_new_session=True).