Skip to content

Commit 02f3b88

Browse files
docs: add xclawrouter setup step after each OpenClaw install path (#6)
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.
1 parent b20458e commit 02f3b88

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,28 +84,33 @@ This is the stack that lets agents operate autonomously: **x402 + USDC + local r
8484

8585
[OpenClaw](https://openclaw.ai) is an AI coding agent. If you're using it, XClawRouter installs as a plugin. Three install paths — pick whichever fits:
8686

87-
**1. One-liner (recommended)**bundles config injection, cleanup of legacy installs, and onchainos bootstrap:
87+
**1. One-liner (recommended)**installs the plugin, bootstraps onchainos, and points you at the wallet login command:
8888

8989
```bash
9090
curl -fsSL https://blockrun.ai/XClawRouter-update | bash
9191
openclaw gateway restart
92+
npx @blockrun/xclawrouter setup # email + OTP login to your OKX Agentic Wallet
9293
```
9394

9495
**2. Manual via OpenClaw plugin manager** — if you want to see each step:
9596

9697
```bash
9798
openclaw plugins install @blockrun/xclawrouter
9899
openclaw gateway restart
100+
npx @blockrun/xclawrouter setup # email + OTP login to your OKX Agentic Wallet
99101
```
100102

101103
**3. Global npm install** — same effect as #2, useful for CI or pinned deployments:
102104

103105
```bash
104106
npm install -g @blockrun/xclawrouter
105107
openclaw gateway restart
108+
xclawrouter setup # email + OTP login to your OKX Agentic Wallet
106109
```
107110

108-
Done. Smart routing (`blockrun/auto`) is now your default model. On first run XClawRouter prompts you to log in to your OKX Agentic Wallet via email — no local private key, signing happens in OKX's TEE.
111+
`setup` walks you through two prompts (email, then the OTP it mails you) and is a no-op if you're already signed in — safe to re-run. Signing happens in OKX's TEE; no local private key is stored.
112+
113+
Done. Smart routing (`blockrun/auto`) is now your default model.
109114

110115
### Option B — Standalone (continue.dev, Cursor, VS Code, any OpenAI-compatible client)
111116

0 commit comments

Comments
 (0)