Hammerspoon

Script your Mac: powerful desktop automation in JavaScript

Visit website

Overview

macOS can do almost anything — as long as you click through it by hand, every time.

Hammerspoon hands your Mac a script instead. It bridges the operating system to a JavaScript engine, so the repetitive parts of your desktop run themselves.

What you can script

  • Windows and hotkeys — arrange your workspace and trigger it from the keyboard
  • Screens and audio — control displays and sound without the mouse
  • Radios and alerts — Bluetooth, Wi-Fi and notifications, all reachable from code

The current version

Version 2 moves configuration to JavaScript and requires macOS 27 or later. Hammerspoon is a long-running automation tool, still evolving.

Who it's for

Mac users who would rather write a few lines of JavaScript than repeat the same clicks all day.

  • Git worktree management for parallel AI agent workflows

    Workflow Automation
  • A self-hosted web command center for OpenCode

    Workflow Automation
  • A lightweight automation hub that dispatches events to CLI agents

    Workflow Automation