@fontdo/5g-message
v1.0.14
Published
OpenClaw 通道插件,用于连接 Fontdo 5G 消息平台
Readme
Fontdo 5G Message Channel Plugin
OpenClaw 通道插件,用于连接5G消息(RCS)通道。
协议支持
- 传输协议: WebSocket over TLS (wss://)
- 消息协议: JSON-RPC 2.0
- 认证方式: Headers 签名认证
安装
方法 1: 使用工具安装(推荐)
使用专门的工具进行安装和配置:
# 一键安装并配置
npx -y @fontdo/5g-message-tools install
# 仅更新插件
npx @fontdo/5g-message-tools update
# 仅配置插件
npx @fontdo/5g-message-tools configure方法 2: 本地安装
# 将插件复制到 OpenClaw 扩展目录
cp -r . ~/.openclaw/extensions/5g-message
# 或者使用链接方式(开发模式)
openclaw plugins install -l /path/to/5g-message方法 3: NPM 安装
openclaw plugins install @fontdo/5g-message
# 安装后配置
npx @fontdo/5g-message-tools configure配置
在 ~/.openclaw/openclaw.json 中添加配置:
{
"channels": {
"5g-message": {
"enabled": true,
"accounts": {
"default": {
"host": "5g.fontdo.com",
"appId": "your-app-id", //到www.fontdo.com 申请
"appKey": "your-app-secret", //到www.fontdo.com 申请
"botName": "OpenClaw Bot", // 单独申请botName请到www.fontdo.com联系
"enabled": true
}
},
"dmPolicy": "pairing",
"allowFrom": []
}
}
}配置项说明
| 字段 | 说明 | 必填 |
| --------- | ---------------- | ----------------------------------------- |
| host | IM 服务器地址(不含协议前缀) | ✅ |
| appId | 应用 ID | ✅ |
| appKey | 应用密钥 | ✅ |
| botName | 机器人显示名称 | ❌ (默认 蜂动Claw) |
| enabled | 是否启用该账号 | ❌ (默认 true) |
多账号配置
{
"channels": {
"5g-message": {
"defaultAccount": "prod",
"accounts": {
"prod": {
"host": "5g.fontdo.com",
"appId": "your-app-id", //到www.fontdo.com 申请
"appKey": "your-app-secret", //到www.fontdo.com 申请
"botName": "Production Bot"// 单独申请botName请到www.fontdo.com联系
},
"dev": {
"host": "test.fontdo.com",
"appId": "your-app-id", //到www.fontdo.com申请
"appKey": "your-app-secret", //到www.fontdo.com申请
"botName": "Dev Bot" // 单独申请botName请到www.fontdo.com联系
}
}
}
}
}注意事项
- 配置完成后需要重启 OpenClaw 服务以应用配置:
openclaw gateway restart - 确保网络连接正常,能够访问 Fontdo 5G 消息平台
- 如需使用 CLI 工具进行安装和配置,请使用
@fontdo/5g-message-tools包
