Skip to main content

Free Alternative to Keyboard Maestro

Save $36 with these 1 free alternatives that work great on macOS.

Keyboard Maestro ($36)
FREE alternatives below

TL;DR

Looking for free alternatives to Keyboard Maestro? Here are the best open source and free options for Mac.

PublishedUpdated

What is the best free alternative to Keyboard Maestro?

The best free alternative to Keyboard Maestro ($36) is Hammerspoon. Install Hammerspoon with Homebrew: brew install --cask hammerspoon.

Our Top Pick

Hammerspoon icon

Hammerspoon

FREE

Powerful macOS automation tool using Lua scripting

brew install --cask hammerspoon

Why we recommend it:

  • Completely free to use
  • Easy one-command installation

Quick Comparison

Comparison of Keyboard Maestro and free alternatives
AppPriceOpen SourceCategory
Keyboard Maestro$36No—
HammerspoonFreeNoSystem Utilities

Best Free Alternative to Keyboard Maestro for Mac

Keyboard Maestro is a paid macOS automation suite that costs $36 one-time, and Hammerspoon is the best free alternative to Keyboard Maestro for users willing to write Lua, since it replaces the visual macro builder with an open-source scripting engine. At $36 for a perpetual license, it is significantly more affordable than subscription-based tools, yet many users still seek free alternatives, especially developers, students, and those who prefer open-source solutions. The free Mac automation landscape is still led by scriptable tools rather than visual builders. While no single free tool matches Keyboard Maestro's complete visual macro builder and extensive action library, Hammerspoon 1.1.1 (released February 2026) still lets you script windows, hotkeys, clipboard history, and system events through Lua for users comfortable with code. The fundamental trade-off is clear: Hammerspoon requires writing Lua scripts in `~/.hammerspoon/init.lua` rather than clicking through visual actions, but it gives you deeper system integration and infinite customization possibilities. For users migrating from Keyboard Maestro, expect a learning curve as you translate visual macros into code, but the payoff is a lightweight, free automation engine that runs natively on Apple Silicon and consumes minimal resources.

Detailed Alternative Reviews

Hammerspoon icon

Hammerspoon

Hammerspoon replaces Keyboard Maestro's visual macro builder with free Lua scripting

brew install --cask hammerspoon

Hammerspoon is a free, open-source automation framework that bridges macOS system APIs with the Lua scripting language. Unlike Keyboard Maestro's visual action builder, Hammerspoon requires writing Lua code in `~/.hammerspoon/init.lua` to define automations. I re-tested Hammerspoon 1.1.1 on an M2 MacBook Pro running macOS Tahoe and found it capable: you can manipulate windows, monitor battery levels, react to WiFi network changes, intercept keyboard shortcuts, manage clipboard history, and even trigger actions based on location. The project includes pre-made plugins called 'Spoons' that provide drop-in functionality for common tasks. However, Hammerspoon is fundamentally different from Keyboard Maestro. There is no friendly GUI for building macros; you write code or you do not automate. Debugging requires reading logs and understanding Lua. Features like the 'Prompt for Snippet' action in Keyboard Maestro require writing custom dialog code in Hammerspoon. The clipboard history and text expansion capabilities exist but need manual configuration. For developers and technical users, this is liberating. For non-coders, it is a brick wall. Hammerspoon cannot replace Keyboard Maestro for users who depend on its visual macro recorder, pre-built action library, or extensive text expansion features without significant coding investment.

Key Features:

  • Full Lua scripting access to macOS APIs for unlimited customization
  • Control windows, applications, mouse, audio, battery, screens, and WiFi
  • Pre-made 'Spoons' plugins for common automation patterns
  • Low-level keyboard and mouse event interception and remapping
  • Clipboard manipulation and multi-item clipboard history
  • Location services integration for location-based triggers
  • Native Apple Silicon support with minimal resource footprint
  • Active Discord community and extensive API documentation

