Hammerspoon
Script your Mac with Lua.
About Hammerspoon
Hammerspoon bridges macOS APIs to Lua, so you can script windows, hotkeys, Wi-Fi events, USB devices and more.
Install Hammerspoon
Download it from the links above, or install it from the Terminal:
brew install --cask hammerspoon Questions about Hammerspoon
Is Hammerspoon free?
Yes. Hammerspoon is free and open source under the MIT license. The source code is on GitHub at Hammerspoon/hammerspoon.
Where can I download Hammerspoon for Mac?
Download Hammerspoon from the developer's website (hammerspoon.org) and GitHub. MacWorthy links only to official sources.
Can I install Hammerspoon from the Terminal?
Yes. With Homebrew, run brew install --cask hammerspoon.
What are good alternatives to Hammerspoon?
Other ai & automation apps for Mac worth a look are Keyboard Maestro (one-time purchase), Osaurus (open source), Enconvo (free + pro) and ChatGPT (free + pro).
Other ai & automation apps like Hammerspoon
Keyboard Maestro
Automate anything you can do with a Mac.
Osaurus
A local home for AI agents, written in Swift.
Enconvo
An AI agent launcher that works across your whole Mac.
ChatGPT
OpenAI's assistant, a shortcut away.
BoltAI
Every AI model, in one native app.
Elephas
A personal AI writer and knowledge assistant.
SkillKeeper
A menu bar ledger of what Claude Code spends tokens on.