Start with the option already on your Mac
caffeinate -i -t 7200
Keep Terminal running and the laptop lid open. The command prevents idle system sleep for two hours; Control+C stops it early. It does not keep the display lit. The separate -d flag concerns display sleep. Run man caffeinate to read the options on your own Mac.
Caffeinate can also run a command line utility and follow its lifetime. In that form, the -t timeout is not used. For an existing browser download or graphical export, the timed example is often easier to reason about.
What changes when you use AfterLid?
Scroll sideways to see every column.
| Need | Caffeinate | AfterLid |
|---|---|---|
| Free starting point | Built into macOS | Free local power controls and linked desktop status |
| A temporary session | Timer or launched utility | Named modes in the Mac app |
| Display behavior | Choose assertion flags | Awake keeps the system and display awake |
| Phone companion | No companion feature | Free status; remote mode changes require Pro |
| Coding agent activity | Can wrap a command line utility | Available local connections report supported activity |
| Where the job runs | On your Mac | In the original tool on your Mac |
A phone companion still needs a linked computer. Installing it alone does not keep a Mac awake. Use the current phone download and setup page for the right app link.
Awake and Always On are different choices
Sleepy restores normal sleep behavior. Awake is the lid open mode and keeps both the Mac and its display awake. Select Sleepy again when the task is done.

Always On handles a separate lid closed path. It requires power helper setup and an explicitly authorized, bounded session. Availability depends on the installed build and setup. Neither the timed command above nor Awake should be treated as a general promise of lid closed operation.
A connection adds reported activity
AfterLid’s available connections include local Codex sessions, Claude Code and Cursor Agent. They need setup in the Mac app and a new agent session. Cloud agents and ordinary web chats are outside those local connections. Gemini CLI has activity support, with approvals remaining in Gemini.
Reported activity is not proof that every background process has finished. A coding tool can return a response while a command continues running. Our phone activity guide explains the setup and a small test you can try.
Verify the work, not just the switch
pmset -g assertions
This read only command helps inspect sleep prevention. A 1 beside PreventUserIdleSystemSleep indicates an assertion at that moment; look at its owner too. It does not prove that a download advanced, a render succeeded or an agent completed its job.
Start with a short, observable task. Check its output before relying on the same setup for a longer run. Power controls cannot fix a lost connection, a crashed app or a full drive.
Keep the simpler setup when it is enough
For occasional Terminal work, keep using the built in command if it solves the problem. Try AfterLid if switching modes in an app or checking a linked Mac from your phone makes the routine easier. Check the current account plan before using a paid feature.
We make AfterLid, so this comparison is written with that relationship in the open. Keep any working laptop ventilated and put it to sleep before packing it away. AfterLid does not detect a bag, and its limits do not guarantee safe operation in one.
Common questions
Do I need Pro to keep my Mac awake locally?
No. AfterLid’s local power controls are Free. Pro adds remote mode controls and other account features described in the current plan.
Is AfterLid a remote desktop or cloud agent service?
No. Your task runs in the original application on your Mac. Linked phone features relay supported status and requests rather than moving the workload to an AfterLid cloud computer.
Is an awake session guaranteed to complete the job?
No. Check the application and its output. Sleep prevention addresses one possible interruption, while network, storage, application and system failures can still occur.
Sources and scope
Product claims checked on 29 October 2026 against the shipped AfterLid Mac 0.2.14 (21) source snapshot. Examples start with the laptop lid open. Hardware, macOS, provider and phone app versions can affect behavior.
- The macOS caffeinate(8) manual, available in Terminal with man caffeinate
- Apple: Set sleep and wake settings for your Mac
- Apple: Keep your Mac laptop within acceptable operating temperatures
- AfterLid product details and current feature boundaries
- AfterLid agent connection overview
- Why AfterLid needs clear limits
Published . Revised . Plan availability and connection behavior can change with the installed build.