Insomnia
Menu bar app that keeps a Mac awake with the lid closed for timed sessions
Insomnia is a small macOS menu bar app that stops a MacBook from sleeping when its lid is closed. It is aimed at people who leave long-running jobs, such as AI coding agents, running on their laptop for a set period of time.
You start a session for a chosen length of time, and the app keeps the machine awake until the timer ends. The source code is public under the MIT license, so the behaviour can be inspected and changed. It runs only on macOS and is listed as a free, open-source project.
Alternatives to Insomnia
Products that do a similar job in Utilities.
Caffeine
Menu bar tool that stops a Mac from going to sleep
Bluesnooze
macOS menu bar app that stops Bluetooth reconnecting while your Mac sleeps
Jiggler
Keeps a Mac awake by moving the mouse cursor
Pake
Packages websites as small desktop apps from the command line
Etcher
Desktop tool for writing OS images to SD cards and USB drives
PicGo
Uploads images to many hosting services and returns links for notes
Windows App
Remote access client for connecting to Windows PCs and desktops
Easydict
Dictionary and translation app for macOS