Clawket

v1.0.1

Generate QR codes for Clawket mobile app to pair with the local OpenClaw Gateway. Use when user mentions: Clawket pairing, login Clawket, QR code, mobile app...

0· 441· 2 versions· 0 current· 0 all-time· Updated 7h ago· MIT-0
byCavano@p697

Install

openclaw skills install clawket

Clawket Gateway QR Code

Generate a QR code that the Clawket mobile app can scan to auto-configure Gateway connection (URL + auth token).

Generate QR Code

Run the script:

bash SKILL_DIR/scripts/gateway-qr.sh

The script will:

  1. Read ~/.openclaw/openclaw.json for the auth token
  2. Detect the local LAN IP address
  3. Generate a QR code as a PNG image at ~/.openclaw/media/clawket-qr.png
  4. Also print an ASCII QR code to the terminal

Send the PNG to the user via the message tool (filePath: ~/.openclaw/media/clawket-qr.png).

QR Payload Format

The QR code contains a JSON object:

{
  "host": "192.168.1.100",
  "port": 18789,
  "token": "...",
  "tls": false
}

The Clawket app scans this and auto-fills Gateway URL + auth token, then connects.

Troubleshooting

  • If qrencode is not installed: brew install qrencode (macOS) / sudo apt install qrencode (Linux) / choco install qrencode (Windows)
  • If the LAN IP detection fails, the script falls back to 127.0.0.1
  • The token is read directly from the JSON config file (not via openclaw config get which redacts it)

Version tags

latestvk9730yqqz384q4700yq3bszn4x81yt3y