Loading...
Loading...
Keep OpenClaw running — daemon management, updates, log rotation, cron jobs, session cleanup, memory reindex, and sandbox management. Use for 'keep it healthy' tasks.
npx skill4agent add anthemflynn/ccmp openclaw-maintainopenclaw-adminopenclaw-doctoropenclaw-extendopenclaw daemon status # service status + gateway probe
openclaw gateway status # gateway-level status
openclaw gateway probe # full reachability checkopenclaw daemon start # start the service
openclaw daemon stop # stop the service
openclaw daemon restart # restart the service
openclaw daemon install # install as system service
openclaw daemon uninstall # remove system serviceopenclaw daemon status # check if already running
openclaw gateway status # check port conflicts
openclaw gateway --force # kill existing listener, then startopenclaw logs --limit 50 # check recent logs for errors
openclaw doctor # run health checkreferences/daemon-reference.mdopenclaw update status # current vs latest, channel infoopenclaw update # update (git checkout or npm)
openclaw update --yes # non-interactive
openclaw update --no-restart # update without restarting serviceopenclaw update --channel stable # switch to stable
openclaw update --channel beta # switch to beta
openclaw update --channel dev # switch to dev
openclaw update --tag <version> # one-off versionopenclaw daemon status # service running?
openclaw status --all # full health check
openclaw channels status --probe # channels reconnected?openclaw logs # recent gateway logs
openclaw logs --follow # live tail
openclaw logs --limit 100 # last 100 lines
openclaw channels logs # channel-specific logsdu -sh ~/.openclaw/logs/ # check log size
ls -lah ~/.openclaw/logs/ # list log files# Rotate the error log
mv ~/.openclaw/logs/error.log ~/.openclaw/logs/error.log.$(date +%Y%m%d)
openclaw daemon restart # restart to create fresh logls -t ~/.openclaw/logs/error.log.* 2>/dev/null | tail -n +4 # keep 3 most recentopenclaw cron list # all jobs
openclaw cron status # scheduler status
openclaw cron runs # run historyopenclaw cron add # add a job (interactive)
openclaw cron edit <name> # edit a job
openclaw cron enable <name> # enable a job
openclaw cron disable <name> # disable a job
openclaw cron rm <name> # remove a job
openclaw cron run <name> # run immediately (debug)references/cron-reference.mdopenclaw sessions # all sessions
openclaw sessions --active 120 # active in last 2 hours
openclaw sessions --json # machine-readableopenclaw sessions # review what exists
openclaw sessions --active 120 # see what's recentopenclaw memory status --deep # full index statusopenclaw memory index # rebuild index
openclaw memory status --deep # verify after reindex~/.openclaw/workspace/memory/memory status --deepopenclaw sandbox list # all containers
openclaw sandbox list --browser # browser containers only
openclaw sandbox explain # effective sandbox policyopenclaw sandbox recreate --all # recreate all
openclaw sandbox recreate --session main # specific session
openclaw sandbox recreate --agent <name> # agent containersdu -sh ~/.openclaw/ # total
du -sh ~/.openclaw/logs/ # logs
du -sh ~/.openclaw/workspace/ # workspace
du -sh ~/.openclaw/state/ # state| Path | Safe to Clean | How |
|---|---|---|
| Yes (rotated logs) | |
| Yes (config backups) | Keep latest, remove rest |
| Mostly (old state files) | Review before removing |
openclaw doctor # health check
openclaw status --all # overview
openclaw update status # check for updatesopenclaw memory status --deep # index health
openclaw memory index # reindex if dirty
du -sh ~/.openclaw/logs/ # log size check
openclaw update # apply updatesopenclaw sessions --active 120 # session cleanup
openclaw daemon restart # if issues arise
openclaw sandbox recreate --all # if containers stalereferences/maintenance-playbooks.mdreferences/daemon-reference.mdreferences/cron-reference.mdreferences/maintenance-playbooks.mdopenclaw-doctoropenclaw-adminopenclaw-extend