Skip to content

docs: add 'xclawrouter setup' step after each OpenClaw install path#6

Merged
KillerQueen-Z merged 1 commit into
mainfrom
fix/readme-add-setup-step
May 13, 2026
Merged

docs: add 'xclawrouter setup' step after each OpenClaw install path#6
KillerQueen-Z merged 1 commit into
mainfrom
fix/readme-add-setup-step

Conversation

@KillerQueen-Z
Copy link
Copy Markdown
Collaborator

Why

Only the curl one-liner (Option 1) included the OKX wallet onboarding prompt — via the `Next step` block in scripts/reinstall.sh & scripts/update.sh (PRs #3 and #5).

Users following Option 2 (`openclaw plugins install`) or Option 3 (`npm install -g`) saw the plugin install succeed with zero indication that anything else was needed. Net effect:

  1. `openclaw plugins install @blockrun/xclawrouter` → done, prints "Installed plugin"
  2. `openclaw gateway restart` → done, no error visible
  3. User opens OpenClaw, tries `blockrun/auto` → silently doesn't work
  4. The OnchainOsRequiredError is logged to `~/.openclaw/logs/gateway.log` where no user looks

Reproduced live just now:
```
$ openclaw plugins install @blockrun/xclawrouter
Installed plugin: xclawrouter
Restart the gateway to load plugins.

$ openclaw gateway restart
22:52:46 [restart] killing 1 stale gateway process(es)...
Restarted LaunchAgent: gui/501/ai.openclaw.gateway

$ # user has no idea what to do next
```

The plugin can't easily prompt the user from inside the gateway daemon (no TTY, no stdin), so the README is the right surface to make this explicit.

What

Each install Option now ends with a `xclawrouter setup` line:

```bash

Option 1

curl ... | bash
openclaw gateway restart
npx @blockrun/xclawrouter setup # ← added

Option 2

openclaw plugins install @blockrun/xclawrouter
openclaw gateway restart
npx @blockrun/xclawrouter setup # ← added

Option 3

npm install -g @blockrun/xclawrouter
openclaw gateway restart
xclawrouter setup # ← added (binary on PATH after -g install)
```

Also reworded the trailing paragraph: dropped "On first run XClawRouter prompts you to log in..." — that auto-prompt only fires when the user runs `npx @blockrun/xclawrouter` standalone in an interactive TTY, not on the OpenClaw plugin path, so it was misleading.

Test plan

  • `npx prettier --check README.md` clean
  • Visually inspected the rendered Markdown for code-block fence integrity

Before this, only the curl one-liner included the OKX wallet onboarding
prompt (via scripts/reinstall.sh's "Next step" block). Users following
Options 2 (`openclaw plugins install`) or 3 (`npm install -g`) saw the
plugin install succeed with zero indication that anything else was
needed. Net effect: the gateway restarted, the plugin loaded, OKX
detection failed (no session), the OnchainOsRequiredError was logged to
the gateway's file log where no user looks, and BlockRun models silently
didn't work in OpenClaw.

The plugin can't easily prompt the user from inside the gateway daemon
(no TTY, no stdin), so the README is the right surface to make this
explicit. Each Option now ends with a `xclawrouter setup` line.

Also reworded the trailing paragraph: dropped the "On first run
XClawRouter prompts you to log in..." sentence — that auto-prompt only
fires when the user runs `npx @blockrun/xclawrouter` standalone in an
interactive TTY, not on the OpenClaw plugin path, so it was misleading
in this context.
@KillerQueen-Z KillerQueen-Z merged commit 02f3b88 into main May 13, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant