AI-Telegram-Bridge
Remote dispatcher for local AI coding agents
An asynchronous bridge that connects a local AI coding agent CLI both to the terminal and to a Telegram bot, so prompts, reasoning and commands can be followed and steered from a phone or from the console.
Source code github.com/frr0/AI-Telegram-bot
Key features
- Bidirectional, real-time streaming of agent output to Telegram and to an ANSI terminal.
- Multiple-choice questions from the agent become inline Telegram buttons and numbered choices in the terminal.
- Quick actions (/status, /new, /stop, /history, /models), live model switching and persistent history.
- tmux integration and single-instance enforcement through file-descriptor locking.
Tech stack
- Python
- asyncio
- aiohttp
- Telegram Bot API
- subprocess IPC
- tmux