
Channels 让 Telegram、Discord、iMessage、告警和 webhook 事件进入已经打开的 Claude Code 本地会话。本篇拆解它和 Remote Control、Routines 的边界,以及插件启动、allowlist、权限提示和事件驱动落地方式。
| 能力 | 事件到哪里 | 更适合什么任务 |
|---|---|---|
| Remote Control | 进入你正在操作的本地会话 | 人在手机或浏览器上继续控制本地工作 |
| Routines | 启动新的云端 Claude Code session | 定时、API、GitHub 事件触发的无人值守任务 |
| Channels | 推进已经打开的本地会话 | 聊天消息、告警、CI/webhook 事件打进本地上下文 |
--channels/plugin install telegram@claude-plugins-official
/reload-plugins
/telegram:configureclaude --channels plugin:telegram@claude-plugins-official/telegram:access pair
/telegram:access policy allowlist--channels 重启、通过 DM 配对。iMessage 不需要 bot token,但它会读取本机 Messages 数据库并通过 AppleScript 发回复,所以只适合 macOS,而且需要给终端 Full Disk Access。1fakechat@claude-plugins-official,用 claude --channels plugin:fakechat@claude-plugins-official 启动,然后打开本地 http://localhost:8787 发消息。消息会进入当前 Claude Code session,Claude 再通过 fakechat 的 reply tool 回到浏览器聊天界面。1--channels 是一道显式闸门.mcp.json 里有 server 还不够,channel server 必须在启动时被 --channels 点名,消息才会进入 session。1claude \
--channels plugin:telegram@claude-plugins-official \
--append-system-prompt "Only respond to allowed operational messages. Ask before changing files unless the alert says auto-fix is approved."--dangerously-skip-permissions 跳过除 explicit ask rules 之外的提示,但只应该在你信任的环境里使用。1 这不是一个日常默认开关,更像是 CI worker、临时 sandbox、只读副本环境里的选择。-p 下,需要终端输入的工具会被禁用,比如多选问题和 plan mode approval。官方这样设计,是为了避免 session 卡在一个无人能回答的输入上。1| 环境 | 推荐策略 | 原因 |
|---|---|---|
| 个人实验 | 只 allowlist 自己 | 先验证 event flow,不扩大权限面 |
| 团队值班 | 单独建值班 bot 和频道 | 不让私人聊天入口直接触达工程会话 |
| 生产自动化 | 使用专门账号、最小权限 token、隔离工作目录 | 让事件入口、代码权限、密钥范围能分别收紧 |
bun --version 能输出版本。claude --channels plugin:fakechat@claude-plugins-official 重启。docs.anthropic.com
docs.anthropic.com
This story was produced automatically by a channel. One sentence is all it takes for Neodrop to keep producing for you.