Clarify zero-flag OpenClaw Docker UI smoke defaults
This commit is contained in:
@@ -287,5 +287,5 @@ This script lives at `scripts/smoke/openclaw-docker-ui.sh` and automates clone/b
|
|||||||
|
|
||||||
Pairing behavior for this smoke script:
|
Pairing behavior for this smoke script:
|
||||||
|
|
||||||
- default `OPENCLAW_DISABLE_DEVICE_AUTH=1` (no Control UI pairing prompt for local smoke)
|
- default `OPENCLAW_DISABLE_DEVICE_AUTH=1` (no Control UI pairing prompt for local smoke; no extra pairing env vars required)
|
||||||
- set `OPENCLAW_DISABLE_DEVICE_AUTH=0` to require standard device pairing
|
- set `OPENCLAW_DISABLE_DEVICE_AUTH=0` to require standard device pairing
|
||||||
|
|||||||
@@ -33,6 +33,8 @@ To spin up OpenClaw in Docker and print a host-browser dashboard URL in one comm
|
|||||||
pnpm smoke:openclaw-docker-ui
|
pnpm smoke:openclaw-docker-ui
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Default behavior is zero-flag: you can run the command as-is with no pairing-related env vars.
|
||||||
|
|
||||||
What this command does:
|
What this command does:
|
||||||
|
|
||||||
- clones/updates `openclaw/openclaw` in `/tmp/openclaw-docker`
|
- clones/updates `openclaw/openclaw` in `/tmp/openclaw-docker`
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ OPENCLAW_BUILD="${OPENCLAW_BUILD:-1}"
|
|||||||
OPENCLAW_WAIT_SECONDS="${OPENCLAW_WAIT_SECONDS:-45}"
|
OPENCLAW_WAIT_SECONDS="${OPENCLAW_WAIT_SECONDS:-45}"
|
||||||
OPENCLAW_OPEN_BROWSER="${OPENCLAW_OPEN_BROWSER:-0}"
|
OPENCLAW_OPEN_BROWSER="${OPENCLAW_OPEN_BROWSER:-0}"
|
||||||
OPENCLAW_SECRETS_FILE="${OPENCLAW_SECRETS_FILE:-$HOME/.secrets}"
|
OPENCLAW_SECRETS_FILE="${OPENCLAW_SECRETS_FILE:-$HOME/.secrets}"
|
||||||
|
# Keep default one-command UX: local smoke run should not require manual pairing.
|
||||||
OPENCLAW_DISABLE_DEVICE_AUTH="${OPENCLAW_DISABLE_DEVICE_AUTH:-1}"
|
OPENCLAW_DISABLE_DEVICE_AUTH="${OPENCLAW_DISABLE_DEVICE_AUTH:-1}"
|
||||||
|
|
||||||
case "$OPENCLAW_DISABLE_DEVICE_AUTH" in
|
case "$OPENCLAW_DISABLE_DEVICE_AUTH" in
|
||||||
@@ -166,14 +167,13 @@ OpenClaw gateway is running.
|
|||||||
|
|
||||||
Dashboard URL:
|
Dashboard URL:
|
||||||
$dashboard_url
|
$dashboard_url
|
||||||
|
|
||||||
Pairing mode:
|
|
||||||
OPENCLAW_DISABLE_DEVICE_AUTH=$OPENCLAW_DISABLE_DEVICE_AUTH
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
if [[ "$OPENCLAW_DISABLE_DEVICE_AUTH_JSON" == "true" ]]; then
|
if [[ "$OPENCLAW_DISABLE_DEVICE_AUTH_JSON" == "true" ]]; then
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
Device pairing is disabled for this local smoke run.
|
Pairing:
|
||||||
|
Device pairing is disabled by default for this local smoke run.
|
||||||
|
No extra env vars are required for the default path.
|
||||||
(Security tradeoff: enable pairing with OPENCLAW_DISABLE_DEVICE_AUTH=0.)
|
(Security tradeoff: enable pairing with OPENCLAW_DISABLE_DEVICE_AUTH=0.)
|
||||||
|
|
||||||
Useful commands:
|
Useful commands:
|
||||||
@@ -182,6 +182,7 @@ Useful commands:
|
|||||||
EOF
|
EOF
|
||||||
else
|
else
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
|
Pairing:
|
||||||
Device pairing is enabled.
|
Device pairing is enabled.
|
||||||
If UI shows "pairing required", run:
|
If UI shows "pairing required", run:
|
||||||
docker compose -f "$OPENCLAW_DOCKER_DIR/docker-compose.yml" -f "$COMPOSE_OVERRIDE" run --rm openclaw-cli devices list
|
docker compose -f "$OPENCLAW_DOCKER_DIR/docker-compose.yml" -f "$COMPOSE_OVERRIDE" run --rm openclaw-cli devices list
|
||||||
|
|||||||
Reference in New Issue
Block a user