OpenCode Telegram Bot

Control OpenCode coding agents from anywhere via Telegram, while everything runs locally on your machine.

Stars
★ 1.4k
Last updated
2d ago v0.30.2
FARS reviewed
Nov 07, 2026 +6 new
License
MIT
Primary language
TypeScript

At a glance

How it runs
CLIChat botSelf-hosted service
Works with
Platform-specific
Cost
Free software; you pay for model usage
OS / editors
macOS · Windows · Linux per README
Safety controls
Docker container isolation per README
Setup effort
Medium · a few setup steps
You'll need
Node.js 22.14+OpenCode CLIShell / CLINetwork accessLocal filesystem
Typical use
Developers who want to submit coding tasks to a local OpenCode instance from their phone while away from their desk.
Not a fit if
  • Teams not using the OpenCode CLI
  • Users who cannot run a local OpenCode server on a fixed port
Maintenance
Commits in the last 30 dayslast commit 2026-12-01latest release v0.30.2 (2026-12-01)+1.6 ★/day over 7 days

What does this agent do, and when should you use it?

OpenCode Telegram Bot is a secure Telegram client for the OpenCode CLI that runs on your local machine. It communicates with your local OpenCode server (default http://localhost:4096) and the Telegram Bot API, without exposing any open ports. You can create and manage sessions, switch models, toggle Plan/Build modes, watch subagent progress, run custom commands and skills, manage git worktrees, and browse files. The bot also supports scheduled tasks, turning it into a lightweight OpenClaw alternative for OpenCode users. It enforces strict user ID whitelisting for security and is localized into multiple languages including English, Arabic, German, Spanish, French, Italian, Portuguese, Russian, and Simplified Chinese.

The bot connects to a local OpenCode server (opencode serve) and the Telegram Bot API. Users send prompts via Telegram messages, which are forwarded to the OpenCode agent; results, including code files, are sent back. It supports session creation (/new), session switching (/sessions), server and model status (/status), model switching via favorites/recent history, agent mode switching (Plan/Build), custom commands (/commands), skills (/skills), git worktree switching (/worktree), file browsing (/ls), and scheduled tasks (/task). It also integrates voice input (via Whisper-compatible STT), file attachments (images, PDFs, text), a message queue, and context compaction.

  1. Developers who want to submit coding tasks to a local OpenCode instance from their phone while away from their desk.
  2. Users who need to schedule periodic code maintenance or review tasks to run automatically at set times.
  3. Teams that want to monitor multiple OpenCode sessions in real time and receive background notifications from Telegram.
  4. Power users who need to quickly switch between models or agent modes without opening the TUI locally.
  5. Mobile users who prefer voice input for capturing coding ideas and receiving spoken replies via TTS.
  6. Developers managing multiple git worktrees and need to switch between them remotely via Telegram.

Key setup facts

Pulled from the install and usage notes below. The project README has the current values.

Install / run
  • npx @grinev/opencode-telegram-bot@latest
Runtime
Node.js 22.14+

How do you install or deploy this agent?

  1. Create a Telegram bot via @BotFather and obtain the bot token. 2. Get your numeric user ID from @userinfobot. 3. Install Node.js 22.14+ and OpenCode CLI on your machine. 4. Start the OpenCode server with opencode serve. 5. Run the bot with npx @grinev/opencode-telegram-bot@latest. 6. On first run, an interactive wizard will guide you through setting the interface language, bot token, user ID, and OpenCode API URL.

How do you use this agent?

After installation, open the bot in Telegram and send any text message as a coding prompt. Use /help to see all commands, /status to check server and session health. To track live sessions, start OpenCode with a fixed port: opencode --port 4096 or opencode serve --port 4096. For scheduled tasks, use /task to create and /tasklist to manage them. Adjust runtime settings like message queue or audio replies via /settings.

Safety boundaries, hardening & integrations

Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.

Declared capability surface (blast radius)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

README-backed isolation & workflow protocols

Isolation & controls
Docker container isolation

What are this agent's strengths and limitations?

Pros
  • No open ports or exposed APIs; all communication is outbound to Telegram, enhancing security in home or work networks.
  • Scheduled task support makes it a viable lightweight alternative to OpenClaw for OpenCode automation.
  • Comprehensive remote control: session management, model switching, custom commands, skills, worktree switching, and file browsing.
  • Voice input and TTS output, enabling hands-free interaction from mobile devices.
Limitations
  • Tightly coupled to the OpenCode ecosystem; only works with OpenCode CLI and cannot be used with other coding agents.
  • Requires manual setup of a local OpenCode server with a fixed port (default 4096), which may conflict with other services.
  • Scheduled tasks always run with the build agent, limiting flexibility for tasks needing plan mode or other agents.
  • Voice transcription depends on an external Whisper-compatible API, requiring additional API keys and configuration.

How does this agent compare with similar options?

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
OpenCode Telegram Bot This agent 54 · Major gaps CLIFree + model costs ★ 1.4k 2d ago TypeScript —
Ivy Tendril 43 · Major gaps Desktop appFree + model costs ★ 204 3d ago C# Codex · Claude Code
NeuroSquad Terminal Dashboard 80 · Good CLIFree + model costs ★ 30 1mo ago TypeScript Codex · Claude Code
pi-gui 63 · Some gaps Desktop appFree + model costs ★ 1.5k 1mo ago TypeScript —

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Major gaps
54/ 100 5-point scale 2.7 / 5
This review covers the source as of Nov 07, 2026. The project has shipped 6 stable release(s) since, which have not been re-reviewed. The score and verdict describe the reviewed version only. Recent releases ↓
Trust 12/29
Reliability 8/14
Adaptability 12/18
Convention 11/18
Effectiveness 7/13
Verifiability 4/8
Why each dimension lost points
Trust12 / 29 · 2.1/5

The README describes communication between local OpenCode and the Telegram Bot API, a strict Telegram user ID allowlist, confirmations for some actions, and the privileges of local command execution. This makes parts of the data path and controls clear, supporting moderate scores. The allowlist does not constrain what an authorized user can ask the local agent to do; local commands inherit OS permissions and environment variables, and Telegram and voice transcription involve external services. The packet does not adequately explain protection and storage of tokens, passwords, or transmitted data. Dependencies are listed, but no security audit or vulnerability response evidence is supplied. Session revert and task abort are described, while general recovery from code changes is limited. Attribution and an MIT license are visible, but publisher identity is unverified and maintenance and update responsibility are unclear.

Reliability8 / 14 · 2.9/5

The README gives concrete details for V1/V2 configuration, server modes, queue behavior, and some timeouts. The entry point handles unsupported Node versions, startup errors, and bounded log flushing; sample tests assert several state lifecycle behaviors. These support consistency and failure handling. Deductions reflect reliance on Telegram, OpenCode, transcription services, and external packages, whose availability cannot be established statically, and the supplied tests cover only a small set of formatting and container behaviors.

Adaptability12 / 18 · 3.3/5

The product targets users who want to run and monitor OpenCode through Telegram, and lists varied task scenarios, platforms, languages, V1/V2 modes, and configuration options. The interaction guard, version selection, and local server instructions provide some boundaries and trigger clarity. Deductions reflect a relatively specialized audience of developers familiar with OpenCode, Telegram, and local deployment; the sample cannot establish depth of support across all listed environments.

Convention11 / 18 · 3.1/5

The README organizes features, installation, commands, and configuration, and includes a quick start, environment variable table, command examples, and several limitations. LICENSE and package.json both identify MIT, justifying full credit for the license criterion. Deductions reflect the README's warning that it tracks main and the latest npm release may lack documented features; the packet contains no actual changelog or clear maintenance commitment. A version number, repository, and issue tracker are present, but version history and responsibility remain thin.

Effectiveness7 / 13 · 2.7/5

The Telegram client offers session, model, queue, notification, file, and scheduled task controls, giving phone access to a local OpenCode instance in ways aligned with its stated purpose. Progress and status messages and code-file delivery support practical use. Deductions reflect the multiple setup requirements, including Telegram, OpenCode, and credentials, and the lack of evidence quantifying the tradeoff between remote coding value and local permissions, external services, and deployment effort.

Verifiability4 / 8 · 2.5/5

Many README claims map to specific commands, settings, and limitations; the AGENTS.md architecture and data-flow description offer some corroboration, and sample tests support a few formatting and lifecycle details. Deductions reflect that most product behavior is documented in the README, the supplied tests cover only a narrow subset, and the source sample omits most critical handling paths. The packet separates configuration requirements, feature descriptions, and limitations clearly enough to distinguish claims from unverified behavior.

Risks and how to mitigate them
  • An allowlisted Telegram user can start coding tasks through local OpenCode; check the local project scope and server credentials before use.
  • The README says local JSON commands run with the bot process's OS permissions and inherited environment; only place trusted files there.
  • Voice transcription and Telegram communication use external services, and the packet does not fully describe related data retention or credential protection.
Evidence confidence: Low Reviewed Nov 07, 2026 Reviewed revision ec6eb5c3c9fb New commits since this review; the score may not cover them
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/opencode-telegram-bot.svg)](https://followagents.com/en/agents/opencode-telegram-bot)
<a href="https://followagents.com/en/agents/opencode-telegram-bot"><img src="https://followagents.com/badge/opencode-telegram-bot.svg" alt="FARS review"></a>

Recent releases

Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.

  1. v0.30.2
    Release notes excerpt
    Changes - Inline LaTeX — Telegram renders $...$ as inline math in formatted assistant replies and scheduled results. Fixes - Background session notices — Reply, question, and permission notices show the project or worktree and session they came from. - Session dashboard diffs — On OpenCode V2, tap the 📋 [project] session button to see net file changes across the whole session, even if the latest turn made no edits. …
    View on GitHub ↗
  2. v0.30.1
    Release notes excerpt
    Changes - Startup and connection notices — The 🟢 Bot started message shows your OpenCode connection or session status, and later notices distinguish a first connection from a reconnection. - Japanese interface — Choose 日本語 in the setup wizard to use the bot in Japanese ([@rogervokma-stack](https://github.com/rogervokma-stack)). Fixes - Longer dashboard labels — The 📋 [project] session button shows more of the project name and gives Telegram the full session title to display. …
    View on GitHub ↗
  3. v0.30.0
    Release notes excerpt
    Changes - On-demand session dashboard — The bot no longer pins the dashboard automatically; tap 📋 [project] session on the bottom keyboard for a fresh snapshot of context usage, session cost, and changed files. - Project exclusions now cover sessions — Paths already listed in PROJECTS_EXCLUDED_PATHS now also hide sessions in those exact directories from /recent and suppress their background notifications. …
    View on GitHub ↗

FAQ

Can multiple users access the bot?
No. The bot enforces a strict user ID whitelist (TELEGRAM_ALLOWED_USER_ID); any other user's messages are ignored and logged as unauthorized attempts.
How do scheduled tasks work?
Scheduled tasks are created with /task, using the currently selected project and model, always running with the build agent. They run in the background without interrupting your active session. Minimum interval is 5 minutes, and the default timeout is 120 minutes (configurable).
Is voice transcription required?
No, but it is optional. To enable voice input, you must set STT_API_URL and STT_API_KEY (Whisper-compatible). Without these, voice/audio messages are not accepted.
What happens if the local OpenCode server crashes?
You can enable OPENCODE_AUTO_RESTART_ENABLED=true to let the bot automatically restart a local OpenCode server when health checks fail, or start it manually via /opencode_start.
Does it support file uploads?
Yes, it supports images, PDFs, and text files; multiple files can be sent as a Telegram album. Note that PDF/DOCX/PPTX extraction requires an optional DOC_EXTRACTOR_URL.
Was this page helpful?
View on GitHub ↗ Install ↓

Host ecosystems

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related concepts