Get Telegram notifications when Claude Code finishes a task or needs attention. Know when to come back and assign new work.
When Claude finishes a task (Stop event):
✅ my-project — task finished
┌─────────────────────────────────────────────────┐
│ I've implemented the authentication module and │
│ added tests. All 12 tests pass. │
└─────────────────────────────────────────────────┘
When Claude needs attention (Notification event):
🔔 my-project — notification
Claude is waiting for permission to run: npm test
- Open Telegram and message @BotFather
- Send
/newbotand follow the prompts - Copy the bot token (looks like
123456:ABC-DEF1234...)
- Message your new bot (send anything)
- Visit
https://api.telegram.org/bot<YOUR_TOKEN>/getUpdates - Find
"chat":{"id":in the response — that number is your chat ID
Option A: Config file (recommended)
mkdir -p ~/.config/claude-notify-telegram
cat > ~/.config/claude-notify-telegram/config << 'EOF'
TELEGRAM_BOT_TOKEN="your-bot-token"
TELEGRAM_CHAT_ID="your-chat-id"
EOF
chmod 600 ~/.config/claude-notify-telegram/configOption B: Environment variables
Add to your shell profile (~/.bashrc, ~/.zshrc, etc.):
export CLAUDE_NOTIFY_TG_TOKEN="your-bot-token"
export CLAUDE_NOTIFY_TG_CHAT_ID="your-chat-id"The plugin-specific CLAUDE_NOTIFY_TG_* names avoid conflicts if you already use TELEGRAM_BOT_TOKEN for something else. The generic names (TELEGRAM_BOT_TOKEN, TELEGRAM_CHAT_ID) also work as a fallback.
From a local path:
claude plugin marketplace add /path/to/claude-notify-telegram
claude plugin install claude-notify-telegramOr from a git URL:
claude plugin marketplace add https://github.com/user/claude-notify-telegram
claude plugin install claude-notify-telegramjq— install withapt install jq/brew install jqcurl— pre-installed on most systems
The plugin registers hooks for Claude Code's Stop and Notification events. When triggered, it extracts the relevant message and project name, then sends a formatted message to your Telegram bot.
If no credentials are configured, the plugin silently does nothing. Notification failures never block Claude.