Control Claude Code from your phone via Telegram by deploying it on a VPS
Set up an autonomous AI agent on a server in 10 minutes to assign tasks from your messenger and get answers 24/7.
- 1.Connect to your VPS via SSH. Run the commands to install tmux, Node.js, and Bun, which are required for Claude Code and plugins to work.
If the service is unavailable in your region, use a VPN or choose a server in another country.
Terminal ↗Promptsudo apt update && sudo apt install -y curl git tmux ufw curl -fsSL https://deb.nodesource.com/setup_22.x | sudo bash - sudo apt install -y nodejs curl -fsSL https://bun.sh/install | bash source ~/.bashrc
What this prompt doesThe command updates the system and installs tmux, Node.js, and Bun. Just copy and paste it into the terminal. - 2.Install Claude Code globally via npm and sign in with your Anthropic account.
Requires a Pro, Max, Team, or Enterprise subscription. The free plan does not support Channels.
Terminal ↗Promptnpm install -g @anthropic-ai/claude-code claude login
What this prompt doesThe first command installs Claude Code, the second launches the sign-in process via browser. - 3.Open Telegram and create a new bot using @BotFather. Send the /newbot command, set a name, and copy the resulting token.
Keep the token safe - it gives full control over the bot.
Telegram BotFather ↗Prompt/newbot
What this prompt doesCommand for BotFather in Telegram to create a new bot. - 4.Start a tmux session, open Claude Code, and install the official Telegram plugin.
tmux will keep the session active even if the connection drops.
Terminal ↗Prompttmux claude /plugin install telegram@claude-plugins-official
What this prompt doesLaunches tmux, then Claude Code, after which the plugin install command is entered in the Claude interface. - 5.Configure the plugin by pasting the bot token, and restart Claude Code with Channels support.
If the plugin is not found, run /plugin marketplace add anthropics/claude-plugins-official and try again.
Terminal ↗Prompt/telegram:configure exit claude --channels plugin:telegram@claude-plugins-official
What this prompt doesThe /telegram:configure command will ask for the token. After exiting, Claude restarts with the --channels flag. - 6.Send any message to your bot in Telegram, get a pairing code, and enter it in Claude Code to complete the setup.
For extra security, restrict access to your account only with the /telegram:access policy allowlist command.
Terminal ↗Prompt/telegram:access pair
What this prompt doesEnter this command in Claude Code and provide the code received from the bot in Telegram.
💰 What it costs to followprices as of 2026-11
- subscriptionAnthropic Claude Subscription (Pro/Max/Team/Enterprise)A paid Anthropic subscription is required to use the Channels feature; the free plan is not supported.
- subscriptionVPS hostingA minimal server (1-2 CPU, 1-2 GB RAM) costs about 4-5 euros per month from providers such as Hetzner or Selectel.
Try it and be the first to check in
Why today
2
videos from creators in 48h
2
source channels
19.5K
total views
github.comweb
smyslokod.ruweb
Recipe of the week by email
AI services change fast - interfaces and free limits may differ from what's described.