- Telegram and Slack you create your own bot (a few minutes, once), so nothing runs on anyone else’s server and no messages pass through Coder’s
- Agent-initiated or automatic the agent has a
notify_usertool, and you can also have Coder message you when a long turn finishes or the agent asks a question - Two-way reply to a message and your reply lands in the session that sent it, even if the window or project is closed while the agent keeps working
- Private by default off until you enable it, secrets are scrubbed before anything leaves your machine, and the agent never chooses where a message goes
Turning it on
Everything is under Settings → Remote.- Set up a channel below (Telegram, Slack, or both).
- Turn on Allow agents to message me. This is what gives agents the
notify_usertool. - Optionally pick a Primary channel. If you don’t, Coder uses whichever channels are connected.
- Click Save. The switches and numbers apply on Save; connecting and disconnecting a channel happens immediately.
Remote is off until you turn it on. With it off, agents don’t even see the tool.
Telegram
- In Telegram, open a chat with @BotFather and send
/newbot. Pick a name and a username ending inbot. - BotFather replies with a token that looks like
123456789:AAH…. Copy it. - In Settings → Remote, paste the token into the Telegram card and click Connect. Coder checks it with Telegram before saving anything.
- The card now shows a one-time code and your bot’s name. In Telegram, open your bot and send
/start 123456(with your own code). - The bot replies Paired with DevShed Coder and the card turns Connected.
- Click Send test. A message should arrive within a second or two.
Slack
The simplest setup is a private app in your own workspace that you talk to by direct message. Everything runs on your machine: Coder connects out to Slack, so there’s no URL to expose and no server to run.- In Settings → Remote, click Copy app manifest on the Slack card.
- Go to api.slack.com/apps, choose Create New App → From a manifest, pick your workspace, and paste the manifest. Create the app.
- On the app page, click Install to Workspace and allow it.
- Open OAuth & Permissions and copy the Bot User OAuth Token (starts with
xoxb-). - Open Basic Information → App-Level Tokens, click Generate Token and Scopes, add the
connections:writescope, and copy the token (starts withxapp-). A manifest can’t create this one, so it’s a manual step. - Paste both tokens into the Slack card and click Connect.
- In Slack, find your app under Apps in the sidebar and open a direct message with it. Send
pair 123456(with the code shown on the card). - The app replies Paired with DevShed Coder and the card turns Connected. Click Send test.
If your workspace restricts who can add apps, an admin has to approve it first. A personal or small-team workspace usually doesn’t need that.
The manifest
The manifest
chat:write) and read DMs sent to the app (im:history).What a message looks like
Every message names its project, so you can tell them apart when several are running:Connecting a chat
With Link chats automatically on (Settings → Remote, on by default), you don’t have to do anything: a chat is linked to your paired channel the moment it starts a turn, and your replies come back to it. No message is sent when it links. The link is saved to disk, so it survives restarting Coder and closing and reopening the project. You can also link a chat by hand. In the chat box’s button row, next to Send, there’s a phone icon (Connect remote, shown once Remote is on and a channel is connected). Click it and Coder posts a short Connected message to your channel. A check mark on the icon means this chat is the linked one. It doesn’t involve the model at all, so it costs no tokens, and the agent doesn’t have to message you first. The most recently active (or connected) chat is where plain, non-reply messages go. Turn Link chats automatically off if you’d rather only link the chats you click.Replying
Turn on Let my replies drive the chat and click Save. Replies from your paired account are then sent to the agent as a chat message.- Reply to a specific message (Telegram: swipe-reply; Slack: reply in its thread) and your answer goes to that exact session.
- Send a plain message and it goes to the most recent chat that started a turn, messaged you, or that you connected. Coder tells you which project received it.
- If the chat can’t be found, you get a short note back saying so.
- Send “continue” after the agent stops at its step limit and it carries on.
notify_user, so the reply shows up in the same channel. It still asks for permission in Coder before risky actions, the same as when you type.
A reply to a chat that is still running or still open in Coder is delivered by Coder itself, so it works with the window closed or the project closed. A reply to a chat that has finished and been closed needs the project open with the sidebar chat showing, so Coder can load that conversation first. Otherwise you get the “no longer open” note.
A turn you start from Slack or Telegram always messages you when it finishes, however short it is. You’re away from the desk by definition, so the minimum-duration setting doesn’t apply to it.
Automatic messages
Besides the agent deciding to message you, two optional toggles in Settings → Remote send one for you:- Message me when a long turn finishes sends the agent’s final message if the turn took longer than the number of seconds you set (default 120).
- Message me when the agent is blocked on a question sends the question as soon as the agent asks it.
- A command needs approval. You get the command, its risk level, and a note to approve it in Coder. The message goes out only if the prompt is still unanswered after a few seconds, so commands you’ve already allowed for the session don’t ping you.
- The agent hit its step limit (25 tool steps in one turn) and stopped without finishing. Reply “continue” to keep going.
- The run failed, for example a bad API key, a rate limit, or a network error.
Safety
Messages leave your machine for a third party, so Coder treats them carefully:- The agent can’t pick the destination.
notify_usertakes only a subject and a body. Where it goes comes from your settings alone, so an agent steered by a malicious file can’t send your code to some other address. - Credentials are masked. Before sending, Coder replaces API keys, tokens, private keys, JWTs, and
.env-style lines such asDB_PASSWORD=…with[redacted]. It also masks your own saved keys by exact value. This is pattern matching, so it reduces risk but isn’t a guarantee. Don’t rely on it for real secrets. - Rate limited. Max messages per hour (default 30) is a per-project brake against a looping agent, with an overall ceiling of three times that. The counter resets when Coder restarts.
- Only you can reply. Pairing locks each channel to one account, and everyone else is ignored.
- Tokens stay local. Bot and app tokens are stored encrypted with your operating system’s keychain and are never shown to the interface, only whether a channel is connected.
- Everything is logged. Each message sent, after masking, is appended to
~/.coder/remote-log/<date>.jsonlso you can see exactly what left the machine. - Chat approval is notify-only. Commands that need permission are never approved from a chat app.
Troubleshooting
To disconnect, click Disconnect on the channel’s card. That removes its saved tokens and pairing.