SpyBara
Go Premium

channels.md 2026-03-20 21:05 UTC to 2026-03-21 18:03 UTC

19 added, 0 removed.

2026
Tue 31 21:09 Mon 30 21:13 Sat 28 18:04 Fri 27 21:09 Thu 26 21:07 Wed 25 21:08 Tue 24 18:15 Mon 23 21:08 Sun 22 18:04 Sat 21 18:03 Fri 20 21:05 Thu 19 06:17 Wed 18 18:16 Tue 17 21:10 Mon 16 21:10 Sat 14 03:44 Fri 13 21:07 Thu 12 21:07 Wed 11 03:43 Tue 10 03:43 Mon 9 21:06 Sat 7 03:37 Fri 6 06:10 Thu 5 06:12 Wed 4 21:06 Sun 1 06:10

Push events into a running session with channels

Use channels to push messages, alerts, and webhooks into your Claude Code session from an MCP server. Forward CI results, chat messages, and monitoring events so Claude can react while you're away.

A channel is an MCP server that pushes events into your running Claude Code session, so Claude can react to things that happen while you're not at the terminal. Channels can be two-way: Claude reads the event and replies back through the same channel, like a chat bridge. Events only arrive while the session is open, so for an always-on setup you run Claude in a background process or persistent terminal.

Unlike integrations that spawn a fresh cloud session or wait to be polled, the event arrives in the session you already have open: see how channels compare.

You install a channel as a plugin and configure it with your own credentials. Telegram and Discord are included in the research preview.

When Claude replies through a channel, you see the inbound message in your terminal but not the reply text. The terminal shows the tool call and a confirmation (like "sent"), and the actual reply appears on the other platform.

This page covers:

To build your own channel, see the Channels reference.

Supported channels

Each supported channel is a plugin that requires Bun. For a hands-on demo of the plugin flow before connecting a real platform, try the fakechat quickstart.

View the full Telegram plugin source.

1

Create a Telegram bot

Open BotFather in Telegram and send /newbot. Give it a display name and a unique username ending in bot. Copy the token BotFather returns.

2

Install the plugin

In Claude Code, run:

/plugin install telegram@claude-plugins-official

If Claude Code reports that the plugin is not found in any marketplace, run /plugin marketplace add anthropics/claude-plugins-official first and retry the install.

3

Configure your token

Run the configure command with the token from BotFather:

/telegram:configure <token>

This saves it to ~/.claude/channels/telegram/.env. You can also set TELEGRAM_BOT_TOKEN in your shell environment before launching Claude Code.

4

Restart with channels enabled

Exit Claude Code and restart with the channel flag. This starts the Telegram plugin, which begins polling for messages from your bot:

claude --channels plugin:telegram@claude-plugins-official
5

Pair your account

Open Telegram and send any message to your bot. The bot replies with a pairing code.

Back in Claude Code, run:

/telegram:access pair <code>

Then lock down access so only your account can send messages:

/telegram:access policy allowlist

You can also build your own channel for systems that don't have a plugin yet.

Quickstart

Fakechat is an officially supported demo channel that runs a chat UI on localhost, with nothing to authenticate and no external service to configure.

Once you install and enable fakechat, you can type in the browser and the message arrives in your Claude Code session. Claude replies, and the reply shows up back in the browser. After you've tested the fakechat interface, try out Telegram or Discord.

To try the fakechat demo, you'll need:

1

Install the fakechat channel plugin

Start a Claude Code session and run the install command:

/plugin install fakechat@claude-plugins-official

If Claude Code reports that the plugin is not found in any marketplace, run /plugin marketplace add anthropics/claude-plugins-official first and retry the install.

2

Restart with the channel enabled

Exit Claude Code, then restart with --channels and pass the fakechat plugin you installed:

claude --channels plugin:fakechat@claude-plugins-official

The fakechat server starts automatically.

3

Push a message in

Open the fakechat UI at http://localhost:8787 and type a message:

hey, what's in my working directory?

The message arrives in your Claude Code session as a <channel source="fakechat"> event. Claude reads it, does the work, and calls fakechat's reply tool. The answer shows up in the chat UI.

If Claude hits a permission prompt while you're away from the terminal, the session pauses until you approve locally. For unattended use, --dangerously-skip-permissions bypasses prompts, but only use it in environments you trust.

Security

Every approved channel plugin maintains a sender allowlist: only IDs you've added can push messages, and everyone else is silently dropped.

Telegram and Discord bootstrap the list by pairing:

  1. Find your bot in Telegram or Discord and send it any message
  2. The bot replies with a pairing code
  3. In your Claude Code session, approve the code when prompted
  4. Your sender ID is added to the allowlist

On top of that, you control which servers are enabled each session with --channels, and on Team and Enterprise plans your organization controls availability with channelsEnabled.

Being in .mcp.json isn't enough to push messages: a server also has to be named in --channels.

Enterprise controls

Channels are controlled by the channelsEnabled setting in managed settings.

Plan type Default behavior
Pro / Max, no organization Channels available; users opt in per session with --channels
Team / Enterprise Channels disabled until an admin explicitly enables them

Enable channels for your organization

Admins can enable channels from claude.ai → Admin settings → Claude Code → Channels, or by setting channelsEnabled to true in managed settings.

Once enabled, users in your organization can use --channels to opt channel servers into individual sessions. If the setting is disabled or unset, the MCP server still connects and its tools work, but channel messages won't arrive. A startup warning tells the user to have an admin enable the setting.

Research preview

Channels are a research preview feature. Availability is rolling out gradually, and the --channels flag syntax and protocol contract may change based on feedback.

During the preview, --channels only accepts plugins from an Anthropic-maintained allowlist. The channel plugins in claude-plugins-official are the approved set. If you pass something that isn't, Claude Code starts normally but the channel doesn't register, and the startup notice tells you why.

To test a channel you're building, use --dangerously-load-development-channels. See Test during the research preview for information about testing custom channels that you build.

Report issues or feedback on the Claude Code GitHub repository.

How channels compare

Several Claude Code features connect to systems outside the terminal, each suited to a different kind of work:

Feature What it does Good for
Claude Code on the web Runs tasks in a fresh cloud sandbox, cloned from GitHub Delegating self-contained async work you check on later
Claude in Slack Spawns a web session from an @Claude mention in a channel or thread Starting tasks directly from team conversation context
Standard MCP server Claude queries it during a task; nothing is pushed to the session Giving Claude on-demand access to read or query a system
Remote Control You drive your local session from claude.ai or the Claude mobile app Steering an in-progress session while away from your desk

Channels fill the gap in that list by pushing events from non-Claude sources into your already-running local session.

  • Chat bridge: ask Claude something from your phone via Telegram or Discord, and the answer comes back in the same chat while the work runs on your machine against your real files.
  • Webhook receiver: a webhook from CI, your error tracker, a deploy pipeline, or other external service arrives where Claude already has your files open and remembers what you were debugging.

Next steps

Once you have a channel running, explore these related features: