telegram-buddy

A plugin that lets users move a Claude Code session between a terminal and a phone through Telegram while keeping its context.

In plain words
What is it for?
Use it to continue coding-agent sessions from a phone, receive messages, and approve actions remotely through Telegram.
Why use it?
It removes the need to stay at the terminal and provides a way to handle remote approvals through a Telegram bot.

Plugin for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Claude Code
/plugin marketplace add Jacksunwei/claude-telegram-buddy
agentmods
npx agentmods add plugins/jacksunwei/claude-telegram-buddy/plugin
Clone the repo
git clone --depth 1 https://github.com/Jacksunwei/claude-telegram-buddy

Made for: Claude Code.

Per session not measured What this adds to a session before it is invoked.
When invoked not measured Not applicable: nothing here is loaded into a session.
Security scan B 2 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Security

Grade B, and why

telegram-buddy scanned grade B with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Sends data to an external URLmediumData exfiltration

A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.

"command": "curl -fsS -X POST -H 'Content-Type: application/json' --data-binary @- http://127.0.0.1:52891/approve 2>/dev/null || echo '{}'",

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

"command": "curl -fsS -X POST -H 'Content-Type: application/json' --data-binary @- http://127.0.0.1:52891/approve 2>/dev/null || echo '{}'",
plugin/.claude-plugin/plugin.json · 99 lines

How it starts

The opening of the file, as written. The whole thing — 99 lines — stays where its author put it; the contents beside it link to each section on GitHub.

{
  "name": "telegram-buddy",
  "version": "1.0.0",
  "description": "Hand off your Claude Code session from terminal to phone (and back) without losing context",
  "author": {
    "name": "Wei (Jack) Sun"
  },
  "license": "Apache-2.0",
  "homepage": "https://github.com/Jacksunwei/claude-telegram-buddy",
  "repository": "https://github.com/Jacksunwei/claude-telegram-buddy",
  "keywords": [
    "mcp",
    "claude-code",
    "permissions",
    "telegram",
    "hooks",
    "remote-approval"
  ],
  "userConfig": {
    "telegram_bot_token": {
      "type": "string",
      "title": "Telegram Bot Token",
      "description": "From BotFather: open Telegram, message @BotFather, run /newbot, follow the prompts, copy the HTTP API token.",
      "sensitive": true,
      "required": true
    },
    "user_id": {
      "type": "string",
      "title": "Telegram User ID",
      "description": "Your numeric Telegram user ID. To get it: message @userinfobot on Telegram and copy the 'Id' value. Used as both the trust anchor (incoming messages from other users are discarded) and the chat target in DM mode. After install, DM your bot once so Telegram allows it to message you back.",
      "required": true
    }
  },
  "mcpServers": {
    "telegram-buddy": {
      "command": "uv",
      "args": [
        "run",
        "--script",
        "${CLAUDE_PLUGIN_ROOT}/server/server.py"
      ],
      "env": {
        "TELEGRAM_BUDDY_BOT_TOKEN": "${user_config.telegram_bot_token}",
        "TELEGRAM_BUDDY_USER_ID": "${user_config.user_id}"
      }
    }
  },
  "hooks": {
    "PermissionRequest": [
      {
        "matcher": ".*",
        "hooks": [
          {
            "type": "command",
            "command": "curl -fsS -X POST -H 'Content-Type: application/json' --data-binary @- http://127.0.0.1:52891/approve 2>/dev/null || echo '{}'",
            "timeout": 28800
          }
        ]
      }
    ],
    "PostToolUse": [
      {
        "matcher": ".*",
        "hooks": [
          {
     

Read the full file on GitHub · 99 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 99 lines scan B 6f7a714ca8ee

Subscribe to this mod's changes

telegram-buddy is a plugin published in the GitHub repository Jacksunwei/claude-telegram-buddy (3 stars, last pushed 3mo ago), licensed Apache-2.0. Its token cost is not measured: this kind of file is read by the harness, not the model. A static security scan graded it B with 2 findings (sends data to an external url, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.