← 返回
未分类

Kokochat Pairing

Generate a KokoChat connection code using OpenClaw's official `openclaw qr` device-pair flow. Use when the user asks to pair KokoChat, generate a KokoChat co...
使用 OpenClaw 官方 `openclaw qr` 设备配对流程生成 KokoChat 连接码。当用户请求配对 KokoChat 或生成 KokoChat 连接码时使用。
komako-workshop
未分类 clawhub v0.4.1 2 版本 100000 Key: 无需
★ 0
Stars
📥 258
下载
💾 0
安装
2
版本
#latest

概述

kokochat-pairing

KokoChat is a mobile client for this OpenClaw Gateway. KokoChat pairs as a real

Gateway device through OpenClaw's official openclaw qr device-pair flow:

the generator brings up the KokoChat relay tunnel, runs openclaw qr, and the

Gateway mints a short-lived bootstrapToken. The phone completes the

device-pair handshake and the Gateway issues the real device token. This skill

never self-signs a token or writes paired.json directly — that self-signing is

exactly what a careful OpenClaw flags as a backdoor.

The generated setup code uses the KokoChat relay tunnel url (so the phone can

reach this Gateway through NAT). Do not hand out LAN or bare public Gateway urls.

KokoChat product features only need operator.read + operator.write (read

sessions/history, send messages). The actual device-token scopes are signed by

OpenClaw's official openclaw qr / device-pair flow and may vary by OpenClaw

version or Gateway policy. After pairing, inspect openclaw devices list; if

the granted scopes exceed what the owner wants to grant, stop and revoke the

device. KokoChat itself does not need operator.admin, operator.approvals, or

operator.talk.secrets.

Generating A Connection Code

Run this from the skill directory. A pairing request is optional (older app

builds may include one; the openclaw qr flow does not need it):

node ./generate-kokochat-code.mjs

Return only the generated KokoChat connection code in a fenced code block.

Inspect / Approve The Phone Device (after the user pastes the code)

The setup code carries a gateway-signed bootstrapToken. When the user pastes it

into KokoChat, the phone redeems it through OpenClaw's official device-pair

flow. Depending on the OpenClaw version/gateway policy, the phone may create a

pending device request or may already appear as paired. Inspect first (the

operator is verifying a device the owner asked to pair — no patching, no

self-signing):

openclaw devices list             # confirm the KokoChat phone + actual scopes
openclaw devices approve --latest # only if it is pending and the owner accepts

If the phone is already paired, do not run approve. Inspect the actual scopes

with openclaw devices list; pairing is complete only if the owner accepts

them. If the scopes or device identity do not match expectations, stop and

recommend revoking/removing the device.

If The User Did Not Trigger Pairing From The App

Ask them to open KokoChat's "我 / 配对" page, then either run the install +

generate command it shows, or paste back the connection code you return here.

Output Format

这是新的 KokoChat 连接码:

Do Not

  • Do not print the raw gateway.auth.token.
  • Do not generate a token-only or self-signed setup code; the generator goes

through openclaw qr so the Gateway signs the token.

  • Do not widen scopes beyond operator.read + operator.write.
  • Do not patch OpenClaw internals (e.g. message-handler) to skip device

approval; use openclaw devices approve instead.

版本历史

共 2 个版本

  • v0.4.1 当前
    2026-06-06 06:59
  • v0.2.1
    2026-05-29 21:36 安全

安全检测

腾讯云安全 (Keen)

队列中

腾讯云安全 (Sanbu)

队列中

🔗 相关推荐

data-analysis

Digital Oracle

komako-workshop
使用市场交易数据回答预测问题,而非个人意见。适用于用户询问关于地缘政治、经济、市场、行业等的概率问题。
★ 1 📥 873

KokoChat Search

komako-workshop
使用 KokoChat托管的 Brave 搜索代理进行网页搜索,用户机器无需 API 密钥,凭证存于 KokoChat 服务器 (deeply.plus)。
★ 0 📥 202

KokoChat Deeply Research

komako-workshop
Deep-research course generator for the KokoChat Deeply mini-app. Phase A side of a two-phase pipeline: use the `kokochat
★ 0 📥 197