You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8df95cc
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/cli/dashboard.md
+19-6Lines changed: 19 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,16 @@
1
1
---
2
-
summary: "CLI reference for `openclaw dashboard` (open the Control UI)"
2
+
summary: "CLI reference for `openclaw dashboard` (securely open the Control UI)"
3
3
read_when:
4
-
- You want to open the Control UI with your current token
4
+
- You want to open or re-pair the Control UI from the Gateway host
5
5
- You want to print the URL without launching a browser
6
6
title: "Dashboard"
7
7
---
8
8
9
9
# `openclaw dashboard`
10
10
11
-
Open the Control UI using your current auth.
11
+
Open the Control UI with a short-lived, one-time browser pairing link. A successful handoff leaves
12
+
that browser with its own durable device credential, so reopening the dashboard does not depend on
13
+
the shared Gateway token.
12
14
13
15
```bash
14
16
openclaw dashboard
@@ -29,17 +31,28 @@ Use `--json` for desktop integrations and scripts that need the resolved Control
29
31
openclaw dashboard --json
30
32
```
31
33
32
-
The response includes `url`, `httpUrl`, `wsUrl`, `port`, and `tokenIncluded`. If the Gateway is not ready, the command returns `{"ok":false,"reason":"..."}` and exits non-zero. SecretRef-managed tokens are never included in `url`.
34
+
The response includes the backward-compatible shared-auth `url`, plus `browserUrl`,
35
+
`browserBootstrapExpiresAtMs`, `httpUrl`, `wsUrl`, `port`, and `tokenIncluded`. Browser integrations
36
+
should open `browserUrl`; native RPC clients that need the shared Gateway credential can continue to
37
+
use `url`. If the Gateway is not ready or a browser handoff cannot be issued, the command returns
38
+
`{"ok":false,"reason":"..."}` and exits non-zero. SecretRef-managed shared tokens are never included
39
+
in `url`.
33
40
34
41
Notes:
35
42
36
43
- Resolves configured `gateway.auth.token` SecretRefs when possible.
44
+
-`browserUrl` carries a single-use, ten-minute bootstrap in the URL fragment. The Control UI strips
45
+
it immediately, binds it to the browser's signed device identity, and stores only the resulting
46
+
per-device credential.
37
47
- Follows `gateway.tls.enabled`: TLS-enabled gateways print/open `https://` Control UI URLs and connect over `wss://`.
38
48
- For `lan` or a wildcard `custom` bind, same-host launches always use loopback because a wildcard is not a browser destination. Plaintext `tailnet` and `custom` binds also use `127.0.0.1` so the browser has a secure context; TLS-enabled specific hosts keep the configured address so certificate names match.
39
49
- Before delivering an authenticated loopback URL for a specific-interface bind, the command probes the configured interface and verifies that it and `127.0.0.1` are owned by the same Gateway process. Ambiguous listener ownership fails closed with status guidance.
40
-
- For SecretRef-managed tokens (resolved or unresolved), the printed/copied/opened URL never includes the token, so external secrets do not leak into terminal output, clipboard history, or browser-launch arguments.
41
-
- If `gateway.auth.token` is SecretRef-managed but unresolved, the command prints a non-tokenized URL and remediation guidance instead of an invalid token placeholder.
50
+
- The interactive command prints only the clean base URL; the clipboard/browser launch receives the
51
+
one-time `browserUrl`, never the shared token. SecretRef-managed shared tokens therefore do not leak
52
+
into terminal output, clipboard history, or browser-launch arguments.
42
53
- If clipboard/browser delivery fails for a token-authenticated URL, the command logs a safe manual-auth hint naming `OPENCLAW_GATEWAY_TOKEN`, `gateway.auth.token`, and the URL fragment key `token`, without printing the token value.
54
+
- If the shared token cannot be placed in a URL and clipboard/browser delivery fails, run
55
+
`openclaw dashboard --json` and open its short-lived `browserUrl` within ten minutes.
Copy file name to clipboardExpand all lines: docs/web/control-ui.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,7 @@ Onboarding usually configures a gateway token for shared-secret auth. If the Gat
47
47
48
48
## Device pairing (first connection)
49
49
50
-
After gateway auth succeeds, connecting from a new browser or device usually requires a **one-time pairing approval**, shown as `disconnected (1008): pairing required`.
50
+
After gateway auth succeeds, connecting from a new browser or device usually requires a **one-time pairing approval**, shown as `disconnected (1008): pairing required`. On the Gateway host, `openclaw dashboard` is the preferred recovery path: it opens a short-lived, single-use pairing link and leaves the browser with a durable per-device credential.
51
51
52
52
<Warning>
53
53
When upgrading directly from a release that used the retired
Copy file name to clipboardExpand all lines: docs/web/dashboard.md
+14-5Lines changed: 14 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,18 +33,27 @@ The Control UI is an **admin surface** (chat, config, exec approvals). Do not ex
33
33
34
34
## Fast path (recommended)
35
35
36
-
- After onboarding, the CLI auto-opens the dashboard and prints a clean (non-tokenized) link.
37
-
- Re-open anytime: `openclaw dashboard` (copies the link, opens a browser if possible, prints an SSH hint if headless).
38
-
- If clipboard and browser delivery both fail, `openclaw dashboard` still prints the clean URL and tells you to append your token (from `OPENCLAW_GATEWAY_TOKEN` or `gateway.auth.token`) as the URL fragment key `token`; it never prints the token value in logs.
36
+
- After onboarding, the CLI auto-opens the dashboard and prints a clean link.
37
+
- Re-open or repair a browser anytime: `openclaw dashboard`. It copies/opens a single-use pairing link
38
+
that replaces stale browser credentials without granting blanket remote auto-approval.
39
+
- If clipboard and browser delivery both fail, `openclaw dashboard` either gives a safe manual-token
40
+
hint or tells you to run `openclaw dashboard --json` and open its short-lived `browserUrl`; it never
41
+
prints the shared token value in interactive logs.
39
42
- If the UI prompts for shared-secret auth, paste the configured token or password into Control UI settings.
40
43
41
44
## Auth basics (local vs remote)
42
45
43
46
-**Localhost**: open `http://127.0.0.1:18789/`.
44
47
-**Gateway TLS**: when `gateway.tls.enabled: true`, dashboard/status links use `https://` and Control UI WebSocket links use `wss://`.
45
-
-**Shared-secret token source**: `gateway.auth.token` (or `OPENCLAW_GATEWAY_TOKEN`). `openclaw dashboard` can pass it via URL fragment for one-time bootstrap; the Control UI keeps it in sessionStorage for the current tab and selected gateway URL, not localStorage.
is kept in sessionStorage for the current tab and selected gateway URL, not localStorage.
50
+
-**Host-authorized browser handoff**: `openclaw dashboard` issues a short-lived, single-use bootstrap
51
+
instead of putting the shared Gateway token in the browser launch URL. The bootstrap is bound to
52
+
that browser's signed device identity and exchanged for a durable per-device credential.
46
53
-**Missing-config runtime token**: if startup says it generated a runtime token, that token is ephemeral and cannot be recovered. Loopback still requires auth. Run `openclaw doctor --generate-gateway-token`, restart the Gateway, then run `openclaw gateway auth-token --show` in an interactive terminal and paste the output into Control UI settings.
47
-
- If `gateway.auth.token` is SecretRef-managed, `openclaw dashboard` prints/copies/opens a non-tokenized URL by design, to avoid exposing externally managed tokens in shell logs, clipboard history, or browser-launch arguments. If the ref is unresolved in your current shell, it still prints the non-tokenized URL plus actionable auth setup guidance.
54
+
- If `gateway.auth.token` is SecretRef-managed, the interactive dashboard handoff still works because
55
+
it carries only the short-lived browser bootstrap; the external shared token is not placed in
56
+
terminal output, clipboard history, or browser-launch arguments.
48
57
-**Shared-secret password**: use the configured `gateway.auth.password` (or `OPENCLAW_GATEWAY_PASSWORD`). The dashboard does not persist passwords across reloads.
49
58
-**Identity-bearing modes**: Tailscale Serve satisfies Control UI/WebSocket auth via identity headers when `gateway.auth.allowTailscale: true`; a non-loopback identity-aware reverse proxy satisfies `gateway.auth.mode: "trusted-proxy"`. Neither needs a pasted shared secret for the WebSocket.
50
59
-**Not localhost**: use Tailscale Serve, a non-loopback shared-secret bind, a non-loopback identity-aware reverse proxy with `gateway.auth.mode: "trusted-proxy"`, or an SSH tunnel. HTTP APIs still use shared-secret auth unless you intentionally run private-ingress `gateway.auth.mode: "none"` or trusted-proxy HTTP auth. See [Web surfaces](/web).
0 commit comments