AwadYoo/claude-code-feishu-channel
Control Claude Code remotely via Feishu (飞书) bot | 通过飞书机器人远程控制 Claude Code
Platform-specific configuration:
{
"mcpServers": {
"claude-code-feishu-channel": {
"command": "npx",
"args": [
"-y",
"claude-code-feishu-channel"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
Control Claude Code from your phone via Feishu (Lark). Send a message to your bot, Claude executes on your computer, and the result comes back in chat.
通过飞书机器人远程控制 Claude Code。在手机上发消息,Claude 在你的电脑上执行,结果直接回到飞书。
---
---
> Important — step order matters / 注意操作顺序: > Configure App ID/Secret → Save credentials → Start server → Then configure long connection in the console. > 先配置 App ID/Secret → 保存凭证 → 启动服务 → 再到开放平台配置长连接。 > If the console still shows an error, stop and restart the server. > 若控制台仍报错,尝试重启服务后再保存。
Go to Feishu Open Platform → Create App → Self-built app.
打开飞书开放平台 → 创建应用 → 企业自建应用。
Go to Credentials & Basic Info → copy App ID and App Secret.
进入凭证与基础信息 → 复制 App ID 和 App Secret。
mkdir -p ~/.claude/channels/feishu
cat > ~/.claude/channels/feishu/.env << EOF
FEISHU_APP_ID=cli_xxxxxxxxxxxxxxxx
FEISHU_APP_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
EOFThen start the server (keep this terminal open):
然后启动服务(保持这个终端不要关):
cd claude-code-feishu-channel
bun server.tsApp Capabilities → Add Capability → Bot → Enable → Publish.
应用能力 → 添加应用能力 → 机器人 → 开启 → 发布。
Go to Permission Management → Bulk Import/Export and paste the following JSON:
进入权限管理 → 批量导入/导出权限,粘贴以下 JSON:
{
"scopes": {
"tenant": [
"im:message",
"im:message.group_msg",
"im:message.p2p_msg:readonly",
"im:message.reactions:read",
"im:resource",
"im:cLoading reviews...