{"id":48,"date":"2026-03-21T22:47:15","date_gmt":"2026-03-21T14:47:15","guid":{"rendered":"https:\/\/pa.yingzhi8.cn\/index.php\/2026\/03\/21\/cli-browser\/"},"modified":"2026-03-21T23:08:54","modified_gmt":"2026-03-21T15:08:54","slug":"cli-browser","status":"publish","type":"post","link":"https:\/\/pa.yingzhi8.cn\/index.php\/2026\/03\/21\/cli-browser\/","title":{"rendered":"browser"},"content":{"rendered":"<h1>browser<\/h1>\n<h1><code>openclaw browser<\/code><\/h1>\n<p>\u7ba1\u7406 OpenClaw \u7684\u6d4f\u89c8\u5668\u63a7\u5236\u670d\u52a1\u5668\u5e76\u8fd0\u884c\u6d4f\u89c8\u5668\u64cd\u4f5c\uff08\u6807\u7b7e\u9875\u3001\u5feb\u7167\u3001\u622a\u56fe\u3001\u5bfc\u822a\u3001\u70b9\u51fb\u3001\u8f93\u5165\uff09\u3002<\/p>\n<p>\u76f8\u5173\uff1a<\/p>\n<ul>\n<li>\u6d4f\u89c8\u5668\u5de5\u5177 + API\uff1a<a href=\"\/tools\/browser\">\u6d4f\u89c8\u5668\u5de5\u5177<\/a><\/li>\n<li>Chrome \u6269\u5c55\u4e2d\u7ee7\uff1a<a href=\"\/tools\/chrome-extension\">Chrome \u6269\u5c55<\/a><\/li>\n<\/ul>\n<h2>\u901a\u7528\u6807\u5fd7<\/h2>\n<ul>\n<li><code>--url &lt;gatewayWsUrl&gt;<\/code>\uff1aGateway \u7f51\u5173 WebSocket URL\uff08\u9ed8\u8ba4\u4ece\u914d\u7f6e\u83b7\u53d6\uff09\u3002<\/li>\n<li><code>--token &lt;token&gt;<\/code>\uff1aGateway \u7f51\u5173\u4ee4\u724c\uff08\u5982\u679c\u9700\u8981\uff09\u3002<\/li>\n<li><code>--timeout &lt;ms&gt;<\/code>\uff1a\u8bf7\u6c42\u8d85\u65f6\uff08\u6beb\u79d2\uff09\u3002<\/li>\n<li><code>--browser-profile &lt;name&gt;<\/code>\uff1a\u9009\u62e9\u6d4f\u89c8\u5668\u914d\u7f6e\u6587\u4ef6\uff08\u9ed8\u8ba4\u4ece\u914d\u7f6e\u83b7\u53d6\uff09\u3002<\/li>\n<li><code>--json<\/code>\uff1a\u673a\u5668\u53ef\u8bfb\u8f93\u51fa\uff08\u5728\u652f\u6301\u7684\u5730\u65b9\uff09\u3002<\/li>\n<\/ul>\n<h2>\u5feb\u901f\u5f00\u59cb\uff08\u672c\u5730\uff09<\/h2>\n<p>&#8220;`bash  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<br \/>\nopenclaw browser &#8211;browser-profile chrome tabs<br \/>\nopenclaw browser &#8211;browser-profile openclaw start<br \/>\nopenclaw browser &#8211;browser-profile openclaw open https:\/\/example.com<br \/>\nopenclaw browser &#8211;browser-profile openclaw snapshot<\/p>\n<pre><code>\n## \u914d\u7f6e\u6587\u4ef6\n\n\u914d\u7f6e\u6587\u4ef6\u662f\u547d\u540d\u7684\u6d4f\u89c8\u5668\u8def\u7531\u914d\u7f6e\u3002\u5b9e\u9645\u4e0a\uff1a\n\n* `openclaw`\uff1a\u542f\u52a8\/\u9644\u52a0\u5230\u4e13\u7528\u7684 OpenClaw \u7ba1\u7406\u7684 Chrome \u5b9e\u4f8b\uff08\u9694\u79bb\u7684\u7528\u6237\u6570\u636e\u76ee\u5f55\uff09\u3002\n* `chrome`\uff1a\u901a\u8fc7 Chrome \u6269\u5c55\u4e2d\u7ee7\u63a7\u5236\u4f60\u73b0\u6709\u7684 Chrome \u6807\u7b7e\u9875\u3002\n\n```bash  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\nopenclaw browser profiles\nopenclaw browser create-profile --name work --color &quot;#FF5A36&quot;\nopenclaw browser delete-profile --name work\n<\/code><\/pre>\n<p>\u4f7f\u7528\u7279\u5b9a\u914d\u7f6e\u6587\u4ef6\uff1a<\/p>\n<p>&#8220;`bash  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<br \/>\nopenclaw browser &#8211;browser-profile work tabs<\/p>\n<pre><code>\n## \u6807\u7b7e\u9875\n\n```bash  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\nopenclaw browser tabs\nopenclaw browser open https:\/\/docs.openclaw.ai\nopenclaw browser focus &lt;targetId&gt;\nopenclaw browser close &lt;targetId&gt;\n<\/code><\/pre>\n<h2>\u5feb\u7167 \/ \u622a\u56fe \/ \u64cd\u4f5c<\/h2>\n<p>\u5feb\u7167\uff1a<\/p>\n<p>&#8220;`bash  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<br \/>\nopenclaw browser snapshot<\/p>\n<pre><code>\n\u622a\u56fe\uff1a\n\n```bash  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\nopenclaw browser screenshot\n<\/code><\/pre>\n<p>\u5bfc\u822a\/\u70b9\u51fb\/\u8f93\u5165\uff08\u57fa\u4e8e ref \u7684 UI \u81ea\u52a8\u5316\uff09\uff1a<\/p>\n<p>&#8220;`bash  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<br \/>\nopenclaw browser navigate https:\/\/example.com<br \/>\nopenclaw browser click<br \/>\nopenclaw browser type  &#8220;hello&#8221;<\/p>\n<pre><code>\n## Chrome \u6269\u5c55\u4e2d\u7ee7\uff08\u901a\u8fc7\u5de5\u5177\u680f\u6309\u94ae\u9644\u52a0\uff09\n\n\u6b64\u6a21\u5f0f\u8ba9\u667a\u80fd\u4f53\u63a7\u5236\u4f60\u624b\u52a8\u9644\u52a0\u7684\u73b0\u6709 Chrome \u6807\u7b7e\u9875\uff08\u4e0d\u4f1a\u81ea\u52a8\u9644\u52a0\uff09\u3002\n\n\u5c06\u672a\u6253\u5305\u7684\u6269\u5c55\u5b89\u88c5\u5230\u7a33\u5b9a\u8def\u5f84\uff1a\n\n```bash  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\nopenclaw browser extension install\nopenclaw browser extension path\n<\/code><\/pre>\n<p>\u7136\u540e Chrome \u2192 <code>chrome:\/\/extensions<\/code> \u2192 \u542f\u7528&#8221;\u5f00\u53d1\u8005\u6a21\u5f0f&#8221; \u2192 &#8220;\u52a0\u8f7d\u5df2\u89e3\u538b\u7684\u6269\u5c55\u7a0b\u5e8f&#8221; \u2192 \u9009\u62e9\u6253\u5370\u7684\u6587\u4ef6\u5939\u3002<\/p>\n<p>\u5b8c\u6574\u6307\u5357\uff1a<a href=\"\/tools\/chrome-extension\">Chrome \u6269\u5c55<\/a><\/p>\n<h2>\u8fdc\u7a0b\u6d4f\u89c8\u5668\u63a7\u5236\uff08node host \u4ee3\u7406\uff09<\/h2>\n<p>\u5982\u679c Gateway \u7f51\u5173\u4e0e\u6d4f\u89c8\u5668\u8fd0\u884c\u5728\u4e0d\u540c\u7684\u673a\u5668\u4e0a\uff0c\u5728\u6709 Chrome\/Brave\/Edge\/Chromium \u7684\u673a\u5668\u4e0a\u8fd0\u884c <strong>node host<\/strong>\u3002Gateway \u7f51\u5173\u4f1a\u5c06\u6d4f\u89c8\u5668\u64cd\u4f5c\u4ee3\u7406\u5230\u8be5\u8282\u70b9\uff08\u65e0\u9700\u5355\u72ec\u7684\u6d4f\u89c8\u5668\u63a7\u5236\u670d\u52a1\u5668\uff09\u3002<\/p>\n<p>\u4f7f\u7528 <code>gateway.nodes.browser.mode<\/code> \u63a7\u5236\u81ea\u52a8\u8def\u7531\uff0c\u4f7f\u7528 <code>gateway.nodes.browser.node<\/code> \u5728\u8fde\u63a5\u591a\u4e2a\u8282\u70b9\u65f6\u56fa\u5b9a\u7279\u5b9a\u8282\u70b9\u3002<\/p>\n<p>\u5b89\u5168 + \u8fdc\u7a0b\u8bbe\u7f6e\uff1a<a href=\"\/tools\/browser\">\u6d4f\u89c8\u5668\u5de5\u5177<\/a>\u3001<a href=\"\/gateway\/remote\">\u8fdc\u7a0b\u8bbf\u95ee<\/a>\u3001<a href=\"\/gateway\/tailscale\">Tailscale<\/a>\u3001<a href=\"\/gateway\/security\">\u5b89\u5168<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>browser openclaw browser \u7ba1\u7406 OpenClaw \u7684\u6d4f\u89c8\u5668\u63a7\u5236\u670d\u52a1\u5668\u5e76\u8fd0\u884c\u6d4f\u89c8\u5668\u64cd\u4f5c\uff08 [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-48","post","type-post","status-publish","format-standard","hentry","category-docs"],"_links":{"self":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/48","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/comments?post=48"}],"version-history":[{"count":1,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/48\/revisions"}],"predecessor-version":[{"id":343,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/48\/revisions\/343"}],"wp:attachment":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/media?parent=48"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/categories?post=48"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/tags?post=48"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}