Skip to main content
App comparison

Hammerspoon vs Keyboard Maestro

Which is the better Mac automation for Mac in 2026?

PublishedUpdated
Hammerspoon icon

Hammerspoon

Powerful macOS automation tool using Lua scripting

Full review
Keyboard Maestro icon

Keyboard Maestro

Automation software

Full review

Our verdict

How we compare apps

Pick Hammerspoon 1.1.1 when you want a free, open-source MIT daemon you can extend without a canvas ceiling; pick Keyboard Maestro 11.1.1 when you need recorded macros, conflict palettes, clipboard stacks, and a visual debugger teammates can read. Calling a single global winner would paper over that split; Apple Shortcuts and BetterTouchTool cover different ground in Mac automation. If Lua is fun for you, start with Hammerspoon. If you need throughput this hour, buy Keyboard Maestro. Long-term Mac power users often end up with both tools split by job: tiling and system watchers in Hammerspoon, text and clipboard workflows in Keyboard Maestro.

Read the quick answer

Which is better: Hammerspoon or Keyboard Maestro?

Hammerspoon and Keyboard Maestro are both Mac automation on a Mac, so the pick depends on workflow. Install Hammerspoon if you want free, scriptable control over window tiling and system watchers; buy Keyboard Maestro for US$36.00 once if your team needs. As of November 2026, both install with brew install --cask hammerspoon and brew install --cask keyboard-maestro.

TL;DR

Hammerspoon vs Keyboard Maestro: Pick Hammerspoon 1.1.1 when you want a free, open-source MIT daemon you can extend without a canvas ceiling; pick Keyboard Maestro 11.1.1 when you need recorded macros, conflict palettes, clipboard stacks, and a visual debugger teammates can read. Calling a single global winner would paper over that split; Apple Shortcuts and BetterTouchTool cover different ground in Mac automation. If Lua is fun for you, start with Hammerspoon. If you need throughput this hour, buy Keyboard Maestro. Long-term Mac power users often end up with both tools split by job: tiling and system watchers in Hammerspoon, text and clipboard workflows in Keyboard Maestro.

Feature Comparison

Feature comparison between Hammerspoon and Keyboard Maestro
FeatureHammerspoonKeyboard Maestro
PriceFreeSee developer pricing
Open SourceNoNo
ReplacesKeyboard Maestro ($36)—
Best forautomation, lua, scriptingautomation, macros, keyboard
Installbrew install --cask hammerspoonbrew install --cask keyboard-maestro
CategorySystem UtilitiesSystem Utilities

Quick Install

Hammerspoon
brew install --cask hammerspoon
Keyboard Maestro
brew install --cask keyboard-maestro

Learn More

In-Depth Overview

What is Hammerspoon?

Hammerspoon is an open-source macOS automation tool written in Objective-C and Lua that exposes system APIs through a Lua scripting bridge. The current release is 1.1.1, published 26 February 2026 on GitHub, and the project is active in November 2026; Homebrew still distributes it as brew install --cask hammerspoon. Hammerspoon runs as a menu-bar daemon requiring Accessibility permission, optionally other entitlements per module, and macOS 13.0 or later. Its API surface, hs.window, hs.hotkey, hs.alert, hs.menubar, hs.chooser, hs.http, hs.wifi, hs.battery, hs.usb, hs.screen and community Spoons, lets users script window tiling, global hotkeys, menubar widgets, modal key layers, and reactive daemons purely in Lua. Configuration lives in ~/.hammerspoon/init.lua and reloads live. Philosophically Hammerspoon treats macOS as a programmable runtime: if an API exists in hs.*, you can bind it to any trigger you invent. There is no paid tier, no subscription, and no telemetry upsell; the project is community-maintained and notarized for current macOS, including Tahoe 26.x on Apple Silicon and Intel.

What is Keyboard Maestro?

