Skip to content

Hammerspoon vs KeepingYouAwake (2026): which should you pick?

As of Nov 18, 2026, KeepingYouAwake grades higher than Hammerspoon: 2.6 against 2.2 out of 4.0.

Checked Oct 6, 2026 and Oct 9, 2026 · graded Nov 18, 2026 by ToolGPA

Hammerspoon grades higher on features. KeepingYouAwake grades higher on ease of use. They get the same grade on value for money, the free plan and platforms.

Price, platforms and features side by side. The table says where each price was read and when.

Hammerspoon

Free, open-source macOS automation scripted in Lua

Free

KeepingYouAwake

Menu bar utility that stops a Mac from going to sleep

Free

Which one is for you

Pick Hammerspoon if

  • Fits if you're comfortable writing Lua and want your Mac to behave your way
  • Works for people who want several apps' windows put into a saved layout from one shortcut

Look elsewhere if

  • Skip it if you don't want to write code, because nothing works until you've scripted it
  • Not for you if you're on Windows or Linux, as it's macOS only
  • Not for you if you'd rather nothing was collected by default, as crash information is until you turn it off
  • Tight if your Mac is older, since release 1.1.1 needs macOS 13.0 and earlier systems need an earlier release
  • Watch out: it depends on the Accessibility permission, which you grant by hand in the privacy settings

Pick KeepingYouAwake if

  • Fits if sleep keeps cutting off a long download or a slideshow
  • Works for anyone who wants Apple's caffeinate behind a menu bar icon, at no cost

Look elsewhere if

  • Skip it if you want a MacBook to stay awake with the lid closed, which it doesn't do
  • Not for you if you're on Windows or Linux, as it's macOS only
  • Tight if your Mac runs something older than macOS 12, which the changelog says version 1.6.9 will stop supporting
  • Too light for more than stopping sleep: it wraps Apple's caffeinate, and the developer says you use it at your own risk

How we grade them

2.2GPAHammerspoonFair2.6GPAKeepingYouAwakeGood
Value for money
AFree and open source under the MIT licence, a plain download, with every extension included. The developers don't even take donations, and suggest you give to a charity instead.
AFree and open source under the MIT licence, a download anyone can run. Its pages show no price, no purchase step and no paid edition.
Free plan and trial
AThe whole app is free, as a direct download or a Homebrew cask. There's no paid version to compare it with.
AThe complete utility, every setting included, is a free download with no account or licence key. You can install it with Homebrew too.
Features
CWas B. Down to C because of one problem people report: moving a window to another Space has not worked since macOS 15.
DThis is one switch. It wraps caffeinate, the sleep-blocking tool Apple already ships, and adds timed durations, a low-battery cut-off and a URL scheme for scripts. It won't even hold a MacBook awake with the lid shut.
Ease of use
FWas D. Down to F because of three problems people report: one slow or stuck app can freeze every hotkey for seconds or minutes; version 1.1.1 crashes outright, several times a day for some on macOS 27; nothing works until you write it yourself in Lua.
BNo store rating on record, but there is genuinely nothing to set up: click the menu bar icon and your Mac stays awake. The rest is a handful of settings you may never open.
Platforms and integrations
DMac only, one operating system, and release 1.1.1 needs macOS 13.0 or later. It can talk to AppleScript, Spotify, Messages, Stream Deck and Asana, and other apps can trigger it through hammerspoon:// URLs.
DMac only. Version 1.6.8 supports macOS 10.13 and newer, and the changelog says 1.6.9 will raise that to macOS 12. No integrations are listed beyond its own URL scheme.
Best forscripting your Mac in Luakeeping a Mac awake with one click

The GPA is the average of the five grades: an A is 4 points, an F is none. The full reasons are on each tool's page: Hammerspoon and KeepingYouAwake. How we grade

Price against what you get

Hammerspoon has no paid plan and scores 1.0 out of 4 on features, ease of use and platforms. KeepingYouAwake has no paid plan and scores 1.7.

KeepingYouAwake scores higher for the same starting price. Of the other desktop utilities on the chart, none scores higher than Hammerspoon for less, and none scores higher than KeepingYouAwake for less.

Features, ease of use and platforms, averaged

F0.0D1.0C2.0B3.0A4.0Free$0.5$1$2$5$10$20$50$100More for lessCosts more, scores moreCosts less, scores lessCosts more, scores lessHammerspoonKeepingYouAwake

What paid plans start at, a month (each step along is roughly double) →

  • The best score at each price
  • Has a free plan
  • No free plan
The full chart of desktop utilities, and the best at every price

Where they differ

  • Hammerspoon also covers workflow automation and window management.
  • KeepingYouAwake also covers menu bar app.
In commonFree planmacOSOpen source

At a glance

HammerspoonKeepingYouAwake
PricingFreeFree
Starts atFreeFree
Free planThe whole app is free and open source under the MIT license. The developers do not take donations and suggest giving to a charity instead.The whole app is open source under the MIT license, downloaded from the website or GitHub or installed with Homebrew. Its pages show no price, purchase step or paid edition.
Free trialNone listedNone listed
macOS
Made byHammerspoon contributorsMarcel Dierkes
Price read fromgithub.comgithub.com
CheckedOct 6, 2026Oct 9, 2026

