Fixes the Windows scheduled task bug that kills OpenClaw processes during idle. One script, permanent fix.
When OpenClaw runs as a Windows Scheduled Task, the default settings include an idle condition that kills the process after a period of inactivity. This means your agent goes offline randomly.
This script creates a corrected scheduled task that:
Right-click FIX_TASK.bat → Run as Administrator
@echo off
echo Fixing OpenClaw Scheduled Task...
echo.
REM Delete the old task
schtasks /delete /tn "OpenClaw Gateway" /f 2>nul
REM Create corrected task (runs at logon, no idle kill)
schtasks /create /tn "OpenClaw Gateway" /tr "cmd /c cd /d \"%USERPROFILE%\.openclaw\" && gateway.cmd" /sc ONLOGON /rl HIGHEST /f
echo.
echo Done! The task will now survive idle periods.
echo Restart your computer or run the task manually to apply.
pause
After running the fix:
This software is provided "AS IS", without warranty of any kind, express or implied.
USE AT YOUR OWN RISK.
By downloading, installing, or using this software, you acknowledge that you have read this disclaimer and agree to use the software entirely at your own risk.
DATA DISCLAIMER: This software processes and stores data locally on your system. The author(s) are not responsible for data loss, corruption, or unauthorized access resulting from software bugs, system failures, or user error. Always maintain independent backups of important data. This software does not transmit data externally unless explicitly configured by the user.
| 🐛 Bug Reports | TheShadowyRose@proton.me |
| ☕ Ko-fi | ko-fi.com/theshadowrose |
| 🛒 Gumroad | shadowyrose.gumroad.com |
| @TheShadowyRose | |
| 🐙 GitHub | github.com/TheShadowRose |
| 🧠 PromptBase | promptbase.com/profile/shadowrose |
Built with OpenClaw — thank you for making this possible.
🛠️ Need something custom? Custom OpenClaw agents & skills starting at $500. If you can describe it, I can build it. → Hire me on Fiverr
The FIX_TASK.bat script is included in the README instructions. Create a file named FIX_TASK.bat in your workspace and paste the script content from README.md. ClawHub does not distribute .bat files directly.
ZIP package — ready to use