docs/cli/daemon.md
openclaw daemonLegacy alias for Gateway service management commands.
openclaw daemon ... maps to the same service control surface as openclaw gateway ... service commands.
openclaw daemon status
openclaw daemon install
openclaw daemon start
openclaw daemon stop
openclaw daemon restart
openclaw daemon uninstall
status: show service install state and probe Gateway healthinstall: install service (launchd/systemd/schtasks)uninstall: remove servicestart: start servicestop: stop servicerestart: restart servicestatus: --url, --token, --password, --timeout, --no-probe, --require-rpc, --deep, --jsoninstall: --port, --runtime <node|bun>, --token, --force, --jsonrestart: --safe, --force, --wait <duration>, --jsonuninstall|start|stop): --jsonNotes:
status resolves configured auth SecretRefs for probe auth when possible.daemon status --json reports rpc.authWarning when probe connectivity/auth fails; pass --token/--password explicitly or resolve the secret source first.status --deep adds a best-effort system-level service scan. When it finds other gateway-like services, human output prints cleanup hints and warns that one gateway per machine is still the normal recommendation.status token-drift checks include both Environment= and EnvironmentFile= unit sources.gateway.auth.token SecretRefs using merged runtime env (service command env first, then process env fallback).gateway.auth.mode of password/none/trusted-proxy, or mode unset where password can win and no token candidate can win), token-drift checks skip config token resolution.gateway.auth.token is SecretRef-managed, install validates that the SecretRef is resolvable but does not persist the resolved token into service environment metadata.gateway.auth.token and gateway.auth.password are configured and gateway.auth.mode is unset, install is blocked until mode is set explicitly.install keeps LaunchAgent plists owner-only and loads managed service environment values through an owner-only file and wrapper instead of serializing API keys or auth-profile env refs into EnvironmentVariables.restart --safe asks the running Gateway to preflight active work and schedule one coalesced restart after active work drains. Plain restart keeps the existing service-manager behavior; --force remains the immediate override path.Use openclaw gateway for current docs and examples.