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.

6:46 PMGoing home?
86%Fri 6:46 PM
LidRun
Protected
AI agent active
running
Battery 86%
Safety OK
Sleep when done
Runtime 2h 14m

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.

The run stopped halfway

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.

  1. 01
    Agent running
  2. 02
    Lid closed
  3. 03
    LidRun protects session
  4. 04
    Safety checks
  5. 05
    Work done
  6. 06
    Mac sleeps
Safety can end a run early
Too hotLow batteryTimer up

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.

SAFETY FIRST
Safety wins over convenience.

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

See the full safety guide

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.

See exactly 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
FEATURES

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.

LidRun activeRuntime 2:14

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.

Claude CodeCursorOllamaDocker

Session timer

Run for a set window — 30 minutes to 8 hours — then let the Mac rest on its own.

30m3h8h

Activity log

See every keep-awake decision and every time safety stepped in. Newest first, nothing hidden.

23:10 Keep-awake on · Auto Mode
01:47 All watched tasks finished
02:03 No tracked work · let the Mac sleep
04:31 Battery 4% · slept the Mac

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.

Claude CodeCursorCodexDockerOllamaPythonNodeTerminalSSHXcodeUploadsDownloads& more

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.

FeatureLidRuncaffeinateAmphetamine
Manual keep-awakeYesYesYes
AI/dev run focusBuilt for itNoGeneral-purpose
Guarded closed-lid workflowAI-dev focusedNoGeneral-purpose
Why Awake / Why StoppedCoreNoLimited
Auto-release when work endsRuntime-basedManualTrigger-based
Battery / thermal guardrailsYesNoYes
Pricing

Free forever. Pro when you close the lid.

One-time payment, no subscription. Pick how many Macs — that's the only choice.

Free
$0forever

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
Download free
Notarized by Apple

opens on first click · no account needed

Launch offer
LidRun Pro
$9$19one-time · lifetime
Save $10
  • 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

Curious if LidRun is right for you?

Let ChatGPT, Claude, or Perplexity look into it — click below and see what AI actually thinks about LidRun.

Keep Your Mac Awake With the Lid Closed | LidRun