The Windows way

A program asks Windows not to sleep with SetThreadExecutionState(ES_CONTINUOUS | ES_SYSTEM_REQUIRED), and releases it with ES_CONTINUOUS alone. Leaving out ES_DISPLAY_REQUIRED lets the screen turn off. You can see who is holding the computer awake:

PowerShell, as administrator
powercfg /requests

With Ourkite Bot

  • Windows is kept awake while an agent is working, a scheduled check is running or a job is due within two minutes.
  • The request is a lease, released 60 seconds after the last reason, so it does not flap between two turns of an agent.
  • A chip in the header says Keeping awake, Keep awake: on, or Sleep allowed, and its tooltip says why. Click it to switch the setting.

Try the preview

The preview is shared by email while the signed installer is prepared. Tell us how many agents you run and what you would want first.

  • Windows 10 or 11, 64-bit
  • Claude Code, signed in
  • git
Join early access

Windows 10 and 11 · Claude Code · early preview