The worst thing about each

The worst thing about Hammerspoon

Updates have nearly stopped, and the next macOS can break your setup

Everything you build in Hammerspoon is your own Lua code, and it depends on a few volunteers keeping up with Apple. Nothing has been released since 26 Feb 2026, and macOS 27 users already report crashes and broken window lists with no reply. If an update breaks your setup you wait, or build a patched copy yourself. The lead maintainer's next version uses JavaScript, so moving to it means rewriting your scripts.

All 5 problems people report

The worst thing about KeepingYouAwake

Closing a MacBook lid ends the stay-awake, with no setting to stop it

Anyone who shuts a MacBook while a download, a stream, music or a long job is running loses it: on battery the Mac sleeps at once, whatever KeepingYouAwake is set to. The maintainer has said a closed-lid mode will not be added, so people who need one have to find and install a second app.

The problem people report

Worth knowing

Hammerspoon

  • macOS only. Release 1.1.1 lists a minimum of macOS 13.0; older Macs need an earlier release.
  • Out of the box it does nothing: every behavior has to be written in Lua in ~/.hammerspoon/init.lua or added as a Spoon.
  • It depends on the macOS Accessibility permission, which the user has to grant by hand in the system's privacy settings.
  • Crash information is collected by default; the FAQ says this can be turned off in the preferences.

KeepingYouAwake

  • macOS only. Version 1.6.8 supports macOS 10.13 and newer, and the changelog says the next release, 1.6.9, raises the minimum to macOS 12.
  • It does not keep a MacBook awake with the lid closed: it works on desktop Macs and on portable Macs with an open lid.
  • It only prevents sleep, by wrapping Apple's caffeinate tool; the developer says it is provided with no guarantee and used at your own risk.

Key features

Hammerspoon

Lua bridge to macOS
Extensions expose macOS APIs for applications, windows, screens, audio devices, batteries, clipboards, Wi-Fi, location and low-level keyboard and mouse events to Lua code.
Hotkeys
A keyboard shortcut can be bound to any Lua function, from showing a notification to running a series of window operations or an AppleScript.
Window movement and layouts
Scripts can move and resize the focused window, arrange several apps' windows into a saved layout across screens, and use window filters to act on groups of windows.
Event watchers
A configuration can react to application events, Wi-Fi network changes and USB devices, for example muting the volume when the Mac leaves the home network.
Spoons
Spoons are pre-made plugins, installed by double-clicking a .spoon file and loaded from the config. The official list includes an app launcher and a window switcher.
Menu bar items and URL triggers
Scripts can create menu bar items, draw on the screen and send iMessage or SMS messages, and other apps can trigger them through hammerspoon:// URLs.

KeepingYouAwake

One-click activation
One click on the menu bar icon stops the Mac from going to sleep, and it stays that way until the app is deactivated or a chosen duration ends.
Activation durations
Sleep can be blocked for a pre-defined length of time instead of indefinitely, and the list of durations can be customized in the settings.
Battery safeguards
The app can deactivate itself when the battery level is low, and its Battery settings support Low Power Mode on compatible Macs.
Automatic activation rules
Advanced settings activate it when an external display is connected, deactivate it while another user account is active, or quit the app when a duration ends.
URL scheme
Links such as keepingyouawake:///activate and keepingyouawake:///toggle switch it on or off from scripts and other apps.
Display sleep and notifications
An option lets the display sleep while the Mac itself stays awake, and on macOS 11 or newer the app can post notifications.

Plans

Hammerspoon

  • Hammerspoon$0

    The complete app with every extension, as a direct download or a Homebrew cask. Open source under the MIT license.

KeepingYouAwake

  • KeepingYouAwake$0

    The complete utility with every setting, as a direct download with no account or license key. MIT licensed.

Common questions

Which is cheaper, Hammerspoon or KeepingYouAwake?

As of Oct 9, 2026, both Hammerspoon and KeepingYouAwake are free to use.

Which has a free plan, Hammerspoon or KeepingYouAwake?

As of Oct 9, 2026, both Hammerspoon and KeepingYouAwake have a free plan.

More comparisons

How this page was made

  • The verdict at the top follows a fixed rule. When both tools are in the same category and either is in our top three for it, the verdict follows that ranking: the higher-placed tool is our pick. The top three weigh who each tool suits as well as its grades, so a pick can go against the GPA. Otherwise the page does not pick one and says which grades higher: the higher GPA first; on a tie, the one with a free plan, then the one that starts cheaper in dollars a month, counted the same way for both; if they are still level, what the choice depends on.
  • The grades are our own, from each tool’s review or report card. The GPA is their average.
  • Prices, plans and platforms come from each tool’s listing. The table above says where each price was read and when.
  • The differences and the answers to the questions are worked out from those listings.
How we review and grade

For corrections, adding your listing and everything else, contact aditi@toolgpa.com or LinkedIn.