Skip to content

Hammerspoon vs Karabiner-Elements (2026): which should you pick?

As of Nov 18, 2026, Karabiner-Elements grades higher than Hammerspoon: 2.4 against 2.2 out of 4.0.

Checked Oct 5, 2026 and Oct 6, 2026 · graded Nov 18, 2026 by ToolGPA

Hammerspoon grades higher on features. Karabiner-Elements grades higher on ease of use. They get the same grade on value for money, the free plan and platforms.

Price, platforms and features side by side. The table says where each price was read and when.

Hammerspoon

Free, open-source macOS automation scripted in Lua

Free

Karabiner-Elements

Free, open-source keyboard customizer for macOS

Free

Which one is for you

Pick Hammerspoon if

  • Fits if you're comfortable writing Lua and want your Mac to behave your way
  • Works for people who want several apps' windows put into a saved layout from one shortcut

Look elsewhere if

  • Skip it if you don't want to write code, because nothing works until you've scripted it
  • Not for you if you're on Windows or Linux, as it's macOS only
  • Not for you if you'd rather nothing was collected by default, as crash information is until you turn it off
  • Tight if your Mac is older, since release 1.1.1 needs macOS 13.0 and earlier systems need an earlier release
  • Watch out: it depends on the Accessibility permission, which you grant by hand in the privacy settings

Pick Karabiner-Elements if

  • Fits if you want Caps Lock or other keys remapped on a Mac without paying
  • Works for PC and JIS keyboards plugged into a Mac whose keys aren't recognized

Look elsewhere if

  • Skip it if you're on Windows or Linux, as it's macOS only
  • Not for you if JSON puts you off, since anything past a simple key swap is a JSON rule
  • Not for you if you need to remap the fn key on a non-Apple keyboard, or the eject key on some, like the Apple Wired Keyboard
  • Tight if your Mac is older than macOS 13 Ventura, which leaves you on an older version from the download menu

How we grade them

2.2GPAHammerspoonFair2.4GPAKarabiner-ElementsFair
Value for money
AFree and open source under the MIT licence, a plain download, with every extension included. The developers don't even take donations, and suggest you give to a charity instead.
AFree and open source, downloaded and run with nothing to buy. If you want to give back there's GitHub Sponsors or a $10 PayPal payment, which the author calls effectively a donation.
Free plan and trial
AThe whole app is free, as a direct download or a Homebrew cask. There's no paid version to compare it with.
AThe complete app is free on Intel and Apple silicon Macs. No paid tier, no trial clock, no licence key.
Features
CWas B. Down to C because of one problem people report: moving a window to another Space has not worked since macOS 15.
DWas C. Down to D because of one problem people report: macOS updates and new Macs can switch off its driver, and every remap stops.
Ease of use
FWas D. Down to F because of three problems people report: one slow or stuck app can freeze every hotkey for seconds or minutes; version 1.1.1 crashes outright, several times a day for some on macOS 27; nothing works until you write it yourself in Lua.
CNo store rating on record, and there's a learning curve: one-to-one swaps are a couple of clicks in settings, but anything cleverer is a JSON rule you write or import from the community gallery.
Platforms and integrations
DMac only, one operating system, and release 1.1.1 needs macOS 13.0 or later. It can talk to AppleScript, Spotify, Messages, Stream Deck and Asana, and other apps can trigger it through hammerspoon:// URLs.
DMac only. The current release supports macOS 13 Ventura and later, and earlier systems need older versions. It handles PC and JIS keyboards plugged into a Mac, but no integrations are listed.
Best forscripting your Mac in Luaremapping a Mac keyboard for free

The GPA is the average of the five grades: an A is 4 points, an F is none. The full reasons are on each tool's page: Hammerspoon and Karabiner-Elements. How we grade

Price against what you get

Hammerspoon has no paid plan and scores 1.0 out of 4 on features, ease of use and platforms. Karabiner-Elements has no paid plan and scores 1.3.

Karabiner-Elements scores higher for the same starting price. Of the other desktop utilities on the chart, none scores higher than Hammerspoon for less, and none scores higher than Karabiner-Elements for less.

Features, ease of use and platforms, averaged

F0.0D1.0C2.0B3.0A4.0Free$0.5$1$2$5$10$20$50$100More for lessCosts more, scores moreCosts less, scores lessCosts more, scores lessHammerspoonKarabiner-Elements

What paid plans start at, a month (each step along is roughly double) →

  • The best score at each price
  • Has a free plan
  • No free plan
The full chart of desktop utilities, and the best at every price

Where they differ

  • Hammerspoon also covers workflow automation and window management.
  • Karabiner-Elements also covers menu bar app and keyboard and mouse remapping.
In commonFree planmacOSOpen source

At a glance

HammerspoonKarabiner-Elements
PricingFreeFree
Starts atFreeFree
Free planThe whole app is free and open source under the MIT license. The developers do not take donations and suggest giving to a charity instead.Free to use without any purchase. Funding is optional, through GitHub Sponsors or a $10 PayPal payment that the author describes as effectively a donation.
Free trialNone listedNone listed
macOS
Made byHammerspoon contributorspqrs.org (Takayama Fumihiko)
Price read fromgithub.comkarabiner-elements.pqrs.org
CheckedOct 6, 2026Oct 5, 2026

