Skip to content

Remote gateway node pairing broken — node token scopes empty, approval flow incomplete #710

@AS76

Description

@AS76

Issue: Remote gateway node pairing broken — node token scopes empty, approval flow incomplete

Replaces locked issue #663

Summary

The Windows tray Node Mode can connect to a remote gateway, but the pairing and token scoping flow is broken for remote gateway setups. The feature was described as "already implemented" in #663 which was then locked, but the implementation doesn't work in practice.

Environment

  • Client: OpenClaw Windows Hub v0.6.0 (latest)
  • Gateway: VPS behind reverse proxy (wss:// Traefik + Let's Encrypt)
  • Setup: Node Mode enabled, remote gateway URL + auth token configured

What works

  • Device (operator) connection via wss:// ✅
  • Paired device shows on gateway ✅
  • Control UI session over remote WebSocket ✅

What doesn't work (remote Node Mode)

  1. Node token scopes empty — after device pairing approval, the node token is issued with scopes: [] while the operator token gets proper scopes. The gateway doesn't assign node-appropriate scopes for remote connections.

  2. openclaw nodes approve returns unknown requestId — node-specific pairing requests never appear as pending on the gateway side. The approval flow advertised in the docs doesn't work.

  3. openclaw devices rotate --role node denied — token rotation rejects the node role, so even manually fixing scopes in paired.json doesn't survive rotation.

  4. Tray UI stuck — Windows tray UI stays in "Awaiting approval" state indefinitely even after device approval completes on the gateway.

Use case

Corporate laptop with restricted IT policy, no local gateway possible. A lightweight Windows node client connecting to a remote VPS gateway would enable:

  • exec host=node commands from the remote agent on the Windows machine
  • Local file access without GDrive/workaround
  • Agent availability on the laptop without full gateway installation

Request

Re-open and track the remaining pairing/scoping bugs so remote Node Mode actually works. Happy to provide logs and reproduce on demand.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1Urgent regression or broken agent/channel workflow affecting real users now.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:needs-security-reviewClawSweeper marked this issue as needing security-sensitive review.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:auth-providerThis issue is about auth, provider routing, model choice, or SecretRef resolution.impact:securityThis issue is about security boundaries, credentials, authz, sandboxing, or sensitive data.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions