← Back to Skills Marketplace
203
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install feishu-multi-account
Description
支持为多个子代理配置独立飞书机器人账号,确保飞书消息按账号绑定正确路由。
README (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" }
}
}
}
}
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install feishu-multi-account - After installation, invoke the skill by name or use
/feishu-multi-account - Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Frequently Asked Questions
What is 多子代理配置飞书?
支持为多个子代理配置独立飞书机器人账号,确保飞书消息按账号绑定正确路由。 It is an AI Agent Skill for Claude Code / OpenClaw, with 203 downloads so far.
How do I install 多子代理配置飞书?
Run "/install feishu-multi-account" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is 多子代理配置飞书 free?
Yes, 多子代理配置飞书 is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does 多子代理配置飞书 support?
多子代理配置飞书 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created 多子代理配置飞书?
It is built and maintained by zhili007 (@zhili007); the current version is v1.0.0.
More Skills