System & Utilities

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.

Things to watch:

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

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).