Help us improve
Share bugs, ideas, or general feedback.
Share bugs, ideas, or general feedback.
Share bugs, ideas, or general feedback.
By AnInteger
Bridge Claude Code with Feishu (Lark) messaging, enabling message sending, channel management, and server interaction with built-in access control for pairing, allowlists, and policy management via /feishu:access commands.
npx claudepluginhub aninteger/claude-channel-feishuManage Feishu channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed, or change policy for the Feishu channel.
Set up the Feishu channel — save app credentials and review access policy. Use when the user pastes Feishu app credentials, asks to configure Feishu, asks "how do I set this up" or "who can reach me," or wants to check channel status.
飞书 (Feishu/Lark) 通道插件,让 Claude Code 可以通过飞书与用户交互。
curl -fsSL https://bun.sh/install | bash--channels 需要 claude.ai 付费账户)以下为单用户私聊机器人的默认配对流程。群组和多用户设置详见 ACCESS.md。
cli_a93643d59af89cebW4h7t7MAYDvfDsM0vZNdNfknOKbEpkpEim:message - 获取与发送单聊、群组消息im:message:send_as_bot - 以应用身份发消息contact:user.base:readonly - 获取用户基本信息在 Claude Code 会话中运行:
/plugin install feishu-unofficial
/feishu-unofficial:configure <your_app_id> <your_app_secret>
这会将凭证写入 ~/.claude/channels/feishu/.env。
国际版 Lark 用户:在
.env中添加FEISHU_DOMAIN=lark
退出当前会话,用 --channels 参数启动:
claude --channels plugin:feishu-unofficial
在飞书中给你的机器人发私信,它会回复一个 6 位配对码。然后在 Claude Code 中:
/feishu-unofficial:access pair <code>
你的下一条私信就会发送给助手。
配对完成后,切换到 allowlist 模式防止陌生人访问:
/feishu-unofficial:access policy allowlist
详见 ACCESS.md,包含:
快速参考:用户 ID 是 Open ID 格式(如 ou_xxxxx)。
| 工具 | 用途 |
|---|---|
reply_to_feishu | 发送消息到飞书聊天 |
reply_with_reaction_feishu | 对消息添加表情反应 |
manage_feishu_access | 管理访问控制(list/pair/allow/deny/policy 等) |
助手回复时会自动触发「正在输入」指示器。
收到的图片会下载到 ~/.claude/channels/feishu/inbox/,助手可以用 Read 工具读取。
fetch_messages 工具,助手需要你提供上下文当 Claude Code 需要批准敏感操作时:
[权限请求] <request_id>: <操作描述>yes <request_id> 批准,或 no <request_id> 拒绝| 文件 | 用途 |
|---|---|
~/.claude/channels/feishu/.env | 凭证(App ID、App Secret) |
~/.claude/channels/feishu/access.json | 访问控制配置 |
bun install
bun server.ts
claude-channel-feishu-unofficial/
├── .claude-plugin/
│ └── plugin.json # 插件元信息(name: "feishu-unofficial")
├── .mcp.json # MCP 服务器启动配置
├── package.json # npm 包配置(name: "claude-channel-feishu-unofficial")
├── server.ts # 主程序
├── skills/
│ ├── access/SKILL.md
│ └── configure/SKILL.md
├── README.md
├── ACCESS.md
├── LICENSE
└── .gitignore
package.json — npm 包名(用户 npm install 用)
{
"name": "claude-channel-feishu-unofficial",
"bin": "./server.ts",
"type": "module"
}
.claude-plugin/plugin.json — 插件名(用户 /plugin install 用)
{
"name": "feishu-unofficial",
"description": "..."
}
.mcp.json — MCP 服务器启动
{
"mcpServers": {
"feishu-unofficial": {
"command": "bun",
"args": ["run", "--cwd", "${CLAUDE_PLUGIN_ROOT}", "--shell=bun", "--silent", "start"]
}
}
}
# 1. 登录 npm
npm login
# 2. 发布(首次发布需要 --access public)
npm publish --access public
# 3. 后续更新
npm version patch # 或 minor / major
npm publish
发布后,用户可以通过两种方式安装:
方式 1:Claude Code 内部安装
/plugin install feishu-unofficial
方式 2:全局 npm 安装
npm install -g claude-channel-feishu-unofficial
┌─────────────────────┐
│ Claude Code │
│ └── MCP Client │
└─────────┬───────────┘
│ stdin/stdout
┌─────────▼───────────┐
│ server.ts │
│ ├── MCP Server │
│ ├── Access Control │
│ ├── Permission Relay│
│ └── WS Client │
└─────────┬───────────┘
│ WebSocket
┌─────────▼───────────┐
│ 飞书服务器 │
└─────────────────────┘
Apache-2.0
Admin access level
Server config contains admin-level keywords
Share bugs, ideas, or general feedback.
Based on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Feishu (Lark) channel plugin for Claude Code — receive and reply to Feishu messages
WeChat (微信) channel for Claude Code — chat with Claude via WeChat. Supports text, images, files, voice, video, and remote permission relay.
WeChat (微信) channel for Claude Code — messaging bridge via iLink Bot API with built-in access control.
WeChat channel for Claude Code via iLink Bot API
Permanent coding companion for Claude Code — survives any update. MCP-based terminal pet with ASCII art, stats, reactions, and personality.
Upstash Context7 MCP server for up-to-date documentation lookup. Pull version-specific documentation and code examples directly from source repositories into your LLM context.
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge.
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge.
Sign in to claim