← 返回 Skills 市场
203
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install feishu-multi-account
功能描述
支持为多个子代理配置独立飞书机器人账号,确保飞书消息按账号绑定正确路由。
使用说明 (SKILL.md)
feishu-multi-account
OpenClaw 多飞书账号配置 - 为子代理配置独立的飞书机器人账号。
触发场景
- 用户要配置多个飞书机器人
- 用户要给子代理配置独立的飞书账号
- 用户遇到飞书消息路由问题
前置条件
- 飞书应用:已在飞书开放平台创建好应用(获取 AppID 和 AppSecret)
- OpenClaw:已安装并正常运行
- 子代理:已在 OpenClaw 中创建
配置步骤
Step 1:配置飞书多账号
在 openclaw.json 的 channels.feishu.accounts 中添加:
"accounts": {
"main": {
"appId": "cli_xxx",
"appSecret": "xxx"
},
"sub1": {
"appId": "cli_yyy",
"appSecret": "yyy",
"botname": "Agent B"
},
"default": {
"groupPolicy": "allowlist",
"groupAllowFrom": ["ou_xxx"],
"dmPolicy": "pairing"
}
}
Step 2:配置 Bindings(最重要!)
在 openclaw.json 顶层添加 bindings:
"bindings": [
{
"agentId": "main",
"match": {
"channel": "feishu",
"accountId": "main"
}
},
{
"agentId": "sub1",
"match": {
"channel": "feishu",
"accountId": "sub1"
}
}
],
Step 3:配置 Agents
"agents": {
"list": [
{
"id": "main",
"default": true,
"name": "Agent A"
},
{
"id": "sub1",
"name": "Agent B",
"workspace": "/path/to/workspace-sub1"
}
]
}
Step 4:重启 Gateway
openclaw gateway restart
验证配置
查看 Agent 列表
openclaw agents list
测试路由
用子代理的飞书账号发一条消息,看日志:
tail -f /tmp/openclaw/openclaw-日期.log | grep "dispatching"
成功日志:
feishu[sub1]: dispatching to agent (session=agent:sub1:sub1)
失败日志:
feishu[sub1]: dispatching to agent (session=agent:main:main)
常见问题
Q1: 路由一直不生效?
- 检查
bindings是否放在顶层(不是 channels 下面) - 检查
agentId和accountId是否与配置一致 - 检查是否两个账号都写了 bindings
Q2: 消息发到主账号?
- 很可能是没写主账号的 bindings,默认路由到 main 了
关键要点
- agentId = agents.list 中的 id
- accountId = accounts 中的账号 ID
- 两个账号都要写 bindings,否则会被默认路由
- 用bindings(不是routing)
配置文件示例
{
"bindings": [
{ "agentId": "main", "match": { "channel": "feishu", "accountId": "main" } },
{ "agentId": "sub1", "match": { "channel": "feishu", "accountId": "sub1" } }
],
"agents": {
"list": [
{ "id": "main", "default": true, "name": "Agent A" },
{ "id": "sub1", "name": "Agent B", "workspace": "/path/to/workspace-sub1" }
]
},
"channels": {
"feishu": {
"enabled": true,
"domain": "feishu",
"accounts": {
"main": { "appId": "cli_xxx", "appSecret": "xxx" },
"sub1": { "appId": "cli_yyy", "appSecret": "yyy" }
}
}
}
}
安全使用建议
This package is an instruction-only guide for configuring multiple Feishu bot accounts and appears coherent with that purpose. Things to consider before installing:
- The package owner and homepage are unknown; verify you trust this source before applying configuration changes.
- You will need each Feishu AppID and AppSecret and will be asked to place them into openclaw.json; those are sensitive credentials—ensure the config file is stored with appropriate permissions and backups are handled securely.
- The included config.json suggests an install step that copies files into skills/ even though the registry showed no install spec. If your platform will perform that copy, inspect the files to be copied first.
- Follow the SKILL.md exactly (bindings must be top-level, both accounts need bindings) to avoid accidental default routing to the main agent.
- Because this is instruction-only, there is no hidden code to analyze; nevertheless, review any changes you make to openclaw.json and restart the gateway in a controlled environment first.
功能分析
Type: OpenClaw Skill
Name: feishu-multi-account
Version: 1.0.0
The skill bundle is a legitimate configuration guide for setting up multiple Feishu (Lark) accounts within the OpenClaw platform. It contains only documentation and metadata (SKILL.md, config.json) providing JSON configuration examples and standard administrative shell commands for service management, with no evidence of malicious code, data exfiltration, or harmful instructions.
能力评估
Purpose & Capability
Skill name/description (multi Feishu accounts for sub-agents) matches the instructions: editing openclaw.json, adding accounts and bindings, restarting the gateway and checking logs. Required secrets (AppID/AppSecret) are relevant and expected for this purpose.
Instruction Scope
SKILL.md stays on-topic: it describes editing OpenClaw config, adding bindings, restarting gateway, and checking logs. The only file paths referenced are the OpenClaw config (openclaw.json) and OpenClaw log path (/tmp/openclaw/...), which are expected for this configuration task. No steps ask the agent to read unrelated system files, exfiltrate data, or call external endpoints.
Install Mechanism
Registry metadata reported 'no install spec' and the package is instruction-only, but config.json includes an "install": { "method": "copy", "path": "skills/" } entry. This is a minor inconsistency: it suggests the package may be intended to be copied into skills/ during installation. Copying static files into a skills directory is normal, but the presence of this install hint should be considered by the installer.
Credentials
The skill does not request environment variables or credentials from the platform; it instructs the user to place AppID/AppSecret values into openclaw.json. That is proportionate for configuring Feishu bots, but remember these are sensitive credentials—storing them in a config file requires appropriate file permissions and operational controls.
Persistence & Privilege
Skill is instruction-only, not always-enabled, and does not request persistent elevated privileges. The only potential persistence action implied is copying the skill files into a skills/ directory per config.json, which is reasonable for a configuration guide.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install feishu-multi-account - 安装完成后,直接呼叫该 Skill 的名称或使用
/feishu-multi-account触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of feishu-multi-account
- Enables configuration of multiple independent Feishu bot accounts in OpenClaw.
- Provides step-by-step setup instructions for linking specific Feishu accounts to sub-agents.
- Introduces configuration via openclaw.json: accounts, agents, and top-level bindings.
- Includes troubleshooting for common routing and binding issues.
- Offers a complete example configuration file.
元数据
常见问题
多子代理配置飞书 是什么?
支持为多个子代理配置独立飞书机器人账号,确保飞书消息按账号绑定正确路由。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 203 次。
如何安装 多子代理配置飞书?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install feishu-multi-account」即可一键安装,无需额外配置。
多子代理配置飞书 是免费的吗?
是的,多子代理配置飞书 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
多子代理配置飞书 支持哪些平台?
多子代理配置飞书 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 多子代理配置飞书?
由 zhili007(@zhili007)开发并维护,当前版本 v1.0.0。
推荐 Skills