DLinkClaw 通道插件安装与配置
dlinkclaw-openclaw 是 DLinkClaw 官方的 OpenClaw 通道插件,让部署在家中或公司内网的 OpenClaw,通过朵联中继与微信、钉钉、企业微信、QQ、飞书等 IM 自由连接。
- 插件名:
dlinkclaw-openclaw(npm 包) - 功能:将 DLinkClaw 中继注册为 OpenClaw 的聊天通道(channel)
- 配置项:apiKey、secret、baseUrl、accountId 等
第 1 步:安装插件
Section titled “第 1 步:安装插件”openclaw plugins install npm:dlinkclaw-openclaw@alphaℹ️ 当前版本为 alpha 内测版,功能逐步完善中,请关注正式版发布。
第 2 步:添加 dlink 通道
Section titled “第 2 步:添加 dlink 通道”openclaw channels add --channel dlink按交互提示填写:
| 配置项 | 说明 | 示例 |
|---|---|---|
| apiKey | 朵联平台的 API Key,在朵联控制台获取 | bot_xxxxxxxxxxxx |
| secret | 朵联签名密钥,用于消息加解密与签名认证 | (控制台生成) |
| baseUrl | 朵联中继服务回调地址 | https://your-dlink-server.example.com |
| accountId | 账号标识 | default(默认) |
| enabled | 是否立即启用 | true |
第 3 步:重启 Gateway
Section titled “第 3 步:重启 Gateway”通道配置完成后需要重启生效:
openclaw gateway restart第 4 步:验证
Section titled “第 4 步:验证”openclaw status看到 dlink 通道状态为 connected 即接入成功。此时通过朵联平台绑定的 IM 应用向你的智能体发送消息,即可收到回复。
配置文件位置
Section titled “配置文件位置”配置保存在 ~/.openclaw/openclaw.json 的 channels.dlink 字段:
{ channels: { dlink: { enabled: true, apiKey: "bot_xxxxxxxxxxxx", secret: "your-signing-secret", baseUrl: "https://your-dlink-server.example.com", accountId: "default", mediaMaxMb: 100, }, },}| 配置项 | 必填 | 说明 |
|---|---|---|
apiKey |
✅ | 朵联 API Key,标识你的应用 |
secret |
✅ | 签名密钥,用于消息签名验证与加解密 |
baseUrl |
✅ | 朵联中继回调地址,插件通过它收发消息 |
enabled |
❌ | 是否启用通道,默认 true |
accountId |
❌ | 多账号标识,默认 default |
mediaMaxMb |
❌ | 媒体文件大小上限(MB),默认 100 |
⚠️ 安全提示:
apiKey与secret属于敏感凭据,请勿提交到代码仓库或分享给他人。
两种方式任选:
# 方式一:重新运行向导openclaw channels add --channel dlink
# 方式二:手动编辑后重启nano ~/.openclaw/openclaw.jsonopenclaw gateway restart消息发不出去?
Section titled “消息发不出去?”- 确认
openclaw status中 dlink 通道为connected - 检查
baseUrl是否可被插件访问 - 检查 apiKey / secret 是否与控制台一致
- 查看日志:
openclaw channels logs
如何关闭通道?
Section titled “如何关闭通道?”将配置中 enabled 设为 false 并重启 Gateway,或:
openclaw channels remove dlink- 还没安装 OpenClaw?查看 安装与模型配置。
- 选择适合你的部署环境:WSL / Multipass / Ubuntu 物理机。
