# Hammerspoon

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

> This is the Markdown version of the Hammerspoon page on OpenNavo, with the same facts as the web page: <https://opennavo.com/apps/hammerspoon>

- **Latest version**: `1.1.1`
- **Developer**: Hammerspoon contributors
- **Homepage**: <https://www.hammerspoon.org/>
- **Categories**: [Utilities](https://opennavo.com/categories/utilities)
- **Install**: `brew install --cask hammerspoon`
- **30-day installs**: 5,434
- **Homebrew**: Still offered by Homebrew; paused by OpenNavo
- **Download URL**: <https://github.com/Hammerspoon/hammerspoon/releases/download/1.1.1/Hammerspoon-1.1.1.zip>
- **SHA-256**: `11bb1c90faf5427f37c7bd4fe7eab9774ae43e1d5cb020c5b3088dac32849efa`
- **Commands**: hs

SHA-256 only checks that the download is complete; it is not a security certification.

## Installation and removal contents

```json
[
  {
    "declaration": {
      "uninstall": [
        {
          "quit": "org.hammerspoon.Hammerspoon"
        }
      ]
    },
    "phase": "uninstall",
    "sources": [],
    "type": "uninstall"
  },
  {
    "declaration": {
      "app": [
        "Hammerspoon.app"
      ],
      "target": "/Applications/Hammerspoon.app"
    },
    "phase": "install",
    "sources": [
      "Hammerspoon.app"
    ],
    "target": "/Applications/Hammerspoon.app",
    "type": "app"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/Hammerspoon.app/Contents/Frameworks/hs/hs"
      ],
      "target": "$HOMEBREW_PREFIX/bin/hs"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/Hammerspoon.app/Contents/Frameworks/hs/hs"
    ],
    "target": "$HOMEBREW_PREFIX/bin/hs",
    "type": "binary"
  },
  {
    "declaration": {
      "zap": [
        {
          "trash": [
            "~/.hammerspoon",
            "~/Library/Application Support/com.crashlytics/org.hammerspoon.Hammerspoon",
            "~/Library/Caches/org.hammerspoon.Hammerspoon",
            "~/Library/Preferences/org.hammerspoon.Hammerspoon.plist",
            "~/Library/Saved Application State/org.hammerspoon.Hammerspoon.savedState"
          ]
        }
      ]
    },
    "phase": "cleanup",
    "sources": [],
    "type": "zap"
  }
]
```

## 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
- Product: https://www.hammerspoon.org/
- Getting Started: https://www.hammerspoon.org/go/
- API documentation: https://www.hammerspoon.org/docs/
- FAQ and privacy: https://www.hammerspoon.org/faq/ and https://www.hammerspoon.org/privacy.html
- Source, MIT license and releases: https://github.com/Hammerspoon/hammerspoon
- Official Spoon repository: https://github.com/Hammerspoon/Spoons

## System requirements

- macOS 13 or later · Version: 1.1.1 · Intel · <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/h/hammerspoon.rb> · Checked 2026-12-06
  - <https://github.com/Hammerspoon/hammerspoon/releases/download/1.1.1/Hammerspoon-1.1.1.zip>
  - SHA-256: `11bb1c90faf5427f37c7bd4fe7eab9774ae43e1d5cb020c5b3088dac32849efa`
- macOS 13 or later · Version: 1.1.1 · Apple silicon · <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/h/hammerspoon.rb> · Checked 2026-12-06
  - <https://github.com/Hammerspoon/hammerspoon/releases/download/1.1.1/Hammerspoon-1.1.1.zip>
  - SHA-256: `11bb1c90faf5427f37c7bd4fe7eab9774ae43e1d5cb020c5b3088dac32849efa`

## Hammerspoon security facts

Only facts that can be checked, each with its source and date. This is not a safety certification. To check the files you downloaded, scan them on your Mac with OpenNavo.

- <https://github.com/Hammerspoon/hammerspoon> · Open source: Yes — <https://github.com/Hammerspoon/hammerspoon> · Checked 2026-11-14

## Uninstall

- `brew uninstall --cask hammerspoon`

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

### Deep clean (optional)

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

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

- Files and folders: `~/.hammerspoon` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/h/hammerspoon.rb> · These entries come from the Homebrew definition, checked 2026-12-06. They say what it declares, not what is on your Mac.
- Files and folders: `~/Library/Application Support/com.crashlytics/org.hammerspoon.Hammerspoon` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/h/hammerspoon.rb> · These entries come from the Homebrew definition, checked 2026-12-06. They say what it declares, not what is on your Mac.
- Files and folders: `~/Library/Caches/org.hammerspoon.Hammerspoon` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/h/hammerspoon.rb> · These entries come from the Homebrew definition, checked 2026-12-06. They say what it declares, not what is on your Mac.
- Files and folders: `~/Library/Preferences/org.hammerspoon.Hammerspoon.plist` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/h/hammerspoon.rb> · These entries come from the Homebrew definition, checked 2026-12-06. They say what it declares, not what is on your Mac.
- Files and folders: `~/Library/Saved Application State/org.hammerspoon.Hammerspoon.savedState` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/h/hammerspoon.rb> · These entries come from the Homebrew definition, checked 2026-12-06. They say what it declares, not what is on your Mac.

## Latest release notes

### 1.1.1 (2026-10-07)

Corrects the release archive so unexpected resource forks no longer interfere with macOS Gatekeeper; requires macOS13+.

**Packaging**

- Removes unintended resource forks from the downloadable archive.
- Prevents archive metadata from confusing macOS Gatekeeper.
- Official release lists macOS13.0 as the minimum.

## Facts and sources

- <https://opennavo.com/apps/hammerspoon>
- <https://opennavo.com/apps/hammerspoon/versions>
- <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/h/hammerspoon.rb> · Checked 2026-12-06
- <https://formulae.brew.sh/cask/hammerspoon>
- <https://github.com/Hammerspoon/hammerspoon> · Checked 2026-11-14
