Skip to main content

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.

Free Alternative to Keyboard Maestro

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

Keyboard Maestro ($36)
FREE alternatives below

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 the gold standard for macOS automation, offering hundreds of built-in actions for macro creation, text expansion, window management, and application scripting. 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. As of August 2026, 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 delivers staggering power through Lua scripting 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 unlocks 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

Staggeringly powerful macOS automation through 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 remarkably 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 truly 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.

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.

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

The only truly free, actively maintained automation tool with unlimited customization potential. Native Apple Silicon support, minimal resource usage, and a active community make it the definitive Keyboard Maestro alternative for technical users willing to write Lua scripts.

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 in 2026, Hammerspoon is the clear answer. but with significant caveats. It delivers staggering power through Lua scripting but demands technical proficiency. Non-coders will find it inaccessible and should purchase Keyboard Maestro instead. Technical users gain a lightweight, infinitely customizable automation engine that runs natively on Apple Silicon. If you can write code, Hammerspoon replaces Keyboard Maestro effectively. If you need visual tools, the $36 investment in Keyboard Maestro remains the best value in Mac automation.

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 intuitive 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 most powerful free alternative, offering unlimited automation potential through Lua scripting. It runs natively on Apple Silicon, has minimal resource overhead, and an active community. However, it requires coding. For users needing visual automation without programming, there is no perfect free replacement. 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 August 2026. The project maintains active development and provides universal binaries. 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 while powerful enough for 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 is far more powerful than Automator but 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 unlimited scripting potential.
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.

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 Aug 9, 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.

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