by grinev
OpenCode mobile client via Telegram: run and monitor AI coding tasks from your phone while everything runs locally on your machine. OpenCode V2 support.
# Add to your Claude Code skills
git clone https://github.com/grinev/opencode-telegram-botGuides for using ai agents skills like opencode-telegram-bot.
Last scanned: 11/29/2026
{
"issues": [
{
"file": "README.md",
"line": 412,
"type": "secret-exfiltration",
"message": "Instruction appears to send credentials/secrets to an external endpoint",
"severity": "medium"
},
{
"file": "README.md",
"line": 471,
"type": "secret-exfiltration",
"message": "Instruction appears to send credentials/secrets to an external endpoint",
"severity": "medium"
}
],
"status": "PASSED",
"scannedAt": "2026-11-29T12:56:43.822Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}opencode-telegram-bot is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by grinev. OpenCode mobile client via Telegram: run and monitor AI coding tasks from your phone while everything runs locally on your machine. OpenCode V2 support. It has 1,382 GitHub stars.
Yes. opencode-telegram-bot passed AgentsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/grinev/opencode-telegram-bot" and add it to your Claude Code skills directory (see the Installation section above).
opencode-telegram-bot is primarily written in TypeScript. It is open-source under grinev on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh opencode-telegram-bot against similar tools.
No comments yet. Be the first to share your thoughts!
OpenCode Telegram Bot is a secure Telegram client for OpenCode CLI that runs on your local machine.
Run AI coding tasks, monitor progress, switch models, and manage sessions from your phone.
No open ports, no exposed APIs. The bot communicates with your local OpenCode server and the Telegram Bot API only.
Platforms: macOS, Windows, Linux
Languages: English (en), العربية (ar), Deutsch (de), Español (es), Français (fr), Bahasa Indonesia (id), Italiano (it), 日本語 (ja), 한국어 (ko), Polski (pl), Português (Brasil) (pt), Русский (ru), Türkçe (tr), 简体中文 (zh)
Two tools I built help me keep this project moving:
/sessions, and find projects by name in /projects/settings (default on); that silences the chat notices only and does not stop tracking or cancel a pending request. The button on a notification opens its session in that session's own project and worktree, even after you switched to another oneinit/review) by name or description in /commands, then run them with confirmation/skills, then run them immediately or with arguments in the next message/goal asks for the objective in a separate text message and confirms automatic work and token spending. Start and Continue use the selected agent, model and variant, including in a fresh session before any ordinary prompt. The bottom keyboard keeps its short objective and Pause, Continue or Delete below queued messages. Pause stops future continuations; /abort also interrupts the current turn. To create another goal, stop and delete the old one first/settings to change runtime preferences; see Runtime Settings/settings appear as native photos inside the assistant's reply, including replay and scheduled results, on V1/V2 without shared storage[Report](./report.pdf) deliver files after the complete reply text, in link order, before the footer, including replay and scheduled results. Files are read through OpenCode on V1/V2, including Docker without shared storage. V2 and V1 binary files keep their original bytes; V1 text files contain the server's trimmed text, without leading/trailing whitespace or the final newline. Code, bare paths and external URLs do not attach files;  remains a photo. OUTGOING_DOCUMENT_MAX_SIZE_MB limits these documents and /ls downloads independently of code/diff and incoming-file limits. Raw mode is unchanged/detach leaves waiting messages to the session they were sent to/worktreeBOT_LOCALE)/ls to browse files and directories inside the current project, open subdirectories, go back, and download files by tapping them/ls, and it is sent to OpenCode together with your next message, oncePlanned features currently in development are listed in Current Task List.
/newbot123456:ABC-DEF1234...)You'll also need your Telegram User ID — send any message to @userinfobot and it will reply with your numeric ID.
Run the OpenCode server on the same machine where the bot runs:
opencode serve
The bot connects to the local OpenCode API at
http://localhost:4096by default. For OpenCode V2, see Old and New OpenCode Versions.
After the bot is configured, you can also start and stop the local OpenCode server from Telegram with
/opencode_startand/opencode_stop.
The fastest way — run directly with npx:
npx @grinev/opencode-telegram-bot@latest
Note: This README tracks the
mainbranch, which may include unreleased changes. The latest npm release may not include every feature described here yet. See recent commits onmain.
Quick start is for npm usage. You do not need to clone this repository. If you run this command from the source directory (repository root), it may fail with
opencode-telegram: not found. To run from sources, use the Development section.
If required configuration is not supplied through process environment variables or an .env file, an interactive wizard will guide you through setup. It asks for interface language first, then your bot token, user ID, the OpenCode version (V1 or V2; V2 is offered on a first setup, a re-run offers the saved one), the OpenCode API URL (its default follows the version), and the OpenCode server credentials: the username, and a password that is optional for V1 and required for V2 (see [Old and New OpenCode Versions](#old-and-new-opencode-ve