The worst thing about each

The worst thing about Hammerspoon

Updates have nearly stopped, and the next macOS can break your setup

Everything you build in Hammerspoon is your own Lua code, and it depends on a few volunteers keeping up with Apple. Nothing has been released since 26 Feb 2026, and macOS 27 users already report crashes and broken window lists with no reply. If an update breaks your setup you wait, or build a patched copy yourself. The lead maintainer's next version uses JavaScript, so moving to it means rewriting your scripts.

All 5 problems people report

The worst thing about Karabiner-Elements

A macOS update or a new Mac can leave you with no remapping at all

Karabiner depends on a driver and several macOS approvals. When an update, a migration or work security software upsets them, every remap stops, often with an alert that will not clear. People report losing from 45 minutes to a couple of days, with fixes from reinstall and reboot cycles to Safe Mode, and a macOS 27 report with seven users has had no reply from the maker in five weeks.

All 2 problems people report

Worth knowing

Hammerspoon

  • macOS only. Release 1.1.1 lists a minimum of macOS 13.0; older Macs need an earlier release.
  • Out of the box it does nothing: every behavior has to be written in Lua in ~/.hammerspoon/init.lua or added as a Spoon.
  • It depends on the macOS Accessibility permission, which the user has to grant by hand in the system's privacy settings.
  • Crash information is collected by default; the FAQ says this can be turned off in the preferences.

Karabiner-Elements

  • macOS only. The current release supports macOS 13 Ventura and later; earlier systems need older versions from the download menu.
  • Rules beyond simple key swaps are defined as JSON, either imported from the community gallery or written by hand.
  • It cannot modify the fn key on non-Apple keyboards, or the eject key on some keyboards such as the Apple Wired Keyboard.

Key features

Hammerspoon

Lua bridge to macOS
Extensions expose macOS APIs for applications, windows, screens, audio devices, batteries, clipboards, Wi-Fi, location and low-level keyboard and mouse events to Lua code.
Hotkeys
A keyboard shortcut can be bound to any Lua function, from showing a notification to running a series of window operations or an AppleScript.
Window movement and layouts
Scripts can move and resize the focused window, arrange several apps' windows into a saved layout across screens, and use window filters to act on groups of windows.
Event watchers
A configuration can react to application events, Wi-Fi network changes and USB devices, for example muting the volume when the Mac leaves the home network.
Spoons
Spoons are pre-made plugins, installed by double-clicking a .spoon file and loaded from the config. The official list includes an app launcher and a window switcher.
Menu bar items and URL triggers
Scripts can create menu bar items, draw on the screen and send iMessage or SMS messages, and other apps can trigger them through hammerspoon:// URLs.

Karabiner-Elements

Simple modifications
Change one key to another key from the settings window, with no rules to write.
Complex modifications
Rule-based changes: turn a key into a combination of modifiers, map a modifier plus key to another key, send a different event when a key is pressed alone, or act on keys pressed simultaneously.
Community rule gallery
Predefined rules such as Vi and Emacs key bindings, diamond cursor and mouse keys can be imported from the project's rule site, then edited or replaced with your own.
Per-device settings and profiles
Apply modifications only to chosen keyboards, keep multiple profiles, and switch between profiles from the menu bar icon.
Function and extra keys
Map f1 to f12 to media controls, and enable extra keys on PC keyboards that macOS does not recognize by default, such as international and language keys.
Works at secure prompts
Modifications keep working in Secure Keyboard Entry environments, such as password prompts and terminals with that option turned on.

Plans

Hammerspoon

  • Hammerspoon$0

    The complete app with every extension, as a direct download or a Homebrew cask. Open source under the MIT license.

Karabiner-Elements

  • Karabiner-Elements$0

    The complete app, open source and usable without any purchase. Supports Intel-based and Apple silicon Macs.

Common questions

Which is cheaper, Hammerspoon or Karabiner-Elements?

As of Oct 6, 2026, both Hammerspoon and Karabiner-Elements are free to use.

Which has a free plan, Hammerspoon or Karabiner-Elements?

As of Oct 6, 2026, both Hammerspoon and Karabiner-Elements have a free plan.

More comparisons

How this page was made

  • The verdict at the top follows a fixed rule. When both tools are in the same category and either is in our top three for it, the verdict follows that ranking: the higher-placed tool is our pick. The top three weigh who each tool suits as well as its grades, so a pick can go against the GPA. Otherwise the page does not pick one and says which grades higher: the higher GPA first; on a tie, the one with a free plan, then the one that starts cheaper in dollars a month, counted the same way for both; if they are still level, what the choice depends on.
  • The grades are our own, from each tool’s review or report card. The GPA is their average.
  • Prices, plans and platforms come from each tool’s listing. The table above says where each price was read and when.
  • The differences and the answers to the questions are worked out from those listings.
How we review and grade

For corrections, adding your listing and everything else, contact aditi@toolgpa.com or LinkedIn.