Jun 15, 2026
How to Control Your Android Device Remotely via a Telegram Bot: Termux Guide
Learn how to build a serverless Python Telegram bot using Termux and Termux:API to remotely …
In 2026, the artificial intelligence landscape is shifting from simple chat interfaces to fully autonomous agentic workflows. Leading this charge is Anthropic's Claude Code, a command-line interface tool designed to write, refactor, and execute code directly in your terminal. While developers love running Claude Code locally, the open-source community has taken it a step further. Enter 5dive—a trending open-source tool that allows you to run, manage, and coordinate a team of Claude Code agents directly from your Telegram app. This ultimate guide will walk you through what 5dive is, how to set it up, the benefits of running AI agents on Telegram, and how to safely leverage this technology to code on the go.
5dive is an open-source tool that connects Anthropic’s Claude Code CLI with a Telegram bot interface. By running the 5dive backend server on your machine or VPS, you can issue commands in a private Telegram chat to instruct Claude Code to edit files, run tests, or debug errors remotely from any device. For active directory lists of tech resources, browse the Telekit Science & Technology Directory.
Anthropic's Claude Code has set new benchmarks for AI-assisted coding, allowing developers to execute commands, search codebases, and generate pull requests directly from the CLI. However, running Claude Code requires terminal access, limiting your ability to manage tasks from a mobile device or when away from your main computer.
5dive solves this limitation. Written in TypeScript and Node.js, 5dive acts as a bridge. It runs on your local machine or a cloud VPS, instantiates Claude Code instances inside sandboxed processes, and exposes them to a Telegram Bot API. By adding the bot in Telegram, you can send messages to spawn Claude Code agent sessions, check progress, and instruct them to perform coding tasks on your repository.
To run 5dive, you will need Node.js installed, an active Anthropic API key, and a Telegram Bot token. Follow these steps to configure your environment:
Open Telegram and search for @BotFather. Send the command /newbot and follow the prompts to choose a name and username. Save the HTTP API Token provided (e.g., 123456789:ABCdefGhIJK...).
Clone the open-source code from GitHub and install the dependencies:
git clone https://github.com/5dive-com/5dive.git cd 5dive npm install
Create a .env file in the root of the cloned directory and fill in your keys:
TELEGRAM_BOT_TOKEN=your_telegram_bot_token ANTHROPIC_API_KEY=your_anthropic_api_key ALLOWED_CHAT_IDS=your_private_telegram_chat_id WORKSPACE_DIR=/path/to/your/codebase
Note: Setting `ALLOWED_CHAT_IDS` is critical. This prevents unauthorized users from finding and interacting with your bot to run commands on your host computer.
Launch the TypeScript runner to spin up the bridge:
npm run start
Now, message your bot in Telegram! You can start a session by typing /start and instruct Claude Code to begin working.
While both environments run the same underlying Claude Code model, the interface changes how developers interact with their AI workflows:
Granting an LLM agent terminal access via a messaging platform introduces serious security risks. If a malicious user gains access to your Telegram bot, they could execute commands, delete files, or read sensitive API credentials. Always enforce the following security layers:
ALLOWED_CHAT_IDS config contains only your specific Telegram user ID. Test this by trying to interact with the bot from a different account; the bot should ignore all messages.5dive runs the Claude Code CLI on whichever host you deploy the 5dive server (e.g., your local developer computer or a VPS). The actual AI reasoning occurs via Anthropic's Claude API, but command execution and file edits are performed locally on the server.
It is secure only if you strictly configure chat authorization. Without `ALLOWED_CHAT_IDS` defined, anyone who discovers your bot's username can send commands to run arbitrary shell scripts on your machine. Always lock down access.
Yes. Because 5dive invokes Claude Code under the hood, it consumes tokens from your Anthropic Developer API console. Make sure you set spending limits to prevent unexpected costs during loops.
Yes, you can input a comma-separated list of Telegram Chat IDs in the `.env` configuration file to allow trusted team members to interact with the bot and collaborate on coding tasks.
If you have built an AI bot or utility bot, visit our homepage and click "Submit Link". After verification by our QA team, your listing will be indexed in our directory to drive organic traffic.
The 5dive bridge represents a major step forward for mobile-first developer productivity. By combining the coding intelligence of Anthropic's Claude Code with the convenience of Telegram, you can debug issues, refactor functions, and manage background development tasks directly from your phone. Start hosting your own server today and experience the power of agentic development in a chat window!
Stay updated with the latest Telegram groups and channels
Or scan the QR code
Loading community stats...
No active reviews. Be the first to add one!