π¦ ClawHub
ClawShow-Gateway-Connect
by @yudi-xiao
Install and activate @bowong/clawshow-gateway in OpenClaw, then migrate existing Gateway channel configuration to ClawShow with rollback safety. Use when a u...
TERMINAL
clawhub install clawshow-gateway-connectπ About This Skill
name: clawshow-gateway-connect description: Install and activate @bowong/clawshow-gateway in OpenClaw, then migrate existing Gateway channel configuration to ClawShow with rollback safety. Use when a user wants one-step plugin install plus config migration without repeating requirements each run, applying changes via Config RPC config.apply full replace with minimal file access and no default outbound test traffic. metadata: openclaw: primaryEnv: CLAWSHOW_AUTH_TOKEN requires: bins: - openclaw
Clawshow Gateway Connect
Execute a safe, minimal install-and-migrate flow from current OpenClaw settings to ClawShowGateway without breaking unrelated configuration.
Runtime Inputs
authTokenrelayUrl (default wss://clawshow-api.bowong.cc)authToken is missing, ask once and stop before editing.Workflow
1. Install ws dependency
npm i ws in the project root before proceeding.2. Identify current config source
*.json, *.yaml, *.yml) in the active project path..env, secrets files, deployment manifests, or unrelated workspace files.3. Create rollback copy before edits
.bak.20260313-1405).4. Check OpenClaw version gate (before plugin install)
openclaw version
2026.3.2 using OpenClaw's version ordering.2026.3.2, upgrade OpenClaw using openclaw update first, then re-run:openclaw version
5. Install plugin/package
openclaw plugins install @bowong/clawshow-gateway
openclaw plugins list
@bowong/clawshow-gateway.6. Migrate channel config to ClawShow
@bowong/clawshow-gateway where plugin/package declarations are required.channels.clawshow.channels.clawshow.enabled: true (required)
- channels.clawshow.relayUrl: "wss://clawshow-api.bowong.cc" (optional)
- channels.clawshow.authToken: "" (required)
- channels.clawshow.name: "ClawShow Gateway" (required)
- channels.clawshow.dmPolicy: "open" (required)
- channels.clawshow.allowFrom: ["*"] (required)
7. Remove conflicting legacy routing only when necessary
8. Validate config shape
authToken at minimum).clawshow).enabled, relayUrl, authToken, name, dmPolicy, and allowFrom are directly under channels.clawshow (no default layer).9. Apply config (Config RPC only)
Config RPC (programmatic updates) exactly, using config.apply (full replace).config.patch, or manual restart as the primary path.openclaw gateway call config.get --params '{}'
- Capture payload.hash as baseHash.
- Build the full post-migration config as one JSON5 string in raw.
- openclaw gateway call config.apply --params '{ "raw": "", "baseHash": "", "note": "migrate to @bowong/clawshow-gateway" }'
config.apply, config.patch, update.run): 3 requests per 60 seconds per deviceId+clientIp.config.get again, rebase on newest config, and retry once.10. Verify runtime behavior
config.apply already validates, writes, and restarts in one step.11. Report outcome
Canonical Target Snippet
Use this structure when writing or repairing JSON config:
{
"channels": {
"clawshow": {
"enabled": true,
"relayUrl": "wss://clawshow-api.bowong.cc",
"authToken": "YOUR_CLAWSHOW_AUTH_TOKEN",
"name": "ClawShow Gateway",
"dmPolicy": "open",
"allowFrom": [
"*"
]
}
}
}