惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
Visual Studio Blog
罗磊的独立博客
小众软件
小众软件
T
Tailwind CSS Blog
宝玉的分享
宝玉的分享
博客园_首页
N
Netflix TechBlog - Medium
B
Blog
Recent Announcements
Recent Announcements
Y
Y Combinator Blog
Blog — PlanetScale
Blog — PlanetScale
L
LangChain Blog
F
Fortinet All Blogs
The GitHub Blog
The GitHub Blog
Stack Overflow Blog
Stack Overflow Blog
C
Check Point Blog
Last Week in AI
Last Week in AI
Jina AI
Jina AI
V
V2EX
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 叶小钗
博客园 - 【当耐特】

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
docs(remote): rename numbered headings and use Note compo...
vincentkoc · 2026-04-27 · via Recent Commits to openclaw:main

@@ -15,38 +15,37 @@ This repo supports “remote over SSH” by keeping a single Gateway (the master

1515

- The Gateway WebSocket binds to **loopback** on your configured port (defaults to 18789).

1616

- For remote use, you forward that loopback port over SSH (or use a tailnet/VPN and tunnel less).

171718-

## Common VPN/tailnet setups (where the agent lives)

18+

## Common VPN and tailnet setups

191920-

Think of the **Gateway host** as “where the agent lives.” It owns sessions, auth profiles, channels, and state.

21-

Your laptop/desktop (and nodes) connect to that host.

20+

Think of the **Gateway host** as where the agent lives. It owns sessions, auth profiles, channels, and state. Your laptop, desktop, and nodes connect to that host.

222123-

### 1) Always-on Gateway in your tailnet (VPS or home server)

22+

### Always-on Gateway in your tailnet

242325-

Run the Gateway on a persistent host and reach it via **Tailscale** or SSH.

24+

Run the Gateway on a persistent host (VPS or home server) and reach it via **Tailscale** or SSH.

26252726

- **Best UX:** keep `gateway.bind: "loopback"` and use **Tailscale Serve** for the Control UI.

28-

- **Fallback:** keep loopback + SSH tunnel from any machine that needs access.

27+

- **Fallback:** keep loopback plus SSH tunnel from any machine that needs access.

2928

- **Examples:** [exe.dev](/install/exe-dev) (easy VM) or [Hetzner](/install/hetzner) (production VPS).

302931-

This is ideal when your laptop sleeps often but you want the agent always-on.

30+

Ideal when your laptop sleeps often but you want the agent always-on.

323133-

### 2) Home desktop runs the Gateway, laptop is remote control

32+

### Home desktop runs the Gateway

34333534

The laptop does **not** run the agent. It connects remotely:

363537-

- Use the macOS apps **Remote over SSH** mode (Settings → General → OpenClaw runs).

38-

- The app opens and manages the tunnel, so WebChat + health checks just work.

36+

- Use the macOS app's **Remote over SSH** mode (Settings → General → OpenClaw runs).

37+

- The app opens and manages the tunnel, so WebChat and health checks just work.

39384039

Runbook: [macOS remote access](/platforms/mac/remote).

414042-

### 3) Laptop runs the Gateway, remote access from other machines

41+

### Laptop runs the Gateway

43424443

Keep the Gateway local but expose it safely:

45444645

- SSH tunnel to the laptop from other machines, or

4746

- Tailscale Serve the Control UI and keep the Gateway loopback-only.

484749-

Guide: [Tailscale](/gateway/tailscale) and [Web overview](/web).

48+

Guides: [Tailscale](/gateway/tailscale) and [Web overview](/web).

50495150

## Command flow (what runs where)

5251

@@ -77,9 +76,13 @@ With the tunnel up:

7776

- `openclaw health` and `openclaw status --deep` now reach the remote gateway via `ws://127.0.0.1:18789`.

7877

- `openclaw gateway status`, `openclaw gateway health`, `openclaw gateway probe`, and `openclaw gateway call` can also target the forwarded URL via `--url` when needed.

797880-

Note: replace `18789` with your configured `gateway.port` (or `--port`/`OPENCLAW_GATEWAY_PORT`).

81-

Note: when you pass `--url`, the CLI does not fall back to config or environment credentials.

82-

Include `--token` or `--password` explicitly. Missing explicit credentials is an error.

79+

<Note>

80+

Replace `18789` with your configured `gateway.port` (or `--port` or `OPENCLAW_GATEWAY_PORT`).

81+

</Note>

82+83+

<Warning>

84+

When you pass `--url`, the CLI does not fall back to config or environment credentials. Include `--token` or `--password` explicitly. Missing explicit credentials is an error.

85+

</Warning>

83868487

## CLI remote defaults

8588

@@ -126,7 +129,7 @@ WebChat no longer uses a separate HTTP port. The SwiftUI chat UI connects direct

126129

- Forward `18789` over SSH (see above), then connect clients to `ws://127.0.0.1:18789`.

127130

- On macOS, prefer the app’s “Remote over SSH” mode, which manages the tunnel automatically.

128131129-

## macOS app "Remote over SSH"

132+

## macOS app Remote over SSH

130133131134

The macOS menu bar app can drive the same setup end-to-end (remote status checks, WebChat, and Voice Wake forwarding).

132135

@@ -222,7 +225,9 @@ launchctl bootstrap gui/$UID ~/Library/LaunchAgents/ai.openclaw.ssh-tunnel.plist

222225223226

The tunnel will start automatically at login, restart on crash, and keep the forwarded port live.

224227225-

Note: if you have a leftover `com.openclaw.ssh-tunnel` LaunchAgent from an older setup, unload and delete it.

228+

<Note>

229+

If you have a leftover `com.openclaw.ssh-tunnel` LaunchAgent from an older setup, unload and delete it.

230+

</Note>

226231227232

#### Troubleshooting

228233