Skip to content

Commit 2a97397

Browse files
authored
docs: consolidate setup and plugin references (#126132)
* docs: consolidate setup and plugin references * docs: preserve meeting plugin configuration
1 parent feda957 commit 2a97397

13 files changed

Lines changed: 504 additions & 921 deletions

‎docs/.i18n/glossary.zh-CN.json‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1762,5 +1762,25 @@
17621762
{
17631763
"source": "Portals",
17641764
"target": "门户"
1765+
},
1766+
{
1767+
"source": "Channels",
1768+
"target": "渠道"
1769+
},
1770+
{
1771+
"source": "Docker VM Runtime",
1772+
"target": "Docker VM 运行时"
1773+
},
1774+
{
1775+
"source": "Updating",
1776+
"target": "更新"
1777+
},
1778+
{
1779+
"source": "Onboarding (CLI)",
1780+
"target": "引导设置(CLI)"
1781+
},
1782+
{
1783+
"source": "CLI Automation",
1784+
"target": "CLI 自动化"
17651785
}
17661786
]

‎docs/concepts/experimental-features.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Experimental features are preview surfaces behind explicit flags. They need more
2121
| Local model runtime | `agents.defaults.experimental.localModelLean`, `agents.entries.*.experimental.localModelLean` | A smaller or stricter local backend chokes on OpenClaw's full default tool surface | [Local Models](/gateway/local-models) |
2222
| Codex harness | `plugins.entries.codex.config.appServer.experimental.sandboxExecServer` | You want native Codex app-server 0.143.0 or newer to target an OpenClaw sandbox-backed exec-server instead of disabling Code Mode | [Codex harness reference](/plugins/codex-harness-reference#sandboxed-native-execution) |
2323
| Code Mode | `tools.codeMode.enabled` | You want compact code-orchestrated access to a hidden OpenClaw tool catalog | [Code Mode](/tools/code-mode) |
24-
| Cloud workers | `cloudWorkers.desktop` | You want to watch or control desktop-capable cloud worker environments from the Control UI | [Cloud Worker Desktop](/gateway/cloud-workers#desktop-interactive) |
24+
| Cloud workers | `cloudWorkers.desktop` | You want to watch or control desktop-capable cloud worker environments from the Control UI | [Cloud Worker Desktop](/gateway/cloud-workers#desktop) |
2525
| Swarm | `tools.swarm.enabled` | You want Code Mode scripts to orchestrate bounded groups of sub-agents in parallel | [Swarm](/tools/swarm) |
2626

2727
## Control UI Labs

‎docs/docs.json‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@
8888
"source": "/reference/openclaw-sdk-api-design",
8989
"destination": "/gateway/external-apps"
9090
},
91+
{
92+
"source": "/reference/wizard",
93+
"destination": "/start/wizard-cli-reference"
94+
},
9195
{
9296
"source": "/reference/maturity-scorecard",
9397
"destination": "/maturity/scorecard"
@@ -1979,7 +1983,6 @@
19791983
"group": "Technical reference",
19801984
"pages": [
19811985
"agent-runtime-architecture",
1982-
"reference/wizard",
19831986
"reference/token-use",
19841987
"reference/secretref-credential-surface",
19851988
"reference/openclaw-ai",

‎docs/gateway/cloudflare-access.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Access authenticate every request before it reaches OpenClaw. The Gateway keeps
1313
needed; `cloudflared` dials out from the host.
1414

1515
This is one supported remote-access topology alongside [Tailscale](/gateway/tailscale)
16-
and an [SSH tunnel](/gateway/remote#ssh-tunnel-cli--tools). Choose it when you want a
16+
and an [SSH tunnel](/gateway/remote). Choose it when you want a
1717
stable public HTTPS URL and identity-provider SSO in front of the Control UI.
1818

1919
## Before you begin
@@ -97,7 +97,7 @@ Access protects every route on the hostname, including the ones nodes use. Pick
9797
- **Exempt the self-authenticating routes.** Allow `/j/*` and `/__openclaw__/worker`
9898
without Access identity, and keep WebSocket upgrade enabled on the worker route. Both
9999
enforce their own short-lived credentials, so they do not depend on Access. See
100-
[Nodes](/nodes#edge-routing).
100+
[Nodes](/nodes#gateway-deployments-that-cannot-host-nodes).
101101
- **Use an Access service token.** Add a Service Auth policy and give the node
102102
`gateway.cloudflareAccess.clientId` / `clientSecret`. See [Node CLI](/cli/node).
103103

‎docs/install/docker-vm-runtime.md‎

Lines changed: 110 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,80 @@
11
---
22
summary: "Shared Docker VM runtime steps for long-lived OpenClaw Gateway hosts"
3+
doc-schema-version: 1
34
read_when:
45
- You are deploying OpenClaw on a cloud VM with Docker
5-
- You need the shared binary bake, persistence, and update flow
6+
- You need the shared setup, binary bake, persistence, and update flow
67
title: "Docker VM runtime"
78
---
89

9-
Shared runtime steps for VM-based Docker installs such as GCP, Hetzner, and similar VPS providers.
10+
Use this runtime flow after provisioning a VM and installing Docker. Provider
11+
guides such as [GCP](/install/gcp) and [Hetzner](/install/hetzner) own VM
12+
creation, firewall rules, SSH access, and the tunnel back to your laptop. This
13+
page owns the Docker setup shared by those hosts.
14+
15+
## Before you begin
16+
17+
You need:
18+
19+
- A Debian or Ubuntu VM with Docker Engine and Docker Compose v2
20+
- At least 2 GB RAM for a source image build; 4 GB is more reliable
21+
- The OpenClaw source checkout on the VM
22+
- Provider and model credentials for onboarding
23+
- An SSH-only or otherwise restricted provider firewall; do not expose the
24+
Gateway port directly to the public Internet
25+
26+
From the VM:
27+
28+
```bash
29+
git clone https://github.com/openclaw/openclaw.git
30+
cd openclaw
31+
docker --version
32+
docker compose version
33+
```
34+
35+
## Prepare persistent host state
36+
37+
The maintained setup script defaults state to the current VM user's home:
38+
39+
```bash
40+
export OPENCLAW_CONFIG_DIR="$HOME/.openclaw"
41+
export OPENCLAW_WORKSPACE_DIR="$HOME/.openclaw/workspace"
42+
export OPENCLAW_AUTH_PROFILE_SECRET_DIR="$HOME/.openclaw-auth-profile-secrets"
43+
```
44+
45+
Override those paths before setup if your VM uses a dedicated data disk. Keep
46+
all three directories in backups. The auth-profile secret directory contains
47+
the local encryption key for OAuth-backed auth profile token material, so it
48+
must persist but remain separate from `OPENCLAW_CONFIG_DIR`.
49+
50+
## Run the maintained Docker setup
51+
52+
```bash
53+
./scripts/docker/setup.sh
54+
```
55+
56+
The script creates the host directories, builds `openclaw:local`, runs
57+
onboarding, generates a Gateway token, synchronizes `.env`, and starts the
58+
Gateway through the repository's `docker-compose.yml`. The Compose file pins
59+
container-side state to `/home/node/.openclaw` while using the host paths above
60+
as bind-mount sources.
61+
62+
To use an official prebuilt image instead of building from source:
63+
64+
```bash
65+
export OPENCLAW_IMAGE="ghcr.io/openclaw/openclaw:latest"
66+
./scripts/docker/setup.sh
67+
```
68+
69+
For unattended setup, provider SecretRefs, extra mounts, sandbox setup, and all
70+
supported environment variables, use the full [Docker guide](/install/docker).
71+
72+
<Warning>
73+
`OPENCLAW_GATEWAY_BIND=lan` is the normal container setting: `loopback` would
74+
limit the Gateway to the container's own network namespace. Keep the published
75+
host port private with the cloud firewall, then reach it through the SSH tunnel
76+
from the provider guide.
77+
</Warning>
1078

1179
## Bake required binaries into the image
1280

@@ -24,7 +92,7 @@ These are examples, not a complete list. Docker Compose builds the repo-root
2492
`Dockerfile`, so extend that file rather than creating a standalone example or
2593
replacing its contents. The repository Dockerfile has required
2694
`workspace-deps`, build, runtime-assets, and final runtime stages. Its manifest
27-
extraction covers the `packages/*` and selected `extensions/*` workspaces before
95+
extraction covers the `packages/*` and selected plugin workspaces before
2896
`pnpm install --frozen-lockfile`.
2997

3098
For Debian packages, prefer the existing build argument:
@@ -37,7 +105,6 @@ For downloaded release binaries such as `gog`, `goplaces`, or `wacli`, add the
37105
download and install commands to the repo-root `Dockerfile` final runtime stage,
38106
after its package-install blocks and before `USER node`. Preserve the existing
39107
non-root uid 1000 setup, `tini` entrypoint, health check, and `openclaw` symlink.
40-
Then rebuild and restart the containers.
41108

42109
<Note>
43110
The repository Dockerfile digest-pins its Node and Bun base images. Keep those
@@ -46,70 +113,73 @@ references. For ARM-based VMs, choose `arm64` release assets for extra binaries;
46113
for reproducible builds, use versioned asset URLs and verify their checksums.
47114
</Note>
48115

49-
## Build and launch
116+
Rebuild the customized image without repeating onboarding:
50117

51118
```bash
52-
docker compose build
53-
docker compose up -d openclaw-gateway
119+
OPENCLAW_SKIP_ONBOARDING=1 ./scripts/docker/setup.sh
54120
```
55121

56-
If the build fails with `Killed` or exit code 137 during `pnpm install --frozen-lockfile`, the VM is out of memory. Use a larger machine class before retrying.
122+
If the build fails with `Killed` or exit code 137 during dependency installation
123+
or bundling, the VM is out of memory. Resize it before retrying.
57124

58-
Verify binaries:
125+
Verify baked binaries:
59126

60127
```bash
61128
docker compose exec openclaw-gateway which gog
62129
docker compose exec openclaw-gateway which goplaces
63130
docker compose exec openclaw-gateway which wacli
64131
```
65132

66-
Expected output:
133+
## Verify and administer the Gateway
67134

68-
```text
69-
/usr/local/bin/gog
70-
/usr/local/bin/goplaces
71-
/usr/local/bin/wacli
135+
```bash
136+
docker compose ps
137+
docker compose logs --tail=100 openclaw-gateway
138+
curl -fsS http://127.0.0.1:18789/healthz
139+
docker compose run --rm openclaw-cli dashboard --no-open
72140
```
73141

74-
Verify the gateway is up:
142+
`/healthz` returning a 200 response confirms that the Gateway process is
143+
listening. The image `HEALTHCHECK` polls the same endpoint. If the Control UI
144+
requires device approval:
75145

76146
```bash
77-
docker compose logs -f openclaw-gateway
78-
curl -fsS http://127.0.0.1:18789/healthz
147+
docker compose run --rm openclaw-cli devices list
148+
docker compose run --rm openclaw-cli devices approve <requestId>
79149
```
80150

81-
`/healthz` returning a 200 response confirms the gateway process is listening and healthy; the built-in image `HEALTHCHECK` polls the same endpoint.
82-
83151
## What persists where
84152

85-
OpenClaw runs in Docker, but Docker is not the source of truth. All long-lived state must survive restarts, rebuilds, and reboots.
153+
OpenClaw runs in Docker, but the container filesystem is not the source of
154+
truth. Long-lived state must survive restarts, rebuilds, and reboots.
86155

87-
| Component | Location | Persistence mechanism | Notes |
88-
| ---------------------- | ------------------------------------------------------ | ---------------------- | ------------------------------------------------------------------------------------------------------------------- |
89-
| Gateway config | `/home/node/.openclaw/` | Host volume mount | Includes `openclaw.json` |
90-
| Channel/provider creds | `/home/node/.openclaw/credentials/` | Host volume mount | Channel and provider credential material |
91-
| Model auth profiles | `/home/node/.openclaw/agents/` | Host volume mount | `agents/<agentId>/agent/auth-profiles.json` (OAuth, API keys) |
92-
| Legacy OAuth key file | `/home/node/.config/openclaw/` | Host volume mount | Read-only compat for pre-migration OAuth sidecars; `openclaw doctor --fix` migrates these into `auth-profiles.json` |
93-
| Skill configs | `/home/node/.openclaw/skills/` | Host volume mount | Skill-level state |
94-
| Agent workspace | `/home/node/.openclaw/workspace/` | Host volume mount | Code and agent artifacts |
95-
| WhatsApp session | `/home/node/.openclaw/` | Host volume mount | Preserves QR login |
96-
| Gmail keyring | `/home/node/.openclaw/` | Host volume + password | Requires `GOG_KEYRING_PASSWORD` |
97-
| Plugin packages | `/home/node/.openclaw/npm`, `/home/node/.openclaw/git` | Host volume mount | Downloadable plugin package roots |
98-
| External binaries | `/usr/local/bin/` | Docker image | Must be baked at build time |
99-
| Node runtime | Container filesystem | Docker image | Rebuilt every image build |
100-
| OS packages | Container filesystem | Docker image | Do not install at runtime |
101-
| Docker container | Ephemeral | Restartable | Safe to destroy |
156+
| Component | Container location | Persistence mechanism | Notes |
157+
| -------------------- | ----------------------------------- | --------------------------- | -------------------------------------------------------------------------- |
158+
| Gateway state/config | `/home/node/.openclaw/` | `OPENCLAW_CONFIG_DIR` mount | Includes `openclaw.json`, shared state, and installed plugin package roots |
159+
| Agent workspace | `/home/node/.openclaw/workspace/` | Workspace mount | Code and agent artifacts |
160+
| Channel credentials | `/home/node/.openclaw/credentials/` | Config mount | Channel credential material |
161+
| Model auth profiles | `/home/node/.openclaw/agents/` | Config mount | `agents/<agentId>/agent/auth-profiles.json` |
162+
| Auth-profile key | `/home/node/.config/openclaw/` | Secret-directory mount | Encryption key material; keep separate from the config mount |
163+
| Skill state | `/home/node/.openclaw/skills/` | Config mount | Skill-level state |
164+
| External binaries | `/usr/local/bin/` | Docker image | Must be baked at build time |
165+
| Node and OS packages | Container filesystem | Docker image | Rebuilt with the image; do not install at runtime |
166+
| Docker container | Ephemeral | Restartable | Safe to replace after mounted state is verified |
102167

103-
## Updates
168+
## Update OpenClaw
104169

105-
To update OpenClaw on the VM:
170+
For a source-built image:
106171

107172
```bash
108-
git pull
109-
docker compose build
110-
docker compose up -d
173+
git pull --ff-only
174+
OPENCLAW_SKIP_ONBOARDING=1 ./scripts/docker/setup.sh
175+
docker compose run --rm openclaw-cli doctor --json
111176
```
112177

178+
For a pinned or prebuilt image, update `OPENCLAW_IMAGE` to the intended tag or
179+
digest before rerunning the setup script. Routine image upgrades run startup-safe
180+
migrations against the mounted state; see [Upgrading container images](/install/docker#upgrading-container-images)
181+
for recovery when a migration cannot complete automatically.
182+
113183
## Related
114184

115185
- [Docker](/install/docker)

0 commit comments

Comments
 (0)