Keyboard Maestro is a commercial macOS automation utility from Stairways Software (Stairways Software Pty Ltd), which acquired it from Michael Kamprath in 2004; it has shipped since 2002 and remains actively maintained in 2026. The current stable version is 11.1.1, whose fixes include the Application Switcher option/control-Tab behavior on Tahoe and later; the published price remains US$36.00 for a new single-user license (upgrade US$25 from v10, and purchases since 1 March 2023 receive a free upgrade to version 11) with free minor updates and a standalone, notarized universal binary. It requires Accessibility permission, runs on macOS 10.13 or later, and is fully compatible with Apple Silicon and macOS Tahoe 26.x. Unlike Hammerspoon, no code is required to achieve sophisticated automations, though power users can embed shell, AppleScript, JavaScript for Automation, or Swift snippets inside actions.

Detailed Feature Comparison

Automation Model

Critical importance

Hammerspoon

Excellent

Code-driven Lua engine. Every automation is a function you write against hs.* APIs, unlimited composability, version-controlled config, modal layers, and reactive event watches (Wi-Fi, USB, battery, screen, app). Steeper learning curve but no ceiling. Verified August 2026: ships universal and works on Tahoe 26.x after re-granting Accessibility.

Keyboard Maestro

Excellent

Visual canvas with 300+ drag-and-drop actions and a macro recorder. Triggers cover hotkeys, typed strings, palettes, cron, folder/app/window, MIDI, and USB. No code needed for most workflows; embed code only when you want to. Verified August 2026: v11 universal binary remains current on Tahoe 26.x.

Verdict: Code ceiling vs canvas floor still decides the winner. Hammerspoon rewards programmers, Keyboard Maestro rewards visual builders.

Window & Workspace Control

High importance

Hammerspoon

Excellent

hs.window, hs.grid, hs.spaces and hs.screen give pixel-precise tiling, throw-to-display/space, and display-change reactors. Many users recreate tiling WMs (yabai-parity) entirely in Lua with animation control.

Keyboard Maestro

Good

Window actions (Move/Resize, Manipulate Windows, Bring to Front) handle halves/thirds and app-specific geometry, plus Spaces awareness. Reliable for snap/placement palettes but less algorithmic than Hammerspoon's continuous layout reactors.

Verdict: Hammerspoon wins for developers wanting bespoke tiling reactors; Keyboard Maestro is fine for deterministic snap palettes.

Triggers & Event Reactivity

High importance

Hammerspoon

Excellent

Watchers for Wi-Fi, USB, battery, Caffeinate, path, URL, pasteboard, and screen. hs.caffeinate.watcher, hs.wifi.watcher, hs.usb.watcher let the daemon react to hardware/network without polling.

Keyboard Maestro

Excellent

Extensive built-in triggers including wireless network, USB device, MIDI, mounted volume, login, sleep, idle, and periodic (cron-like). Folder and application triggers are particularly ergonomic for non-programmers.

Verdict: Both are event-rich; Hammerspoon exposes more system signals via Lua, Keyboard Maestro exposes them as GUI triggers.

Learning Curve & Onboarding

High importance

Hammerspoon

Fair

First week is debugging Lua in the console, reading hs.* docs, and handling nil-window edge cases. Community Spoons help, but there is no recorder. Reward arrives after that investment.

Keyboard Maestro

Excellent

Install, grant Accessibility, record a macro or drag actions into a visual list. Seeing triggers and actions in plain English flattens the curve; the forum, wiki, and built-in help examples resolve most questions in minutes.

Verdict: Keyboard Maestro wins onboarding decisively; Hammerspoon's curve pays off later for coders.

Text, Clipboard & Data Handling

High importance

Hammerspoon

Good

hs.pasteboard + hs.eventtap + string ops cover clipboard manipulation, but you build the UX yourself (choosers, alerts). No built-in clipboard history or OCR, add via Spoons or hand code.

Keyboard Maestro

Excellent

First-class clipboard histories (named clipboards, persistent stacks), clipboard filters, text-token expansion, OCR actions, dictionary/variable pipeline, and regex tools. A standout reason non-programmers choose it.

Verdict: Keyboard Maestro's clipboard/text pipeline is best-in-class among Mac automators.

Extensibility & Ecosystem

High importance

Hammerspoon

Excellent

