OPEN-SOURCE PICK · FREE
Hammerspoon for Mac
Automate your Mac with Lua
- Productivity
- Keyboard & mouse
- Open source · MIT
- Free
- ★ 16.2k on GitHub
Hammerspoon is a free, open-source automation tool for macOS. It bridges the system and a Lua scripting engine, so you can script windows, hotkeys, Wi-Fi, USB, audio and more.
Key features
SCRIPT YOUR MAC
Write Lua to control windows, apps, hotkeys and system events.
EXTENSIONS FOR SYSTEM FEATURES
Modules expose pieces of macOS you can react to and control.
SPOONS
Ready-made plugins you can drop in.
Who Hammerspoon is for
- Developers who like to automate
- Power users replacing several small utilities
- Anyone who wants custom hotkeys
Install
With Homebrew:
Or use the Download button above and drag the app to your Applications folder.
A free alternative to Keyboard Maestro, BetterTouchTool and Alfred workflows
People often look for Hammerspoon when they want what Keyboard Maestro or BetterTouchTool or Alfred workflows does without paying. Hammerspoon is free and its source code is public, so you can see exactly what it does on your Mac.
FAQ
Is Hammerspoon free?
Yes, free and open source under the MIT license.
How do I install it?
Download the latest release and drag it to Applications, or run brew install --cask hammerspoon.
Hammerspoon is made by Hammerspoon, not by OneClickTool. We list it because we use it and recommend it; we are not paid to. Details checked against its README on 2026-10-07.