A lid-closed developer workflow for the MacBook

LidRun Team
6 min readJun 2026

Plenty of developers just want to close the lid, move to another room, and let a long run finish on its own. This is the holistic version: an end-to-end lid-closed developer workflow for the MacBook that keeps work alive while safety thresholds quietly help reduce risk.

Why the lid is in your way

By default macOS sleeps the moment you shut the lid, which suspends whatever was running. For a long build, an agent run, or a local model, that means progress simply stops until you open it again.

So you end up tethered to the desk, lid propped open, waiting on a job that does not need you, just so the Mac stays awake.

What you actually want is to treat the MacBook like a small server for a few hours: close it, walk away, and find the work still going, or cleanly stopped, when you come back.

How the calm version works

The idea is one habit, not a checklist you run every time. Start your task, flip keep-running mode on, close the lid, and go.

LidRun detects the watched tool, whether it is a build, Claude Code, Cursor, Docker, or Ollama, and holds the Mac awake while it works, showing the active session in the menu bar so you always know it is on.

Underneath, every keep-awake decision is gated by battery and thermal state. The point is that you stop thinking about it: the Mac keeps your work alive while conditions are fine, and steps down on its own when they are not.

Who this is for

This workflow pays off if you regularly kick off long jobs and want to move around: between desk and couch, home and a cafe, evening and morning.

If you mostly do short, interactive work at one desk, you do not need a lid-closed routine at all, the Mac stays awake while you use it.

But if the lid is the only reason you are still sitting there, it is worth trying LidRun once and letting the close-the-lid-and-walk-away pattern become the default.

Setup and habits that make it stick

Set it up once: pick a battery warning level and an auto-sleep level, choose a session timer length, and leave thermal watch on. After that, the only step you repeat is closing the lid.

If charge drops past your critical level, LidRun lets the Mac sleep instead of draining it to zero. If thermal pressure climbs, you see it in the menu bar and cooling profiles respond within what the hardware allows.

Keep two habits: a hard, flat, ventilated surface, and mains power for long jobs. Those do more for a safe lid-closed run than any setting, and they let the software guardrails be a backstop rather than the only line.

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

Can I really work from a closed MacBook for hours?

Yes, with keep-running mode on, as long as battery and thermal state stay within the thresholds you set. When a limit is reached, LidRun lets the Mac sleep.

Which tools does this work with?

LidRun detects many dev and AI tools, including Claude Code, Cursor, Docker, and Ollama, plus common terminal jobs.

Do I have to set it up every time?

No. You configure thresholds and the timer once. The repeated step is just closing the lid after you start a task.

Is it safe to leave the lid closed?

LidRun uses battery and thermal thresholds to help reduce risk, but keep the Mac on a flat, ventilated surface and plugged in for long runs.

A Lid-Closed Developer Workflow for the MacBook