# Hammerspoon for Mac

> Script your Mac with Lua.

Hammerspoon bridges macOS APIs to Lua, so you can script windows, hotkeys, Wi-Fi events, USB devices and more.

## Facts

- Price: Free and open source
- Developer: Hammerspoon
- Category: AI & Automation
- Website: https://www.hammerspoon.org/
- Homebrew cask: hammerspoon
- Source code: https://github.com/Hammerspoon/hammerspoon
- License: MIT
- GitHub stars: 16k
- Last commit: 2026-07-08
- Facts checked: 2026-10-19
- MacWorthy page: https://macworthy.com/apps/hammerspoon/

## Install

Homebrew:

```sh
brew install --cask hammerspoon
```

## Questions

### Is Hammerspoon free?

Yes. Hammerspoon is free and open source under the MIT license. The source code is on GitHub at Hammerspoon/hammerspoon.

### Where can I download Hammerspoon for Mac?

Download Hammerspoon from the developer's website (hammerspoon.org) and GitHub. MacWorthy links only to official sources.

### Can I install Hammerspoon from the Terminal?

Yes. With Homebrew, run `brew install --cask hammerspoon`.

### What are good alternatives to Hammerspoon?

Other ai & automation apps for Mac worth a look are Keyboard Maestro (one-time purchase), Osaurus (open source), Enconvo (free + pro) and ChatGPT (free + pro).

## Alternatives in AI & Automation

- [Keyboard Maestro](https://macworthy.com/apps/keyboard-maestro/): Automate anything you can do with a Mac. (One-time purchase)
- [Osaurus](https://macworthy.com/apps/osaurus/): A local home for AI agents, written in Swift. (Open source)
- [Enconvo](https://macworthy.com/apps/enconvo/): An AI agent launcher that works across your whole Mac. (Free + Pro)
- [ChatGPT](https://macworthy.com/apps/chatgpt/): OpenAI's assistant, a shortcut away. (Free + Pro)
- [BoltAI](https://macworthy.com/apps/boltai/): Every AI model, in one native app. (One-time purchase)
- [Elephas](https://macworthy.com/apps/elephas/): A personal AI writer and knowledge assistant. (Subscription)
- [SkillKeeper](https://macworthy.com/apps/skillkeeper/): A menu bar ledger of what Claude Code spends tokens on. (Free + Pro)

Tags: automation, lua, open source
