A lightweight macOS menu bar app that prevents your Mac from sleeping.
![]() |
![]() |
![]() |
- Keep Your Mac Awake — Prevent sleep for 10 min, 30 min, 1 hour, indefinitely, or set a custom duration
- Menu Bar App — Lives in your menu bar, always one click away
- Customizable Icons — Choose from 6 different icon styles
- Smart Notifications — Get notified before the timer expires
- Prevent Manual Sleep — Optionally block sleep from Apple menu and power button
- Launch at Login — Start automatically when you log in
Download the latest release from the Releases page.
- Open the downloaded DMG file
- Drag Insomnia to your Applications folder
- Launch Insomnia from Applications
Since the app isn't notarized, macOS will block it on first launch. To open it:
- Right-click (or Control-click) on Insomnia in Applications
- Click Open from the context menu
- Click Open in the dialog that appears
Alternatively: System Settings → Privacy & Security → scroll down → click "Open Anyway"
You only need to do this once.
- Click the Insomnia icon in your menu bar
- Select a duration (10 min, 30 min, 1 hour, indefinite, or custom)
- Click Start — your Mac will stay awake until the timer ends
- Click Stop anytime to allow sleep again
Run this in Terminal to confirm sleep prevention is active:
pmset -g assertionsLook for: Insomnia is keeping the system awake
- macOS 15.4 or later
- Clone the repository
- Open
Insomnia.xcodeprojin Xcode 16.3+ - Build and run (⌘R)
MIT License - see LICENSE for details.