Limitations:

  • • Requires Lua programming knowledge, no visual macro builder
  • • No built-in text expansion snippets; must write code for each expansion
  • • Debugging can be difficult with cryptic error messages
  • • No GUI for macro management or trigger configuration

Best for: Developers, programmers, and technical users comfortable with scripting who want unlimited customization and free, lightweight automation without visual tools

Which Alternative is Right for You?

Visual Macro Building Without Code

Use Keyboard Maestro ($36) for its unmatched visual action builder. The drag-and-drop interface for creating macros is far superior to writing Lua in Hammerspoon. If you need to record a repetitive task or build complex branching logic without programming, Keyboard Maestro is worth the cost.

Developer Workflow Automation

Hammerspoon excels for developers who already think in code. Bind keyboard shortcuts to window layouts, auto-arrange IDE windows when opening projects, or trigger shell scripts based on WiFi network changes. The Lua scripting approach integrates naturally with a developer's existing mindset and version control workflows.

Text Expansion and Snippet Management

Keyboard Maestro handles this natively with a visual snippet editor. With Hammerspoon, you must write Lua functions for each expansion. For heavy text expansion users, Keyboard Maestro justifies its price immediately. Consider dedicated free alternatives like Espanso or aText for text expansion if staying with Hammerspoon.

Advanced Window Management

Both tools handle this well. Keyboard Maestro offers visual actions for moving and resizing windows. Hammerspoon provides more granular control through its window API but requires writing Lua functions. Users comfortable with Rectangle or Magnet-style window snapping can replicate similar behavior in Hammerspoon with custom scripts, though check maintenance status first: Rectangle shipped version 2.0.4 in October 2026, while Magnet has had no release since 3.0.7 in April 2025 and is now abandoned.

Clipboard History and Management

Keyboard Maestro includes a full clipboard history manager out of the box. Hammerspoon can build clipboard history functionality through its API, but you write the implementation yourself. For immediate, solid clipboard management, Keyboard Maestro wins. For a free alternative, consider standalone clipboard managers like Maccy alongside Hammerspoon; the maccy.app download of Maccy 2.8.0 (released 26 October 2026) is free, while the same version on the US Mac App Store is a one-time $9.99 purchase.

Migration Tips

Translating Keyboard Maestro Macros to Lua

When moving from Keyboard Maestro to Hammerspoon, document your existing macros first. Each visual action in Keyboard Maestro must be translated to Lua code. Simple actions like 'Open Application' become `hs.application.launchOrFocus('AppName')`. Window movements use `hs.window.focusedWindow():moveToUnit(hs.layout.left50)`. The Hammerspoon API documentation and 'Spoons' repository provide templates for common patterns.

Starting with Pre-Made Spoons

Do not build everything from scratch. Hammerspoon's 'Spoons' ecosystem provides pre-built plugins for window management, clipboard history, caffeine mode, and more. Install the Spoons repository and use these as starting points. Many popular Keyboard Maestro workflows have equivalent Spoons that require only configuration, not coding from scratch.

Using Hammerspoon's Console for Debugging

The Hammerspoon console (accessed from the menu bar) is your best friend during migration. Use `hs.alert.show('Debug message')` to display status notifications, and check the console for Lua errors. Unlike Keyboard Maestro's visual debugger, Hammerspoon requires reading error logs. Enable 'Show console on reload' in preferences to catch syntax errors immediately.

Combining Hammerspoon with Other Free Tools

Hammerspoon does not need to replace every Keyboard Maestro feature alone. Use dedicated free tools alongside it: Maccy for clipboard history, Espanso for text expansion, Rectangle for window snapping. Hammerspoon excels at glue work. triggering these tools, reacting to system events, and coordinating between applications.

Version Control Your Configuration

Unlike Keyboard Maestro's binary macro files, Hammerspoon uses plain text Lua. Create a `~/.hammerspoon` git repository to version your automation scripts. This enables rollback when changes break, sharing configurations between Macs, and collaboration. Back up your Keyboard Maestro macros before canceling by exporting them as reference while rebuilding in code.

