Run your AI from your phone — the full setup
Claude Code + a Telegram bot = your AI, run from your phone
Channels is a feature Anthropic shipped on March 20, 2026. It lets you command Claude Code through Telegram or Discord, so you do not have to sit at the computer. Open Telegram on your phone and you are working.
Picture this: you are out having coffee and you suddenly want to change a piece of code. You open Telegram, tell your bot to make the homepage heading 24px, and it is done.
On the computer:
① Install Claude Code + Bun
② Install the Telegram plugin inside Claude Code
③ In Claude Code, run /telegram:configure and paste your token
④ Quit, then relaunch with claude --channels ... from the terminal
On Telegram, on your phone:
⑤ Create a Telegram bot (chat with @BotFather)
⑥ Copy the bot token (paste it in step ③)
⑦ Once the computer is running, message the bot to pair
Order matters: set everything up on the computer first, then go to Telegram and send a message.
If Telegram goes first, the bot stays silent, because the computer is not ready yet.
Mac: Press ⌘ + Space (Spotlight), type Terminal and press Enter.
Or go to Applications → Utilities → Terminal.
Windows: Press the Win key and search for PowerShell or CMD and press Enter.
Installing WSL2 makes it smoother.
Open Terminal, copy and paste this line:
When it finishes you will see ✔ Claude Code successfully installed!
Confirm the install worked:
If it prints a version number (anything starting with2.x.x works), you are set.
Then run claude to start it. The first run asks you to log in to your Anthropic account.
Copy and paste this line:
After installing you have to set PATH, copy and paste:
Confirm the install worked:
A version number means you are good.
Open Telegram and search for @BotFather(Telegram's official bot manager).
Open the chat and send this command:
My Claude Codebot and be unique worldwide)leo_claude_botA token looks like this:
Open Claude Code (type claudein Terminal), then inside it type:
If it says the plugin cannot be found, run this first to add the official marketplace:
Then install it again.
> Install for you (user scope) ← pick this one, press Enter Install for all collaborators (project scope) Install for you, in this repo only (local scope) Back to plugin listOnce it is installed, run:
Inside Claude Code, type (without the token):
/telegram:configure YOUR_TOKENinstead, you get an “Unknown skill” error.~/.claude/channels/telegram/.env, you only set it once.Quit Claude Code first, then relaunch with this command:
When the Telegram plugin loads, you are connected.
claude --channels plugin:telegram@claude-plugins-officialOnce paired, lock it down so only you can drive it:
Now go back to Telegram and send a test message:
If the bot answers with your working directory, Channels is set up. 🎉
Closing the terminal drops the connection. Use tmux so Claude Code keeps running in the background:
These are the workflows I actually run
Includes: scheduled posting / community monitoring / smart replies / data reports
DM @kanisleo328 on IG and let's talkThe Telegram plugin did not install properly. Fix it in this order:
1. Check whether the plugin is there:
2. If telegram is missing, add the marketplace:
3. Install it again (pick “Install for you” and press Enter):
4. Reload after installing:
5. Try again (without the token):
PATH is not set. Copy and paste this line, then press Enter:
If it still cannot find it, close Terminal, open a fresh one, and type claude.
Same PATH problem as above. Copy and paste:
Check in this order:
1. The computer is on and Claude Code is running
2. The bot token has no typos (run echo $TELEGRAM_BOT_TOKEN to confirm)
3. Restart with claude --channels plugin:telegram@claude-plugins-official
4. Confirm Telegram has a working network connection
Yes, but be careful about security. Channels supports an allowlist, so you can name which Telegram user IDs may drive your Claude Code. Only add people you trust, this is the same as letting them work your computer remotely.
Yes. Channels needs your computer to keep running Claude Code. Shutting down, sleeping, or closing the terminal all cut the connection. Use tmux or screen to keep the session alive, and set the Mac not to sleep on its own.
Channels is an official Anthropic feature built into Claude Code, with no third-party service in between. OpenClaw is a community-built tool. The official one is usually more stable and more secure, and it keeps getting updates alongside Claude Code.
Your commands travel through the Telegram Bot API to Claude Code on your own computer, and Claude Code processes them through the Anthropic API. That means the code and file contents Claude reads go to Anthropic's servers as part of the conversation for inference, so it does not all stay local. The files on your disk are not copied away, but what Claude reads does pass through Anthropic. If security worries you, set an allowlist to limit who can drive it, and keep Claude away from genuinely confidential files.
Follow Leo for firsthand experience, shared as it happens
Follow @kanisleo328Found this useful? Cite it and pass it on