From claude-sentinel
Set up the Telegram channel for Claude Sentinel — save the bot token, review access policy, and prepare the gateway environment. Use when the user pastes a Telegram bot token, asks to configure Telegram, asks "how do I set this up", or wants to check channel status. VPS-aware version with headless guidance.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-sentinel:configureThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Writes the bot token to `~/.claude/channels/telegram/.env` AND
Writes the bot token to ~/.claude/channels/telegram/.env AND
~/.claude/channels/telegram/gateway.env (both needed — .env for the MCP server,
gateway.env for the systemd service). Orients the user on access policy.
Arguments passed: $ARGUMENTS
Read state files and give the user a complete picture:
Token — check ~/.claude/channels/telegram/.env for TELEGRAM_BOT_TOKEN.
Show set/not-set; if set, show first 10 chars masked (123456789:...).
Gateway env — check ~/.claude/channels/telegram/gateway.env exists and
matches. Warn if missing or mismatched.
Access — read ~/.claude/channels/telegram/access.json (missing file =
defaults: dmPolicy: "pairing", empty allowlist). Show:
Gateway status — check if telegram-gateway.service is running:
systemctl --user is-active telegram-gateway.service 2>/dev/null
What next — concrete next step based on state:
/sentinel:configure <token>."/sentinel:access pair <code>."/sentinel:deploy to install the
persistent gateway."Push toward lockdown. Once IDs are captured via pairing, suggest switching to
allowlist policy. Pairing is temporary — allowlist is the goal.
<token> — save it$ARGUMENTS as the token (trim whitespace). BotFather tokens look like
123456789:AAH... — numeric prefix, colon, long string.mkdir -p ~/.claude/channels/telegram.env if present; update/add the TELEGRAM_BOT_TOKEN= line,
preserve other keys (like OPENAI_API_KEY). Write back, no quotes around value.gateway.env with same token (separate file for systemd EnvironmentFile).chmod 600 both files — the token is a credential.clear — remove the tokenDelete the TELEGRAM_BOT_TOKEN= line from .env and delete gateway.env.
.env once at boot. Token changes need a session restart.access.json is re-read on every inbound message — policy changes take effect
immediately./sentinel:deploy if the gateway isn't installed yet.npx claudepluginhub southlab-ai/claude-plugin-marketplace --plugin claude-sentinelSets up a Telegram bot channel: saves the bot token, reviews access policy (pairing vs. allowlist), and guides toward a locked-down configuration.
Guides Telegram bot setup for Orchestrator integration: BotFather bot creation, bot_token collection, credentials config in YAML, and long-polling test. Invoke via /connect-telegram.
Adds Telegram channel support to ClaudeClaw, with code generation, bot setup, and environment configuration. Supports control-only, passive, or full messaging modes.