Keep AI working.
Close the lid.
LidRun keeps your Mac awake with the lid closed — so Claude Code, Cursor, Docker and Ollama keep running with timers, charging-only mode, low-battery stop and battery/thermal guardrails.
Free forever for simple sessions. Try Closed-Lid Mode free. No subscription.
AI is still running.
You need to leave.
See what LidRun is protecting.
No guessing. LidRun shows why your Mac is awake, what is running, and when it will release.
Your agent didn’t crash. Your Mac slept.
It feels like Claude failed. But the real problem was power management.
Going home
Cursor is still refactoring. You need to pack your MacBook.
Going to sleep
Claude Code has one more bug to fix. You do not want to babysit it.
Lunch break
Docker has 28 minutes left. Your lunch should not kill your build.

Close the lid. Keep the run alive. Release when done.
LidRun holds the run while work is active, checks battery and thermal state, then releases the Mac when the job ends or safety limits are reached.
- 01Agent running
- 02Lid closed
- 03LidRun protects session
- 04Safety checks
- 05Work done
- 06Mac sleeps
Any of these releases the Mac to sleep — safely.
Guardrails, not guarantees.
Closed-lid work still needs care. Keep your Mac ventilated. Do not run heavy workloads in a bag or enclosed space. LidRun helps reduce risk with timer, charging-only mode, low-battery stop, thermal monitoring and auto-release.
Timer
Cap any run from 30 minutes to 8 hours.
Charging only
Only stay awake while on mains power.
Saves before it dies
Sleeps before it dies — plug in and pick up right where you left off.
Thermal watch
Back off when the chip reports heat pressure.
Auto-release
Sleep the moment the work is done.
Activity log
See exactly why a session started and stopped.
Low battery? LidRun saves your work.
At the battery level you set (~4–5%), LidRun puts your Mac to sleep before it dies — plug in and pick up exactly where you left off. No lost work, no cold restart. The safety net Apple should have built in.
Close the lid with confidence — if the battery runs low, LidRun sleeps the Mac safely instead of losing your work in a bag.
See how it works →Know why your Mac is awake.
No guessing. No blind wake locks.
LidRun shows what it is protecting, why your Mac is awake, and why it stopped.

Why Awake
- Claude Code active
- Docker build running
- Charging: Yes
- Battery: 86%
- Safety: OK
Why Stopped
- Workload ended
- Battery below threshold
- Thermal state serious
- Timer expired
Everything keeps running. Nothing runs away with your battery.
Lid closed, work still running
Shut the lid and walk away. Your builds, agents and long jobs keep going as if the Mac were wide open.
Detects your workloads
It only holds the Mac awake while real work is running — a known agent counts even at 0% CPU, so it is never dropped mid-task.
Session timer
Run for a set window — 30 minutes to 8 hours — then let the Mac rest on its own.
Activity log
See every keep-awake decision and every time safety stepped in. Newest first, nothing hidden.
How to keep your Mac awake with the lid closed
Keeping a Mac awake is not one switch. How to keep your Mac from sleeping depends on the case: macOS idle sleep, display sleep, closed-lid behavior and clamshell mode on a MacBook all work differently. To prevent your Mac from sleeping during a long run, LidRun is built for the modern case — AI agents, Docker builds and developer workloads that need to finish while you step away.
- Use caffeinate to keep a Mac awake for simple terminal sessions.
- Use clamshell mode on a MacBook for external-display desk setups.
- Avoid permanent pmset changes unless you know exactly what you are changing.
- As an Amphetamine alternative for guarded AI/dev runs, LidRun keeps your MacBook awake and auto-releases when work ends.
Whatever you leave running, LidRun keeps alive.
Not another Caffeine clone.
caffeinate is great for simple terminal sessions. Amphetamine is great for general keep-awake automation. LidRun is built for AI/dev runs you can leave behind.
Free forever. Pro when you close the lid.
One-time payment, no subscription. Pick how many Macs — that's the only choice.
Everything for simple sessions — lid open.
- Keep your Mac awake for AI & dev jobs
- Timers & charging-only mode
- Sleeps before the battery dies — no lost work
- Battery & thermal guardrails
- Dashboard & weekly reports
- No subscription, ever
opens on first click · no account needed
- Close the lid — keep AI running (Closed-Lid mode)
- Everything in Free
- Auto Mode — detects Claude Code, Cursor, Docker & Ollama
- Run any command — sleeps the Mac when it finishes
- Watchdog rules, alerts & webhooks
- Priority support
One-time · No subscription · 14-day money-back
Team of 5+ Macs?
Questions before you leave a run behind
Need help installing? See the install guide.
Go home. Go to sleep. Grab lunch.
Let the run finish.
Free forever · Pro from $9 · Pay once