{"id":605,"date":"2026-03-21T22:52:56","date_gmt":"2026-03-21T14:52:56","guid":{"rendered":"https:\/\/pa.yingzhi8.cn\/index.php\/2026\/03\/21\/cli-daemon\/"},"modified":"2026-03-21T23:08:57","modified_gmt":"2026-03-21T15:08:57","slug":"cli-daemon","status":"publish","type":"post","link":"https:\/\/pa.yingzhi8.cn\/index.php\/2026\/03\/21\/cli-daemon\/","title":{"rendered":"daemon"},"content":{"rendered":"<h1>daemon<\/h1>\n<h1><code>openclaw daemon<\/code><\/h1>\n<p>Legacy alias for Gateway service management commands.<\/p>\n<p><code>openclaw daemon ...<\/code> maps to the same service control surface as <code>openclaw gateway ...<\/code> service commands.<\/p>\n<h2>Usage<\/h2>\n<p><code>bash  theme={\"theme\":{\"light\":\"min-light\",\"dark\":\"min-dark\"}}<br \/>\nopenclaw daemon status<br \/>\nopenclaw daemon install<br \/>\nopenclaw daemon start<br \/>\nopenclaw daemon stop<br \/>\nopenclaw daemon restart<br \/>\nopenclaw daemon uninstall<\/code><\/p>\n<h2>Subcommands<\/h2>\n<ul>\n<li><code>status<\/code>: show service install state and probe Gateway health<\/li>\n<li><code>install<\/code>: install service (<code>launchd<\/code>\/<code>systemd<\/code>\/<code>schtasks<\/code>)<\/li>\n<li><code>uninstall<\/code>: remove service<\/li>\n<li><code>start<\/code>: start service<\/li>\n<li><code>stop<\/code>: stop service<\/li>\n<li><code>restart<\/code>: restart service<\/li>\n<\/ul>\n<h2>Common options<\/h2>\n<ul>\n<li><code>status<\/code>: <code>--url<\/code>, <code>--token<\/code>, <code>--password<\/code>, <code>--timeout<\/code>, <code>--no-probe<\/code>, <code>--require-rpc<\/code>, <code>--deep<\/code>, <code>--json<\/code><\/li>\n<li><code>install<\/code>: <code>--port<\/code>, <code>--runtime &lt;node|bun&gt;<\/code>, <code>--token<\/code>, <code>--force<\/code>, <code>--json<\/code><\/li>\n<li>lifecycle (<code>uninstall|start|stop|restart<\/code>): <code>--json<\/code><\/li>\n<\/ul>\n<p>Notes:<\/p>\n<ul>\n<li><code>status<\/code> resolves configured auth SecretRefs for probe auth when possible.<\/li>\n<li>If a required auth SecretRef is unresolved in this command path, <code>daemon status --json<\/code> reports <code>rpc.authWarning<\/code> when probe connectivity\/auth fails; pass <code>--token<\/code>\/<code>--password<\/code> explicitly or resolve the secret source first.<\/li>\n<li>If the probe succeeds, unresolved auth-ref warnings are suppressed to avoid false positives.<\/li>\n<li>On Linux systemd installs, <code>status<\/code> token-drift checks include both <code>Environment=<\/code> and <code>EnvironmentFile=<\/code> unit sources.<\/li>\n<li>When token auth requires a token and <code>gateway.auth.token<\/code> is SecretRef-managed, <code>install<\/code> validates that the SecretRef is resolvable but does not persist the resolved token into service environment metadata.<\/li>\n<li>If token auth requires a token and the configured token SecretRef is unresolved, install fails closed.<\/li>\n<li>If both <code>gateway.auth.token<\/code> and <code>gateway.auth.password<\/code> are configured and <code>gateway.auth.mode<\/code> is unset, install is blocked until mode is set explicitly.<\/li>\n<\/ul>\n<h2>Prefer<\/h2>\n<p>Use <a href=\"\/cli\/gateway\"><code>openclaw gateway<\/code><\/a> for current docs and examples.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>daemon openclaw daemon Legacy alias for Gateway service [&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-605","post","type-post","status-publish","format-standard","hentry","category-docs"],"_links":{"self":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/605","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=605"}],"version-history":[{"count":2,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/605\/revisions"}],"predecessor-version":[{"id":736,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/605\/revisions\/736"}],"wp:attachment":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/media?parent=605"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/categories?post=605"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/tags?post=605"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}