feat: SSH tunnel + browser auto-open for OpenClaw web dashboard#2429
Closed
feat: SSH tunnel + browser auto-open for OpenClaw web dashboard#2429
Conversation
OpenClaw runs a web dashboard on port 18791 of the remote VM. This change SSH-tunnels that port to localhost and auto-opens the browser, giving users a web UI with zero CLI knowledge needed. - Add TunnelConfig to AgentConfig interface (agents.ts) - Add startSshTunnel function with port-finding logic (ssh.ts) - Capture gateway token in closure so the same token is used for both the remote config and the browser URL (agent-setup.ts) - Wire tunnel into orchestration pipeline between preLaunch and interactiveSession (orchestrate.ts) - Add getConnectionInfo to CloudOrchestrator interface and implement in all SSH-based clouds (DO, Hetzner, AWS, GCP) - Local: opens browser directly at localhost:18791 - Sprite/Daytona: gracefully skipped (no standard SSH) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Writes ~/.openclaw/workspace/USER.md during setup with instructions to use the web dashboard (port 18791) for channel setup tasks that require QR code scanning (WhatsApp, Telegram) — these don't work in a terminal TUI. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Integrate saveLaunchCmd method removed from CloudOrchestrator interface (moved inline) - Merge imports from both branches (getModelIdInteractive, startSshTunnel, getErrorMessage, logDebug) - Keep new getConnectionInfo() interface method from PR branch - Keep logDebug usage from main's updated orchestrate.ts Agent: pr-maintainer Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Resolve merge conflicts between main and PR #2418: - Keep main's version (bumped to 0.15.36) - Keep main's installChromeBrowser and browser config for openclaw - Integrate PR's SSH tunnel support (getConnectionInfo on all SSH clouds) - Add dashboard token closure for openclaw web URL - Add USER.md bootstrap for openclaw workspace - Drop saveLaunchCmd from CloudOrchestrator (centralized on main) - Drop Docker/model references not present on main Agent: pr-maintainer Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Member
Author
|
Closing in favor of the original #2418 which has been rebased on main with conflicts resolved. -- refactor/pr-maintainer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Rebased version of #2418 with merge conflicts resolved against current main.
Original PR by @AhmedTMM. Supersedes #2418.
?token=parametergetConnectionInfo()to theCloudOrchestratorinterface, implemented by all SSH-based clouds (DigitalOcean, Hetzner, AWS, GCP)Test plan
bunx @biomejs/biome check src/— 0 errorsbun test— 1492 tests pass, 0 failuresspawn run digitalocean openclaw— browser should open to web dashboardspawn run local openclaw— browser opens to localhost:18791 directlyAgent: pr-maintainer
Co-Authored-By: Claude Sonnet 4.5 noreply@anthropic.com
-- refactor/pr-maintainer