MIT-licensed, community Spoons on GitHub, full Lua standard library, and the ability to require any Lua rock or call out to shell/Python/Node. If an API is missing you can write it.

Keyboard Maestro

Good

Embed Execute Shell/AppleScript/JavaScript (including modern JavaScript for Automation), call Hammerspoon or Shortcuts from a macro, and share macros on the forum. Visual canvas sets the boundary, you cannot rewrite the engine itself.

Verdict: Hammerspoon is the more open, hackable runtime; Keyboard Maestro is the richer out-of-the-box library.

Reliability & Debugging

Medium importance

Hammerspoon

Good

Console reloads live but a nil window or race on rapid display wakes can throw Lua errors. Stability depends on the quality of your init.lua. Crash logs are Lua stacktraces, not GUI hints.

Keyboard Maestro

Excellent

Visual debugger, macro groups with enable/disable, conflict resolution, and detailed Engine log. Failures surface as named actions with progress indication, making root cause faster to spot.

Verdict: Keyboard Maestro's visual debugger and logs shorten mean-time-to-fix for most users.

Pricing & Licensing (2026)

High importance

Hammerspoon

Excellent

Free and MIT open source. Download via GitHub releases or Homebrew. No trial, no activation, community support via GitHub issues and Discourse.

Keyboard Maestro

Excellent

US$36.00 new license, US$25 upgrade from v10, volume discounts available. One-time purchase, not a subscription; free minor updates through the 11.x line. 30-day-style trial available via Stairways.

Verdict: Hammerspoon wins on price alone; Keyboard Maestro's one-time US$36 remains among the best values in paid Mac utilities.

Maintenance & Platform Fit (Tahoe / Apple Silicon)

Medium importance

Hammerspoon

Good

1.1.1, cut 26 February 2026, is the current release line, and the Homebrew cask ships the same build. Universal binary, notarized. Accessibility re-grant required after major OS upgrades.

Keyboard Maestro

Excellent

Commercial maintenance rhythm with documented 11.x patches into 2026. Universal notarized build tracks current macOS; the 11.1.1 update documents fixes such as the Application Switcher option/control-Tab behavior on Tahoe and later.

Verdict: Both healthy in November 2026; Keyboard Maestro's commercial rhythm edges platform-fit confidence for risk-averse shops.

Who Should Choose Which?

1Software Developer

Hammerspoon

Version-controlled Lua, reactive watchers, and unlimited hs.* composability beat any visual box.

2Designer / Writer

Keyboard Maestro

Palettes, recorder, and clipboard history compress daily repetition without code.

3IT / Ops Generalist

Keyboard Maestro

Fastest path to reliable USB, folder, and schedule triggers across managed Macs.

4Window-Management Obsessive

Hammerspoon

Rebuild a bespoke tiling WM in Lua; Keyboard Maestro can only snap, not continuously tile.

5Team Lead standardizing fleets

Keyboard Maestro

Readable macros and commercial support reduce onboarding cost across mixed skill levels.

Migration Guide

Hammerspoon → Keyboard_maestro

Export behaviors, not code. Map each hs.hotkey + function pair onto a Keyboard Maestro macro with the same hotkey trigger, replacing Lua logic with typed-string, window, or clipboard actions. Rebuild wifi/usb watchers as Keyboard Maestro wireless/USB triggers. Expect to lose the reactive-daemon elegance, replace it with explicit macro groups per context.

Keyboard_maestro → Hammerspoon

Translate each macro group into an hs.* watcher or hotkey in init.lua. Recreate palettes with hs.chooser or hs.hotkey.modal, rebuild clipboard history with hs.pasteboard + hs.timer. Budget a weekend to port your most-used ten macros and keep Keyboard Maestro installed until the Lua equivalents are stable.

Final Verdict

Overall Winner

Tie - hammerspoon for coders, keyboard-maestro for everyone else

9.1/10

Score

Hammerspoon

9.0/10

Score

Keyboard Maestro

Scores are Bundl.run editorial ratings out of 10 across 9 criteria (the feature comparison above), last reviewed August 2026.

