Hammerspoon

MacOS automation tool — bridge system functions to Lua scripting for custom keyboard shortcuts, window management, and event triggers.

Visit Website
hammerspoon.org
Verified
Quick facts
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.

#keyboard shortcuts#macos-automation#open source#window management

Key features

What makes it stand out
01
Lua scripting engine for custom automation workflows
02
Access to macOS APIs for applications, windows, filesystem, and hardware
03
Event-driven automation based on wifi, battery, location, and more
04
Pre-made plugins called Spoons for extended functionality
05
Low-level keyboard and mouse event control

Who is Hammerspoon for?

Who benefits most from this tool
creating custom keyboard shortcuts
automating window layout management
triggering actions based on system events

Trust & presence

Domain Domain registered 2014

Alternatives in Automation & Integration

Datto Verified Automation & Integration

AI-powered PSA platform for MSPs — manage tickets, contracts, and projects from one dashboard

Top 10k site

Similar tools

MacPlus Software Verified Productivity Tools

Mac productivity suite with window management utilities, AI writing assistant, and desktop customization tools

Phantom Verified Assistant

Voice-first AI assistant for Mac — speak commands, and it types, clicks, and works across apps for you

ClipboardAI Verified Rewriter

Desktop app for Mac & Windows — select text, press a shortcut, get AI-powered edits instantly in any app.

Atua Verified Assistant

Mac desktop app that brings AI commands to any application — select text, use hotkeys, and get AI help without switching windows

Ethertext Verified Rewriter

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.

Spion Verified Automation

Records your repetitive browser tasks, detects patterns with AI, and exports automations to n8n, Zapier, and more.

Inbox AI Verified Automation

A MacOS automation tool that lets you control AI actions and apps using your voice and custom triggers.

thinkstack.AI Verified Automation

AI workflow automation platform that integrates with your existing apps to create seamless connections

Share X LinkedIn Telegram
Hammerspoon Visit