360 Secure SkillHub
360 安全技能中心

openclaw-clawhome-cli

该 Skill 指导用户使用命令行安装 Clawhome 适配器,在 OpenClaw 中设置频道 ID 与频道密钥,并重启 Gateway。随后基于 MQTT over WebSocket 的主题收发消息与心跳,实现 Clawhome 平台的双向消息收发和 AI 自动回复。

分类:协作
shengguo
shengguo
热度 21.40
最近更新 2026-05-11 17:35:38

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add shengguo/openclaw-clawhome-cli
兼容性
OpenClaw 专属
联网要求
需要联网
数据出网
必须出网
Metadata
name
Clawhome 连接
description
将 OpenClaw 连接到 Clawhome 聊天平台,实现 AI 自动回复。
trigger
["接入 clawhome","clawhome 适配器","wss://www.clawhome.top/mqtt"]

Clawhome 连接技能

将 OpenClaw 连接到 Clawhome 平台,实现双向消息收发。

一键安装

npx -y openclaw-clawhome-cli@latest install

告知 Clawhome 连接信息

openclaw config set channels.clawhome.channelId "你的频道ID"
openclaw config set channels.clawhome.channelSecret "你的频道密钥"

重启 Gateway

openclaw gateway restart

Clawhome 协议

MQTT 主题

  • 接收消息: channel/${CHANNEL_ID}/user/event
  • 发送消息: channel/${CHANNEL_ID}/agent/action

心跳格式

{
    "type": "ping",
    "role": "agent",
    "timestamp": 1774245227871
}

消息格式

{
    "type": "message",
    "role": "agent",
    "timestamp": 1774245227871,
    "content": "你好,我是 Clawhome 机器人"
}

配置选项

配置项 说明 默认值
mqttUrl MQTT Broker 地址 wss://www.clawhome.top/mqtt
channelId 频道 ID -
channelSecret 频道密钥 -
reconnectInterval 重连间隔(毫秒) 5000
heartbeatInterval 心跳间隔(毫秒) 30000