How to use Claude Code in Telegram without keeping your computer on

Claude Code's Telegram plugin only answers while your computer runs the session. Here is how to set it up, and 3 ways to keep Claude in Telegram with it off.

On this page

Claude Code in Telegram works through Anthropic's official Telegram channel plugin, but only while a Claude Code session is open on a machine that stays on. Anthropic's docs say it plainly: events "only arrive while the session is open". Close the laptop and the bot goes quiet. This guide shows how to set up the official plugin in six steps, then the three ways to keep Claude answering in Telegram when your own computer is off: an always-on machine running the same plugin, a community bot on a server, or a managed teammate like Okaymate.

How Claude Code channels work

Channels are Anthropic's way to push messages from a chat app into a Claude Code session that is already running. The channels documentation calls them a research preview, with Telegram, Discord and iMessage included. Anthropic announced them in March 2026, and MacStories tried the Telegram one the next day, calling it a little fiddly to set up.

The work itself happens on your computer. Telegram is only the way in. You message a bot you created, the plugin hands the message to your open Claude Code session, and Claude replies through the bot. It can send files back, up to 50 MB each, and it receives the photos you send.

Three things to know before you start:

  • You need Bun. Each channel is a plugin that runs on Bun.
  • You need Anthropic login. Channels work with a claude.ai login or a Console API key, not through Amazon Bedrock, Google Cloud or Microsoft Foundry.
  • Team and Enterprise plans start blocked. An Owner has to turn channels on in the organization settings, under Claude Code, Channels. Pro and Max accounts without an organization skip that check.

Set up the official Telegram plugin in 6 steps

These are the steps from Anthropic's docs and the plugin's README, read on 1 December 2026.

  1. Create a bot. In Telegram, message @BotFather, send /newbot, pick a name and a username ending in "bot", and copy the token.
  2. Install the plugin. Start claude, then run /plugin install telegram@claude-plugins-official.
  3. Save the token. Run /telegram:configure <token>. It's written to ~/.claude/channels/telegram/.env.
  4. Restart with the channel on. Exit, then run claude --channels plugin:telegram@claude-plugins-official. Having the plugin installed isn't enough, each session turns channels on with this flag.
  5. Pair your account. Send your bot a message. It replies with a 6 character code. In Claude Code, run /telegram:access pair <code>.
  6. Lock it down. Run /telegram:access policy allowlist, so strangers who find the bot get nothing.

Can it work in a Telegram group

Yes, but groups are off by default. The plugin's access guide has you add each group by its ID, and you can limit who in the group may talk to it. By default it only answers when someone mentions the bot or replies to it. The bot can't read the group's history either, since Telegram's Bot API gives bots neither history nor search.

Why the bot stops when your computer does

The plugin lives inside your Claude Code session. Anthropic's docs say "the bot can only reply while the channel is active", and the README adds that the bot only sees messages as they arrive. So when you close the terminal, put the laptop to sleep or lose the network, Telegram messages go unanswered, and nothing in the docs says they're picked up later.

The second limit is permissions. When Claude needs your approval to run a command or edit a file while you're away from the terminal, the session pauses for your answer. The docs say a channel can forward these prompts to your phone if its server supports it, but the Telegram plugin's README doesn't list that among its tools. At launch, MacStories found no way to grant a permission from Telegram, and fell back on skipping permissions altogether, a flag Anthropic tells you to keep for trusted environments.

Remote Control, the other way to reach a session from your phone, has the same rule. Its documentation says your computer has to stay on and the claude process has to keep running.

3 ways to keep Claude in Telegram with your computer off

WayRuns whereGroupsWhat you keep upBest for
Official plugin on an always-on machineA server or spare Mac you ownYes, opt in per groupThe machine, the session, updatesA developer and their own repos
Community bot like claude-code-telegramA server you ownYes, in topics modeThe server, Python, the bot's configDevelopers who want more features
OkaymateA private server per business, run for youYes, made for team groupsNothingA team that wants Claude doing work in its group

Way 1, the official plugin on a machine that never sleeps

The direct answer is to move the session somewhere that stays on, a VPS or a Mac mini in a corner. Anthropic's docs suggest running Claude "in a background process or persistent terminal", like tmux or screen, with the same --channels flag.

What you take on:

  • Keeping the process alive after a crash or a reboot, and updating Claude Code and the plugin.
  • Permission prompts that pause the session when nobody is at the terminal. Skipping permissions makes it autonomous, and also lets anyone who can message the bot run commands on that machine. The docs warn that whoever can reply through the channel can approve or deny tool use.
  • One bot per session. To run several bots on one machine, the plugin uses a separate state folder for each.

