StayAwakeTimer icon

Open source · macOS 14+ · Universal binary · Battery & Power

Keep your Mac awake.
Then let it sleep.

Prevent sleep from the menu bar for 15 minutes up to 24 hours, or automatically while chosen apps run, on power, or with an external display. Toggle it with ⌘A in the menu.

Free & MIT licensed · Apple Silicon & Intel · Latest release

StayAwakeTimer menu bar menu with 1 Hour session active

Features

Control over when sleep happens.

Timers, automatic triggers and a battery guard, all running locally with Apple frameworks only.

Timed sessions

Pick 15 minutes, 30 minutes, 1, 2, 4 or 8 hours, or set a custom duration up to 24 h 55 m. The time left shows in the menu bar only while a timer runs.

Automatic triggers

Stay awake while any app you choose is running, while the Mac is on the power adapter, or while an external display is connected.

Battery guard

On battery, every session ends when the charge drops below a threshold you set between 5% and 50%. You can also turn the guard off.

Let the display sleep

Keep the system running while the screen turns off, or keep both awake. One setting controls which.

Notifications when it ends

Get an optional notification when a session finishes or the battery guard stops it. Turn it off in Settings if you prefer quiet.

Safe by design

Overlapping reasons share one power assertion, everything is released on quit, and timers are not restored after a relaunch. Clock changes are handled because the end time is stored as a date.

Screenshots

See it in action.

Install

Up and running in a minute.

StayAwakeTimer is open source and not notarized with a paid Apple Developer ID, so macOS needs one extra step the first time.

  1. Download StayAwakeTimer-macOS.zip and unzip it.
  2. Move StayAwakeTimer.app to your Applications folder.
  3. Clear the quarantine flag once, then right-click the app and choose Open:
    xattr -cr /Applications/StayAwakeTimer.app
  4. Allow notifications when prompted, or later in System Settings Notifications StayAwakeTimer this is optional, and no other permissions are required.

Download

Get StayAwakeTimer for macOS

Free, forever. Built for macOS 14 Sonoma or newer, Apple Silicon and Intel.

StayAwakeTimer-macOS.zip · GitHub Releases

Not notarized: on first launch right-click StayAwakeTimer.app → Open.

  • macOS 14 Sonoma+
  • Universal (Apple Silicon + Intel)
  • MIT licensed · open source
  • No ads, no accounts, no telemetry
  • Built with Claude Code · how and why

FAQ

Questions, answered.

Is StayAwakeTimer really free and open source?

Yes. It is released under the MIT license and the full source is in the GitHub repository. There are no ads, no account, no analytics and no third-party dependencies. If you find it useful, there is an optional Support button in the menu and Settings.

What permissions does it need?

Notifications are optional and are used only to tell you when a session ends or the battery guard fires. Launch at login is optional too. It does not need Accessibility, Screen Recording or Microphone access.

Where is my data stored?

Your preferences, such as trigger apps, the battery threshold and notification settings, are stored locally on your Mac in the app's standard preferences. The app makes no network calls, so nothing leaves your machine.

Why is the app not notarized?

Notarization requires a paid Apple Developer account, and this is a free open-source project. Right-click the app and choose Open once to get past Gatekeeper, or build it yourself from source with Xcode.

Was this written by AI?

Yes. StayAwakeTimer was generated by Claude Code from a written spec as a clean-room reimplementation, with no code or assets from any commercial app. The full source is on GitHub under MIT, so you can read every line before you run it. It has had less human review than a hand-written app, so bug reports are welcome.

Support ❤️

Built by one person, given away for free.

StayAwakeTimer is a free, open-source alternative to paid utilities. If it earns a spot on your Mac, a coffee keeps the updates coming.

☕ Support Or on Ko-fi