Your agent's scheduled jobs stop when your computer sleeps. Here's the fix
Scheduled agent jobs depend on a PC staying awake. Short answer: 5 steps. 1) Confirm where the agent actually runs; 2) Quick fix: stop the machine from sleeping; 3) Proper fix: move it to an always-on server; 4) Add a heartbeat; 5) Keep secrets out of the chat.
Last updated: · This page is the decision checklist; the tools list for “Run an AI agent 24/7” is a separate URL.
How do I fix this: Your agent's scheduled jobs stop when your computer sleeps?
Confirm where the agent actually runs
If the agent process runs on your laptop or desktop, it pauses when the machine sleeps, reboots or loses Wi-Fi. Cloud-hosted agents keep running.
Quick fix: stop the machine from sleeping
On a desktop you leave on, disable sleep while plugged in (macOS: System Settings > Energy/Battery; Windows: Settings > Power). Fine for testing, fragile for anything important.
Proper fix: move it to an always-on server
Put a self-hosted agent on a small VPS, or move the scheduled parts to a job runner (Trigger.dev, Modal cron, n8n schedules) that calls your model.
Add a heartbeat
Have the agent send you a short message after each scheduled run. If the message doesn't arrive, you know it stopped instead of finding out days later.
Keep secrets out of the chat
When you move to a server, store API keys as environment variables or in the platform's secret manager, never in prompts or code.
Which tools are best to run an AI agent 24/7?
Hermes Agent
Nous Research's self-hosted agent; you run it on your own machine or server.
OpenClaw
Self-hosted personal agent; needs a machine that stays on.
Hetzner Cloud
Low-cost VPS to host a self-hosted agent that never sleeps.
Trigger.dev
Run scheduled and long-running background jobs (good for agent loops) without managing servers.
Open: 1 spot per week
One labeled sponsor for this topic each week; this week's spot is open. See open weeks →
All tools for “Run an AI agent 24/7” →
Related fixes
- Stop a Cursor agent loopHow to fix a Cursor agent loop (same edit, or work after Stop)Fix →
- Claude Code vs Codex vs Cursor ~$20 plansClaude Code vs Codex vs Cursor $20 plan limits: how to pick without burning the weekFix →
- Scan a vibe-coded app for leaked API keysCheck a vibe-coded app for leaked API keys before you share itFix →
- Add an MCP server to Claude Code, Cursor, or CodexHow to add an MCP server to Claude Code, Cursor, or CodexFix →
See also AI tools launched today on the daily board.
NewAIToolsToday Daily
Top 3 AI launches, one model or news item that matters, and one simple fix. A 5-minute read, every weekday.