Skip to content
No new version for more than 90 days, so OpenNavo has paused recommending and installing it. Homebrew still offers this app.

Hammerspoon

Hammerspoon contributors · Free, MIT-licensed macOS automation through Lua scripts, hotkeys, window control, system events and optional reusable Spoons.

CaskUtilitiesAuto-updates 16.5K

No new version for more than 90 days, so OpenNavo has paused recommending and installing it. Homebrew still offers this app.

Install command
brew install --cask hammerspoon
30-day installs
5,434
1-year installs
60.1K
Last 365 days
Latest version
1.1.1
Download size
9.7MB
zip
Release cadence
Irregular
0 releases in 30 days

About

Hammerspoon is a macOS desktop automation application that bridges a Lua scripting engine to system APIs. It is aimed at people comfortable writing small scripts who want personalized keyboard shortcuts, window workflows and event-driven automation. Installing it alone does not supply a finished set of automations: behavior comes from your configuration.

Capabilities

  • Bind hotkeys and automate window positioning, application actions and desktop workflows.
  • Respond to screen, network, power and other system events with Lua callbacks.
  • Inspect and control supported audio devices, clipboard and input behavior.
  • Display notifications, menus and custom interfaces through the available APIs.
  • Integrate shell tasks, AppleScript and supported application/system extensions.
  • Install optional reusable Lua plugins called Spoons; each Spoon has its own setup and dependencies.

Install and configure

Install brew install --cask hammerspoon, or download the official ZIP, extract it and move Hammerspoon.app to Applications. Launch it and create ~/.hammerspoon/init.lua. Use its menu to edit and reload the configuration; inspect the Console for errors and interactive Lua experiments. A simple starting configuration can bind a hotkey to a notification, then grow into window or application automation. The official Getting Started guide and API documentation provide working examples.

Grant Hammerspoon Accessibility access in macOS System Settings when automating desktop applications or input. Additional operations can require their own system permissions, such as Automation or Screen Recording. Only enable the permissions your configuration needs. Scripts and Spoons execute with your user's capabilities; review code before installing it.

The cask also links the bundled hs command-line tool. Command-line communication is configured through Hammerspoon's IPC module; the link alone does not enable every IPC feature.

Systems and dependencies

The current1.1.1 release and Homebrew Cask require macOS13 or later. The Cask lists Intel and Apple Silicon Mac platforms. Hammerspoon is Mac-specific; its macOS API integrations are not supplied as Windows, Linux, iOS or Android clients. Requirements of older releases should not be substituted for1.1.1. No fixed RAM or disk minimum is specified in the official material reviewed.

The official1.1.1 ZIP is9,704,557 bytes according to its GitHub release-asset metadata. Installed application, scripts and caches occupy additional space. Lua and the application's extensions are bundled; the cask declares no extra formula dependency and no explicit cask conflict. Xcode and build tools are needed to compile the source, not to use the release app. Optional Spoons, shell commands and integrations can require separately installed tools or service accounts.

Custom hotkeys and window automation can overlap with shortcuts or window managers configured elsewhere. Such interactions are configuration-dependent, not a declared package conflict. Disable or adjust duplicate bindings where necessary. OS changes and target-application accessibility behavior can affect individual automation APIs.

Data, accounts, cost and license

Core local automation does not require a Hammerspoon account or subscription. The project is free and MIT-licensed, permitting use and modification including commercial use subject to retaining required notices. Bundled libraries and optional Spoons retain their respective licenses; hosted services invoked by your scripts can have separate costs and accounts. The official FAQ says crash reporting is enabled by default and can be disabled in Preferences; review the project's privacy policy.

Homebrew zap includes ~/.hammerspoon, application preferences, caches and saved state. That configuration directory contains your custom Lua scripts and Spoons, so back it up before deep cleanup. Removing the app does not undo every external action performed by your scripts or delete accounts used by integrations.

Official references

At a glance

System
macOS 13 or later
Chip
Apple silicon · Intel
Auto-updates
Yes
Repository
Open source · MIT · Updated 13 days ago★16.5K
Developer
Hammerspoon contributors
Homebrew
Still offered by Homebrew; paused by OpenNavo
Also known as
hammerspoon
Homepage
www.hammerspoon.org
Token
hammerspoon

Checked

What’s new in 1.1.1

New · OpenNavo editorial

  • PackagingRemoves unintended resource forks from the downloadable archive.

How to install Hammerspoon on Mac

Homebrew installs the app in your Applications folder.

Install without Homebrew

Download the same file Homebrew uses: Install Details

Uninstall Hammerspoon and optional data cleanup

Uninstall command
brew uninstall --cask hammerspoon

A regular uninstall removes the app and keeps its settings and caches.

Deep clean (optional)
Uninstall command
brew uninstall --zap --cask hammerspoon

--zap also deletes the settings, caches and other files listed in the Homebrew definition. They can include data shared with other apps and cannot be restored, and it does not guarantee that nothing is left. Back up any data you need first. To keep settings and caches, leave out --zap.

Questions about Hammerspoon

Is Hammerspoon safe?

Hammerspoon is in Homebrew’s official catalog and has not been disabled. Since September 2026, Homebrew disables apps that fail macOS Gatekeeper checks. When installing, Homebrew checks the download from github.com against its SHA-256 checksum. It was installed 5,434 times through Homebrew in the last 30 days.

Is Hammerspoon open source?

Hammerspoon’s source code is public on GitHub (Hammerspoon/hammerspoon) under the MIT license.

How do I completely uninstall Hammerspoon on a Mac?

Run brew uninstall --cask hammerspoon. It quits the app. To delete its settings and caches as well, run brew uninstall --zap --cask hammerspoon. --zap also deletes the settings, caches and other files listed in the Homebrew definition. They can include data shared with other apps and cannot be restored, and it does not guarantee that nothing is left. Back up any data you need first. To keep settings and caches, leave out --zap. That also deletes 5 files and folders, including ~/.hammerspoon.

Does Hammerspoon run on Apple silicon (M1 and later) Macs?

Homebrew installs it on both Apple silicon and Intel Macs, from the same download. It needs macOS 13 or later.

Where does Hammerspoon store its settings and data?

Its settings are in ~/Library/Preferences/org.hammerspoon.Hammerspoon.plist. Its data is in ~/.hammerspoon. These locations come from Homebrew’s clean-up list.

What is the latest version of Hammerspoon?

The latest version is 1.1.1, added to Homebrew on Feb 26, 2026. Hammerspoon updates itself; to update it with Homebrew, run brew upgrade --cask --greedy hammerspoon.

What else does installing Hammerspoon add?

It also adds 1 command-line tool: hs.

Similar Apps

  • LinearMouseFree Mac mouse and trackpad utility for scrolling, pointer acceleration/speed, button actions and per-device or app profiles.
  • Karabiner-ElementsFree macOS keyboard customizer for simple remaps, conditional complex rules, device-specific mappings and input-event inspection.
  • AltTabMac window switcher with individual-window previews and configurable shortcuts; free core features with optional Pro tools.
  • AppCleanerMac uninstall utility that finds associated app files and lets you review what to remove.
Browse all apps