OpenCode Telegram Bot
Control OpenCode coding agents from anywhere via Telegram, while everything runs locally on your machine.
- Source repo
- grinev/opencode-telegram-bot
- Stars
- ★ 1.4k
- Last updated
- 2d ago v0.30.2
- FARS reviewed
- Nov 07, 2026 +6 new
- License
- MIT
- Primary language
- TypeScript
- FA score
- 54/100 · Major gaps
At a glance
- How it runs
- 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
- 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
- Source review
- 54/100 · Major gaps
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.
- Developers who want to submit coding tasks to a local OpenCode instance from their phone while away from their desk.
- Users who need to schedule periodic code maintenance or review tasks to run automatically at set times.
- Teams that want to monitor multiple OpenCode sessions in real time and receive background notifications from Telegram.
- Power users who need to quickly switch between models or agent modes without opening the TUI locally.
- Mobile users who prefer voice input for capturing coding ideas and receiving spoken replies via TTS.
- 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?
- 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 withnpx @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)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
README-backed isolation & workflow protocols
What are this agent's strengths and limitations?
- 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.
- 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
buildagent, limiting flexibility for tasks needingplanmode 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?
Why each dimension lost points
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.
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.
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.
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.
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.
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.
- 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.
Recent releases
Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.
-
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 ↗ -
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 ↗ -
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?
How do scheduled tasks work?
Is voice transcription required?
What happens if the local OpenCode server crashes?
Does it support file uploads?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.