Keeps an always-unlocked Mac mini safe enough to leave unlocked for remote agents. It locks the Mac and sends a push notification when someone touches it physically, and stays out of the way of software input (cua-driver, Screen Sharing).
If Touchwire keeps your Mac safe while you're away, a coffee is always appreciated. Entirely optional.
- Armed: physical keyboard or mouse input, a new USB, HID or Thunderbolt device, or an unknown display trips it.
- Tripped: the Mac is locked. Unlocking at the Mac disarms it; unlocking through Screen Sharing (detected by its
screensharingdandScreensharingAgentprocesses) re-arms it. - Disarmed: you're at the Mac. It re-arms after
rearmAfterIdleSecondswithout physical input, when the devices you plugged in are unplugged, or from the menu. It reminds you afterdisarmedReminderSeconds.
A device or display is unknown when it isn't in the saved setup. Save Current Setup as Normal in the menu saves
everything attached at that moment to setup.json. Until then, whatever was attached when Touchwire started counts.
The Devices submenu lists the normal setup (checked when attached) and what is attached but not saved.
Watch-only is the default: triggers notify you without locking. Turn on Lock the Mac when triggered in Settings. With Block the physical input that triggers it (needs Accessibility), that first keystroke or click is dropped before any app sees it, until the lock screen is up. Physical input at the lock screen is never blocked, and only sends an alert, since typing the password there is how you disarm it.
Settings… in the menu (⌘,) edits everything, saved to config.json and applied at once: locking, input blocking,
re-arm and reminder times, the ntfy server and topic, permissions, the protection service and logging.
An optional root LaunchDaemon (Touchwire --daemon), installed from Settings after macOS asks for an administrator
password. Settings also shows the exact commands. It runs a root-owned copy of the app from
/Library/PrivilegedHelperTools, and:
- alerts on unknown devices while the app isn't running;
- restarts the app if it stops without Quit Touchwire (which leaves a
quit-requestedmarker); - locks the Mac (when locking is on) if the app is still missing 30 seconds later.
After rebuilding the app, Settings shows "Running an older version"; click Update….
Download Touchwire-<version>.dmg from Releases and drag Touchwire
into Applications. It needs macOS 26 or later.
Touchwire is signed with a Developer ID and notarized by Apple, so it opens without a Gatekeeper warning.
Then open Settings… from the menu bar icon and:
- Turn on Start at login and keep running.
- Grant Input Monitoring, and Accessibility to block input, then click Restart Input Watch.
- Set an ntfy topic (or click New Random Topic) and follow it in the ntfy app.
- Click Save Current Setup as Normal in the menu with only your own devices attached.
- Optionally install the Protection Service.
- When the alerts look right, turn on Lock the Mac when triggered.
Touchwire updates itself through Sparkle (Check for Updates… in the menu). After an update, open Settings and click Update… under Protection Service if it's installed, since the root copy only changes with an administrator password.
Versions up to 1.2.1 were self-signed. Because the first Developer ID version has a different signature, macOS no longer matches it to the old Input Monitoring and Accessibility grants. After that update, remove Touchwire from both lists in System Settings → Privacy & Security, grant them again, click Restart Input Watch, and click Update… under Protection Service if it's installed.
./Scripts/install.sh # builds, installs to ~/Applications and starts the LaunchAgentBuilds are signed with the Developer ID Application certificate of team GC28C3K5G9 from the keychain, with a secure
timestamp, so building needs the network. On a Mac without it, set SIGN_IDENTITY to another identity (- signs
ad-hoc); such builds get Resources/Touchwire.entitlements so Sparkle still loads.
Releases: tag vX.Y.Z on main, push the tag, then run ./Scripts/publish-release.sh. It builds from the tag, signs
with the Developer ID, has Apple notarize the app and the DMG, staples both, checks that Gatekeeper accepts them, and
publishes a zip, a DMG and a Sparkle appcast.xml with the changelog section as notes. Notarization uses the notarytool
keychain profile named by NOTARY_PROFILE, in the environment or in ~/.config/touchwire/release.env.
The appcast is signed with the EdDSA key in the login keychain (account Touchwire); without that key, installed copies
can't be updated. Never change that key and the signing certificate in the same release: Sparkle accepts an update when
either one matches the installed app.
- Config:
~/Library/Application Support/Touchwire/config.json - Saved setup:
~/Library/Application Support/Touchwire/setup.json - Log:
~/Library/Logs/Touchwire/events.jsonl(one JSON event per line); the service logs to/Library/Logs/Touchwire/daemon.jsonl
Copyright © 2026 Gilberto Valadez.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 3, or (at your option) any later version. It comes with no warranty.
Additional term (GPL 3.0, section 7(e)): the license grants no rights to the project's name, logo or icon. Modified versions must use a different name and icon, and must not suggest they come from this project or its author.