How to run OpenClaw 24/7
Short answer: put it on a machine that never sleeps, run it under a process manager that restarts it when it crashes, and check from somewhere else that it's still alive. Most OpenClaw setups call a cloud model API, so the machine can be modest. Uptime matters far more than horsepower.
1. Pick the host
- Hardware you already own (an old laptop or desktop): costs only power. Dante's OpenClaw agent has run on an i5-120U laptop for about a year.
- A cloud VPS: nothing to buy, a data-center network, and no home power cuts. See the VPS rows on the leaderboard for current confirmed prices.
- A mini PC or Mac mini: quiet, low-power, and good if you want local models or want data to stay home. See VPS vs Mac mini vs home PC.
2. Stop it from sleeping
- Windows: Settings → System → Power: set sleep to Never when plugged in, and set the lid-close action to "Do nothing" if it's a laptop.
- macOS: enable "Prevent automatic sleeping when the display is off", or run
caffeinate -sunder your agent. - Linux: servers don't sleep by default. On a desktop distro, mask the sleep targets (
systemctl mask sleep.target suspend.target).
3. Auto-restart on crash and reboot
Run the agent under a supervisor rather than a terminal you might close: systemd (Restart=always) on Linux, launchd on macOS, or Task Scheduler ("At startup", restart on failure) or a service wrapper such as NSSM on Windows. Node-based setups often use pm2. Also turn on automatic boot after a power loss in the BIOS, or "Start up automatically after a power failure" on a Mac.
4. Monitor it from outside
Have the agent ping a heartbeat URL (an uptime monitor with a free tier works) every few minutes, and get alerted when the pings stop. Log to a file that rotates so a year of logs can't fill the disk.
5. Budget the real cost
Your biggest monthly cost is usually API spend, not hardware. Set provider spend limits. The machine itself is cheap: see the monthly cost leaderboard.
FAQ
Can OpenClaw run 24/7 on a laptop?
Yes, if the laptop never sleeps and stays plugged in. Dante's OpenClaw agent has run on an i5 laptop with 16GB RAM for about a year.
What is the cheapest way to run OpenClaw 24/7?
Hardware you already own costs only electricity. If you have nothing spare, a small cloud VPS (DigitalOcean lists 2GB at $12/mo) avoids buying anything.
Do I need a GPU for OpenClaw?
Not if it calls a cloud model API, which is the common setup. You need a GPU only to run local models fast.
Steps are general practice for long-running processes. Check OpenClaw's own docs for its exact start command and config.