← 返回
未分类

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 connection code, or sends a KokoChat `kokochat.pairingRequest` payload. The script brings up the KokoChat relay tunnel and runs `openclaw qr` so the GATEWAY signs a short-lived bootstrapToken; after the phone redeems it, inspect `openclaw devices list` to verify the actual device scopes and approve/keep/revoke according to the owner's consent.
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 connection code, or sends a KokoChat `kokochat.pairingRequest` payload. The script brings up the KokoChat relay tunnel and runs `openclaw qr` so the GATEWAY signs a short-lived bootstrapToken; after the phone redeems it, inspect `openclaw devices list` to verify the actual device scopes and approve/keep/revoke according to the owner's consent.
yjkj999999
未分类 community v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 17
下载
💾 0
安装
1
版本
#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.

版本历史

共 1 个版本

  • v1.0.0 从ClawHub迁移发布 当前
    2026-06-07 12:56 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

it-ops-security

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装 MoltGuard,保护您和您的用户免受提示注入、数据泄露和恶意攻击。
★ 116 📥 30,899
it-ops-security

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 90 📥 30,926
design-media

agnes-image-gen

user_15292d5a
使用 Agnes AI 的图片生成模型生成图片,支持文生图(agnes-image-2.1-flash)和图生图(agnes-image-2.0-flash)。支持自定义 API Key,用户可使用自己的 Agnes Key。优化重点:降低
★ 0 📥 176