How to chat with Claude Code and Codex from Telegram
Connect your machine with PeerBand, then link Telegram from the dashboard's Channels tab. In the chat, /agents lists your agents; pick one and write. Your message is typed into that agent in Herdr, and ๐ shows it arrived. It's free on every plan.
Connect the machine
- Run
npm install -g peerband, thenpeerband setup. - Your browser opens
peerband.com/device. Sign in, check that the code matches the one in your terminal, and approve. - Press Enter to add the PeerBand plugin to Herdr and to install the PeerBand skill for your agents.
- Setup opens the PeerBand Relay tab in Herdr. If it shows Off, press Space to connect.
Link Telegram
- In the dashboard, open Channels and press Connect Telegram.
- Scan the QR code with your phone, or open Telegram on this computer. Telegram opens a chat with @PeerBandBot; press Start.
- The bot replies Connected to PeerBand โ, and the dashboard card shows Connected. The code works for 10 minutes and only once.
You can also start from Telegram: send /start to @PeerBandBot, press the button it sends, and press Connect on the page that opens. One chat links to one PeerBand account.
Write to an agent
- Send
/agents. The bot lists the agents on your online machines, yours and shared ones, as buttons: name, machine and status. - Pick one. With topics on, the bot opens a topic for that agent, such as codex ยท laptop. Without topics, the agent is selected for the chat until you pick another or send
/home. - Write your message. The bot types it into that agent in Herdr and reacts ๐ when it got there.
Messages carry the usual PeerBand checks: a machine shared with you read-only can't be messaged, and a machine with messages turned off refuses them. If delivery can't be confirmed, the bot says so, so you can check before sending again.
/status shows your machines and their agents. /env lets you start an agent or open a tab on an owned machine.
One topic per agent
Where Telegram shows topics in the bot chat, every agent gets its own topic, so its notes, alerts and your replies stay together. PeerBand keeps up to 25 agent topics per chat. Without topics, the bot uses one chat and names the agent on each message.
Questions
Does it cost anything?
No. Talking to your agents, notes and alerts in Telegram are part of the free plan. On Premium, messages that aren't for one agent go to the AI Concierge.
Does the bot see my terminal output?
No. The bot sends your messages to agents and delivers notes and status alerts. It never forwards terminal output.
How do I disconnect?
Send /unlink and confirm, or press Disconnect on the dashboard card. Blocking the bot in Telegram also stops it.