{"slug": "how-to-keep-your-mac-awake-even-when-your-macbook-lid-is-closed", "title": "How to keep your Mac awake, even when your MacBook lid is closed", "summary": "Apple's macOS automatically puts Macs to sleep when idle to save power and protect battery life, but users can override this behavior for tasks like downloads, backups, and remote sessions. The free utility KeepingYouAwake provides a simple one-click toggle to prevent sleep on desktop Macs and open-lid laptops, while the more advanced Amphetamine app allows MacBook users to keep tasks running with the lid closed by offering customizable triggers and session controls.", "body_md": "macOS is designed to put your Mac to sleep when it is not being used. That is usually exactly what you want. Sleep saves power, protects battery life, and keeps a [MacBook](https://amzn.to/4uye1WS) from running when it is closed and stuffed in a bag.\n\nSometimes tasks like downloads, backups, remote sessions, and AI coding need a temporary exception. Fortunately, there are some great Mac apps for giving you this control.\n\n## Limited solutions that are included with macOS\n\nApple gives you some control in System Settings.\n\nOn macOS, you can go to **System Settings > Lock Screen** to change when the display turns off, and on Mac laptops you can use **System Settings > Battery > Options** to prevent automatic sleeping on the power adapter when the display is off.\n\nApple also supports using a Mac laptop with the lid closed when it is connected to power and paired with an external display, keyboard, and mouse or trackpad.\n\nI generally prefer not to make those settings permanent. Most of the time, I want my Mac to sleep normally. What I want instead is a quick, intentional override that I can turn on for a specific job and turn off when I am done.\n\nFor that, there are three Mac utilities worth knowing.\n\n## KeepingYouAwake is the simple one-click toggle\n\n[KeepingYouAwake](https://keepingyouawake.app/) is the utility that has lived in my Mac menu bar the longest.\n\nIt is free, lightweight, and built around the same basic idea that made Caffeine popular years ago: click a menu bar icon, and your Mac stays awake. Click it again, and your Mac returns to its normal sleep behavior.\n\nI started using KeepingYouAwake years ago when Macs moved to Retina displays. Caffeine, the classic coffee-cup utility, did not make that transition to high-resolution design.\n\nKeepingYouAwake became the simple replacement. It honors the spirit of Caffeine with no dashboard or complex automation. It’s just a reliable on/off switch for the Mac’s default sleep behavior.\n\nYou can activate it indefinitely or for preset durations, and it can automatically disable itself when your MacBook battery drops below a set level. It supports Retina displays and Dark Mode, and under the hood it uses Apple’s built-in `caffeinate`\n\ncommand-line utility.\n\nThe important limitation: KeepingYouAwake is not the closed-lid solution. Its own documentation is clear that, because of macOS limitations and thermal considerations, it only prevents sleep on desktop Macs and portable Macs with the lid open.\n\nThat makes KeepingYouAwake ideal for the simple stuff: reading, presentations, screen recordings, long downloads, or any time you are still using the Mac and just do not want the screen or system to nod off. It is the utility I use as my everyday “do not sleep yet” toggle.\n\n## Amphetamine is the gold standard for closed-lid sessions\n\nWhen I actually want to close my MacBook and keep a task running, [Amphetamine](https://apps.apple.com/us/app/amphetamine/id937984704?mt=12) is the app I open.\n\nAmphetamine has been the gold standard in this category for a long time because it gives you much more control than a simple on/off toggle.\n\nYou can start a session indefinitely, for a set amount of time, until a specific time, while a file is downloading, or while a specific app is running. You can also decide what happens to display sleep, screen savers, screen locking, and system sleep when the MacBook’s built-in display is closed.\n\nThat last part is the key for my current workflow. KeepingYouAwake is what I use for simple open-lid situations. Amphetamine is what I use when I want Codex, a download, or another long-running task to keep going after I close the lid.\n\nAmphetamine can also automate sessions with triggers. It can keep your Mac awake when an external display is connected, when a specific app is running, when a USB or Bluetooth device is connected, when your Mac is on a certain Wi-Fi network, when the power adapter is connected, when battery level is above a threshold, or even when CPU utilization meets a threshold.\n\nThat can be overkill if all you want is a coffee-cup-style toggle. But for closed-lid use, the extra control is the point. You can make the session temporary, tie it to the thing you are actually doing, and avoid leaving your Mac awake longer than necessary.\n\n## Coca is a newer App Store option with closed-lid support\n\n[Coca](https://apps.apple.com/us/app/coca/id1000808993?mt=12) is another option that recently came onto my radar through the Mac App Store. It offers the same general promise: a lightweight menu bar utility that keeps your Mac awake when you need it.\n\nThe app is free with optional support purchases. It features one-click activation, optional timers, Focus Filters, and Shortcuts support. Coca 2.0 also recently refreshed the app with a redesigned settings interface, custom time controls, and closed-lid support.\n\nThat makes Coca interesting if you want something that feels closer to KeepingYouAwake in spirit but now reaches into territory that matters for MacBook users who close the lid during long-running work.\n\nAmphetamine still looks like the most powerful choice if you want detailed triggers and session rules. Coca is worth a look if you want a simpler, modern Mac App Store utility with closed-lid mode built in.\n\nWhich apps do you use on your [MacBook](https://amzn.to/4uye1WS) for these kinds of tasks? Share your thoughts in the comments!\n\n*Do more with your Apple products*\n\n[Apple AirTag 2 | Add Find My tracking to keys, bags, bikes, more](https://amzn.to/4vjNWN1)\n\n[AirPods 4 ($99, reg. $129) | Apple’s newest wireless headphones](https://amzn.to/43ndewV)\n\n[AirPods Pro 3 ($199, reg. $249) | Apple’s best wireless headphones ](https://amzn.to/4ut3FYp)\n\n[Beats USB-A to USB-C Cable | The official CarPlay cable](https://amzn.to/4mpKs7K)\n\n*FTC: We use income earning auto affiliate links.* [More.](https://9to5mac.com/about/#affiliate)\n\n[our homepage](http://9to5mac.com/)for all the latest news, and follow 9to5Mac on\n\n[exclusive stories](https://9to5mac.com/feature/exclusive/),\n\n[reviews](https://9to5mac.com/guides/review/),\n\n[how-tos](https://9to5mac.com/guides/how-to/), and\n\n[subscribe to our YouTube channel](https://www.youtube.com/9to5mac)", "url": "https://wpnews.pro/news/how-to-keep-your-mac-awake-even-when-your-macbook-lid-is-closed", "canonical_source": "https://9to5mac.com/2026/06/12/how-to-keep-your-mac-awake-even-when-your-macbook-lid-is-closed/", "published_at": "2026-06-12 17:05:25+00:00", "updated_at": "2026-06-12 17:17:05.441666+00:00", "lang": "en", "topics": ["ai-tools"], "entities": ["KeepingYouAwake", "Caffeine", "Apple", "MacBook", "macOS"], "alternates": {"html": "https://wpnews.pro/news/how-to-keep-your-mac-awake-even-when-your-macbook-lid-is-closed", "markdown": "https://wpnews.pro/news/how-to-keep-your-mac-awake-even-when-your-macbook-lid-is-closed.md", "text": "https://wpnews.pro/news/how-to-keep-your-mac-awake-even-when-your-macbook-lid-is-closed.txt", "jsonld": "https://wpnews.pro/news/how-to-keep-your-mac-awake-even-when-your-macbook-lid-is-closed.jsonld"}}