Guide
AutoHotkey for Mac: What to Use Instead
Updated

There’s no AutoHotkey for Mac. AutoHotkey is a Windows scripting language, and it has never had a macOS version. You can run it inside a Windows virtual machine on a Mac, such as Parallels Desktop or VMware Fusion. Your scripts then act on the Windows apps in that machine and can’t touch macOS.
What replaces it depends on what you used it for. AutoHotkey does several jobs: remapping keys, expanding text, firing hotkeys, running macros and scripting whole workflows. On a Mac, each of those has its own tool, and most of them are free.
AutoHotkey’s jobs, and the Mac tool for each
Prices are the vendors’ own, checked October 2026.
| What you did in AutoHotkey | AutoHotkey example | Mac tool | Price |
|---|---|---|---|
| Remap a key | CapsLock::Esc |
Karabiner-Elements; System Settings → Keyboard → Keyboard Shortcuts → Modifier Keys for modifier keys only | Free |
| Hotstrings (text expansion) | ::btw::by the way |
Espanso; Text Replacements (built in); Keyboard Maestro typed-string triggers | Free |
| Hotkeys that open or run things | #n::Run "notepad" |
Raycast hotkeys, the Shortcuts app (one at a time), Super Shortcuts | Free tiers |
| Different hotkeys per app | #HotIf WinActive(...) |
Super Shortcuts (per app and per website), Keyboard Maestro macro groups | Free tier / $36 |
| Macros: send keys, click, wait, repeat | Send, Click, Sleep, Loop |
Keyboard Maestro; Super Shortcuts for simpler ones | $36 one-time / free tier |
| Scripts with logic, files and windows | functions, if, WinMove |
Hammerspoon (JavaScript or Lua) | Free |
| Mouse buttons and gestures | XButton1:: |
BetterTouchTool | $15 / $25 |
| Snapping windows | WinMove |
Rectangle, or the window tiling built into macOS 15 Sequoia | Free |
The closest single replacements
If you want one app rather than a set, two come closest, from opposite directions:
- Keyboard Maestro is the nearest to AutoHotkey’s breadth. It has hot key triggers, typed-string triggers, conditions and loops. It can also type, click and pick menu items in any app. It’s a one-time $36. You build macros from a list of actions in a window, without writing code. Expect a learning curve: it’s a workbench.
- Hammerspoon is the nearest in spirit. You write scripts and bind them to hotkeys, with access to windows, apps, the keyboard and the file system. It’s free and open source. Hammerspoon 2 switches to JavaScript, but it’s a beta for macOS 27 only. The Lua version is no longer maintained. Like a folder of .ahk files, your setup is plain text you can keep in version control.
For the two most common single jobs, there’s a free specialist:
- Hotstrings: Espanso is the closest match. It uses plain-text config, triggers like
:btwand variables for dates and the clipboard. It runs on Windows and Linux too, so one config can follow you across machines. - Remaps: Karabiner-Elements changes what any key does, below the app layer. It’s also how most people turn Caps Lock into a modifier combo. Our Super key guide covers that remap.
The Mac automation apps compared guide covers each category, what each tool costs and how they collide when you run several.
Translating AutoHotkey habits to a Mac
A few things trip up most people who switch:
- Ctrl mostly becomes ⌘. AutoHotkey’s
^is Ctrl, and on Windows Ctrl does copy, paste and save. On a Mac those are ⌘ Command: ⌘C, ⌘V, ⌘S. A hotkey you wrote as^+nusually wants to be ⇧⌘N. The Mac keyboard symbols chart decodes the rest. !(Alt) is ⌥ Option,+is ⇧ Shift, and#(the Windows key) has no direct counterpart for shortcuts.- Permissions come first. Any Mac tool that reads keys or acts on other apps needs Accessibility (and sometimes Input Monitoring) in System Settings → Privacy & Security. Nothing works until you grant it, and the tool should ask.
- There’s no converter. Your .ahk files don’t import anywhere, so rebuild the handful you use. It’s usually fewer than you think.
Where Super Shortcuts fits
Super Shortcuts is our app. It covers the hotkey job and the simpler macros. It’s built around what #HotIf did: one key that does different things in different apps.
You pick a Super key (we recommend Caps Lock) and hold it. Every other key then runs a shortcut you made. A shortcut can open an app or a website, press keys, type or paste text, pick a menu item, or run a shell script or AppleScript. You can put waits and If / Repeat steps between those actions. You decide which app or website each shortcut works in. For example, Super key + R can reply in Mail and make text red in Google Docs. There’s no script to write. Holding the key shows the Shortcut Keyboard, so you can see what’s bound instead of remembering it.
What it doesn’t do: abbreviation-triggered text expansion (use Espanso or Text Replacements), raw key remapping below the app layer (Karabiner-Elements) or a full scripting API (Hammerspoon). The free tier covers up to 10 shortcuts.
Frequently asked questions
Is there an AutoHotkey for Mac?
No. AutoHotkey is a Windows scripting language, and there is no macOS version. On a Mac, separate tools cover its jobs: Karabiner-Elements for key remaps, Espanso or the built-in Text Replacements for hotstrings, and Keyboard Maestro or Hammerspoon for macros and scripts. For launching things, use a hotkey tool such as Raycast or Super Shortcuts.
What's the best free AutoHotkey alternative for Mac?
A free combination covers most of it: Karabiner-Elements for remapping keys and Espanso for hotstrings. Add Hammerspoon if you want to write scripts the way you wrote .ahk files. All three are open source.
Can I run my .ahk scripts on a Mac?
Only inside Windows software: a Windows virtual machine (Parallels Desktop or VMware Fusion), or CrossOver, which runs it with limited support. Either way, AutoHotkey works on the Windows apps in there, but it can't see or control your Mac apps. There's no converter from .ahk to a Mac tool, so you rebuild each script in whichever tool does that job.
Is Keyboard Maestro the Mac version of AutoHotkey?
It's the closest in scope: hot keys, typed-string triggers, macros with conditions and loops, and typing and clicking in any app. You build those macros in a visual editor, though, without writing code. If writing code is the part you liked, Hammerspoon is the closer match.
What's the Mac equivalent of AutoHotkey hotstrings?
Text Replacements, in System Settings → Keyboard, does simple ones for free in most native Mac apps. Espanso is the closest match. It reads plain-text config files, uses triggers like :btw and supports variables such as today's date. It runs on Windows too, so one file can serve both machines. Keyboard Maestro has typed-string triggers as well.
Does Super Shortcuts replace AutoHotkey?
For hotkeys and simple macros, yes. From one Super key, it can open apps and sites, press keys, type or paste text, pick menu items and run shell scripts or AppleScript. Each app or website can have its own shortcuts. It doesn't do abbreviation-triggered text expansion or low-level key remapping, and it doesn't have a scripting API like Hammerspoon's. Espanso, Karabiner-Elements and Hammerspoon are the tools for those.