Telegram to Claude Code
Drive a local Claude Code session from Telegram, with voice memos
Typeproduct
Statusshipped
Updated2026-05-24
SourcePublic
What it is
A small Python bot that turns Telegram chats into persistent Claude Code sessions pointed at a directory on your own machine. One whitelisted Telegram user can send text or voice memos from a phone and get work done on the laptop.
The problem
Coding agents are tied to the desk; this lets you run them from a phone without exposing anything beyond Claude Code itself.
How it works
- bot.py receives Telegram messages and runs claude -p for each, resuming a separate session per chat
- Only the configured Telegram user ID gets replies; everyone else gets silence
- Optional local whisper.cpp transcribes voice memos before they reach Claude
- A setup wizard writes a chmod 600 .env; documented persistence via launchd and equivalents
Stack
PythonuvTelegram Bot APIClaude Codewhisper.cpp
Disciplines
For your business
Secure mobile and chat-app front ends for a client's internal coding or ops agents.