NemoClaw icon indicating copy to clipboard operation
NemoClaw copied to clipboard

[Brev][CLI&UX] Non-TUI openclaw commands (cron, exec, agent) blocked by gateway scope approval with no approval path available

Open mercl-lau opened this issue 5 months ago • 1 comments

Description

After a fresh NemoClaw v0.0.64 install and onboard on Brev, openclaw tui connects and pairs successfully. However, all non-TUI openclaw commands (cron add, cron run, agent) fail with "pairing required: device is asking for more scopes than currently approved". The TUI pairing does not carry over to other CLI command scopes.

There is no available path to approve the additional scopes:

  1. No openclaw device CLI command exists ("Unknown command: openclaw device")
  2. Dashboard token auth fails ("Auth did not match") even with a fresh nemoclaw dashboard-url --quiet token
  3. After multiple auth retries, dashboard rate-limits the client ("Too many failed attempts")

Result: only openclaw tui is usable after onboard. cron, exec, and other non-TUI commands are permanently blocked.

Environment

Device:        Brev n2d-standard-4 (nemoclaw-52ca05)
OS:            Ubuntu 22.04 LTS
Architecture:  x86_64
Node.js:       v22.22.2
npm:           10.9.7
Docker:        29.1.3
OpenShell CLI: 0.0.44 (Docker-driver compatibility gateway)
NemoClaw:      v0.0.64
OpenClaw:      2026.5.27 (27ae826)

Steps to Reproduce

  1. Fresh install NemoClaw v0.0.64 on Brev:
    NEMOCLAW_INSTALL_TAG=v0.0.64 NEMOCLAW_ACCEPT_THIRD_PARTY_SOFTWARE=1 \
      curl -fsSL https://raw.githubusercontent.com/NVIDIA/NemoClaw/main/install.sh | bash
    
  2. Onboard completes successfully (non-interactive, NVIDIA Endpoints provider)
  3. nemoclaw my-assistant connect → enter sandbox → openclaw tui → works, agent replies
  4. Exit TUI (/exit) and exit sandbox (exit)
  5. nemoclaw my-assistant exec -- openclaw cron add --name test --every 2h --agent main --session isolated --message "hello"
  6. Observe: "pairing required: device is asking for more scopes than currently approved"
  7. Enter sandbox via docker exec, run openclaw cron add directly → same error
  8. Try dashboard: nemoclaw my-assistant dashboard-url --quiet → open URL → "Auth did not match"
  9. No openclaw device command available to approve from CLI

Expected Result

After successfully pairing via openclaw tui, all other openclaw CLI commands (cron, exec, agent) should share the same approved scopes and work without requiring additional pairing. Alternatively, there should be a clear path to approve additional scopes (e.g. openclaw device approve, or working dashboard).

Actual Result

GatewayTransportError: gateway closed (1008): pairing required: device is asking
for more scopes than currently approved (requestId: 048c4176-5b87-4ce7-86a7-6c03a8db9)
Gateway target: ws://127.0.0.1:18789
Source: env OPENCLAW_GATEWAY_URL
Config: /sandbox/.openclaw/openclaw.json

Dashboard shows: "Auth did not match — The supplied credential was rejected.
The most common cause is a stale token or a token copied from another Gateway URL."

openclaw device list: "Unknown command: openclaw device. No built-in command or
plugin CLI metadata owns 'device'."

Logs

Not captured — the error is fully visible in terminal stdout as shown above. The gateway pairing error is deterministic and reproducible on every non-TUI openclaw command invocation.


NVB#6310490

mercl-lau avatar Jun 12 '26 08:06 mercl-lau

Some findings from the source that may help triage this:

The approval command exists — it's openclaw devices (plural), not openclaw device: Inside a nemoclaw <name> connect shell, openclaw devices list --json shows pending requests, and openclaw devices approve <requestId> approves one (the connect shell's environment handles the gateway-env stripping that approval requires). This unblocks the repro at step 9.

cron add/cron run require operator.admin, which is excluded from auto-approval by design: the in-sandbox auto-pair watcher only auto-approves operator.pairing/read/write (scripts/lib/openclaw_device_approval_policy.py), so cron commands always need a manual devices approve. This is intentional (see the note in test/e2e/test-cron-preflight-inference-local-e2e.sh), but it isn't documented anywhere in docs/ — likely worth a docs addition.

openclaw agent staying blocked looks like a real defect: agent only needs operator.read/write, which the watcher auto-approves within ~30s for up to 8h after sandbox start. In this repro, cron add ran first and likely left a pending request containing operator.admin for the CLI device; the watcher rejects such requests wholesale, which would leave even allowlisted commands blocked. If reproducible, /tmp/auto-pair.log inside the sandbox should show rejected disallowed scopes=['operator.admin', ...] entries confirming this.

Dashboard "Auth did not match": nemoclaw dashboard-url produces a 127.0.0.1 URL with a token bound to the local gateway. Could you share how the URL was opened from Brev (SSH port-forward vs. Brev's web proxy)? If accessed through a different origin/tunnel, that matches the dashboard's "token copied from another Gateway URL" cause and may be a separate Brev-specific docs/UX gap.

abhi-0906 avatar Jun 12 '26 10:06 abhi-0906