hermes-telegram-setup
Configure Telegram bot messaging channel for Hermes Agent, especially useful when behind Chinese firewall with SOCKS proxy
от wu-xiaochen★ 18 звёзд на GitHub
Установить hermes-telegram-setup в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Hermes Agent + Telegram Setup (Chinese Firewall / SOCKS Proxy)
Prerequisites
- Telegram Bot Token from @BotFather
- Your Telegram User ID from @userinfobot
- VPN with SOCKS proxy (typically 127.0.0.1:7897)
Step 1: Get Credentials
- Message @BotFather →
/newbot→ copy token (format:123456789:ABC...) - Message @userinfobot → copy your User ID (numeric)
Step 2: Configure Hermes
# Set bot token
hermes config set TELEGRAM_BOT_TOKEN "your_token_here"
# Set allowed user (your User ID)
hermes config set TELEGRAM_ALLOWED_USERS your_user_id
# Approvals must be auto (not manual) or messages get blocked
# Check: grep "approvals" ~/.hermes/config.yaml → mode: auto
Step 3: Install SOCKS Support (Required for Chinese firewall)
uv pip install httpx[socks] --python ~/.hermes/hermes-agent/venv/bin/python
Step 4: Restart Gateway
hermes gateway restart
Step 5: Verify Connection
tail -20 ~/.hermes/logs/gateway.log
# Look for: [Telegram] Connected to Telegram (polling mode)
Sending Files via Telegram API (CLI)
When sending photos/files via curl to Telegram API, you MUST use the proxy:
HTTP_PROXY=socks5://127.0.0.1:7897 HTTPS_PROXY=socks5://127.0.0.1:7897 \
curl -s --max-time 60 -X POST \
"https://api.telegram.org/bot<TOKEN>/sendPhoto" \
-F "chat_id=your_user_id" \
-F "photo=@/path/to/image.png"
Troubleshooting
curl still times out: Your VPN's SOCKS proxy port may differ — check with:
networksetup -getsocksfirewallproxy Wi-Fi
# Returns: Server: 127.0.0.1, Port: XXXX
Telegram connect fails repeatedly: Check ~/.hermes/logs/gateway.log — if you see NetworkError: httpx.ConnectError, the SOCKS package is missing (see Step 3)
Messages not replied to: Check approvals.mode in config — must be auto, not manual
WhatsApp bridge crashes constantly: Known issue with WhatsApp Bridge (Baileys). Use Telegram instead — it's more stable behind Chinese firewall.
Key Differences from OpenClaw
- Config file:
~/.hermes/config.yaml(NOTopenclaw.json) - Secrets/Tokens:
~/.hermes/.env(NOT in config.yaml) - Messaging channels: configured via
.envandconfig.yaml, not a separate setup wizard
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл hermes-telegram-setup?
Configure Telegram bot messaging channel for Hermes Agent, especially useful when behind Chinese firewall with SOCKS proxy
Как установить скилл hermes-telegram-setup?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл hermes-telegram-setup запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…