Quick comparison

FeatureKeyboard MaestroHammerspoon
Price$36 one-timeFree
InterfaceVisual action builderLua code editor
Macro RecordingBuilt-in recorderManual scripting only
Text ExpansionNative with snippetsRequires code
Window ManagementVisual actionsFull API control
Learning CurveModerateSteep (requires Lua)
CustomizationHighUnlimited
Apple SiliconNativeNative

The verdict

Top pick

Hammerspoon

Hammerspoon suits developers and anyone comfortable writing Lua who wants keyboard, window, clipboard, and system-event automation at no cost, and those users give up the visual macro builder, macro recorder, and snippet editor that Keyboard Maestro sells for $36 one-time. Hammerspoon runs natively on Apple Silicon, uses minimal resources, and has an active community.

Full review
Runner-up

n/a

No other free alternatives match Hammerspoon's depth. Users unable to code should strongly consider purchasing Keyboard Maestro at $36 rather than struggling with inadequate free options or juggling multiple single-purpose tools.

Bottom line

For users seeking a free Keyboard Maestro alternative as of November 2026, Hammerspoon is the clear answer, but with significant caveats. Hammerspoon delivers deep system control through Lua scripting but demands technical proficiency. Non-coders will find it inaccessible and should purchase Keyboard Maestro instead. Technical users gain a lightweight automation engine in Hammerspoon that runs natively on Apple Silicon. If you can write code, Hammerspoon replaces Keyboard Maestro effectively. If you need visual tools, the $36 one-time Keyboard Maestro license buys back the time learning Lua would cost you.

Frequently Asked Questions

Is there a free version of Keyboard Maestro
No, Keyboard Maestro does not offer a free tier, only a free trial. After the trial period, you must purchase a US$36 license for version 11. The free trial is fully functional but time-limited. There is no 'Keyboard Maestro Free' or community edition. Users seeking permanent free alternatives must look at open-source tools like Hammerspoon, which offers unlimited automation capabilities at no cost but requires Lua scripting knowledge.
Can Hammerspoon truly replace Keyboard Maestro
Hammerspoon can replicate many Keyboard Maestro capabilities but not all, and not easily. For users comfortable with Lua programming, Hammerspoon provides equivalent or greater system access for window management, keyboard shortcuts, and application control. However, it lacks Keyboard Maestro's visual macro recorder, extensive pre-built action library, and built-in snippet-based text expansion. Non-technical users will find Hammerspoon cannot replace Keyboard Maestro's ease of use. Technical users gain more power but must invest significant time writing and debugging code.
What is the best free alternative to Keyboard Maestro
Hammerspoon is the best free alternative if you can code, and its reach is set by the Lua scripting you write. Hammerspoon installs free with brew install --cask hammerspoon and keeps resource use low on Apple Silicon Macs. However, it requires coding. For users needing visual automation without programming, no free tool matches Keyboard Maestro's visual macro builder. Consider combining multiple free tools: Hammerspoon for scripting, Espanso for text expansion, Rectangle for window management, and Maccy for clipboard history to approximate Keyboard Maestro's feature set.
How do I migrate Keyboard Maestro macros to Hammerspoon
Migration requires manual translation from visual actions to Lua code. Document your existing macros in Keyboard Maestro first, noting each action and trigger. Then rebuild them in ~/.hammerspoon/init.lua using Hammerspoon's APIs. Simple triggers like hotkeys map to hs.hotkey.bind(). Application launching uses hs.application.launchOrFocus(). Complex macros with conditions or loops require more Lua knowledge. There is no automatic converter. expect to spend time learning Lua and the Hammerspoon API during migration.
Does Hammerspoon work on Apple Silicon Macs
Yes, Hammerspoon runs natively on Apple Silicon (M1 through M4) Macs as of November 2026. The project maintains active development and provides universal binaries; the current 1.1.1 release requires macOS 13.0 or later. Performance is excellent on modern Macs, with minimal CPU and memory usage compared to heavier automation suites. Install via Homebrew (brew install --cask hammerspoon) to get the latest Apple Silicon-native build automatically.
Is Keyboard Maestro worth the $36 price
For users who rely heavily on automation but do not code, Keyboard Maestro is absolutely worth $36. The visual macro builder, extensive action library, clipboard history, and text expansion features save hours of repetitive work. The one-time purchase model (not a subscription) means you own version 11 indefinitely. If you use macros daily, the productivity gains pay for the license within weeks. Only consider free alternatives if you are technical enough to script, or your automation needs are minimal.
Can I use Hammerspoon for text expansion like Keyboard Maestro
Yes, but it requires writing Lua code for each snippet. Hammerspoon can monitor keystrokes and replace trigger text with expanded content using hs.eventtap. However, there is no visual snippet editor or management interface. You define expansions in code, which becomes unwieldy for large snippet libraries. Users with extensive text expansion needs should consider dedicated free alternatives like Espanso alongside Hammerspoon, rather than building a full snippet system from scratch in Lua.
What programming language does Hammerspoon use
Hammerspoon uses Lua, a lightweight, embeddable scripting language designed for configuration and extension. Lua syntax is relatively simple compared to languages like Python or JavaScript, making it accessible for beginners and still capable of complex automation. You write configuration in ~/.hammerspoon/init.lua. The Hammerspoon documentation assumes basic programming knowledge; you should understand variables, functions, and conditionals before diving in.
How does Hammerspoon compare to macOS Automator
Hammerspoon goes further than Automator through Lua scripting, but it requires coding. Automator provides a visual workflow builder similar to Keyboard Maestro but with far fewer actions and capabilities. Apple has deprecated Automator, suggesting Shortcuts as a replacement, though Shortcuts lacks Mac-specific depth. Hammerspoon fills this gap with deeper system access, but you pay for that power with complexity. For simple workflows, Automator or Shortcuts may suffice. For serious automation, choose between Keyboard Maestro's ease of use or Hammerspoon's scripting depth.
Where can I get help learning Hammerspoon
Start with the official 'Getting Started Guide' at hammerspoon.org/go/. The full API documentation at hammerspoon.org/docs/ covers every available function. The Hammerspoon Discord server provides real-time community support. GitHub issues track bugs and feature requests. For inspiration, browse the Spoons repository to see pre-built configurations. Reddit communities like r/macapps and r/hammerspoon share user configurations and tips. Unlike Keyboard Maestro's commercial support, Hammerspoon relies entirely on community resources.
Are Maccy and Rectangle still actively maintained
Yes, both shipped updates in October 2026. Maccy 2.8.0, released on 26 October 2026, added VoiceOver accessibility, drag-and-drop reordering of pinned items, editing of pinned items in the preview, improved OCR language detection, and a fix for a hang on macOS 26. Rectangle 2.0.4, published on 20 October 2026, added mouse-button shortcuts for window actions, an option to snap before reaching outer screen edges, and full-height vertical sixth window actions. Both require macOS 14 or later, and the free builds of each keep the Hammerspoon companion stack current.
What is the latest version of Keyboard Maestro
The current release is Keyboard Maestro 11.1.1, still sold by Stairways Software as a one-time US$36 license for version 11 with a US$25 upgrade from earlier major versions; purchases since 1 March 2023 receive a free upgrade to version 11. The official wiki lists 11.1.1 fixes for the Application Switcher option/control-Tab on macOS Tahoe and later and a spelling correction of Asynchronously, without publishing a release date. Keyboard Maestro runs on macOS 10.13 or later, a lower floor than Hammerspoon's macOS 13.0 minimum.
Is Magnet still maintained for window snapping?
No, Magnet is abandoned. Magnet 3.0.7, released in April 2025, is its last version, and it sells on the US Mac App Store as a one-time $4.99 purchase. For window snapping alongside Hammerspoon or Keyboard Maestro, Rectangle 2.0.4, published on 20 October 2026, still ships updates.
Is Maccy free on the Mac App Store?
No, the US Mac App Store lists Maccy 2.8.0 at a one-time $9.99, while the maccy.app download of the same version is free. Maccy requires macOS 14 or later, and the 26 October 2026 release added VoiceOver accessibility and drag-and-drop reordering of pinned items. Maccy covers the clipboard-history task that Keyboard Maestro builds in, so it pairs with Hammerspoon instead of replacing it.

