Claude Code Telegram Hooks
Description
Get notifications to Telegram from any Claude Code setup (CLI, Desktop, Cursor etc)
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
Claude Code Telegram Hooks
Control Claude Code from Telegram. Get notifications when Claude needs your attention — plans to approve and task completions.
Features
- IDE-first interaction — plans show in IDE immediately; if you don't respond within a configurable delay, a notification is sent to Telegram
- Completion notifications — get a Telegram message when Claude finishes a task, with any generated
.mdfiles attached - Status line — see context window usage %, 5-hour API limit %, and time until reset right in your terminal
Example status line:
skills · 12% ctx · 22% limit · 3h46m before reset
**Note:** Tested on macOS only. Linux may work (uses `os.fork()`, `jq`, `curl`) but is untested. Windows is not supported.
Prerequisites
- macOS (uses
os.fork()for background notifications and Keychain for OAuth in status line) - Python 3 (pre-installed on macOS)
- jq —
brew install jq - Telegram bot — create one via @BotFather
- Claude Code with hooks support
Installation
1. Create your Telegram bot
- Open @BotFather in Telegram
- Send
/newbot, follow the prompts - Copy the bot token
- Send any message to your new bot
- Get your chat ID:
curl -s "https://api.telegram.org/bot/getUpdates" | jq '.result[-1].message.chat.id'
2. Copy scripts
# Clone the repo
git clone https://github.com/yourusername/claude-code-telegram-hooks.git
cd claude-code-telegram-hooks
# Copy hooks
cp hooks/* ~/.claude/hooks/
chmod +x ~/.claude/hooks/session-marker.sh ~/.claude/hooks/telegram-notify.sh ~/.claude/hooks/telegram_interactive.py
# Copy status line
mkdir -p ~/.claude/utils
cp utils/statusline.sh ~/.claude/utils/
chmod +x ~/.claude/utils/statusline.sh
3. Configure credentials
# Create .env file (never commit this!)
cat > ~/.claude/.env << 'EOF'
TELEGRAM_BOT_TOKEN=your_bot_token_here
TELEGRAM_CHAT_I
Related Skills
Awesome Go
A curated list of awesome Go frameworks, libraries and software
Development next.js
| The React Framework | 138360 | 1503 | 1 |
Development sharing-skills
skill for guidance.
Development root-cause-tracing
Use when errors occur deep in execution and you need to trace back to find the original trigger.
Development Template Skill
Minimal skeleton for a new skill project structure.
Development Third-party Notices
THE FOLLOWING SETS FORTH ATTRIBUTION NOTICES FOR THIRD PARTY SOFTWARE THAT MAY BE CONTAINED IN PORTIONS OF THI
Development