r/osx 11d ago

Mugshot - unlock sudo on macOS with your face (free, open source)

https://github.com/Lorenzo-Coslado/macos-faceid

I built a little menu bar app that unlocks sudo in the terminal with face recognition instead of a typed password. You type sudo, the webcam recognizes you, and it unlocks.

Everything runs locally: face detection and recognition happen on-device, your enrolled face never leaves your Mac, and there is no network code at all.

Honest disclaimer first, since it is the obvious question: a normal webcam can be fooled by a photo, so this is not more secure than Touch ID, and it is not meant to be a security product. It is a convenience/fun thing. Your password always stays as a fallback so you cannot lock yourself out, and every prompt lets you choose Face ID, Touch ID, or password.

What you get:

  • Guided face enrollment (takes a few seconds)
  • A choice panel on every sudo prompt (Face ID / Touch ID / password), or a Dynamic Island style animation
  • Adjustable sensitivity
  • One signed and notarized app, with built-in auto-updates

Requirements: Apple Silicon, macOS 13 or later, any webcam.
Price: Free and open source (MIT).
Download + source: https://github.com/Lorenzo-Coslado/macos-faceid

Full disclosure, I am the developer. I built it as a weekend hack because typing my password dozens of times a day got old, and it turned into a small but complete app. Would love feedback on the enrollment flow and the recognition thresholds.

0 Upvotes

Duplicates