@pinclaw/openclaw-relay-plugin
v0.1.23
Published
PinClaw relay channel plugin for OpenClaw
Readme
@pinclaw/openclaw-relay-plugin
PinClaw 的 OpenClaw relay channel 插件包,负责在 OpenClaw 中注册 channels.pinclaw,并维护活动桌宠会话筛选。
安装
如果该版本已经发布到 npm:
openclaw plugins install @pinclaw/openclaw-relay-plugin如果从本地归档安装:
openclaw plugins install ./pinclaw-openclaw-relay-plugin-<version>.tgz当前行为
- 注册
channels.pinclaw渠道账户,并由gateway.startAccount生命周期托管主机隧道。 - 提供活动桌宠路由器,只接受平台裁定的当前桌宠会话请求。
- 提供主机隧道最小运行时,默认每
10秒发送一次host.heartbeat帧,并把活动桌宠请求转发到 OpenClaw 进程内受信运行时。 - 主机凭据文件
~/.openclaw/pinclaw-relay-host.json在运行中被重写后,插件会自动侦测主机标识、凭据或隧道地址变化,并按最新主机凭据重新建立平台隧道。 - 插件与 OpenClaw 之间不再建立第二条本地 Gateway WebSocket,而是通过官方
openclaw/plugin-sdk/*子路径读取会话、历史与事件。
插件在 OpenClaw 配置中的标识为 pinclaw。如果本机启用了 plugins.allow 白名单,应当填写 pinclaw;渠道账户标识固定为 channels.pinclaw。
