AI agents
Keep your laptop awake during a long AI agent run.
Claude Code, Cursor, GitHub Copilot's agent mode, a local Ollama model chewing through a big job — the thing that actually interrupts any of them is the same, and it's not what most people assume.
Pick a duration and hit start.
Duration
- Stealth screen
- — covers the page with black (or your own wallpaper) so it looks like nothing is open.
- Fullscreen
- — the same cover, edge to edge. Press Esc to leave.
- Float window
- — a tiny always-on-top timer you can park in a corner while you work in other windows (Chrome, Edge, Brave, Opera only).
Ambient sound
Starts only when you press Play. It fades out on its own, when you stop the tool, and when you enter stealth screen (unless you tick the box above).
Local agent vs. cloud agent — it matters which one you're running
Tools that run locally — Claude Code, Cursor, GitHub Copilot's agent mode, a local Ollama or LM Studio model — execute directly on your machine's CPU/GPU. The only thing that pauses them is your system actually sleeping (suspending). A locked or dimmed screen doesn't touch them; they keep running in the background exactly the same either way.
Tools that run in the cloud — ChatGPT in a browser tab, Claude.ai, most API-based assistants — do the actual computation on the provider's servers. Your laptop sleeping doesn't pause that computation at all; it just disconnects your view of it. See ourChatGPT-specific pagefor that distinction in more detail.
What actually stops a local agent, and the fix for each layer
There are two separate things that can get in the way of a long local run, and they need two separate fixes:
- Screen locking/dimming — annoying (you have to keep unlocking to check on it), but doesn't actually pause the agent. This tool fixes it: no install, works even on a locked-down work laptop.
- Full system sleep — this genuinely pauses everything, agent included, until the machine wakes back up. No browser-based tool can prevent this — the Wake Lock API's spec explicitly dropped the "system" lock type that would have allowed it. Fix this in your OS's own power settings instead: on Windows, Settings → System → Power & sleep → Sleep → Never (while plugged in); on Mac, System Settings → Battery → Options → "Prevent automatic sleeping on power adapter," or run
caffeinate -sin a spare terminal tab for the duration of the run.
If you'd rather not use a terminal command, the freeKeep Screen Unlocked Chrome extensionhas a "Computer awake" mode that asks the system not to sleep, which a web page can't do. A closed laptop lid still puts most machines to sleep either way.
For a genuinely unattended long run — walk away, come back in a few hours — both matter: the OS sleep setting is what actually guarantees the agent keeps working, and this tool is what means you come back to a usable screen instead of a locked one.
Pick your tool
Each page answers the same question for one tool: what happens to a run when the screen locks, and when the whole machine sleeps.
- Claude CodeRuns locally; only real system sleep pauses it.
- CursorLocal editor and agent; a Mac
caffeinateguide is linked too. - GitHub CopilotAgent mode in your editor versus work done on GitHub's servers.
- ChatGPTComputation happens in the cloud; sleeping disconnects your view.
- GeminiWhat a sleeping laptop does to it, and what is documented.
- PerplexityClosing the tab or laptop mid-answer.
- ClaudeChat app in the cloud; Claude Code CLI runs locally.
- CodexCloud tasks keep going; the CLI and local IDE mode pause.
- GrokCloud chat; closing the lid ends your live view.
- DeepSeekHosted chat versus a model you run locally.
- WindsurfLocal editor agent; system sleep pauses it.
- ClineVS Code extension with a model over the network.
- All tools comparedOne table: which keep running and which pause.
Running a long agent job on a Mac? Keep a Mac awake while Cursor or Claude Code runs.