You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 63a3a95
Browse filesBrowse the repository at this point in the historyBrowse files
fix(browser): support Chrome Web Store native bootstrap (#124775)
* fix(browser): support Chrome Web Store native bootstrap
* chore: keep browser release note in PR body
* docs(browser): document Store identity trust boundary
* docs(browser): correct Store recovery guidance
-`extension install` copies the bundled runtime into a stable state-directory
154
-
path and pre-registers its deterministic, origin-locked native bootstrap host
155
-
in existing Chrome-family user-data roots. Launch Chrome, run this command,
156
-
and use **Load unpacked** only after it prints the stable path. The command
157
-
waits while Chrome records that exact path, then verifies the recorded ID
158
-
against Chromium's path-derived ID. **Load unpacked** is the only manual
159
-
action in normal setup.
160
-
-`extension status` reports the installed copy, detected IDs/profiles,
161
-
owned-registration health, and whether manual setup is required. JSON output
162
-
never includes a pairing string or relay key.
153
+
-`extension install` pre-registers the origin-locked native bootstrap host in
154
+
existing Chrome-family user-data roots. Run it first, then
155
+
[add OpenClaw from the Chrome Web Store](https://chromewebstore.google.com/detail/openclaw/kcdjddhmeafeomebliikmbpblkmkfoig).
156
+
The stable **Load unpacked** path remains available as a development fallback.
157
+
-`extension status` reports Store discovery separately from approved unpacked
158
+
IDs and paths, plus owned-registration health and whether manual setup is
159
+
required. JSON output never includes a pairing string or relay key.
163
160
-`extension uninstall-host` removes only verified OpenClaw-owned native-host
164
161
manifests and launchers. It does not remove the extension from Chrome.
165
162
-`extension path` is read-only. It prints the stable installed copy when
Copy file name to clipboardExpand all lines: docs/tools/chrome-extension.md
+41-25Lines changed: 41 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,33 +32,38 @@ a script launcher or registry key without a proven binary framing path.
32
32
33
33
## Install
34
34
35
-
Launch Chrome, then run this command before loading the extension:
35
+
Launch Chrome, then pre-register the native host before adding the extension:
36
36
37
37
```bash
38
38
openclaw browser extension install
39
39
```
40
40
41
-
Keep the command running. It copies the bundled extension to a stable
42
-
OpenClaw-owned directory, predicts the unpacked extension ID from that exact
43
-
path, and pre-registers an origin-locked native host in existing Chrome-family
44
-
user-data roots. Only after pre-registration succeeds does it print the stable
45
-
path to load.
41
+
Keep the command running. It pre-registers an origin-locked native host for the
42
+
exact official Chrome Web Store identity and for OpenClaw's deterministic
43
+
development IDs. After pre-registration succeeds, add
44
+
[OpenClaw from the Chrome Web Store](https://chromewebstore.google.com/detail/openclaw/kcdjddhmeafeomebliikmbpblkmkfoig).
46
45
47
-
Chrome does not let a normal CLI silently install an unpacked extension. This
48
-
one step is unavoidable:
46
+
The extension pairs on its first native call; you do not need to open its
47
+
popup, reload it, or restart Chrome during a normal first-time setup. The
48
+
installer then reads the profile's `Secure Preferences` and verifies the exact
49
+
Store ID independently from any extension path.
50
+
51
+
For extension development, the command also copies the bundled extension to a
52
+
stable OpenClaw-owned directory. Use that unpacked copy only as a development
53
+
fallback:
49
54
50
55
1. Open `chrome://extensions`.
51
56
2. Enable **Developer mode**.
52
57
3. Click **Load unpacked**.
53
58
4. Select the path printed by the command.
54
59
55
-
Leave the install command running while you complete those steps. The extension
56
-
pairs on its first native call; you do not need to open its popup, reload the
57
-
extension, or restart Chrome during a normal first-time setup. The installer
58
-
then reads the profile's `Secure Preferences` and verifies that Chrome loaded
59
-
the approved realpath under the predicted ID.
60
+
Leave the install command running while completing either Store or development
61
+
setup. For unpacked development, the installer verifies that Chrome loaded the
62
+
approved realpath under its predicted deterministic ID.
60
63
61
-
The installer accepts an ID only when all of these are true:
64
+
The installer recognizes the official Store installation only by the exact
65
+
Foundation Store ID. That identity never makes a recorded path OpenClaw-owned.
66
+
For unpacked development, it accepts an ID only when all of these are true:
62
67
63
68
- the ID matches Chrome's 32-character extension ID format;
64
69
- Chrome records the install location as unpacked;
@@ -76,9 +81,10 @@ Use a different bounded wait when needed:
0 commit comments