@seekskyworld/open-browser 0.0.0-stage → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (125) hide show
  1. package/CONTRIBUTING.md +15 -0
  2. package/Docs/Agent/346/265/217/350/247/210/345/231/250/346/200/273/344/275/223/346/236/266/346/236/204.md +58 -0
  3. package/Docs/THIRD-PARTY-NOTICES.md +12 -0
  4. package/Docs/open-browser-api.d.ts +291 -0
  5. package/Docs/open-browser/344/273/273/345/212/241/350/257/204/346/265/213/346/214/207/345/215/227.md +59 -0
  6. package/Docs/open-browser/351/232/220/347/247/201/344/270/216/345/274/200/346/272/220/345/256/241/350/256/241.md +37 -0
  7. package/Docs//346/216/247/345/210/266/345/217/260/345/210/206/347/273/204/344/270/216/346/216/245/347/256/241/346/226/271/346/241/210.md +31 -0
  8. package/Docs//350/267/250/345/271/263/345/217/260/350/257/225/347/224/250/344/270/216/345/217/221/350/241/214.md +84 -0
  9. package/LICENSE +200 -0
  10. package/README.md +159 -2
  11. package/README.zh-CN.md +166 -0
  12. package/SECURITY.md +9 -0
  13. package/access-registry.mjs +156 -0
  14. package/action-execution.mjs +385 -0
  15. package/activity-notifier.mjs +34 -0
  16. package/api-contract.mjs +134 -0
  17. package/browser-extension/icons/open-browser-128.png +0 -0
  18. package/browser-extension/icons/open-browser-16.png +0 -0
  19. package/browser-extension/icons/open-browser-32.png +0 -0
  20. package/browser-extension/icons/open-browser-48.png +0 -0
  21. package/browser-extension/icons/open-browser-wordmark.png +0 -0
  22. package/browser-extension/manifest.json +35 -0
  23. package/browser-extension/newtab.css +26 -0
  24. package/browser-extension/newtab.html +19 -0
  25. package/browser-extension/newtab.js +174 -0
  26. package/browser-extension/phase-labels.js +9 -0
  27. package/browser-extension/popup.css +19 -0
  28. package/browser-extension/popup.html +56 -0
  29. package/browser-extension/popup.js +405 -0
  30. package/browser-extension/tab-action.js +138 -0
  31. package/browser-extension/worker.js +281 -0
  32. package/browser-extension/workspace-title.js +15 -0
  33. package/build-profile.mjs +23 -0
  34. package/capability-matrix.mjs +21 -0
  35. package/chromium-host.mjs +209 -0
  36. package/chromium-shell.mjs +179 -0
  37. package/cli.mjs +141 -0
  38. package/contract-validation.mjs +27 -0
  39. package/control.mjs +107 -0
  40. package/desktop/Info.plist +13 -0
  41. package/desktop/Launcher.m +117 -0
  42. package/desktop/OBControlBar.h +7 -0
  43. package/desktop/OBControlBar.m +217 -0
  44. package/desktop/OBPageView.h +6 -0
  45. package/desktop/OBPageView.m +348 -0
  46. package/desktop/WorkspacePanel.h +16 -0
  47. package/desktop/WorkspacePanel.m +916 -0
  48. package/desktop/archive-release.py +129 -0
  49. package/desktop/brand-keychain.py +111 -0
  50. package/desktop/brand-locales.py +93 -0
  51. package/desktop/brand-macos-icons.py +24 -0
  52. package/desktop/brand-windows-icons.mjs +48 -0
  53. package/desktop/build-macos.mjs +112 -0
  54. package/desktop/build-managed-input.mjs +37 -0
  55. package/desktop/build-portable.mjs +95 -0
  56. package/desktop/build-profile.mjs +6 -0
  57. package/desktop/build.mjs +13 -0
  58. package/desktop/create-shortcut.ps1 +9 -0
  59. package/desktop/generate-icons.py +39 -0
  60. package/desktop/icons/open-browser.icns +0 -0
  61. package/desktop/icons/open-browser.ico +0 -0
  62. package/desktop/install-menu-entry.mjs +24 -0
  63. package/desktop/macos-entitlements.plist +12 -0
  64. package/desktop/notarize-macos.mjs +145 -0
  65. package/desktop/package-assets.mjs +34 -0
  66. package/desktop/package-macos.mjs +54 -0
  67. package/desktop/patches/chromium-macos-keychain-service.patch +18 -0
  68. package/desktop/patches/chromium-managed-input.patch +144 -0
  69. package/desktop/portable-archive.py +22 -0
  70. package/desktop/sign.mjs +77 -0
  71. package/desktop/smoke-portable.mjs +65 -0
  72. package/desktop/start-profile.mjs +5 -0
  73. package/desktop/start.mjs +34 -0
  74. package/desktop/verify-macos-release.mjs +61 -0
  75. package/desktop/verify-upgrade.mjs +74 -0
  76. package/desktop/verify-version.mjs +12 -0
  77. package/desktop-page.mjs +211 -0
  78. package/diagnostics.mjs +37 -0
  79. package/downloads.mjs +110 -0
  80. package/engine-service.mjs +1158 -0
  81. package/hosted/README.md +74 -0
  82. package/hosted/cli.mjs +17 -0
  83. package/hosted/directory.mjs +261 -0
  84. package/hosted/init.mjs +37 -0
  85. package/hosted/server.mjs +129 -0
  86. package/managed-input.mjs +138 -0
  87. package/managed-popup.mjs +54 -0
  88. package/mcp-http.mjs +84 -0
  89. package/mcp-server.mjs +41 -0
  90. package/mcp.mjs +5 -0
  91. package/network-policy.mjs +107 -0
  92. package/output-store.mjs +96 -0
  93. package/package.json +77 -4
  94. package/page-activity.mjs +188 -0
  95. package/page-dialogs.mjs +53 -0
  96. package/page-observation.mjs +318 -0
  97. package/paths.mjs +22 -0
  98. package/privacy-config.mjs +95 -0
  99. package/receipt-store.mjs +198 -0
  100. package/runtime.mjs +53 -0
  101. package/scheduler.mjs +70 -0
  102. package/sdk.mjs +193 -0
  103. package/service.mjs +290 -0
  104. package/site-workflow.mjs +115 -0
  105. package/skill-links.mjs +90 -0
  106. package/skills/open-browser/SKILL.macos.md +112 -0
  107. package/skills/open-browser/SKILL.md +107 -0
  108. package/skills/open-browser/SKILL.windows.md +112 -0
  109. package/skills/open-browser/scripts/bootstrap.mjs +213 -0
  110. package/skills/open-browser/scripts/open-browser +21 -0
  111. package/skills/open-browser/scripts/open-browser.cmd +9 -0
  112. package/skills/open-browser/workflows/login-export.json +10 -0
  113. package/skills/open-browser/workflows/upload-verify.json +8 -0
  114. package/studio/demo-site.mjs +111 -0
  115. package/studio/demo.css +1 -0
  116. package/studio/index.html +66 -0
  117. package/studio/index.mjs +57 -0
  118. package/studio/native-demo.mjs +124 -0
  119. package/studio/studio.css +119 -0
  120. package/studio/studio.js +438 -0
  121. package/tab-adoption.mjs +77 -0
  122. package/uploads.mjs +63 -0
  123. package/visual-page.mjs +306 -0
  124. package/workspace-lifecycle.mjs +238 -0
  125. package/workspace-state.mjs +107 -0
