{"id":199,"date":"2026-03-21T22:47:22","date_gmt":"2026-03-21T14:47:22","guid":{"rendered":"https:\/\/pa.yingzhi8.cn\/index.php\/2026\/03\/21\/platforms-mac-remote\/"},"modified":"2026-03-21T23:08:56","modified_gmt":"2026-03-21T15:08:56","slug":"platforms-mac-remote","status":"publish","type":"post","link":"https:\/\/pa.yingzhi8.cn\/index.php\/2026\/03\/21\/platforms-mac-remote\/","title":{"rendered":"\u8fdc\u7a0b\u63a7\u5236"},"content":{"rendered":"<h1>\u8fdc\u7a0b\u63a7\u5236<\/h1>\n<h1>\u8fdc\u7a0b OpenClaw\uff08macOS \u21c4 \u8fdc\u7a0b\u4e3b\u673a\uff09<\/h1>\n<p>\u6b64\u6d41\u7a0b\u8ba9 macOS \u5e94\u7528\u4f5c\u4e3a\u8fd0\u884c\u5728\u53e6\u4e00\u53f0\u4e3b\u673a\uff08\u684c\u9762\/\u670d\u52a1\u5668\uff09\u4e0a\u7684 OpenClaw Gateway \u7f51\u5173\u7684\u5b8c\u6574\u8fdc\u7a0b\u63a7\u5236\u3002\u8fd9\u662f\u5e94\u7528\u7684 <strong>Remote over SSH<\/strong>\uff08\u8fdc\u7a0b\u8fd0\u884c\uff09\u529f\u80fd\u3002\u6240\u6709\u529f\u80fd\u2014\u2014\u5065\u5eb7\u68c0\u67e5\u3001\u8bed\u97f3\u5524\u9192\u8f6c\u53d1\u548c Web Chat\u2014\u2014\u90fd\u91cd\u7528\u6765\u81ea <em>Settings \u2192 General<\/em> \u7684\u76f8\u540c\u8fdc\u7a0b SSH \u914d\u7f6e\u3002<\/p>\n<h2>\u6a21\u5f0f<\/h2>\n<ul>\n<li><strong>Local (this Mac)<\/strong>\uff1a\u4e00\u5207\u90fd\u5728\u7b14\u8bb0\u672c\u7535\u8111\u4e0a\u8fd0\u884c\u3002\u4e0d\u6d89\u53ca SSH\u3002<\/li>\n<li><strong>Remote over SSH\uff08\u9ed8\u8ba4\uff09<\/strong>\uff1aOpenClaw \u547d\u4ee4\u5728\u8fdc\u7a0b\u4e3b\u673a\u4e0a\u6267\u884c\u3002mac \u5e94\u7528\u4f7f\u7528 <code>-o BatchMode<\/code> \u52a0\u4e0a\u4f60\u9009\u62e9\u7684\u8eab\u4efd\/\u5bc6\u94a5\u6253\u5f00 SSH \u8fde\u63a5\uff0c\u5e76\u8fdb\u884c\u672c\u5730\u7aef\u53e3\u8f6c\u53d1\u3002<\/li>\n<li><strong>Remote direct (ws\/wss)<\/strong>\uff1a\u65e0 SSH \u96a7\u9053\u3002mac \u5e94\u7528\u76f4\u63a5\u8fde\u63a5\u5230 Gateway \u7f51\u5173 URL\uff08\u4f8b\u5982\uff0c\u901a\u8fc7 Tailscale Serve \u6216\u516c\u5171 HTTPS \u53cd\u5411\u4ee3\u7406\uff09\u3002<\/li>\n<\/ul>\n<h2>\u8fdc\u7a0b\u4f20\u8f93<\/h2>\n<p>\u8fdc\u7a0b\u6a21\u5f0f\u652f\u6301\u4e24\u79cd\u4f20\u8f93\u65b9\u5f0f\uff1a<\/p>\n<ul>\n<li><strong>SSH \u96a7\u9053<\/strong>\uff08\u9ed8\u8ba4\uff09\uff1a\u4f7f\u7528 <code>ssh -N -L ...<\/code> \u5c06 Gateway \u7f51\u5173\u7aef\u53e3\u8f6c\u53d1\u5230 localhost\u3002Gateway \u7f51\u5173\u4f1a\u5c06\u8282\u70b9\u7684 IP \u89c6\u4e3a <code>127.0.0.1<\/code>\uff0c\u56e0\u4e3a\u96a7\u9053\u662f loopback\u3002<\/li>\n<li><strong>Direct (ws\/wss)<\/strong>\uff1a\u76f4\u63a5\u8fde\u63a5\u5230 Gateway \u7f51\u5173 URL\u3002Gateway \u7f51\u5173\u770b\u5230\u771f\u5b9e\u7684\u5ba2\u6237\u7aef IP\u3002<\/li>\n<\/ul>\n<h2>\u8fdc\u7a0b\u4e3b\u673a\u4e0a\u7684\u5148\u51b3\u6761\u4ef6<\/h2>\n<ol>\n<li>\u5b89\u88c5 Node + pnpm \u5e76\u6784\u5efa\/\u5b89\u88c5 OpenClaw CLI\uff08<code>pnpm install &amp;&amp; pnpm build &amp;&amp; pnpm link --global<\/code>\uff09\u3002<\/li>\n<li>\u786e\u4fdd <code>openclaw<\/code> \u5728\u975e\u4ea4\u4e92\u5f0f shell \u7684 PATH \u4e2d\uff08\u5982\u9700\u8981\uff0c\u8bf7\u7b26\u53f7\u94fe\u63a5\u5230 <code>\/usr\/local\/bin<\/code> \u6216 <code>\/opt\/homebrew\/bin<\/code>\uff09\u3002<\/li>\n<li>\u4f7f\u7528\u5bc6\u94a5\u8ba4\u8bc1\u6253\u5f00 SSH\u3002\u6211\u4eec\u63a8\u8350\u4f7f\u7528 <strong>Tailscale<\/strong> IP \u4ee5\u5b9e\u73b0\u79bb\u5f00\u5c40\u57df\u7f51\u65f6\u7684\u7a33\u5b9a\u53ef\u8fbe\u6027\u3002<\/li>\n<\/ol>\n<h2>macOS \u5e94\u7528\u8bbe\u7f6e<\/h2>\n<ol>\n<li>\u6253\u5f00 <em>Settings \u2192 General<\/em>\u3002<\/li>\n<li>\u5728 <strong>OpenClaw runs<\/strong> \u4e0b\uff0c\u9009\u62e9 <strong>Remote over SSH<\/strong> \u5e76\u8bbe\u7f6e\uff1a<br \/>\n   * <strong>Transport<\/strong>\uff1a<strong>SSH tunnel<\/strong> \u6216 <strong>Direct (ws\/wss)<\/strong>\u3002<br \/>\n   * <strong>SSH target<\/strong>\uff1a<code>user@host<\/code>\uff08\u53ef\u9009 <code>:port<\/code>\uff09\u3002<\/p>\n<ul>\n<li>\u5982\u679c Gateway \u7f51\u5173\u5728\u540c\u4e00\u5c40\u57df\u7f51\u4e0a\u5e76\u5e7f\u64ad Bonjour\uff0c\u4ece\u53d1\u73b0\u5217\u8868\u4e2d\u9009\u62e9\u5b83\u4ee5\u81ea\u52a8\u586b\u5145\u6b64\u5b57\u6bb5\u3002<\/li>\n<li><strong>Gateway URL<\/strong>\uff08\u4ec5 Direct\uff09\uff1a<code>wss:\/\/gateway.example.ts.net<\/code>\uff08\u6216\u672c\u5730\/\u5c40\u57df\u7f51\u4f7f\u7528 <code>ws:\/\/...<\/code>\uff09\u3002<\/li>\n<li><strong>Identity file<\/strong>\uff08\u9ad8\u7ea7\uff09\uff1a\u4f60\u7684\u5bc6\u94a5\u8def\u5f84\u3002<\/li>\n<li><strong>Project root<\/strong>\uff08\u9ad8\u7ea7\uff09\uff1a\u7528\u4e8e\u547d\u4ee4\u7684\u8fdc\u7a0b checkout \u8def\u5f84\u3002<\/li>\n<li><strong>CLI path<\/strong>\uff08\u9ad8\u7ea7\uff09\uff1a\u53ef\u8fd0\u884c\u7684 <code>openclaw<\/code> \u5165\u53e3\u70b9\/\u4e8c\u8fdb\u5236\u6587\u4ef6\u7684\u53ef\u9009\u8def\u5f84\uff08\u5e7f\u64ad\u65f6\u81ea\u52a8\u586b\u5145\uff09\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u70b9\u51fb <strong>Test remote<\/strong>\u3002\u6210\u529f\u8868\u793a\u8fdc\u7a0b <code>openclaw status --json<\/code> \u6b63\u786e\u8fd0\u884c\u3002\u5931\u8d25\u901a\u5e38\u610f\u5473\u7740 PATH\/CLI \u95ee\u9898\uff1b\u9000\u51fa\u7801 127 \u8868\u793a\u8fdc\u7a0b\u627e\u4e0d\u5230 CLI\u3002<\/li>\n<li>\u5065\u5eb7\u68c0\u67e5\u548c Web Chat \u73b0\u5728\u5c06\u81ea\u52a8\u901a\u8fc7\u6b64 SSH \u96a7\u9053\u8fd0\u884c\u3002<\/li>\n<\/ol>\n<h2>Web Chat<\/h2>\n<ul>\n<li><strong>SSH \u96a7\u9053<\/strong>\uff1aWeb Chat \u901a\u8fc7\u8f6c\u53d1\u7684 WebSocket \u63a7\u5236\u7aef\u53e3\uff08\u9ed8\u8ba4 18789\uff09\u8fde\u63a5\u5230 Gateway \u7f51\u5173\u3002<\/li>\n<li><strong>Direct (ws\/wss)<\/strong>\uff1aWeb Chat \u76f4\u63a5\u8fde\u63a5\u5230\u914d\u7f6e\u7684 Gateway \u7f51\u5173 URL\u3002<\/li>\n<li>\u4e0d\u518d\u6709\u5355\u72ec\u7684 WebChat HTTP \u670d\u52a1\u5668\u3002<\/li>\n<\/ul>\n<h2>\u6743\u9650<\/h2>\n<ul>\n<li>\u8fdc\u7a0b\u4e3b\u673a\u9700\u8981\u4e0e\u672c\u5730\u76f8\u540c\u7684 TCC \u6279\u51c6\uff08\u81ea\u52a8\u5316\u3001\u8f85\u52a9\u529f\u80fd\u3001\u5c4f\u5e55\u5f55\u5236\u3001\u9ea6\u514b\u98ce\u3001\u8bed\u97f3\u8bc6\u522b\u3001\u901a\u77e5\uff09\u3002\u5728\u8be5\u673a\u5668\u4e0a\u8fd0\u884c\u65b0\u624b\u5f15\u5bfc\u4ee5\u4e00\u6b21\u6027\u6388\u4e88\u5b83\u4eec\u3002<\/li>\n<li>\u8282\u70b9\u901a\u8fc7 <code>node.list<\/code> \/ <code>node.describe<\/code> \u5e7f\u64ad\u5176\u6743\u9650\u72b6\u6001\uff0c\u4ee5\u4fbf\u667a\u80fd\u4f53\u77e5\u9053\u54ea\u4e9b\u53ef\u7528\u3002<\/li>\n<\/ul>\n<h2>\u5b89\u5168\u6ce8\u610f\u4e8b\u9879<\/h2>\n<ul>\n<li>\u4f18\u5148\u5728\u8fdc\u7a0b\u4e3b\u673a\u4e0a\u4f7f\u7528 loopback \u7ed1\u5b9a\uff0c\u5e76\u901a\u8fc7 SSH \u6216 Tailscale \u8fde\u63a5\u3002<\/li>\n<li>\u5982\u679c\u4f60\u5c06 Gateway \u7f51\u5173\u7ed1\u5b9a\u5230\u975e loopback \u63a5\u53e3\uff0c\u8bf7\u8981\u6c42\u4ee4\u724c\/\u5bc6\u7801\u8ba4\u8bc1\u3002<\/li>\n<li>\u53c2\u89c1<a href=\"\/gateway\/security\">\u5b89\u5168<\/a>\u548c <a href=\"\/gateway\/tailscale\">Tailscale<\/a>\u3002<\/li>\n<\/ul>\n<h2>WhatsApp \u767b\u5f55\u6d41\u7a0b\uff08\u8fdc\u7a0b\uff09<\/h2>\n<ul>\n<li><strong>\u5728\u8fdc\u7a0b\u4e3b\u673a\u4e0a<\/strong>\u8fd0\u884c <code>openclaw channels login --verbose<\/code>\u3002\u7528\u624b\u673a\u4e0a\u7684 WhatsApp \u626b\u63cf\u4e8c\u7ef4\u7801\u3002<\/li>\n<li>\u5982\u679c\u8ba4\u8bc1\u8fc7\u671f\uff0c\u5728\u8be5\u4e3b\u673a\u4e0a\u91cd\u65b0\u8fd0\u884c\u767b\u5f55\u3002\u5065\u5eb7\u68c0\u67e5\u4f1a\u663e\u793a\u5173\u8054\u95ee\u9898\u3002<\/li>\n<\/ul>\n<h2>\u6545\u969c\u6392\u9664<\/h2>\n<ul>\n<li><strong>exit 127 \/ not found<\/strong>\uff1a<code>openclaw<\/code> \u4e0d\u5728\u975e\u767b\u5f55 shell \u7684 PATH \u4e2d\u3002\u5c06\u5176\u6dfb\u52a0\u5230 <code>\/etc\/paths<\/code>\u3001\u4f60\u7684 shell rc\uff0c\u6216\u7b26\u53f7\u94fe\u63a5\u5230 <code>\/usr\/local\/bin<\/code>\/<code>\/opt\/homebrew\/bin<\/code>\u3002<\/li>\n<li><strong>Health probe failed<\/strong>\uff1a\u68c0\u67e5 SSH \u53ef\u8fbe\u6027\u3001PATH\uff0c\u4ee5\u53ca Baileys \u662f\u5426\u5df2\u767b\u5f55\uff08<code>openclaw status --json<\/code>\uff09\u3002<\/li>\n<li><strong>Web Chat \u5361\u4f4f<\/strong>\uff1a\u786e\u8ba4 Gateway \u7f51\u5173\u6b63\u5728\u8fdc\u7a0b\u4e3b\u673a\u4e0a\u8fd0\u884c\uff0c\u8f6c\u53d1\u7684\u7aef\u53e3\u4e0e Gateway \u7f51\u5173 WS \u7aef\u53e3\u5339\u914d\uff1bUI \u9700\u8981\u5065\u5eb7\u7684 WS \u8fde\u63a5\u3002<\/li>\n<li><strong>\u8282\u70b9 IP \u663e\u793a 127.0.0.1<\/strong>\uff1a\u4f7f\u7528 SSH \u96a7\u9053\u65f6\u662f\u9884\u671f\u7684\u3002\u5982\u679c\u4f60\u60f3\u8ba9 Gateway \u7f51\u5173\u770b\u5230\u771f\u5b9e\u7684\u5ba2\u6237\u7aef IP\uff0c\u8bf7\u5c06 <strong>Transport<\/strong> \u5207\u6362\u5230 <strong>Direct (ws\/wss)<\/strong>\u3002<\/li>\n<li><strong>Voice Wake<\/strong>\uff1a\u89e6\u53d1\u77ed\u8bed\u5728\u8fdc\u7a0b\u6a21\u5f0f\u4e0b\u81ea\u52a8\u8f6c\u53d1\uff1b\u4e0d\u9700\u8981\u5355\u72ec\u7684\u8f6c\u53d1\u5668\u3002<\/li>\n<\/ul>\n<h2>\u901a\u77e5\u58f0\u97f3<\/h2>\n<p>\u901a\u8fc7\u5e26\u6709 <code>openclaw<\/code> \u548c <code>node.invoke<\/code> \u7684\u811a\u672c\u4e3a\u6bcf\u4e2a\u901a\u77e5\u9009\u62e9\u58f0\u97f3\uff0c\u4f8b\u5982\uff1a<\/p>\n<p><code>bash  theme={\"theme\":{\"light\":\"min-light\",\"dark\":\"min-dark\"}}<br \/>\nopenclaw nodes notify --node &lt;id&gt; --title \"Ping\" --body \"Remote gateway ready\" --sound Glass<\/code><\/p>\n<p>\u5e94\u7528\u4e2d\u4e0d\u518d\u6709\u5168\u5c40&#8221;\u9ed8\u8ba4\u58f0\u97f3&#8221;\u5f00\u5173\uff1b\u8c03\u7528\u8005\u4e3a\u6bcf\u4e2a\u8bf7\u6c42\u9009\u62e9\u58f0\u97f3\uff08\u6216\u65e0\u58f0\u97f3\uff09\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8fdc\u7a0b\u63a7\u5236 \u8fdc\u7a0b OpenClaw\uff08macOS \u21c4 \u8fdc\u7a0b\u4e3b\u673a\uff09 \u6b64\u6d41\u7a0b\u8ba9 macOS \u5e94\u7528\u4f5c\u4e3a\u8fd0\u884c\u5728\u53e6\u4e00\u53f0\u4e3b\u673a\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-199","post","type-post","status-publish","format-standard","hentry","category-docs"],"_links":{"self":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/199","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=199"}],"version-history":[{"count":1,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/199\/revisions"}],"predecessor-version":[{"id":494,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/199\/revisions\/494"}],"wp:attachment":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/media?parent=199"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/categories?post=199"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/tags?post=199"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}