Bridge Telegram to Claude Code via tmux. Send messages AND receive responses.
curl -fsSL https://raw.githubusercontent.com/DrHB/lymebridge/main/install.sh | bashThe installer auto-installs jq and tmux via Homebrew if needed (macOS only).
lymebridge setupThis will:
- Ask for your Telegram bot token (get one from @BotFather)
- Wait for you to message your bot
- Auto-detect your chat ID
1. Start Claude Code inside tmux:
tmux new -s claude
claude2. From a separate terminal, start the bridge:
lymebridge bridge claude3. Send messages via Telegram - they appear as input to Claude Code, and Claude's responses are sent back to you!
Walk away from your computer and continue working via Telegram.
Telegram <--> lymebridge <--> Claude Code (in tmux)
- Input:
lymebridge bridgepolls your Telegram bot for messages - Inject: When you send a message, it uses
tmux send-keysto inject it into Claude Code - Capture: It monitors the tmux pane for Claude's responses
- Reply: New responses are sent back to your Telegram chat
lymebridge setup # Configure Telegram bot (one-time)
lymebridge bridge <session> # Bridge Telegram to named tmux session
lymebridge bridge # Bridge to current tmux pane (when run inside tmux)
lymebridge version # Show version
lymebridge help # Show help# Terminal 1: Start Claude in tmux
tmux new -s dev
claude
# Terminal 2: Start the bridge
lymebridge bridge dev
# Now on Telegram:
# You: "help me write a python hello world"
# Bot: "Here's a simple Python hello world..."- macOS (uses tmux)
- Homebrew (for auto-installing dependencies)
- Telegram account and bot token
Quick local checks for syntax, dependencies, and config:
./scripts/smoke.sh- Setup times out: send any message to your bot (from the account you plan to use) and re-run
lymebridge setup. - No replies: verify you're bridging the correct tmux session and re-run
lymebridge setupto refresh the chat ID.
MIT