Keep a Cursor agent running on your Mac

LidRun Team
5 min readJun 2026

A Cursor agent working through a long task gets suspended the moment your Mac sleeps. Here is how to keep a Cursor agent running on your Mac, even with the lid closed, while safety thresholds stay in control.

What interrupts a Cursor run

Cursor's agent runs locally, so it pauses when the Mac sleeps from idle or a closed lid.

Long refactors and multi-step tasks are exactly the runs you do not want to babysit, which is when a sleep interruption hurts most.

The LidRun workflow for Cursor

LidRun detects Cursor and holds the Mac awake while the agent works, so you can step away or close the lid.

Every keep-awake decision is gated by battery and thermal state. When a threshold trips, LidRun lets the Mac sleep rather than overworking it.

Recommended settings

Stay plugged in for long agent runs and leave battery auto-sleep on as a safety net.

Use a session timer so the run has a clear upper bound even if the agent stalls.

Try it instead of fighting clamshell sleep

LidRun keeps your work running with the lid closed, with battery and thermal safety built in.

Download for macOS

Frequently asked

Will LidRun see the Cursor agent?

Yes. LidRun detects Cursor among many dev and AI tools and keeps the Mac awake while it runs.

Can I close the lid during a Cursor run?

Yes, with keep-running mode on. Battery and thermal thresholds decide when the session should end.

What if my Mac gets warm?

LidRun reads thermal state continuously and surfaces it in the menu bar, and cooling profiles respond where the hardware allows.

Keep reading

Keep a Cursor Agent Running on Your Mac