← Back to Leaderboard
CImolatte

Imolatte/claude-cli-telegram

A self-hosted Telegram bot that runs the native Claude Code CLI remotely

Engineering Health (Methodology)
B · 62/100
Maintenance Activity
● Updated 2mo ago
Latest Release
v1.0.0
Commercial License Check
MIT · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance20/35
Fork Adoption11/25
Release Cadence11/20
License Clarity20/20
Self-HostedCLIMCP
Total Stars
★ 37
24h Growth
+0
7d Growth
+0
Forks
5

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

Imolatte/claude-cli-telegram Star History (2026-03-16 - 2026-12-03) ALL-TIME STAR HISTORY (2026-03 – 2026-12) +36 in 262d · avg +0/day 41 21 0 2026-03-16: ★ 12026-04-04: ★ 122026-04-25: ★ 132026-05-16: ★ 132026-06-06: ★ 142026-06-27: ★ 142026-07-18: ★ 262026-08-08: ★ 302026-08-29: ★ 312026-09-19: ★ 322026-10-10: ★ 352026-10-31: ★ 362026-11-16: ★ 372026-12-03: ★ 37 ★ 37 2026-03 2026-07 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

A single Node.js ESM worker polls Telegram. worker/index.mjs handles commands, queues tasks, and relays progress. worker/executor.mjs starts the installed Claude Code CLI and parses its stream-json events. The CLI operates on the host's working tree with its native tools; the worker is not an Anthropic API wrapper. worker/sessions.mjs manages session state and supports continuing conversations with --resume.

approval-hook.mjs and stop-hook.mjs connect Claude Code's PreToolUse and Stop events to approval forwarding and completion notices. Hooks and the worker communicate through files under /tmp/. The separate worker/mcp-telegram.mjs module exposes outbound text and file delivery to Claude; MCP is not the inbound command path.

Key Capabilities & Differentiators

The bot accepts text, forwarded messages, photos, files, and voice. Voice input goes through Groq Whisper speech-to-text, with a local Whisper fallback. While Claude runs, the bot reports tool activity, can show inline edit diffs, and reports token usage. Sessions can be named, switched, or detached; the working directory can be changed, and the model selector lists Sonnet, Opus, and Haiku.

The Git panel covers status, diff, log, staging, commits, push, and pull. Some commands bypass Claude entirely, including shell execution and clipboard or file access. Terminal, hybrid, and Telegram modes route replies and approvals differently. The approval timeout defaults to five minutes, and a Claude task has a default limit of 30 minutes. The bot UI supports English and Russian.

Trade-offs & Limitations

Compared with Anthropic's official three-tool Telegram MCP bridge, this bot adds persistent sessions, live tool activity, approval routing, and Git controls. That breadth also makes it a remote operations surface: shell commands, file downloads, and clipboard access cross the chat-to-host boundary. The owner ID and group allowlist restrict who can interact, and selected dangerous operations are gated, but neither replaces OS-level isolation. Use a narrowly privileged account and limit which files and credentials it can reach.

Terminal handoff works best with tmux, which lets Telegram answer the native permission prompt without interrupting the process. Without tmux, takeover stops the terminal process and resumes saved session context, losing in-memory plans or to-dos. A Linux primary keeps the bot reachable when the Mac sleeps, but separate host-local sessions mean switching hosts does not migrate an active conversation.

Hardware & Deployment Guide

Run the worker on macOS or Linux with Node.js 20+, Claude Code installed and on PATH, and a Telegram bot token and owner ID in config.json. Install dependencies under worker/ with npm install, then start node index.mjs. Configure the Claude Code hooks for terminal approval forwarding and completion notices. The configuration calls for a Groq API key for voice transcription; FFmpeg is optional for the voice fallback. Self-hosting the worker does not make it an offline system.

For persistence, use a macOS LaunchAgent or run the Linux worker under systemd as a regular user. The optional Linux-primary/Mac-standby topology needs passwordless SSH from the Mac and hands off Telegram polling, not conversation state. The Node worker does not serve model weights; size the host for the CLI and the jobs it runs, with extra headroom if using local transcription or optional Puppeteer screenshots. The March 20, 2026 v1.0.0 release highlights native CLI execution, live progress, and session management.

Execution: worker/executor.mjs starts the installed Claude Code CLI and parses stream-json events for live tool updates.
Sessions: --resume preserves continuity on the same host, with named sessions, directory changes, and per-session token tracking.
Approvals: Telegram sessions use inline buttons; tmux lets the bot answer a terminal prompt without restarting Claude.
Git workflow: The Telegram panel covers status, diff, log, staging, commits, push, and pull.
Host handoff: A Linux primary and Mac standby share one Telegram poller; Claude sessions remain separate on each host.
MCP integration: send_telegram and send_file_telegram let Claude send messages and attachments proactively.
Best For

Developers and small teams that want to monitor, resume, or approve Claude Code work from a phone on a trusted Mac or Linux host.

Skip If

You need offline operation, strong isolation between untrusted users, or seamless session migration between hosts.

Reviewed on 2026-12-01 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

Self-HostedCLIMCP
git clone https://github.com/Imolatte/claude-cli-telegram.git
cd tg-claude && cp config.example.json config.json
# Edit config.json — add bot token, chat ID, Groq API key
cd worker && npm install && node index.mjs

Comparison vs. Top Coding, Skills & MCP Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
claude-cli-telegram ★37—JavaScriptMITA self-hosted Telegram bot that runs the native Claude Code CLI remotely
herdr54.1k+871RustApache-2.0Rust terminal multiplexer for persistent, multi-machine coding-agent workspaces
cc-switch159.1k+1.7kRustMITTauri desktop manager for AI coding providers, local routing, and MCP config
claude-code-router38.5k+101TypeScriptMITLocal model gateway for routing coding agents across providers

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/Imolatte/claude-cli-telegram.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

Imolatte/claude-cli-telegram Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about claude-cli-telegram

Does Telegram control Claude Code through MCP?

No. The Telegram worker starts the installed Claude Code CLI and parses its stream-json output. The separate MCP server exposes send_telegram and send_file_telegram so Claude can send messages and attachments. Claude Code hooks handle approval forwarding and completion notifications.

How much hardware does the worker need?

There is no stated CPU, RAM, GPU, or VRAM minimum beyond the software prerequisites. Size the host for Claude Code and the build, test, or other commands it will run. The bot does not host a Claude model locally. Local Whisper and optional Puppeteer screenshots add separate resource demands.

Can a company self-host it for commercial work?

The repository uses the MIT license, which permits commercial use and self-hosting subject to its notice requirements. It does not grant rights to Claude Code, Telegram, or Groq services. Review their terms and your organization's data-handling rules before sending source snippets, diffs, files, or audio through those services.

When is this a better fit than Anthropic's official Telegram plugin?

Choose this bot if phone-based session switching, live tool updates, Git controls, and approval routing are central to your workflow. Choose the official Telegram plugin if a minimal three-tool MCP bridge is enough and you do not need the additional bot commands or session management.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining Imolatte/claude-cli-telegram? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature Imolatte/claude-cli-telegram on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare