How to keep a Mac awake when the lid is closed

LidRun Team
6 min readJun 2026

By default macOS sleeps the moment you shut the lid, which suspends whatever was running. There are safe ways to keep a Mac awake with the lid closed, and a few habits that help reduce risk while it runs.

Why closing the lid stops everything

Clamshell sleep is a macOS power-saving default. Shut the lid and the system suspends to save battery, pausing any process that was active.

For a quick coffee run that is fine. For a long build, a model download, or an agent mid-task, it means lost progress.

The safe way to keep it running

LidRun holds a power assertion so the Mac stays awake through a lid close, then watches battery and thermal state the whole time.

If charge drops past your threshold or heat climbs too high, LidRun lets the Mac sleep instead of pushing the hardware. The goal is to reduce risk, not to ignore it.

Set a session timer of one, three, or eight hours so a run can never stay awake forever by accident.

Habits that help

Keep the Mac on a hard, flat surface with airflow, not buried in a bag, while it runs lid-closed.

Stay plugged in for long jobs, and leave the battery auto-sleep threshold on so a low charge ends the session cleanly.

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 keeping the lid closed damage my Mac?

LidRun uses battery and thermal thresholds to help reduce risk, but you are still responsible for safe placement and airflow. Run it on a flat, ventilated surface.

Does this work on Apple Silicon and Intel?

Yes. LidRun supports macOS 13 Ventura and later on both Apple Silicon and Intel Macs.

What happens when the battery gets low?

When charge drops past the threshold you set, LidRun lets the Mac sleep rather than draining it to zero.

Keep reading

How to Keep a Mac Awake When the Lid Is Closed