{"id":189,"date":"2026-03-21T22:47:21","date_gmt":"2026-03-21T14:47:21","guid":{"rendered":"https:\/\/pa.yingzhi8.cn\/index.php\/2026\/03\/21\/platforms-mac-bundled-gateway\/"},"modified":"2026-03-21T23:08:55","modified_gmt":"2026-03-21T15:08:55","slug":"platforms-mac-bundled-gateway","status":"publish","type":"post","link":"https:\/\/pa.yingzhi8.cn\/index.php\/2026\/03\/21\/platforms-mac-bundled-gateway\/","title":{"rendered":"macOS \u4e0a\u7684 Gateway \u7f51\u5173"},"content":{"rendered":"<h1>macOS \u4e0a\u7684 Gateway \u7f51\u5173<\/h1>\n<h1>macOS \u4e0a\u7684 Gateway \u7f51\u5173\uff08\u5916\u90e8 launchd\uff09<\/h1>\n<p>OpenClaw.app \u4e0d\u518d\u6346\u7ed1 Node\/Bun \u6216 Gateway \u7f51\u5173\u8fd0\u884c\u65f6\u3002macOS \u5e94\u7528\u671f\u671b\u6709\u4e00\u4e2a<strong>\u5916\u90e8<\/strong>\u7684 <code>openclaw<\/code> CLI \u5b89\u88c5\uff0c\u4e0d\u4f1a\u5c06 Gateway \u7f51\u5173\u4f5c\u4e3a\u5b50\u8fdb\u7a0b\u542f\u52a8\uff0c\u800c\u662f\u7ba1\u7406\u4e00\u4e2a\u6bcf\u7528\u6237\u7684 launchd \u670d\u52a1\u6765\u4fdd\u6301 Gateway \u7f51\u5173\u8fd0\u884c\uff08\u6216\u8005\u5982\u679c\u5df2\u6709\u672c\u5730 Gateway \u7f51\u5173\u6b63\u5728\u8fd0\u884c\uff0c\u5219\u8fde\u63a5\u5230\u73b0\u6709\u7684\uff09\u3002<\/p>\n<h2>\u5b89\u88c5 CLI\uff08\u672c\u5730\u6a21\u5f0f\u5fc5\u9700\uff09<\/h2>\n<p>\u4f60\u9700\u8981\u5728 Mac \u4e0a\u5b89\u88c5 Node 22+\uff0c\u7136\u540e\u5168\u5c40\u5b89\u88c5 <code>openclaw<\/code>\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 \/>\nnpm install -g openclaw@<\/p>\n<pre><code>\nmacOS \u5e94\u7528\u7684**\u5b89\u88c5 CLI**\u6309\u94ae\u901a\u8fc7 npm\/pnpm \u8fd0\u884c\u76f8\u540c\u7684\u6d41\u7a0b\uff08\u4e0d\u63a8\u8350\u4f7f\u7528 bun \u4f5c\u4e3a Gateway \u7f51\u5173\u8fd0\u884c\u65f6\uff09\u3002\n\n## Launchd\uff08Gateway \u7f51\u5173\u4f5c\u4e3a LaunchAgent\uff09\n\n\u6807\u7b7e\uff1a\n\n* `bot.molt.gateway`\uff08\u6216 `bot.molt.&lt;profile&gt;`\uff1b\u65e7\u7248 `com.openclaw.*` \u53ef\u80fd\u4ecd\u7136\u5b58\u5728\uff09\n\nPlist \u4f4d\u7f6e\uff08\u6bcf\u7528\u6237\uff09\uff1a\n\n* `~\/Library\/LaunchAgents\/bot.molt.gateway.plist`\n  \uff08\u6216 `~\/Library\/LaunchAgents\/bot.molt.&lt;profile&gt;.plist`\uff09\n\n\u7ba1\u7406\u8005\uff1a\n\n* macOS \u5e94\u7528\u5728\u672c\u5730\u6a21\u5f0f\u4e0b\u62e5\u6709 LaunchAgent \u7684\u5b89\u88c5\/\u66f4\u65b0\u6743\u9650\u3002\n* CLI \u4e5f\u53ef\u4ee5\u5b89\u88c5\u5b83\uff1a`openclaw gateway install`\u3002\n\n\u884c\u4e3a\uff1a\n\n* &quot;OpenClaw Active&quot;\u542f\u7528\/\u7981\u7528 LaunchAgent\u3002\n* \u5e94\u7528\u9000\u51fa**\u4e0d\u4f1a**\u505c\u6b62 Gateway \u7f51\u5173\uff08launchd \u4fdd\u6301\u5176\u5b58\u6d3b\uff09\u3002\n* \u5982\u679c Gateway \u7f51\u5173\u5df2\u7ecf\u5728\u914d\u7f6e\u7684\u7aef\u53e3\u4e0a\u8fd0\u884c\uff0c\u5e94\u7528\u4f1a\u8fde\u63a5\u5230\u5b83\u800c\u4e0d\u662f\u542f\u52a8\u65b0\u7684\u3002\n\n\u65e5\u5fd7\uff1a\n\n* launchd stdout\/err\uff1a`\/tmp\/openclaw\/openclaw-gateway.log`\n\n## \u7248\u672c\u517c\u5bb9\u6027\n\nmacOS \u5e94\u7528\u4f1a\u68c0\u67e5 Gateway \u7f51\u5173\u7248\u672c\u4e0e\u5176\u81ea\u8eab\u7248\u672c\u662f\u5426\u5339\u914d\u3002\u5982\u679c\u4e0d\u517c\u5bb9\uff0c\u8bf7\u66f4\u65b0\u5168\u5c40 CLI \u4ee5\u5339\u914d\u5e94\u7528\u7248\u672c\u3002\n\n## \u5192\u70df\u6d4b\u8bd5\n\n```bash  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\nopenclaw --version\n\nOPENCLAW_SKIP_CHANNELS=1 \nOPENCLAW_SKIP_CANVAS_HOST=1 \nopenclaw gateway --port 18999 --bind loopback\n<\/code><\/pre>\n<p>\u7136\u540e\uff1a<\/p>\n<p><code>bash  theme={\"theme\":{\"light\":\"min-light\",\"dark\":\"min-dark\"}}<br \/>\nopenclaw gateway call health --url ws:\/\/127.0.0.1:18999 --timeout 3000<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>macOS \u4e0a\u7684 Gateway \u7f51\u5173 macOS \u4e0a\u7684 Gateway \u7f51\u5173\uff08\u5916\u90e8 launchd\uff09 Ope [&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-189","post","type-post","status-publish","format-standard","hentry","category-docs"],"_links":{"self":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/189","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=189"}],"version-history":[{"count":1,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/189\/revisions"}],"predecessor-version":[{"id":484,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/189\/revisions\/484"}],"wp:attachment":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/media?parent=189"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/categories?post=189"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/tags?post=189"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}