Hammerspoon
Staggeringly powerful macOS desktop automation with Lua
By Hammerspoon. Free and open source for macOS. Latest version 1.1.1, released 2026-02-26.
Is Hammerspoon safe?
Trust score 49/100: Use caution. Some warning signs. Read the notes, check the reviews, and verify the file before you run it.
- Very widely used: 16,450 GitHub stars
- Around since 2014
- Listed in Homebrew, which reviews submissions
Things to watch:
- Weak automated security checks (OpenSSF Scorecard 1/10)
- Build workflow has a pattern Scorecard flags as dangerous
16,450 GitHub stars · 1.2M downloads · OpenSSF Scorecard 1/10.
Download Hammerspoon
brew install --cask hammerspoon
Downloads come straight from github.com/Hammerspoon/hammerspoon.
About Hammerspoon
This is a tool for powerful automation of OS X. At its core, Hammerspoon is just a bridge between the operating system and a Lua scripting engine.
What gives Hammerspoon its power is a set of extensions that expose specific pieces of system functionality, to the user. With these, you can write Lua scripts to control many aspects of your OS X environment.
• Download the latest release • Drag Hammerspoon.app from your Downloads folder to Applications
Out of the box, Hammerspoon does nothing - you will need to create ~/.hammerspoon/init.lua and fill it with useful code. There are several resources which can help you: • Getting Started Guide • API docs • FAQ • Sample Configurations supplied by various users • Contribution Guide for developers looking to get involved • An IRC channel for general chat/support/development (#hammerspoon on Libera) • Google Group for support
Similar apps
- CocoaRestClient: A free, native Apple macOS app for testing HTTP/REST endpoints (Low trust, 39/100)
- yubiswitch: OSX status bar application to enable/disable Yubikey Nano (Use caution, 56/100)
- StrokeMouse: macOS 鼠标/触控板手势自定义工具。按住该手势的触发键(默认右键,也可中键 / 侧键)绘制轨迹,匹配后执行快捷键、打开应用、窗口操作、媒体键、Shell / AppleScript 等 | A macOS mouse gesture customization tool. H (Use caution, 59/100)
- DesktopCtl: OSX launcher and GPU-accelerated CLI tool for AI agents. Open-source computer use tool. (Use caution, 49/100)
- Neovim: Vim-fork focused on extensibility and usability (Good, 71/100)
- Vagrant: Vagrant is a tool for building and distributing development environments. (High trust, 76/100)
Compare: Hammerspoon vs CocoaRestClient · Hammerspoon vs yubiswitch · Hammerspoon vs Vagrant
Questions
Is Hammerspoon safe to download?
Hammerspoon has an OpenShelf trust score of 49/100 (Use caution). Some warning signs. Read the notes, check the reviews, and verify the file before you run it. Main thing to watch: Weak automated security checks (OpenSSF Scorecard 1/10).
Is Hammerspoon free?
Yes. Hammerspoon is free and open source under the MIT license. The source code is public at github.com/Hammerspoon/hammerspoon.
Does Hammerspoon work on macOS?
Hammerspoon is available for macOS.
How do I install Hammerspoon?
Use a package manager. Or install it with: brew install --cask hammerspoon.
What are alternatives to Hammerspoon?
Similar open-source apps: CocoaRestClient (trust 39/100), yubiswitch (trust 56/100), StrokeMouse (trust 59/100), DesktopCtl (trust 49/100).