package/LICENSE ADDED
@@ -0,0 +1,200 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the Work
90
+ or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You meet
92
+ the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or Derivative Works
95
+ a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works that
101
+ You distribute, all copyright, patent, trademark, and attribution
102
+ notices from the Source form of the Work, excluding those notices
103
+ that do not pertain to any part of the Derivative Works; and
104
+
105
+ (d) If the Work includes a "NOTICE" text file as part of its
106
+ distribution, then any Derivative Works that You distribute must
107
+ include a readable copy of the attribution notices contained
108
+ within such NOTICE file, excluding those notices that do not
109
+ pertain to any part of the Derivative Works, in at least one
110
+ of the following places: within a NOTICE text file distributed
111
+ as part of the Derivative Works; within the Source form or
112
+ documentation, if provided along with the Derivative Works; or,
113
+ within a display generated by the Derivative Works, if and
114
+ wherever such third-party notices normally appear. The contents
115
+ of the NOTICE file are for informational purposes only and
116
+ do not modify the License. You may add Your own attribution
117
+ notices within Derivative Works that You distribute, alongside
118
+ or as an addendum to the NOTICE text from the Work, provided
119
+ that such additional attribution notices cannot be construed
120
+ as modifying the License.
121
+
122
+ You may add Your own copyright statement to Your modifications and
123
+ may provide additional or different license terms and conditions
124
+ for use, reproduction, or distribution of Your modifications, or
125
+ for any such Derivative Works as a whole, provided Your use,
126
+ reproduction, and distribution of the Work otherwise complies with
127
+ the conditions stated in this License.
128
+
129
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
130
+ any Contribution intentionally submitted for inclusion in the Work
131
+ by You to the Licensor shall be under the terms and conditions of
132
+ this License, without any additional terms or conditions.
133
+ Notwithstanding the above, nothing herein shall supersede or modify
134
+ the terms of any separate license agreement you may have executed
135
+ with Licensor regarding such Contributions.
136
+
137
+ 6. Trademarks. This License does not grant permission to use the trade
138
+ names, trademarks, service marks, or product names of the Licensor,
139
+ except as required for reasonable and customary use in describing
140
+ the origin of the Work and reproducing the content of the NOTICE file.
141
+
142
+ 7. Disclaimer of Warranty. Unless required by applicable law or
143
+ agreed to in writing, Licensor provides the Work (and each
144
+ Contributor provides its Contributions) on an "AS IS" BASIS,
145
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
146
+ implied, including, without limitation, any warranties or conditions
147
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
148
+ PARTICULAR PURPOSE. You are solely responsible for determining the
149
+ appropriateness of using or redistributing the Work and assume any
150
+ risks associated with Your exercise of permissions under this License.
151
+
152
+ 8. Limitation of Liability. In no event and under no legal theory,
153
+ whether in tort (including negligence), contract, or otherwise,
154
+ unless required by applicable law (such as deliberate and grossly
155
+ negligent acts) or agreed to in writing, shall any Contributor be
156
+ liable to You for damages, including any direct, indirect, special,
157
+ incidental, or consequential damages of any character arising as a
158
+ result of this License or out of the use or inability to use the
159
+ Work (including but not limited to damages for loss of goodwill,
160
+ work stoppage, computer failure or malfunction, or any and all
161
+ other commercial damages or losses), even if such Contributor
162
+ has been advised of the possibility of such damages.
163
+
164
+ 9. Accepting Warranty or Additional Liability. While redistributing
165
+ the Work or Derivative Works thereof, You may choose to offer,
166
+ and charge a fee for, acceptance of support, warranty, indemnity,
167
+ or other liability obligations and/or rights consistent with this
168
+ License. However, in accepting such obligations, You may act only
169
+ on Your own behalf and on Your sole responsibility, not on behalf
170
+ of any other Contributor, and only if You agree to indemnify,
171
+ defend, and hold each Contributor harmless for any liability
172
+ incurred by, or claims asserted against, such Contributor by reason
173
+ of your accepting any such warranty or additional liability.
174
+
175
+ END OF TERMS AND CONDITIONS
176
+
177
+ APPENDIX: How to apply the Apache License to your work.
178
+
179
+ To apply the Apache License to your work, attach the following
180
+ boilerplate notice, with the fields enclosed by brackets "[]"
181
+ replaced with your own identifying information. (Don't include
182
+ the brackets!) The text should be enclosed in the appropriate
183
+ comment syntax for the file format. We also recommend that a
184
+ file or class name and description of purpose be included on the
185
+ same "printed page" as the copyright notice for easier
186
+ identification within third-party archives.
187
+
188
+ Copyright 2026 open-browser contributors
189
+
190
+ Licensed under the Apache License, Version 2.0 (the "License");
191
+ you may not use this file except in compliance with the License.
192
+ You may obtain a copy of the License at
193
+
194
+ http://www.apache.org/licenses/LICENSE-2.0
195
+
196
+ Unless required by applicable law or agreed to in writing, software
197
+ distributed under the License is distributed on an "AS IS" BASIS,
198
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
199
+ See the License for the specific language governing permissions and
200
+ limitations under the License.
package/README.md CHANGED
@@ -1,3 +1,160 @@
1
- # Temporary Holding Version
1
+ <h1 align="center"><img src="Docs/assets/open-browser-wordmark.png" width="288" alt="open-browser"></h1>
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ <p align="center"><strong>English</strong> · <a href="README.zh-CN.md">简体中文</a></p>
4
+
5
+ **Run several agents in background tabs and take over the exact page when a task needs you.**
6
+
7
+ open-browser is an open-source desktop browser for agents. It runs locally and ships with its own Chromium. One agent can sign in and export a report while another checks a form and you keep working in the foreground. The sidebar groups tabs by agent and task. When the task finishes, you choose which result tabs to keep.
8
+
9
+ [Quick start](#quick-start) · [Try a handoff](#try-a-handoff) · [SDK, CLI and MCP](#sdk-cli-and-mcp) · [Architecture](Docs/Agent浏览器总体架构.md) · [Privacy](Docs/open-browser隐私与开源审计.md) · [Contributing](CONTRIBUTING.md) · [Links](#links)
10
+
11
+ ![open-browser product overview showing parallel agent workspaces and a user taking control of a page](Docs/assets/open-browser-cover-en.png)
12
+
13
+ ## What you can do
14
+
15
+ - **Run tasks in parallel.** Workspaces progress independently and actions on each page stay in order. The service keeps same-page actions ordered while independent workspaces run concurrently. Use `npm run test:unit` and `npm run test:contract` to reproduce the local regression suites.
16
+ - **Use an existing signed-in tab.** Ask the agent to create a named workspace. Open the extension on the desired open-browser tab, choose that task, and pass the two-minute authorization to the agent. The tab stays open when the task finishes.
17
+ - **Share a live task with an agent.** Take over during sign-in, complete the form in place and hand the same tab back with its session intact. For routine sign-ins, bind a credential to the workspace and site so the agent can fill it by reference. [Workspace and handoff guide](Docs/控制台分组与接管方案.md)
18
+ - **Keep Agent input visibly exclusive.** While a workspace is in Agent control, the managed page rejects human page input and shows the existing task border and action cursor. Each Agent action opens a scoped dispatch window, then the page locks again. Use **人工接管** to edit the page yourself and **交回 Agent** to resume.
19
+ - **Pause safely for site verification.** When a site returns a recognized security challenge, the workspace stops Agent actions and shows **需要人工验证**. Take over the visible page, complete the site's own verification, then return control and observe again. open-browser does not hide automation signals or bypass the challenge.
20
+ - **See the work without another dashboard window.** Every new tab opens the local Agent console with active workspaces, agent names, current status and recent operation records. The native task bar keeps only takeover and a one-click **End** action.
21
+ - **Delegate only the access a task needs.** Grant read access to an agent that checks results and control access to one that fills forms. Managed tabs have a list of permitted origins. Reading screenshots requires a separate pixel grant. [API types](Docs/open-browser-api.d.ts)
22
+ - **Find out what happened after a disconnect.** The local service keeps the workspace alive when the CLI exits. Look up the receipt by operation ID. If submission is uncertain, check the site's result before retrying. [Evaluation guide](Docs/open-browser任务评测指南.md)
23
+ - **Read delivered results in bounded chunks.** A kept download receives a local manifest and can be read through `readOutput` in 64 KiB chunks. The manifest expires after 24 hours and stays on the local machine.
24
+
25
+ ## Quick start
26
+
27
+ From the repository root, install the dependencies and dedicated Chromium with Node.js 22.23.5 or later. The first engine installation requires internet access.
28
+
29
+ ```sh
30
+ npm ci
31
+ npm run browser:install
32
+ ```
33
+
34
+ To try the control API, run the integration test. It starts a temporary local service and test site, creates a workspace through the CLI and reads the same page through MCP.
35
+
36
+ ```sh
37
+ node --test service.integration.test.mjs
38
+ ```
39
+
40
+ To open the stable desktop browser, run `npm start`. Use `npm run start:dev` for an isolated development build with separate state, PID, socket, receipts and macOS app identity. The first macOS desktop build requires Xcode command line tools and a Developer ID Application certificate. If you already have a build, open `dist/open-browser.app`. For a public GitHub ZIP, set a notarytool profile or CI credentials and run `npm run build:release-macos`, then run `npm run release:verify-macos`. Windows and Linux support running from source and x64 portable builds. For a headless service, run `node service.mjs --headless`. [Platform prerequisites and packaging](Docs/跨平台试用与发行.md)
41
+
42
+ ## Try a handoff
43
+
44
+ 1. Use the CLI or SDK to open a local test page that requires a credential. The task appears in the browser's native Agent group and in the new-tab console.
45
+ 2. Select the waiting page and choose **人工接管** in the bottom bar or extension. Complete the form in the original tab, then choose **交回 Agent**.
46
+ 3. The Agent observes the current document again and continues with the existing session. The one-click **结束** action closes the active task group while keeping any result tabs you selected.
47
+
48
+ ## Privacy and accounts
49
+
50
+ - open-browser uses a dedicated profile separate from personal Chrome. Ordinary desktop tabs and workspaces in the same profile can share same-site cookies. Use separate `OPEN_BROWSER_PROFILE` values for separate accounts.
51
+ - The default `strict` configuration reduces Chromium background services. A managed workspace uses the first site's origin by default. Specify `allowedOrigins` for other task sites and `resourceOrigins` for resources such as images or fonts. Ordinary tabs follow Chromium's own network settings.
52
+ - Site credentials are kept in service memory and scoped to a workspace and origin. Observations redact bound credentials and common token formats. Visible business data may still reach the agent. The client controls what it forwards to its model.
53
+ - The default configuration includes no product telemetry, ad scripts or remote account service. Inspect the running configuration with `node cli.mjs capabilities` and use `node benchmarks/privacy-audit.mjs` to inspect a loopback task. Chromium may contact built-in services during startup. [Privacy and open-source audit](Docs/open-browser隐私与开源审计.md)
54
+
55
+ ## SDK, CLI and MCP
56
+
57
+ The CLI and MCP server use the same SDK to call the local API. The service drives Chromium through Playwright Core and shares page state, permissions and operation receipts across clients.
58
+ Every new workspace must include a clear `name` task label. The label appears in the Agent console, native sidebar and browser tab group.
59
+
60
+ The scoped npm package exposes the same implementation through separate entry points. Install it with `npm install @seekskyworld/open-browser`. Run `open-browser` for CLI calls, configure `open-browser-mcp` as an MCP stdio server, or run `open-browser-mcp-http` for an authenticated loopback MCP endpoint. JavaScript clients can import `OpenBrowserClient` from `@seekskyworld/open-browser`.
61
+
62
+ Agents using the [open-browser Skill](skills/open-browser/SKILL.md) call the CLI through `skills/open-browser/scripts/open-browser`. The Skill starts the local open-browser app or portable service when needed and retries once after it becomes ready. Set `OPEN_BROWSER_AUTOSTART=0` to require an already running service. Start the app manually or run `npm start` when you want to open the desktop window before creating a task. Pass method arguments as JSON on standard input. Use `node cli.mjs --help` to list methods. Run `open-browser skill` to print the platform-matched guide without starting the service.
63
+
64
+ The optional `open-browser-mcp-http` command binds only to loopback, uses the profile token as Bearer authentication, and serves `/mcp` for clients that require URL-based MCP configuration. Set `OPEN_BROWSER_MCP_HTTP_PORT` to choose a port.
65
+
66
+ On the first Skill or service start, open-browser detects existing Skill directories for Codex, Claude Code, Cursor, Windsurf, Gemini CLI, Cline, Roo Code and OpenCode. It creates an `open-browser` relative symlink in each detected directory, preserving existing files and links. Windsurf's standard `~/.codeium/windsurf/skills` directory and its legacy `~/.windsurf/skills` directory are both supported. Set `OPEN_BROWSER_AUTO_INSTALL_SKILLS=0` to disable this behavior. Add agent-specific Skill directories with the `OPEN_BROWSER_AGENT_SKILL_DIRS` path-list variable.
67
+
68
+ For one explicit URL, an agent can use one `open` call to create a workspace and open the page. This shortcut keeps Chromium's normal page network so cross-origin CSS, scripts, fonts and images render normally. Observation and actions remain bound to the target workspace and origin. Use `createWorkspace` when strict origin isolation is required.
69
+
70
+ ```sh
71
+ printf '%s\n' '{"url":"https://example.org","name":"Page check"}' | node cli.mjs open
72
+ ```
73
+
74
+ The SDK also provides `openAndObserve(options)`, `observeAndAct(page, { actions })`, `actAfterObserve(page, { actions })` and `finish(workspaceId, keepPageIds)`. Observation and action submission can use one service request while preserving fresh document IDs, control generations, workspace permissions and idempotent operation receipts.
75
+
76
+ For continuous tasks, run `open-browser session` and send one JSON request per line with `id`, `method` and `params`. The session reuses one Node client and local connection to avoid process startup on every action.
77
+
78
+ For multi-step work, use the full SDK lifecycle.
79
+
80
+ ```sh
81
+ node --input-type=module <<'JS'
82
+ import { OpenBrowserClient } from './sdk.mjs';
83
+ const api = new OpenBrowserClient();
84
+ const { workspaceId } = await api.createWorkspace({ name: 'SDK example' });
85
+ try {
86
+ const page = await api.openPage(workspaceId, 'https://example.org');
87
+ console.log((await api.observe(page)).text);
88
+ } finally {
89
+ await api.closeWorkspace(workspaceId);
90
+ }
91
+ JS
92
+ ```
93
+
94
+ MCP uses stdio. The example below assumes the app is installed in `/Applications`. Replace both paths with the absolute path to a local build when needed.
95
+
96
+ ```json
97
+ {
98
+ "mcpServers": {
99
+ "open-browser": {
100
+ "command": "/Applications/open-browser.app/Contents/Resources/node/bin/node",
101
+ "args": ["/Applications/open-browser.app/Contents/Resources/app/mcp.mjs"]
102
+ }
103
+ }
104
+ }
105
+ ```
106
+
107
+ Client tokens live under `~/.open-browser/`. Clients connect over a Unix socket or a Windows named pipe. Results handed to an external agent are processed according to that client’s model provider. Managed tabs restrict WebSockets, workers and scripted popups. Third-party sign-ins may require a handoff. [API types](Docs/open-browser-api.d.ts) · [Architecture](Docs/Agent浏览器总体架构.md)
108
+
109
+ <details>
110
+ <summary>Existing profiles, macOS Keychain and privacy settings</summary>
111
+
112
+ The default desktop profile lives at `~/.open-browser/open-browser-profile-v2/` on macOS and `~/.open-browser/open-browser-profile/` on Windows and Linux. Site-data encryption uses the system Keychain item named `open-browser Keychain`. Builders can select a signing identity with `OPEN_BROWSER_SIGN_IDENTITY`. macOS release credentials are read from `OPEN_BROWSER_NOTARY_PROFILE` or CI-provided API Key and Apple ID variables. [Build check](desktop/brand-keychain.py)
113
+
114
+ </details>
115
+
116
+ ## Results, profiles and client permissions
117
+
118
+ Use the **End** control in the floating bar or the extension's workspace panel when the task is complete. The service preserves the current document and its form state while keeping selected result tabs. Its existing sandbox remains in effect until the next navigation. Agents call `finishWorkspace` once the task is complete. Tab selection and individual actions leave the task group active. Receipt history remains available after restart. Chromium's session settings determine which tabs reopen.
119
+
120
+ To use two accounts concurrently, run each command in its own terminal and use the matching profile name in its clients. Names support up to 48 lowercase letters, digits, underscores and hyphens.
121
+
122
+ ```sh
123
+ OPEN_BROWSER_PROFILE=work node service.mjs --chromium
124
+ OPEN_BROWSER_PROFILE=personal node service.mjs --chromium
125
+ ```
126
+
127
+ A local administrator can pair a client and give it the resulting token file. Replace the placeholder IDs below with the paired principal and target workspace. Processes with file access under the same OS account can read each other's tokens. Use separate OS accounts when that boundary matters.
128
+
129
+ ```sh
130
+ printf '%s\n' '{"name":"Reviewer","tokenFile":"/tmp/open-browser-reviewer.token"}' | node cli.mjs admin.pair
131
+ OPEN_BROWSER_CLIENT_TOKEN_FILE=/tmp/open-browser-reviewer.token node cli.mjs listWorkspaces
132
+ printf '%s\n' '{"principalId":"CLIENT_ID","workspaceId":"WORKSPACE_ID","permission":"read"}' | node cli.mjs admin.grant
133
+ printf '%s\n' '{"principalId":"CLIENT_ID","workspaceId":"WORKSPACE_ID"}' | node cli.mjs admin.revoke
134
+ ```
135
+
136
+ A `read` grant permits observation. A `control` grant also permits actions. Revoking delegated control hands an active task back to the user. List paired clients with `admin.list` or invalidate a token with `admin.revokeClient`. Receipts and events have a seven-day retention period. Use `admin.clearHistory` with a finished workspace ID to clear its history and grants. Use `listEvents` to export diagnostic events by cursor.
137
+
138
+ The workspace panel can grant an origin for the current task after a blocked request. Permission for a passive resource and permission to navigate to its origin are separate. After granting navigation, retry the original action. [Agent Skill](skills/open-browser/SKILL.md)
139
+
140
+ ### Scheduling and permissions
141
+
142
+ Inspect active slots, queue depth and cumulative wait and execution time with `node cli.mjs admin.scheduler`. The default concurrency is four. The service admits up to 128 in-flight requests per workspace and 512 in total. Configure `OPEN_BROWSER_LOW_MEMORY_MIB` to reduce concurrency under memory pressure or set it to zero for a fixed limit.
143
+
144
+ The Skill covers masked screenshots and spatial input. [Agent Skill](skills/open-browser/SKILL.md) · [Hosted deployment](hosted/README.md)
145
+
146
+ ## Contributing
147
+
148
+ A useful first contribution is a reproducible page fixture. For example, put a Save button on each of two order rows, ask the agent to edit one order and check which row the site actually received. Existing tests cover duplicate controls, file uploads, sign-in and handoff. [Contributor guide](CONTRIBUTING.md) · [Evaluation guide](Docs/open-browser任务评测指南.md)
149
+
150
+ Run `npm run test:unit` for the fast local suite and `npm run test:all` before merging. Run `npm run build:verify` to validate versions and produce a desktop build. `npm run clean` removes generated `dist` and local engine caches. Report security and privacy issues privately. [Security policy](SECURITY.md)
151
+
152
+ open-browser code is licensed under Apache 2.0. Bundled Chromium, Node.js and other components carry their respective licenses. [License](LICENSE) · [Third-party notices](Docs/THIRD-PARTY-NOTICES.md)
153
+
154
+ ## Links
155
+
156
+ <a href="Docs/assets/open-browser-logo.png"><img src="Docs/assets/open-browser-logo.png" width="48" alt="open-browser"></a>
157
+
158
+ - [Linux DO community](https://linux.do/)
159
+ - [Workspace architecture](Docs/Agent浏览器总体架构.md) · [Privacy audit](Docs/open-browser隐私与开源审计.md)
160
+ - Download the [dragon icon](Docs/assets/open-browser-logo.png) or the [horizontal wordmark](Docs/assets/open-browser-wordmark.png).
@@ -0,0 +1,166 @@
1
+ <h1 align="center"><img src="Docs/assets/open-browser-wordmark.png" width="288" alt="open-browser"></h1>
2
+
3
+ <p align="center"><a href="README.md">English</a> · <strong>简体中文</strong></p>
4
+
5
+ **让多个 Agent 在浏览器后台各做各的任务,需要时,你可以直接接管它正在操作的那一页。**
6
+
7
+ open-browser 是一个本机运行的开源 Agent 浏览器,自带 Chromium。你可以让一个 Agent 登录后台导出报表,让另一个在不同标签里核对表单,同时继续使用前台标签。左侧按「Agent 名称 · 任务名」分组,任务结束后,选中的结果页留在浏览器里。
8
+
9
+ [快速开始](#快速开始) · [试一次人工接管](#试一次人工接管) · [接入 CLI、SDK 或 MCP](#sdkcli-与-mcp) · [总体架构](Docs/Agent浏览器总体架构.md) · [隐私审计](Docs/open-browser隐私与开源审计.md) · [贡献指南](CONTRIBUTING.md) · [相关链接](#相关链接)
10
+
11
+ ![open-browser 产品概览:多个 Agent 在自己的标签组中工作,用户可在当前页接管](Docs/assets/open-browser-cover-zh-CN.png)
12
+
13
+ ## 用它做什么
14
+
15
+ - **后台并行处理网页。** 不同工作区可以同时推进,同一页的动作按顺序执行。服务保证同页动作按顺序执行,同时允许不同工作区并发。可运行 `npm run test:unit` 和 `npm run test:contract` 重现本机回归套件。
16
+ - **把打开的标签页交给 Agent。** 让 Agent 创建命名任务,在 open-browser 中已登录的标签页打开扩展,选择任务并点「让 Agent 操作此页」。把面板里的授权交给 Agent 即可继续,任务结束后原标签会保留。
17
+ - **人和 Agent 接力完成任务。** 登录需要你确认时,接管原标签就能继续操作,保留当前表单和登录态。交回后,Agent 重新观察页面再继续。你也可以预先为指定站点绑定凭据,让常规登录自动完成。[工作区与接管](Docs/控制台分组与接管方案.md)
18
+ - **Agent 操作时锁定页面输入。** Agent 控制工作区时,受管页面会拒绝人工鼠标、触控板和键盘输入,同时显示任务边框和动作光标。每次 Agent 动作结束后立即恢复锁定。点击 **人工接管** 后可以直接编辑原页,完成后点击 **交回 Agent**。
19
+ - **站点安全验证暂停。** 检测到站点返回安全验证挑战时,工作区会停止 Agent 操作并显示“需要人工验证”。用户在可见页面完成站点自己的验证后交回控制权,再重新观察。open-browser 不隐藏自动化信号,也不绕过验证。
20
+ - **新标签页就是任务控制台。** 每个新标签页只显示正在运行的 Agent 和运行历史,包含 Agent 名称、任务状态、最近步骤和时间。页面底部悬浮栏只保留人工接管和一键「结束」,结束时保留现有页面并撤销任务分组,不再弹出交付窗口。
21
+ - **给 Agent 刚好够用的权限。** 给核对结果的助手授予只读权限,给填写表单的助手授予控制权限。受管页面按任务授权访问站点,读取截图还需要单独的像素授权。[接口与权限](Docs/open-browser-api.d.ts)
22
+ - **断线后查清上一步。** CLI 进程退出后,工作区由本机服务继续管理。连接恢复时,可以凭操作 ID 查询回执。遇到提交结果未知的情况,先核对站点,避免把同一张表单再交一次。[任务评测指南](Docs/open-browser任务评测指南.md)
23
+ - **分块读取交付结果。** 用户保留下载后会生成本地 manifest,Agent 可以用 `readOutput` 按 64 KiB 分块读取。manifest 24 小时后过期,数据保留在本机。
24
+
25
+ ## 快速开始
26
+
27
+ 在仓库根目录使用 Node.js 22.23.5 或更新版本安装依赖和项目专用的 Chromium。首次安装需要联网。
28
+
29
+ ```sh
30
+ npm ci
31
+ npm run browser:install
32
+ ```
33
+
34
+ **先试控制接口**,运行下面的用例。它启动临时本机服务与测试站,通过 CLI 创建工作区,再由 MCP 读取同一页。测试使用临时资料,你可以直接看到通过或失败的结果。
35
+
36
+ ```sh
37
+ node --test service.integration.test.mjs
38
+ ```
39
+
40
+ **打开稳定桌面浏览器**,运行 `npm start`。开发构建使用 `npm run start:dev`,它会隔离开发状态目录、PID、socket、回执和 macOS 应用标识。macOS 首次启动会构建签名应用,需要 Xcode 命令行工具和 Developer ID Application 证书。公开发布 GitHub ZIP 时,配置 notarytool 钥匙串配置或 CI 凭据,运行 `npm run build:release-macos`,再运行 `npm run release:verify-macos`。Windows、Linux 支持从源码启动和 x64 便携包。仅需无头服务时运行 `node service.mjs --headless`。[各平台构建、系统依赖与校验](Docs/跨平台试用与发行.md)
41
+
42
+ 本地生成可安装的 macOS 默认包可运行 `npm run package:macos`,它会同时生成 `.app`、ZIP 和带 `Applications` 快捷方式的 DMG。只需要 DMG 时运行 `npm run package:macos:dmg`。Windows、Linux 包分别使用 `npm run package:windows:x64` 和 `npm run package:linux:x64`。
43
+
44
+ ## 试一次人工接管
45
+
46
+ 1. 使用 CLI 或 SDK 打开一个需要凭据的本机测试页。任务会出现在浏览器原生 Agent 分组和新标签页控制台中。
47
+ 2. 选中等待中的标签,点击页面底部或扩展里的 **人工接管**。直接在原页完成表单,再点击 **交回 Agent**。
48
+ 3. Agent 会重新观察当前文档并沿用现有登录态继续执行。点击一次 **结束** 可收起活动任务组,同时保留选中的结果标签。
49
+
50
+ ## 隐私与账号
51
+
52
+ - 浏览器使用 open-browser 自有资料,与个人 Chrome 隔离。同一份桌面资料下,普通标签和工作区可以共享同站 Cookie。需要分开两个账号时,用 `OPEN_BROWSER_PROFILE` 分别启动两份资料。
53
+ - 默认 `strict` 配置限制 Chromium 的后台服务。受管页默认以首次打开的站点为访问范围,也可以用 `allowedOrigins` 指定站点,用 `resourceOrigins` 单独授权图片、字体等资源。普通标签使用 Chromium 自身的网络设置。
54
+ - 站点凭据按工作区和来源保存在服务内存中。观察结果会遮盖已绑定的凭据和常见令牌格式。网页正文仍可能包含业务信息,外部 Agent 是否把观察结果发送给模型由其客户端决定。
55
+ - 默认配置不启用产品遥测、广告脚本或远程账号服务。可用 `node cli.mjs capabilities` 查看实际配置,用 `node benchmarks/privacy-audit.mjs` 在本机复核回环任务的连接。Chromium 自身可能在启动阶段访问内置服务,详见[隐私与开源审计](Docs/open-browser隐私与开源审计.md)。
56
+
57
+ ## SDK、CLI 与 MCP
58
+
59
+ CLI 和 MCP 都通过同一个 SDK 调用本机 API。服务端使用 Playwright Core 驱动专用 Chromium,并在各入口之间共享页面、权限和操作回执。
60
+ 每个新工作区都必须填写清晰的 `name` 任务名称,该名称会显示在 Agent 控制台、原生侧栏和浏览器标签组中。
61
+
62
+ Scoped npm 包提供同一套实现的多个入口。运行 `npm install @seekskyworld/open-browser` 后,使用 `open-browser` 调用 CLI,使用 `open-browser-mcp` 配置 MCP stdio 服务,或使用 `open-browser-mcp-http` 启动经过 Bearer 认证的本机回环 MCP 地址。JavaScript 客户端可以从 `@seekskyworld/open-browser` 导入 `OpenBrowserClient`。
63
+
64
+ Agent 使用 [open-browser Skill](skills/open-browser/SKILL.md) 时,通过 `skills/open-browser/scripts/open-browser` 调用 CLI。Skill 会在需要时启动本机 open-browser 应用或便携服务,等待就绪后自动重试一次。设置 `OPEN_BROWSER_AUTOSTART=0` 可要求服务必须已运行。希望先打开桌面窗口时,也可以手动启动应用或执行 `npm start`。运行 `open-browser skill` 可以直接输出当前安装包对应平台的 Skill 指南,不会启动服务。
65
+
66
+ 首次运行 Skill 或本机服务时,open-browser 会检测已经存在的 Codex、Claude Code、Cursor、Windsurf、Gemini CLI、Cline、Roo Code 和 OpenCode Skill 目录,并在其中创建 `open-browser` 相对符号链接。已有文件和非 open-browser 符号链接会保留。Windsurf 的标准目录 `~/.codeium/windsurf/skills` 和旧版目录 `~/.windsurf/skills` 都支持。设置 `OPEN_BROWSER_AUTO_INSTALL_SKILLS=0` 可关闭自动安装,也可以通过 `OPEN_BROWSER_AGENT_SKILL_DIRS` 路径列表补充其他 Agent 的 Skill 目录。
67
+
68
+ 需要 URL 形式 MCP 配置时,可运行 `open-browser-mcp-http`。它只监听本机回环地址 `/mcp`,默认读取当前 profile 的 token 作为 Bearer 认证,端口可用 `OPEN_BROWSER_MCP_HTTP_PORT` 设置。
69
+
70
+ 先打开应用或执行 `npm start`。在项目根目录运行 `node cli.mjs createWorkspace` 创建工作区,运行 `node cli.mjs listWorkspaces` 查看结果。带参数的命令通过标准输入传入 JSON。`node cli.mjs --help` 列出全部方法。
71
+
72
+ 只打开一个明确网址时,Agent 可以用一次 `open` 调用创建工作区并打开页面。该快捷入口使用 Chromium 的正常页面网络,避免跨域 CSS、脚本、字体和图片造成页面失真。Agent 观察和操作仍绑定到目标工作区与来源。需要严格来源隔离时,使用 `createWorkspace`。
73
+
74
+ ```sh
75
+ printf '%s\n' '{"url":"https://example.org","name":"网页检查"}' | node cli.mjs open
76
+ ```
77
+
78
+ SDK 还提供 `openAndObserve(options)`、`observeAndAct(page, { actions })`、`actAfterObserve(page, { actions })` 和 `finish(workspaceId, keepPageIds)`。观察和动作可以通过一次服务请求完成,同时仍使用最新文档 ID、控制代次、工作区权限和幂等操作回执。
79
+
80
+ 连续任务可以运行 `open-browser session`,按行发送带 `id`、`method` 和 `params` 的 JSON。该模式复用一个 Node 客户端和本地连接,减少每个动作的进程启动成本。
81
+
82
+ 需要跨多步复用工作区时,使用完整的 SDK 生命周期。
83
+
84
+ ```sh
85
+ node --input-type=module <<'JS'
86
+ import { OpenBrowserClient } from './sdk.mjs';
87
+ const api = new OpenBrowserClient();
88
+ const { workspaceId } = await api.createWorkspace({ name: 'SDK 试用' });
89
+ try {
90
+ const page = await api.openPage(workspaceId, 'https://example.org');
91
+ console.log((await api.observe(page)).text);
92
+ } finally {
93
+ await api.closeWorkspace(workspaceId);
94
+ }
95
+ JS
96
+ ```
97
+
98
+ MCP 客户端使用 stdio。下面的示例假设已把应用移到 `/Applications`。直接运行 `dist` 内的应用时,将两处路径替换为应用包的绝对路径。
99
+
100
+ ```json
101
+ {
102
+ "mcpServers": {
103
+ "open-browser": {
104
+ "command": "/Applications/open-browser.app/Contents/Resources/node/bin/node",
105
+ "args": ["/Applications/open-browser.app/Contents/Resources/app/mcp.mjs"]
106
+ }
107
+ }
108
+ }
109
+ ```
110
+
111
+ 服务默认在 `~/.open-browser/` 下保存本地令牌,并使用当前用户的 Unix socket 或 Windows 命名管道。结果交给外部 Agent 后,其模型服务的数据处理由客户端决定。受管标签限制 WebSocket、工作线程和脚本弹窗,第三方登录流程可能需要人工接管。[接口类型](Docs/open-browser-api.d.ts) · [总体架构](Docs/Agent浏览器总体架构.md)
112
+
113
+ <details>
114
+ <summary>已有资料、macOS 钥匙串与隐私配置</summary>
115
+
116
+ 桌面资料默认保存在 `~/.open-browser/open-browser-profile-v2/`(macOS)或 `~/.open-browser/open-browser-profile/`(Windows、Linux)。站点数据的加密密钥保存在系统钥匙串的 `open-browser Keychain` 项目中。构建机可以通过 `OPEN_BROWSER_SIGN_IDENTITY` 选择签名证书。macOS 公证凭据从 `OPEN_BROWSER_NOTARY_PROFILE` 或 CI 提供的 API Key、Apple ID 变量读取。[构建校验](desktop/brand-keychain.py)
117
+
118
+ </details>
119
+
120
+ ## 交付结果、账号和客户端权限
121
+
122
+ 完成任务时,点悬浮栏的 **结束**,或在扩展的工作区面板中结束任务。服务保留当前文档和表单状态,选中的结果标签会继续作为普通标签使用;同一文档已有的沙箱策略持续到下一次导航,服务不会自动刷新表单结果页。关闭应用后,回执可以按工作区和操作 ID 查询。标签是否在下次启动时恢复由 Chromium 会话设置决定。
123
+
124
+ 服务和调用端使用相同的 `OPEN_BROWSER_PROFILE` 选择账号资料。例如在两个终端分别执行以下两条命令,可并行使用两个独立账号。名称支持小写字母、数字、下划线和短横线,最长 48 字符。未指定时使用原有资料。
125
+
126
+ ```sh
127
+ OPEN_BROWSER_PROFILE=work node service.mjs --chromium
128
+ OPEN_BROWSER_PROFILE=personal node service.mjs --chromium
129
+ ```
130
+
131
+ 本机管理者可以从终端配对客户端。以下命令在仓库根目录运行;把令牌文件路径交给对应客户端。每个客户端使用自己的 `OPEN_BROWSER_CLIENT_TOKEN_FILE` 运行 SDK、Skill CLI 或 MCP。管理接口使用另一份本机令牌;具有同一 OS 账号文件读取权限的进程仍可读取其他令牌,需要 OS 级隔离时应使用不同系统账号。
132
+
133
+ ```sh
134
+ printf '%s\n' '{"name":"检查助手","tokenFile":"/tmp/open-browser-reviewer.token"}' | node cli.mjs admin.pair
135
+ OPEN_BROWSER_CLIENT_TOKEN_FILE=/tmp/open-browser-reviewer.token node cli.mjs listWorkspaces
136
+ printf '%s\n' '{"principalId":"客户端ID","workspaceId":"工作区ID","permission":"read"}' | node cli.mjs admin.grant
137
+ printf '%s\n' '{"principalId":"客户端ID","workspaceId":"工作区ID"}' | node cli.mjs admin.revoke
138
+ ```
139
+
140
+ `read` 允许查询及观察,`control` 允许操作。撤回控制委托时,活动任务进入人工接管,原有动作受同一个交接屏障约束。可用 `admin.list` 列举配对项,`admin.revokeClient` 注销整个令牌。项目管理者可对已经结束的工作区调用 `admin.clearHistory`,传入 `workspaceId`,清理回执、事件和历史权限关系。默认保留期为七天;本地诊断可用 `listEvents` 按游标导出,无需把页面正文、凭据或截图写入诊断文件。
141
+
142
+ 跨站样式、图片、字体和媒体可通过 `resourceOrigins` 声明。受信面板也可按实际阻断的来源和类型临时放行,仅在该任务有效。第三方导航需要单独授权,首次授权后重新执行对应打开页面/加载操作。更多调用示例见 [Agent 技能](skills/open-browser/SKILL.md) 和 [API 类型](Docs/open-browser-api.d.ts)。
143
+
144
+ 任务组显示在左侧竖排标签栏。open-browser 隐藏书签栏中的已保存标签组入口,这项 Chromium 偏好对该资料中的所有分组生效。Agent 在整项任务结束时调用 `finishWorkspace`,服务撤销分组并把选定的结果留为普通标签,单步操作完成或等待人工接管时仍保留活动分组。
145
+
146
+ ### 视觉操作、负载与协作
147
+
148
+ 本机管理员可以运行 `node cli.mjs admin.scheduler` 查看进程内执行槽、待处理数、累计等待及执行时间。每个工作区最多容纳 128 个在途请求,每个服务合计 512 个,等待执行槽的工作区轮流获得机会。同页动作按请求顺序执行。默认并发为 4;部署者可在启动服务前设置 `OPEN_BROWSER_LOW_MEMORY_MIB`。系统可用内存低于该值时减半并发,超过 1.5 倍时恢复,设为 0 使用固定并发。浏览器使用项目专属的资料,每次从本地空白标签启动。
149
+
150
+ 视觉截图与空间动作的 CLI 用法见 [open-browser Skill](skills/open-browser/SKILL.md)。双节点部署、租户密钥和派发结果待核实的处理见[托管服务说明](hosted/README.md)。桌面隐私与性能实测见[评测指南](Docs/open-browser任务评测指南.md)。
151
+
152
+ ## 参与开发
153
+
154
+ 欢迎贡献可复现的站点用例。例如,两个同名「保存」按钮出现在不同订单行时,Agent 能否只修改指定订单?可以用本机测试页描述初始状态、执行步骤和站点实际收到的结果。现有评测提供了同名控件、上传、登录和交接的样例。[贡献指南](CONTRIBUTING.md) · [任务评测指南](Docs/open-browser任务评测指南.md)
155
+
156
+ 修改源码后运行 `npm run test:unit` 执行快速套件,合并前运行 `npm run test:all` 覆盖托管与只读契约。运行 `npm run build:verify` 会校验版本并生成桌面构建,`npm run clean` 可清理 `dist` 和本地引擎缓存。安全与隐私问题请通过私下渠道报告。[安全报告说明](SECURITY.md)
157
+
158
+ open-browser 项目代码采用 Apache License 2.0。随包分发的 Chromium、Node.js 和其他组件适用各自的许可条款。[项目许可证](LICENSE) · [第三方组件声明](Docs/THIRD-PARTY-NOTICES.md)
159
+
160
+ ## 相关链接
161
+
162
+ <a href="Docs/assets/open-browser-logo.png"><img src="Docs/assets/open-browser-logo.png" width="48" alt="open-browser"></a>
163
+
164
+ - [Linux DO 社区](https://linux.do/)
165
+ - [工作区架构](Docs/Agent浏览器总体架构.md) · [隐私审计](Docs/open-browser隐私与开源审计.md)
166
+ - 项目标识可下载[龙形图标](Docs/assets/open-browser-logo.png)或[含项目名称的横版标识](Docs/assets/open-browser-wordmark.png)。
package/SECURITY.md ADDED
@@ -0,0 +1,9 @@
1
+ # 私下报告安全与隐私问题
2
+
3
+ 内部试用者可以通过项目所有者的私聊发送项目版本、操作系统、受影响的功能和使用合成账号的最小复现。对外托管到 GitHub 时,维护者应启用仓库的 Private vulnerability reporting。启用后,外部报告者可进入仓库的 **Security → Advisories → Report a vulnerability** 提交私密报告。若该入口尚未开放,可先在项目讨论区只询问维护者的私下联系方式。
4
+
5
+ 操作失败时,可在桌面工具栏的工作区面板展开「操作诊断」,输入操作 ID,预览后保存脱敏报告。报告可以包含故障类别、派发记录和已完成步数。请使用虚构凭据及本机测试站复现,并在发送前检查附件。
6
+
7
+ ## 隐私运行检查
8
+
9
+ 默认启动使用严格隐私配置。提交隐私问题时,请附上 `capabilities` 的 `privacy` 字段、系统和 open-browser 版本,以及只含回环地址的最小复现。不要上传 NetLog、截图、Cookie、令牌或真实账号数据。兼容模式只用于对照测试,运行命令为 `OPEN_BROWSER_PRIVACY_PROFILE=compatibility`,问题复现后应恢复默认配置。