
Hammerspoon
A free, open-source macOS automation tool that you program in Lua to control windows, keys, apps and more.
- Verified facts
- 4 of 4
- Alternatives ranked
- 5
- Approved reviews
- 0
- Visits sent from here
- 0
About Hammerspoon
Hammerspoon is a bridge between macOS and the Lua scripting language. Out of the box it does nothing; you write a Lua configuration file that connects events to actions using its extensive APIs for windows, applications, screens, keyboard and mouse events, the clipboard, audio devices, battery, Wi-Fi, location and the file system. Typical uses include custom window layouts on hotkeys, app launchers, reacting when you join your home network, battery alerts, or replacing several small utilities with a few lines of code. Pre-made plugins called Spoons cover common jobs like window grids, clipboard history and Caffeine-style keep-awake, so you do not have to write everything from scratch. It is free and open source under MIT, installed by downloading the app or via Homebrew, and documented with a getting-started guide and full API reference. The catch is obvious: you need to be comfortable writing and debugging code, and there is no graphical settings interface for building automations.
Best for: Developers who want to script their own Mac utilities instead of buying several.
Pros and cons
What works
- Can replace many small utilities with code
- Broad APIs across windows, input, network and devices
- Spoons provide ready-made modules
- Free and open source
Why people leave
- Requires writing Lua
- No graphical editor for automations
- Debugging configs can be fiddly
Top Hammerspoon alternatives
See all 5- 1KeKeyboard Maestro66.5
Visual macro editor for similar automation without writing code.
- 2
BetterTouchTool52.2Gesture, shortcut and window automation through a settings UI.
- 3
Karabiner-Elements50.3Dedicated, free keyboard remapping for low-level key changes.
- 4
Raycast48.9Script commands and extensions in a friendlier launcher interface.
- 5
SwiftBar38.6Simpler if all you need is script output in the menu bar, and it runs BitBar/xbar plugins.
Why people left Hammerspoon
In reviewers' own words, from reviews of the apps they moved to. These are their opinions, not ours.
No switching stories yet. If you moved away from Hammerspoon, review the app you switched to and tell us why.
Reviews
No approved reviews yet. How we verify reviewers
Write a review of Hammerspoon
Hammerspoon: common questions
Is Hammerspoon free?
Yes. Hammerspoon is free, open-source software.
Is Hammerspoon open source?
Yes. The source code is on GitHub at Hammerspoon/hammerspoon.
What platforms does Hammerspoon run on?
Hammerspoon is available for macOS.
What are the best alternatives to Hammerspoon?
The highest-ranked Hammerspoon alternatives right now are Keyboard Maestro, BetterTouchTool and Karabiner-Elements. See the full ranked list for pricing, platforms and verified facts.