Related Technologies & Concepts

Keyboard MaestroHammerspoonLuamacOS AutomationMacro RecordingText ExpansionWindow ManagementApple SiliconSpoons
Keyboard Maestro (Paid application being replaced), Hammerspoon (Primary free alternative), Lua (Scripting language used by Hammerspoon), macOS Automation (Task category), Macro Recording (Primary use case), Text Expansion (Secondary use case), Window Management (Core workflow technique), Apple Silicon (Hardware platform compatibility), Spoons (Plugin ecosystem for Hammerspoon)

Sources & References

  1. 1
    keyboardmaestro.comKeyboard Maestro Official Site

    Accessed Aug 9, 2026

    Source excerpt
    Keyboard Maestro 11 is a one-time US$36 purchase; upgrades from prior versions are US$25.
  2. 2
    purchase.keyboardmaestro.comKeyboard Maestro Purchase

    Accessed Aug 9, 2026

    Source excerpt
    Official purchase page for new Keyboard Maestro licenses.
  3. 3
    hammerspoon.orgHammerspoon Official Site

    Accessed Aug 9, 2026

    Source excerpt
    Hammerspoon is free open-source macOS automation via Lua scripting.
  4. 4
    hammerspoon.orgHammerspoon Release Notes

    Accessed Nov 16, 2026

    Source excerpt
    Hammerspoon 1.1.1 shipped 26 February 2026; minimum macOS 13.0.
  5. 5
    github.comHammerspoon GitHub

    Accessed Aug 9, 2026

    Source excerpt
    Active open-source repository for Hammerspoon desktop automation.
  6. 6
    formulae.brew.shHomebrew Cask: Hammerspoon

    Accessed Aug 9, 2026

    Source excerpt
    Install via brew install --cask hammerspoon.
  7. 7
    hammerspoon.orgHammerspoon API Docs

    Accessed Aug 9, 2026

    Source excerpt
    Full API documentation for windows, hotkeys, clipboard, and system events.
  8. 8
    espanso.orgEspanso Text Expander

    Accessed Aug 9, 2026

    Source excerpt
    Free open-source text expansion often paired with Hammerspoon.
  9. 9
    wiki.keyboardmaestro.comKeyboard Maestro What's New

    Accessed Nov 16, 2026

  10. 10
    keyboardmaestro.comKeyboard Maestro

    Accessed Nov 16, 2026

  11. 11
    stairways.comStairways Software: History

    Accessed Nov 16, 2026

  12. 12
    maccy.appMaccy homepage

    Accessed Nov 16, 2026

  13. 13
    github.comMaccy 2.8.0 release

    Accessed Nov 16, 2026

  14. 14
    itunes.apple.comUS App Store lookup, Maccy

    Accessed Nov 16, 2026

  15. 15
    rectangleapp.comRectangle homepage

    Accessed Nov 16, 2026

  16. 16
    api.github.comRectangle latest GitHub release

    Accessed Nov 16, 2026

  17. 17
    itunes.apple.comUS App Store lookup, Magnet

    Accessed Nov 16, 2026

Compare These Apps

Explore More on Bundl

Browse System Utilities apps or discover curated bundles.

About the Author

Jordan Kim

Productivity & Workflow Analyst

Productivity ApplicationsNote-Taking & Knowledge ManagementTask & Project Management

Jordan Kim focuses on productivity software, system utilities, and workflow optimization tools. With a background in operations management and process improvement, Jordan evaluates how well applications integrate into daily workflows and enhance overall productivity.

8+ years in operations management · PMP certified