Pick Hammerspoon 1.1.1 when you want a free, open-source MIT daemon you can extend without a canvas ceiling; pick Keyboard Maestro 11.1.1 when you need recorded macros, conflict palettes, clipboard stacks, and a visual debugger teammates can read. Calling a single global winner would paper over that split; Apple Shortcuts and BetterTouchTool cover different ground in Mac automation. If Lua is fun for you, start with Hammerspoon. If you need throughput this hour, buy Keyboard Maestro. Long-term Mac power users often end up with both tools split by job: tiling and system watchers in Hammerspoon, text and clipboard workflows in Keyboard Maestro.

Bottom Line: Install Hammerspoon if you want free, scriptable control over window tiling and system watchers; buy Keyboard Maestro for US$36.00 once if your team needs recorded macros and clipboard history without code. Keep the pair when your work splits between Lua reactors and macros a non-coder can read.

Frequently Asked Questions

Which version should I install today on macOS Tahoe 26.x?
Hammerspoon 1.1.1 (GitHub releases or Homebrew) and Keyboard Maestro 11.1.1 (stairways.com / Homebrew). Both are universal, notarized, and require Accessibility permission after a major OS upgrade; Hammerspoon needs macOS 13.0 or later, Keyboard Maestro 10.13 or later.
Is Hammerspoon free? Is Keyboard Maestro a subscription?
Hammerspoon is MIT free. US$0 forever. Keyboard Maestro is a one-time US$36 purchase (US$25 upgrade, and purchases since 1 March 2023 receive a free upgrade to version 11) in November 2026, not a subscription. Neither vendor moved to recurring billing by the re-check date.
Do I need to code to use Hammerspoon?
Yes. Hammerspoon automations are Lua functions against hs.* APIs. Spoons bundle reusable behaviors, but customizing them still means editing init.lua. If that sounds unwelcome, Keyboard Maestro's visual canvas is the faster fit.
Can they replace Apple Shortcuts?
They complement it. Shortcuts handles system integrations and iCloud automations; Hammerspoon covers daemon-like reactors and tiling you cannot express in Shortcuts; Keyboard Maestro covers clipboard/macro/palette depth that Shortcuts lacks. Many power users run two of the three.
Which is more reliable for window management?
Hammerspoon gives finer-grained tiling reactors but demands defensive Lua (nil windows on Space transitions). Keyboard Maestro's Manipulate Windows actions are more predictable if you only need deterministic halves/thirds and app-specific placement.
Can I run both at once?
Yes, but coordinate hotkeys to avoid conflicts. Typical combo: Hammerspoon owns tiling and menubar widgets in Lua; Keyboard Maestro owns text expansion, clipboard history, and recorded workflows. Give Accessibility to both.
Which has better clipboard history?
Keyboard Maestro. Named clipboards, persistent history, clipboard filters, OCR, and regex follow-ups are built in. Hammerspoon can watch pasteboard with Lua, but you build the history UX yourself.
How do teams share automations?
Keyboard Maestro macros paste as XML/plist and can be synced via iCloud/Dropbox. Hammerspoon configs are Lua files, version-control them in git and share Spoons on GitHub. Visual macros are more readable to non-programmers.
Did pricing change since early 2026?
No material change in this November re-check: Hammerspoon stayed free/MIT, now at release 1.1.1; Keyboard Maestro stayed at US$36 one-time, now at version 11.1.1, with purchases since 1 March 2023 upgraded to version 11 for free. Always verify hammerspoon.org/keyboardmaestro.com at checkout for taxes.
Which is safer on battery-dependent Macs?
Keyboard Maestro idles marginally cheaper because it fires only on triggers. Hammerspoon's impact depends on your Lua, tight hs.timer polling or aggressive window watchers can raise idle CPU, but a minimal init.lua is similarly frugal.
Is Keyboard Maestro free?
No. Keyboard Maestro is a one-time US$36 purchase for version 11, US$25 to upgrade, and purchases since 1 March 2023 receive a free upgrade to version 11; there is no subscription, so you pay once instead of monthly. The free option in this pairing is Hammerspoon: release 1.1.1 is US$0 under the MIT licence.
What are Hammerspoon alternatives?
Keyboard Maestro is the closest alternative; both run as menu-bar daemons that automate windows, hotkeys and triggers on macOS, but Keyboard Maestro works through visual macros at US$36 one-time while Hammerspoon works through free Lua scripts. Apple Shortcuts and BetterTouchTool are the adjacent Mac automation tools to consider. Developers who keep their configs in git stay with Hammerspoon, and mixed teams that need macros non-coders can read pick Keyboard Maestro instead.
Should I choose Keyboard Maestro or BetterTouchTool?
Choose Keyboard Maestro for macro automation: recorded sequences, conflict palettes and clipboard history cost US$36.00 one-time. Choose BetterTouchTool to customise input devices and automate computer systems, at US$15 for two years of updates or US$25 for updates while the app exists, with a 45-day trial. Hammerspoon is the third option, free under the MIT licence, when you would rather script window tiling and system watchers in Lua.

