Hammerspoon
MacOS automation tool — bridge system functions to Lua scripting for custom keyboard shortcuts, window management, and event triggers.
| What is it | MacOS automation tool — bridge system functions to Lua scripting for custom keyboard shortcuts, window management, and event triggers. |
|---|---|
| Pricing | Unknown |
| Platform | Desktop Application |
| Best for | creating custom keyboard shortcuts, automating window layout management |
| Domain registered | 2014 |
Data updated Aug. 1, 2026
What does Hammerspoon do?
Hammerspoon is a macOS automation tool that acts as a bridge between the operating system and a Lua scripting engine. It provides direct access to macOS APIs for applications, windows, mouse pointers, filesystem objects, audio devices, batteries, screens, and low-level keyboard/mouse events. This allows users to create custom automation scripts that can interact with nearly every aspect of their Mac's functionality.
The tool works by exposing specific pieces of system functionality through extensions, which users can control with Lua scripts. Users create a configuration file that connects system events to actions—for example, binding keyboard shortcuts to window operations, running commands when wifi connects to specific networks, or displaying alerts when battery levels drop. The community contributes pre-made plugins called Spoons that extend Hammerspoon's capabilities without requiring users to write everything from scratch.
Hammerspoon is particularly valuable for Mac power users, developers, and system administrators who want to automate repetitive tasks or create custom workflows. It's ideal for creating personalized window management systems, automating application-specific shortcuts, or building complex event-driven automation based on location, network status, or hardware changes. Since it's open-source and extensible, advanced users can even contribute their own extensions to expose new areas of system functionality.
Key features
What makes it stand outWho is Hammerspoon for?
Who benefits most from this toolTrust & presence
Alternatives in Automation & Integration
AI-powered PSA platform for MSPs — manage tickets, contracts, and projects from one dashboard
Similar tools
Mac productivity suite with window management utilities, AI writing assistant, and desktop customization tools
Voice-first AI assistant for Mac — speak commands, and it types, clicks, and works across apps for you
Desktop app for Mac & Windows — select text, press a shortcut, get AI-powered edits instantly in any app.
Mac desktop app that brings AI commands to any application — select text, use hotkeys, and get AI help without switching windows
A macOS menu bar app that uses AI to transform, memorize, and recall any text you copy, with support for OpenAI, Gemini, Claude, and local models.
Records your repetitive browser tasks, detects patterns with AI, and exports automations to n8n, Zapier, and more.
A MacOS automation tool that lets you control AI actions and apps using your voice and custom triggers.
AI workflow automation platform that integrates with your existing apps to create seamless connections