Pick it if you're a developer, the work is coding in your own repositories, and you're happy to run a small server.

Way 2, a community Telegram bot on a server

Before channels existed, developers built their own bridges, and some go further than the official plugin. The best known, claude-code-telegram, describes itself as a Telegram bot "that gives you remote access to Claude Code". On 1 December 2026 it had 2 800 stars on GitHub, under the MIT license.

It's a Python app you install on a server and run as a service, with a systemd guide in the repository. It works with the Claude Code login or an API key, keeps a session per project, transcribes voice notes, runs scheduled jobs and receives webhooks. In a group, it gives each project its own Telegram topic.

It solves the computer problem the same way as Way 1: the server stays on, and you're the one who keeps it on. Pick it if you want those extra features and don't mind maintaining a bot.

Way 3, a managed teammate already in Telegram

The third way is to not host anything. That's what Okaymate does. Behind it there's a Claude Code running on a private server for your business alone, on your business's own Claude subscription, which you connect at setup. More on that in the Claude integration.

You add the bot @okaymatebot to your team's Telegram group, and it links itself to your Okaymate. From then on anyone in the group can ask it something in plain words, and it does the job with the tools you connect, like Stripe, Shopify or a CRM.

How it differs from a Claude Code you run yourself:

  • Nothing runs on your side. No laptop left open, no VPS to restart.
  • It's built for a group. It speaks when someone talks to it and stays out of conversations between teammates. Each Telegram topic is its own conversation, and it opens a new topic when you ask.
  • It asks before the irreversible. Before a refund, a payment or an email to customers that nobody clearly asked for, it asks once, in the chat, and acts on your answer.
  • It's the same teammate everywhere. One memory across Telegram, WhatsApp, Slack, Discord and the app, as we explain in one AI teammate, one memory across every chat.
  • It reads images, transcribes voice notes and handles files.

When Okaymate isn't the right fit

If what you want is to code on your own repositories from your phone, Okaymate isn't that tool. Your code lives on your machine, and the official plugin or a community bot on that machine is the right answer. Okaymate also costs money: it starts at $79 a month with 3 days free, plus your Claude subscription, while the plugin is free with the plan you already pay for. And if you'd rather self-host a full agent in Telegram, we compared OpenClaw, NanoClaw and the others in the best OpenClaw alternatives for teams.

Which way to pick

  1. You code, and you're at your desk most of the day. The official plugin on your computer, with an allowlist.
  2. You code, and you want it reachable at night and on trips. The same plugin, or a community bot, on a machine that never sleeps.
  3. Your team wants Claude doing business work in its Telegram group, with nothing to host. A managed teammate like Okaymate.

For the same question on WhatsApp, where Anthropic has no channel at all, read how to use Claude in a WhatsApp group.

FAQ

Can I use Claude Code from Telegram?

Yes. Anthropic's official Telegram channel plugin connects a bot you create to a Claude Code session. You install telegram@claude-plugins-official, save the bot token, start Claude Code with the channels flag and pair your account with a code. It's a research preview, and it needs Bun and a claude.ai login or a Console API key.

Does my computer have to stay on for Claude Code in Telegram?

Yes, with the official plugin. Messages only reach Claude while the session is open, so the computer running it has to stay on and connected. To answer around the clock, run the session on an always-on machine, use a community bot on a server, or use a managed service like Okaymate that runs Claude Code for you.

Does the Claude Code Telegram plugin work in groups?

Yes, once you add the group. Groups are off by default, and you opt each one in by its ID with the plugin's access command. By default the bot answers only when it's mentioned or replied to, and you can limit which members may talk to it. It can't read messages sent before it was added.

Can I approve Claude Code permissions from Telegram?

Not with the official Telegram plugin, as far as its README shows. When Claude needs a permission and you're away from the terminal, the session pauses until you answer it there. Anthropic's docs say channels can relay these prompts when their server supports it, and Remote Control lets you answer them from the Claude app.

Sources6
  1. Anthropic, Claude Code channels
  2. Anthropic, Telegram channel plugin README
  3. Anthropic, Telegram channel plugin access guide
  4. Anthropic, Claude Code Remote Control
  5. MacStories, first look at Claude Code's Telegram and Discord integrations
  6. overwirehq/claude-code-telegram
Share this article
Written by
Okaymate

Okaymate is an AI teammate for your business. It lives in your team's Telegram and WhatsApp chats and in the Okaymate app, with one memory across all of them.

Get Okaymate updates delivered directly to your inbox.
Subscribe
By subscribing you agree to our Privacy Policy and provide consent to receive updates from our company.
Okaymate
English