About the Author

Alex Chen

Senior Developer Tools Specialist

Code Editors & IDEsTerminal EmulatorsVersion Control Tools
12+ years in software development · Former senior engineer at tech startups

Explore More on Bundl

Browse Mac automation apps, read our complete guide, or discover curated bundles.

Expert Insights

Teams with mixed code comfort standardize on Keyboard Maestro and let coders layer Hammerspoon reactors for tiling not expressible visually.

community-feedbackmedium confidence

Hammerspoon watchers (wifi/usb/caff) are uniquely suited to context-aware automation; reimplementing them with polling in Keyboard Maestro is less efficient.

hands-on-testinghigh confidence

Sources & References

Key Verified Facts

  • Hammerspoon current release is 1.1.1 (26 February 2026) and is MIT/free via GitHub/Homebrew.[2][1]
  • Keyboard Maestro current line is v11 with pricing US$36 new / US$25 upgrade (one-time, not subscription) in August 2026.[4][5]
  • Both tools require macOS Accessibility permission and run natively on Apple Silicon, compatible with Tahoe 26.x.[1][4]
  1. 1
    hammerspoon.orgHammerspoon official site

    Accessed Aug 9, 2026

  2. 2
  3. 3
    formulae.brew.shHomebrew cask: hammerspoon

    Accessed Nov 16, 2026

  4. 4
    keyboardmaestro.comKeyboard Maestro official site (pricing & v11)

    Accessed Nov 16, 2026

  5. 5
    wiki.keyboardmaestro.comKeyboard Maestro wiki. What's New (v11)

    Accessed Nov 16, 2026

  6. 6
    en.wikipedia.orgKeyboard Maestro. Wikipedia

    Accessed Aug 9, 2026

  7. 7
  8. 8
    hammerspoon.orgHammerspoon release notes

    Accessed Nov 16, 2026

  9. 9
    api.github.comGitHub latest release API

    Accessed Nov 16, 2026

  10. 10
    stairways.comStairways Software: History

    Accessed Nov 16, 2026

  11. 11
    folivora.aiBuy BetterTouchTool

    Accessed Nov 16, 2026

  12. 12
    formulae.brew.shHomebrew cask: bettertouchtool

    Accessed Nov 16, 2026

Related Technologies & Concepts

HammerspoonKeyboard MaestroLuamacOS Accessibility APISpoonsApple SiliconApple Shortcuts
Hammerspoon (Open-source Lua automation engine for macOS.), Keyboard Maestro (Commercial visual macro automation for macOS.), Lua (Scripting language used to configure Hammerspoon.), macOS Accessibility API (System permission both tools require to control windows and input.), Spoons (Reusable Hammerspoon plugin modules.), Apple Silicon (Hardware architecture both tools support natively on Tahoe 26.x.), Apple Shortcuts (Adjacent macOS automation platform users compare against both tools.)

Related Topics

macOS Automation

Compares programmable (Hammerspoon/Lua) vs visual (Keyboard Maestro) automation for macOS power users in 2026.

Window Management on macOS

Why Hammerspoon's hs.window tiling reactors compete with dedicated tiling WMs while Keyboard Maestro stays a snap/palette tool.