{"id":758,"date":"2026-03-21T23:08:58","date_gmt":"2026-03-21T15:08:58","guid":{"rendered":"https:\/\/pa.yingzhi8.cn\/index.php\/2026\/03\/21\/nodes\/"},"modified":"2026-03-21T23:08:58","modified_gmt":"2026-03-21T15:08:58","slug":"nodes","status":"publish","type":"post","link":"https:\/\/pa.yingzhi8.cn\/index.php\/2026\/03\/21\/nodes\/","title":{"rendered":"\u8282\u70b9"},"content":{"rendered":"<h1>\u8282\u70b9<\/h1>\n<p><strong>\u8282\u70b9<\/strong>\u662f\u4e00\u4e2a\u914d\u5957\u8bbe\u5907\uff08macOS\/iOS\/Android\/\u65e0\u5934\uff09\uff0c\u5b83\u4ee5 <code>role: \"node\"<\/code> \u8fde\u63a5\u5230 Gateway \u7f51\u5173 <strong>WebSocket<\/strong>\uff08\u4e0e\u64cd\u4f5c\u5458\u76f8\u540c\u7684\u7aef\u53e3\uff09\uff0c\u5e76\u901a\u8fc7 <code>node.invoke<\/code> \u66b4\u9732\u547d\u4ee4\u63a5\u53e3\uff08\u4f8b\u5982 <code>canvas.*<\/code>\u3001<code>camera.*<\/code>\u3001<code>system.*<\/code>\uff09\u3002\u534f\u8bae\u8be6\u60c5\uff1a<a href=\"\/gateway\/protocol\">Gateway \u7f51\u5173\u534f\u8bae<\/a>\u3002<\/p>\n<p>\u65e7\u7248\u4f20\u8f93\uff1a<a href=\"\/gateway\/bridge-protocol\">Bridge \u534f\u8bae<\/a>\uff08TCP JSONL\uff1b\u5f53\u524d\u8282\u70b9\u5df2\u5f03\u7528\/\u79fb\u9664\uff09\u3002<\/p>\n<p>macOS \u4e5f\u53ef\u4ee5\u5728<strong>\u8282\u70b9\u6a21\u5f0f<\/strong>\u4e0b\u8fd0\u884c\uff1a\u83dc\u5355\u680f\u5e94\u7528\u8fde\u63a5\u5230 Gateway \u7f51\u5173\u7684 WS \u670d\u52a1\u5668\uff0c\u5e76\u5c06\u5176\u672c\u5730 canvas\/camera \u547d\u4ee4\u4f5c\u4e3a\u8282\u70b9\u66b4\u9732\uff08\u56e0\u6b64 <code>openclaw nodes \u2026<\/code> \u53ef\u4ee5\u9488\u5bf9\u8fd9\u53f0 Mac \u5de5\u4f5c\uff09\u3002<\/p>\n<p>\u6ce8\u610f\u4e8b\u9879\uff1a<\/p>\n<ul>\n<li>\u8282\u70b9\u662f<strong>\u5916\u56f4\u8bbe\u5907<\/strong>\uff0c\u4e0d\u662f Gateway \u7f51\u5173\u3002\u5b83\u4eec\u4e0d\u8fd0\u884c Gateway \u7f51\u5173\u670d\u52a1\u3002<\/li>\n<li>Telegram\/WhatsApp \u7b49\u6d88\u606f\u843d\u5728 <strong>Gateway \u7f51\u5173<\/strong>\u4e0a\uff0c\u800c\u4e0d\u662f\u8282\u70b9\u4e0a\u3002<\/li>\n<\/ul>\n<h2>\u914d\u5bf9 + \u72b6\u6001<\/h2>\n<p><strong>WS \u8282\u70b9\u4f7f\u7528\u8bbe\u5907\u914d\u5bf9\u3002<\/strong> \u8282\u70b9\u5728 <code>connect<\/code> \u671f\u95f4\u5448\u73b0\u8bbe\u5907\u8eab\u4efd\uff1bGateway \u7f51\u5173<br \/>\n\u4e3a <code>role: node<\/code> \u521b\u5efa\u8bbe\u5907\u914d\u5bf9\u8bf7\u6c42\u3002\u901a\u8fc7\u8bbe\u5907 CLI\uff08\u6216 UI\uff09\u6279\u51c6\u3002<\/p>\n<p>\u5feb\u901f CLI\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 devices list<br \/>\nopenclaw devices approve<br \/>\nopenclaw devices reject<br \/>\nopenclaw nodes status<br \/>\nopenclaw nodes describe &#8211;node <\/p>\n<pre><code>\n\u6ce8\u610f\u4e8b\u9879\uff1a\n\n* \u5f53\u8282\u70b9\u7684\u8bbe\u5907\u914d\u5bf9\u89d2\u8272\u5305\u542b `node` \u65f6\uff0c`nodes status` \u5c06\u8282\u70b9\u6807\u8bb0\u4e3a**\u5df2\u914d\u5bf9**\u3002\n* `node.pair.*`\uff08CLI\uff1a`openclaw nodes pending\/approve\/reject`\uff09\u662f\u4e00\u4e2a\u5355\u72ec\u7684 Gateway \u7f51\u5173\u62e5\u6709\u7684\n  \u8282\u70b9\u914d\u5bf9\u5b58\u50a8\uff1b\u5b83**\u4e0d\u4f1a**\u9650\u5236 WS `connect` \u63e1\u624b\u3002\n\n## \u8fdc\u7a0b\u8282\u70b9\u4e3b\u673a\uff08system.run\uff09\n\n\u5f53\u4f60\u7684 Gateway \u7f51\u5173\u5728\u4e00\u53f0\u673a\u5668\u4e0a\u8fd0\u884c\u800c\u4f60\u5e0c\u671b\u547d\u4ee4\n\u5728\u53e6\u4e00\u53f0\u673a\u5668\u4e0a\u6267\u884c\u65f6\uff0c\u4f7f\u7528**\u8282\u70b9\u4e3b\u673a**\u3002\u6a21\u578b\u4ecd\u7136\u4e0e **Gateway \u7f51\u5173**\u901a\u4fe1\uff1b\u5f53\u9009\u62e9 `host=node` \u65f6\uff0cGateway \u7f51\u5173\n\u5c06 `exec` \u8c03\u7528\u8f6c\u53d1\u5230**\u8282\u70b9\u4e3b\u673a**\u3002\n\n### \u4ec0\u4e48\u5728\u54ea\u91cc\u8fd0\u884c\n\n* **Gateway \u7f51\u5173\u4e3b\u673a**\uff1a\u63a5\u6536\u6d88\u606f\uff0c\u8fd0\u884c\u6a21\u578b\uff0c\u8def\u7531\u5de5\u5177\u8c03\u7528\u3002\n* **\u8282\u70b9\u4e3b\u673a**\uff1a\u5728\u8282\u70b9\u673a\u5668\u4e0a\u6267\u884c `system.run`\/`system.which`\u3002\n* **\u6279\u51c6**\uff1a\u901a\u8fc7 `~\/.openclaw\/exec-approvals.json` \u5728\u8282\u70b9\u4e3b\u673a\u4e0a\u6267\u884c\u3002\n\n### \u542f\u52a8\u8282\u70b9\u4e3b\u673a\uff08\u524d\u53f0\uff09\n\n\u5728\u8282\u70b9\u673a\u5668\u4e0a\uff1a\n\n```bash  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\nopenclaw node run --host &lt;gateway-host&gt; --port 18789 --display-name &quot;Build Node&quot;\n<\/code><\/pre>\n<h3>\u901a\u8fc7 SSH \u96a7\u9053\u8bbf\u95ee\u8fdc\u7a0b Gateway \u7f51\u5173\uff08loopback \u7ed1\u5b9a\uff09<\/h3>\n<p>\u5982\u679c Gateway \u7f51\u5173\u7ed1\u5b9a\u5230 loopback\uff08<code>gateway.bind=loopback<\/code>\uff0c\u672c\u5730\u6a21\u5f0f\u4e0b\u7684\u9ed8\u8ba4\u503c\uff09\uff0c<br \/>\n\u8fdc\u7a0b\u8282\u70b9\u4e3b\u673a\u65e0\u6cd5\u76f4\u63a5\u8fde\u63a5\u3002\u521b\u5efa SSH \u96a7\u9053\u5e76\u5c06<br \/>\n\u8282\u70b9\u4e3b\u673a\u6307\u5411\u96a7\u9053\u7684\u672c\u5730\u7aef\u3002<\/p>\n<p>\u793a\u4f8b\uff08\u8282\u70b9\u4e3b\u673a -&gt; Gateway \u7f51\u5173\u4e3b\u673a\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;}}<\/p>\n<h1>\u7ec8\u7aef A\uff08\u4fdd\u6301\u8fd0\u884c\uff09\uff1a\u8f6c\u53d1\u672c\u5730 18790 -&gt; Gateway \u7f51\u5173 127.0.0.1:18789<\/h1>\n<p>ssh -N -L 18790:127.0.0.1:18789 user@gateway-host<\/p>\n<h1>\u7ec8\u7aef B\uff1a\u5bfc\u51fa Gateway \u7f51\u5173\u4ee4\u724c\u5e76\u901a\u8fc7\u96a7\u9053\u8fde\u63a5<\/h1>\n<p>export OPENCLAW_GATEWAY_TOKEN=&#8221;&#8221;<br \/>\nopenclaw node run &#8211;host 127.0.0.1 &#8211;port 18790 &#8211;display-name &#8220;Build Node&#8221;<\/p>\n<pre><code>\n\u6ce8\u610f\u4e8b\u9879\uff1a\n\n* \u4ee4\u724c\u662f Gateway \u7f51\u5173\u914d\u7f6e\u4e2d\u7684 `gateway.auth.token`\uff08Gateway \u7f51\u5173\u4e3b\u673a\u4e0a\u7684 `~\/.openclaw\/openclaw.json`\uff09\u3002\n* `openclaw node run` \u8bfb\u53d6 `OPENCLAW_GATEWAY_TOKEN` \u8fdb\u884c\u8ba4\u8bc1\u3002\n\n### \u542f\u52a8\u8282\u70b9\u4e3b\u673a\uff08\u670d\u52a1\uff09\n\n```bash  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\nopenclaw node install --host &lt;gateway-host&gt; --port 18789 --display-name &quot;Build Node&quot;\nopenclaw node restart\n<\/code><\/pre>\n<h3>\u914d\u5bf9 + \u547d\u540d<\/h3>\n<p>\u5728 Gateway \u7f51\u5173\u4e3b\u673a\u4e0a\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 nodes pending<br \/>\nopenclaw nodes approve<br \/>\nopenclaw nodes list<\/p>\n<pre><code>\n\u547d\u540d\u9009\u9879\uff1a\n\n* \u5728 `openclaw node run` \/ `openclaw node install` \u4e0a\u4f7f\u7528 `--display-name`\uff08\u6301\u4e45\u5316\u5728\u8282\u70b9\u4e0a\u7684 `~\/.openclaw\/node.json` \u4e2d\uff09\u3002\n* `openclaw nodes rename --node &lt;id|name|ip&gt; --name &quot;Build Node&quot;`\uff08Gateway \u7f51\u5173\u8986\u76d6\uff09\u3002\n\n### \u5c06\u547d\u4ee4\u52a0\u5165\u5141\u8bb8\u5217\u8868\n\nExec \u6279\u51c6\u662f**\u6bcf\u4e2a\u8282\u70b9\u4e3b\u673a**\u7684\u3002\u4ece Gateway \u7f51\u5173\u6dfb\u52a0\u5141\u8bb8\u5217\u8868\u6761\u76ee\uff1a\n\n```bash  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\nopenclaw approvals allowlist add --node &lt;id|name|ip&gt; &quot;\/usr\/bin\/uname&quot;\nopenclaw approvals allowlist add --node &lt;id|name|ip&gt; &quot;\/usr\/bin\/sw_vers&quot;\n<\/code><\/pre>\n<p>\u6279\u51c6\u5b58\u50a8\u5728\u8282\u70b9\u4e3b\u673a\u7684 <code>~\/.openclaw\/exec-approvals.json<\/code> \u4e2d\u3002<\/p>\n<h3>\u5c06 exec \u6307\u5411\u8282\u70b9<\/h3>\n<p>\u914d\u7f6e\u9ed8\u8ba4\u503c\uff08Gateway \u7f51\u5173\u914d\u7f6e\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 config set tools.exec.host node<br \/>\nopenclaw config set tools.exec.security allowlist<br \/>\nopenclaw config set tools.exec.node &#8220;&#8221;<\/p>\n<pre><code>\n\u6216\u6309\u4f1a\u8bdd\uff1a\n\n<\/code><\/pre>\n<p>\/exec host=node security=allowlist node=<\/p>\n<pre><code>\n\u8bbe\u7f6e\u540e\uff0c\u4efb\u4f55\u5e26\u6709 `host=node` \u7684 `exec` \u8c03\u7528\u90fd\u4f1a\u5728\u8282\u70b9\u4e3b\u673a\u4e0a\u8fd0\u884c\uff08\u53d7\n\u8282\u70b9\u5141\u8bb8\u5217\u8868\/\u6279\u51c6\u7ea6\u675f\uff09\u3002\n\n\u76f8\u5173\uff1a\n\n* [\u8282\u70b9\u4e3b\u673a CLI](\/cli\/node)\n* [Exec \u5de5\u5177](\/tools\/exec)\n* [Exec \u6279\u51c6](\/tools\/exec-approvals)\n\n## \u8c03\u7528\u547d\u4ee4\n\n\u4f4e\u7ea7\uff08\u539f\u59cb RPC\uff09\uff1a\n\n```bash  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\nopenclaw nodes invoke --node &lt;idOrNameOrIp&gt; --command canvas.eval --params '{&quot;javaScript&quot;:&quot;location.href&quot;}'\n<\/code><\/pre>\n<p>\u5bf9\u4e8e\u5e38\u89c1\u7684&#8221;\u7ed9\u667a\u80fd\u4f53\u4e00\u4e2a MEDIA \u9644\u4ef6&#8221;\u5de5\u4f5c\u6d41\uff0c\u5b58\u5728\u66f4\u9ad8\u7ea7\u7684\u8f85\u52a9\u5de5\u5177\u3002<\/p>\n<h2>\u622a\u56fe\uff08canvas \u5feb\u7167\uff09<\/h2>\n<p>\u5982\u679c\u8282\u70b9\u6b63\u5728\u663e\u793a Canvas\uff08WebView\uff09\uff0c<code>canvas.snapshot<\/code> \u8fd4\u56de <code>{ format, base64 }<\/code>\u3002<\/p>\n<p>CLI \u8f85\u52a9\u5de5\u5177\uff08\u5199\u5165\u4e34\u65f6\u6587\u4ef6\u5e76\u6253\u5370 <code>MEDIA:&lt;path&gt;<\/code>\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 nodes canvas snapshot &#8211;node  &#8211;format png<br \/>\nopenclaw nodes canvas snapshot &#8211;node  &#8211;format jpg &#8211;max-width 1200 &#8211;quality 0.9<\/p>\n<pre><code>\n### Canvas \u63a7\u5236\n\n```bash  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\nopenclaw nodes canvas present --node &lt;idOrNameOrIp&gt; --target https:\/\/example.com\nopenclaw nodes canvas hide --node &lt;idOrNameOrIp&gt;\nopenclaw nodes canvas navigate https:\/\/example.com --node &lt;idOrNameOrIp&gt;\nopenclaw nodes canvas eval --node &lt;idOrNameOrIp&gt; --js &quot;document.title&quot;\n<\/code><\/pre>\n<p>\u6ce8\u610f\u4e8b\u9879\uff1a<\/p>\n<ul>\n<li><code>canvas present<\/code> \u63a5\u53d7 URL \u6216\u672c\u5730\u6587\u4ef6\u8def\u5f84\uff08<code>--target<\/code>\uff09\uff0c\u4ee5\u53ca\u53ef\u9009\u7684 <code>--x\/--y\/--width\/--height<\/code> \u7528\u4e8e\u5b9a\u4f4d\u3002<\/li>\n<li><code>canvas eval<\/code> \u63a5\u53d7\u5185\u8054 JS\uff08<code>--js<\/code>\uff09\u6216\u4f4d\u7f6e\u53c2\u6570\u3002<\/li>\n<\/ul>\n<h3>A2UI\uff08Canvas\uff09<\/h3>\n<p>&#8220;`bash  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<br \/>\nopenclaw nodes canvas a2ui push &#8211;node  &#8211;text &#8220;Hello&#8221;<br \/>\nopenclaw nodes canvas a2ui push &#8211;node  &#8211;jsonl .\/payload.jsonl<br \/>\nopenclaw nodes canvas a2ui reset &#8211;node <\/p>\n<pre><code>\n\u6ce8\u610f\u4e8b\u9879\uff1a\n\n* \u4ec5\u652f\u6301 A2UI v0.8 JSONL\uff08v0.9\/createSurface \u88ab\u62d2\u7edd\uff09\u3002\n\n## \u7167\u7247 + \u89c6\u9891\uff08\u8282\u70b9\u76f8\u673a\uff09\n\n\u7167\u7247\uff08`jpg`\uff09\uff1a\n\n```bash  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\nopenclaw nodes camera list --node &lt;idOrNameOrIp&gt;\nopenclaw nodes camera snap --node &lt;idOrNameOrIp&gt;            # \u9ed8\u8ba4\uff1a\u4e24\u4e2a\u671d\u5411\uff082 \u4e2a MEDIA \u884c\uff09\nopenclaw nodes camera snap --node &lt;idOrNameOrIp&gt; --facing front\n<\/code><\/pre>\n<p>\u89c6\u9891\u7247\u6bb5\uff08<code>mp4<\/code>\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 nodes camera clip &#8211;node  &#8211;duration 10s<br \/>\nopenclaw nodes camera clip &#8211;node  &#8211;duration 3000 &#8211;no-audio<\/p>\n<pre><code>\n\u6ce8\u610f\u4e8b\u9879\uff1a\n\n* \u8282\u70b9\u5fc5\u987b\u5904\u4e8e**\u524d\u53f0**\u624d\u80fd\u4f7f\u7528 `canvas.*` \u548c `camera.*`\uff08\u540e\u53f0\u8c03\u7528\u8fd4\u56de `NODE_BACKGROUND_UNAVAILABLE`\uff09\u3002\n* \u7247\u6bb5\u65f6\u957f\u88ab\u9650\u5236\uff08\u5f53\u524d `&lt;= 60s`\uff09\u4ee5\u907f\u514d\u8fc7\u5927\u7684 base64 \u8d1f\u8f7d\u3002\n* Android \u4f1a\u5728\u53ef\u80fd\u65f6\u63d0\u793a `CAMERA`\/`RECORD_AUDIO` \u6743\u9650\uff1b\u6743\u9650\u88ab\u62d2\u7edd\u4f1a\u4ee5 `*_PERMISSION_REQUIRED` \u5931\u8d25\u3002\n\n## \u5c4f\u5e55\u5f55\u5236\uff08\u8282\u70b9\uff09\n\n\u8282\u70b9\u66b4\u9732 `screen.record`\uff08mp4\uff09\u3002\u793a\u4f8b\uff1a\n\n```bash  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\nopenclaw nodes screen record --node &lt;idOrNameOrIp&gt; --duration 10s --fps 10\nopenclaw nodes screen record --node &lt;idOrNameOrIp&gt; --duration 10s --fps 10 --no-audio\n<\/code><\/pre>\n<p>\u6ce8\u610f\u4e8b\u9879\uff1a<\/p>\n<ul>\n<li><code>screen.record<\/code> \u9700\u8981\u8282\u70b9\u5e94\u7528\u5904\u4e8e\u524d\u53f0\u3002<\/li>\n<li>Android \u4f1a\u5728\u5f55\u5236\u524d\u663e\u793a\u7cfb\u7edf\u5c4f\u5e55\u6355\u83b7\u63d0\u793a\u3002<\/li>\n<li>\u5c4f\u5e55\u5f55\u5236\u88ab\u9650\u5236\u4e3a <code>&lt;= 60s<\/code>\u3002<\/li>\n<li><code>--no-audio<\/code> \u7981\u7528\u9ea6\u514b\u98ce\u6355\u83b7\uff08iOS\/Android \u652f\u6301\uff1bmacOS \u4f7f\u7528\u7cfb\u7edf\u6355\u83b7\u97f3\u9891\uff09\u3002<\/li>\n<li>\u5f53\u6709\u591a\u4e2a\u5c4f\u5e55\u53ef\u7528\u65f6\uff0c\u4f7f\u7528 <code>--screen &lt;index&gt;<\/code> \u9009\u62e9\u663e\u793a\u5668\u3002<\/li>\n<\/ul>\n<h2>\u4f4d\u7f6e\uff08\u8282\u70b9\uff09<\/h2>\n<p>\u5f53\u5728\u8bbe\u7f6e\u4e2d\u542f\u7528\u4f4d\u7f6e\u65f6\uff0c\u8282\u70b9\u66b4\u9732 <code>location.get<\/code>\u3002<\/p>\n<p>CLI \u8f85\u52a9\u5de5\u5177\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 nodes location get &#8211;node<br \/>\nopenclaw nodes location get &#8211;node  &#8211;accuracy precise &#8211;max-age 15000 &#8211;location-timeout 10000<\/p>\n<pre><code>\n\u6ce8\u610f\u4e8b\u9879\uff1a\n\n* \u4f4d\u7f6e**\u9ed8\u8ba4\u5173\u95ed**\u3002\n* &quot;\u59cb\u7ec8&quot;\u9700\u8981\u7cfb\u7edf\u6743\u9650\uff1b\u540e\u53f0\u83b7\u53d6\u662f\u5c3d\u529b\u800c\u4e3a\u7684\u3002\n* \u54cd\u5e94\u5305\u62ec\u7eac\u5ea6\/\u7ecf\u5ea6\u3001\u7cbe\u5ea6\uff08\u7c73\uff09\u548c\u65f6\u95f4\u6233\u3002\n\n## \u77ed\u4fe1\uff08Android \u8282\u70b9\uff09\n\n\u5f53\u7528\u6237\u6388\u4e88 **SMS** \u6743\u9650\u4e14\u8bbe\u5907\u652f\u6301\u7535\u8bdd\u529f\u80fd\u65f6\uff0cAndroid \u8282\u70b9\u53ef\u4ee5\u66b4\u9732 `sms.send`\u3002\n\n\u4f4e\u7ea7\u8c03\u7528\uff1a\n\n```bash  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\nopenclaw nodes invoke --node &lt;idOrNameOrIp&gt; --command sms.send --params '{&quot;to&quot;:&quot;+15555550123&quot;,&quot;message&quot;:&quot;Hello from OpenClaw&quot;}'\n<\/code><\/pre>\n<p>\u6ce8\u610f\u4e8b\u9879\uff1a<\/p>\n<ul>\n<li>\u5728\u80fd\u529b\u88ab\u5e7f\u64ad\u4e4b\u524d\uff0c\u5fc5\u987b\u5728 Android \u8bbe\u5907\u4e0a\u63a5\u53d7\u6743\u9650\u63d0\u793a\u3002<\/li>\n<li>\u6ca1\u6709\u7535\u8bdd\u529f\u80fd\u7684\u7eaf Wi-Fi \u8bbe\u5907\u4e0d\u4f1a\u5e7f\u64ad <code>sms.send<\/code>\u3002<\/li>\n<\/ul>\n<h2>\u7cfb\u7edf\u547d\u4ee4\uff08\u8282\u70b9\u4e3b\u673a \/ mac \u8282\u70b9\uff09<\/h2>\n<p>macOS \u8282\u70b9\u66b4\u9732 <code>system.run<\/code>\u3001<code>system.notify<\/code> \u548c <code>system.execApprovals.get\/set<\/code>\u3002<br \/>\n\u65e0\u5934\u8282\u70b9\u4e3b\u673a\u66b4\u9732 <code>system.run<\/code>\u3001<code>system.which<\/code> \u548c <code>system.execApprovals.get\/set<\/code>\u3002<\/p>\n<p>\u793a\u4f8b\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 nodes run &#8211;node  &#8212; echo &#8220;Hello from mac node&#8221;<br \/>\nopenclaw nodes notify &#8211;node  &#8211;title &#8220;Ping&#8221; &#8211;body &#8220;Gateway ready&#8221;<\/p>\n<pre><code>\n\u6ce8\u610f\u4e8b\u9879\uff1a\n\n* `system.run` \u5728\u8d1f\u8f7d\u4e2d\u8fd4\u56de stdout\/stderr\/\u9000\u51fa\u7801\u3002\n* `system.notify` \u9075\u5b88 macOS \u5e94\u7528\u4e0a\u7684\u901a\u77e5\u6743\u9650\u72b6\u6001\u3002\n* `system.run` \u652f\u6301 `--cwd`\u3001`--env KEY=VAL`\u3001`--command-timeout` \u548c `--needs-screen-recording`\u3002\n* `system.notify` \u652f\u6301 `--priority &lt;passive|active|timeSensitive&gt;` \u548c `--delivery &lt;system|overlay|auto&gt;`\u3002\n* macOS \u8282\u70b9\u4f1a\u4e22\u5f03 `PATH` \u8986\u76d6\uff1b\u65e0\u5934\u8282\u70b9\u4e3b\u673a\u4ec5\u5728 `PATH` \u524d\u7f6e\u5230\u8282\u70b9\u4e3b\u673a PATH \u65f6\u624d\u63a5\u53d7\u5b83\u3002\n* \u5728 macOS \u8282\u70b9\u6a21\u5f0f\u4e0b\uff0c`system.run` \u53d7 macOS \u5e94\u7528\u4e2d\u7684 exec \u6279\u51c6\u9650\u5236\uff08\u8bbe\u7f6e \u2192 Exec \u6279\u51c6\uff09\u3002\n  Ask\/allowlist\/full \u7684\u884c\u4e3a\u4e0e\u65e0\u5934\u8282\u70b9\u4e3b\u673a\u76f8\u540c\uff1b\u88ab\u62d2\u7edd\u7684\u63d0\u793a\u8fd4\u56de `SYSTEM_RUN_DENIED`\u3002\n* \u5728\u65e0\u5934\u8282\u70b9\u4e3b\u673a\u4e0a\uff0c`system.run` \u53d7 exec \u6279\u51c6\u9650\u5236\uff08`~\/.openclaw\/exec-approvals.json`\uff09\u3002\n\n## Exec \u8282\u70b9\u7ed1\u5b9a\n\n\u5f53\u6709\u591a\u4e2a\u8282\u70b9\u53ef\u7528\u65f6\uff0c\u4f60\u53ef\u4ee5\u5c06 exec \u7ed1\u5b9a\u5230\u7279\u5b9a\u8282\u70b9\u3002\n\u8fd9\u8bbe\u7f6e\u4e86 `exec host=node` \u7684\u9ed8\u8ba4\u8282\u70b9\uff08\u53ef\u4ee5\u6309\u667a\u80fd\u4f53\u8986\u76d6\uff09\u3002\n\n\u5168\u5c40\u9ed8\u8ba4\uff1a\n\n```bash  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\nopenclaw config set tools.exec.node &quot;node-id-or-name&quot;\n<\/code><\/pre>\n<p>\u6309\u667a\u80fd\u4f53\u8986\u76d6\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 config get agents.list<br \/>\nopenclaw config set agents.list[0].tools.exec.node &#8220;node-id-or-name&#8221;<\/p>\n<pre><code>\n\u53d6\u6d88\u8bbe\u7f6e\u4ee5\u5141\u8bb8\u4efb\u4f55\u8282\u70b9\uff1a\n\n```bash  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\nopenclaw config unset tools.exec.node\nopenclaw config unset agents.list[0].tools.exec.node\n<\/code><\/pre>\n<h2>\u6743\u9650\u6620\u5c04<\/h2>\n<p>\u8282\u70b9\u53ef\u80fd\u5728 <code>node.list<\/code> \/ <code>node.describe<\/code> \u4e2d\u5305\u542b <code>permissions<\/code> \u6620\u5c04\uff0c\u6309\u6743\u9650\u540d\u79f0\uff08\u4f8b\u5982 <code>screenRecording<\/code>\u3001<code>accessibility<\/code>\uff09\u952e\u5165\uff0c\u503c\u4e3a\u5e03\u5c14\u503c\uff08<code>true<\/code> = \u5df2\u6388\u4e88\uff09\u3002<\/p>\n<h2>\u65e0\u5934\u8282\u70b9\u4e3b\u673a\uff08\u8de8\u5e73\u53f0\uff09<\/h2>\n<p>OpenClaw \u53ef\u4ee5\u8fd0\u884c<strong>\u65e0\u5934\u8282\u70b9\u4e3b\u673a<\/strong>\uff08\u65e0 UI\uff09\uff0c\u5b83\u8fde\u63a5\u5230 Gateway \u7f51\u5173<br \/>\nWebSocket \u5e76\u66b4\u9732 <code>system.run<\/code> \/ <code>system.which<\/code>\u3002\u8fd9\u5728 Linux\/Windows<br \/>\n\u4e0a\u6216\u5728\u670d\u52a1\u5668\u65c1\u8fd0\u884c\u6700\u5c0f\u8282\u70b9\u65f6\u5f88\u6709\u7528\u3002<\/p>\n<p>\u542f\u52a8\u5b83\uff1a<\/p>\n<p><code>bash  theme={\"theme\":{\"light\":\"min-light\",\"dark\":\"min-dark\"}}<br \/>\nopenclaw node run --host &lt;gateway-host&gt; --port 18789<\/code><\/p>\n<p>\u6ce8\u610f\u4e8b\u9879\uff1a<\/p>\n<ul>\n<li>\u4ecd\u7136\u9700\u8981\u914d\u5bf9\uff08Gateway \u7f51\u5173\u4f1a\u663e\u793a\u8282\u70b9\u6279\u51c6\u63d0\u793a\uff09\u3002<\/li>\n<li>\u8282\u70b9\u4e3b\u673a\u5c06\u5176\u8282\u70b9 id\u3001\u4ee4\u724c\u3001\u663e\u793a\u540d\u79f0\u548c Gateway \u7f51\u5173\u8fde\u63a5\u4fe1\u606f\u5b58\u50a8\u5728 <code>~\/.openclaw\/node.json<\/code> \u4e2d\u3002<\/li>\n<li>Exec \u6279\u51c6\u901a\u8fc7 <code>~\/.openclaw\/exec-approvals.json<\/code> \u5728\u672c\u5730\u6267\u884c<br \/>\n  \uff08\u53c2\u89c1 <a href=\"\/tools\/exec-approvals\">Exec \u6279\u51c6<\/a>\uff09\u3002<\/li>\n<li>\u5728 macOS \u4e0a\uff0c\u5f53\u914d\u5957\u5e94\u7528 exec \u4e3b\u673a\u53ef\u8fbe\u65f6\uff0c\u65e0\u5934\u8282\u70b9\u4e3b\u673a\u4f18\u5148\u4f7f\u7528\u5b83\uff0c<br \/>\n  \u5982\u679c\u5e94\u7528\u4e0d\u53ef\u7528\u5219\u56de\u9000\u5230\u672c\u5730\u6267\u884c\u3002\u8bbe\u7f6e <code>OPENCLAW_NODE_EXEC_HOST=app<\/code> \u8981\u6c42<br \/>\n  \u4f7f\u7528\u5e94\u7528\uff0c\u6216\u8bbe\u7f6e <code>OPENCLAW_NODE_EXEC_FALLBACK=0<\/code> \u7981\u7528\u56de\u9000\u3002<\/li>\n<li>\u5f53 Gateway \u7f51\u5173 WS \u4f7f\u7528 TLS \u65f6\uff0c\u6dfb\u52a0 <code>--tls<\/code> \/ <code>--tls-fingerprint<\/code>\u3002<\/li>\n<\/ul>\n<h2>Mac \u8282\u70b9\u6a21\u5f0f<\/h2>\n<ul>\n<li>macOS \u83dc\u5355\u680f\u5e94\u7528\u4f5c\u4e3a\u8282\u70b9\u8fde\u63a5\u5230 Gateway \u7f51\u5173 WS \u670d\u52a1\u5668\uff08\u56e0\u6b64 <code>openclaw nodes \u2026<\/code> \u53ef\u4ee5\u9488\u5bf9\u8fd9\u53f0 Mac \u5de5\u4f5c\uff09\u3002<\/li>\n<li>\u5728\u8fdc\u7a0b\u6a21\u5f0f\u4e0b\uff0c\u5e94\u7528\u4e3a Gateway \u7f51\u5173\u7aef\u53e3\u6253\u5f00 SSH \u96a7\u9053\u5e76\u8fde\u63a5\u5230 <code>localhost<\/code>\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u8282\u70b9 \u8282\u70b9\u662f\u4e00\u4e2a\u914d\u5957\u8bbe\u5907\uff08macOS\/iOS\/Android\/\u65e0\u5934\uff09\uff0c\u5b83\u4ee5 role: &#8220;node&#8221; \u8fde\u63a5\u5230  [&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-758","post","type-post","status-publish","format-standard","hentry","category-docs"],"_links":{"self":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/758","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=758"}],"version-history":[{"count":0,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/758\/revisions"}],"wp:attachment":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/media?parent=758"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/categories?post=758"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/tags?post=758"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}