@openclawline/clawline
v0.4.3
Published
ClawLine Channel Plugin for OpenClaw - connect your OpenClaw instance to ClawLine mobile app
Maintainers
Readme
@openclawline/clawline
ClawLine Channel Plugin for OpenClaw — 将你的 OpenClaw AI 实例接入 ClawLine 移动端应用。
功能
- 通过 WebSocket 长连接将 OpenClaw 实例与 ClawLine App 配对
- 支持流式消息(Server-Sent Events → WebSocket chunk 帧)
- 断线自动重连(指数退避 + 心跳探活)
- 定时上报实例运行状态(model、skills、agents、uptime)
- 提供 OpenClaw Skill,允许 AI 主动发起配对流程
安装
npm install @openclawline/clawlineNode.js 要求: >=18.0.0
CLI 快速使用
# 通过扫码/链接获得的 UUID 完成首次配对
npx @openclawline/clawline <PAIRING_UUID>
# 查看当前连接状态
npx @openclawline/clawline --status
# 重置配对(清除本地凭证)
npx @openclawline/clawline --resetSDK 集成
import ClawLineChannel from '@openclawline/clawline';
const channel = new ClawLineChannel({
serverUrl: 'wss://ws.openclawline.com',
instanceId: 'my-openclaw-instance',
});
// 挂载到 OpenClaw 实例
openclaw.use(channel);配置文件
本地配置存储于 ~/.openclaw/channels/clawline.json:
{
"serverUrl": "wss://ws.openclawline.com",
"instanceId": "...",
"credentials": {
"token": "..."
}
}Peer Dependency
本插件可选依赖 @openclaw/sdk >=1.0.0。若使用 OpenClaw SDK 模式集成,请确保已安装该包;通过 CLI 单独使用时无需安装。
License
MIT
