An independently maintained fork of jonnyoo/glance, with explicit enrollment feedback and Homebrew installation. The original project and its author are not responsible for this fork's releases.
Unlock your Mac with a glance — no typing, no reaching for the TouchID key. Everything runs on-device using Apple's Vision and Core ML frameworks, so your face data and your Mac password never touch the internet. The UI is built into your Macbook's notch with fluid dynamic island like animations.
GlanceLaunchVideUpdatedSmall.mp4
Warning
MacBooks don't come equipped with the depth sensors that make iPhone FaceID trustworthy and secure. An iPhone builds a 3D map of your face; a MacBook webcam sees a flat 2D image. That means:
- Glance defeats, with reasonable confidence, a printed photo and a photo on a phone screen (heavy liveness detection must be turned on)
- Glance does not reliably defeat a video of you
- macOS has no API that lets a third-party app authorize a login, so Glance unlocks by typing your stored password on the lock screen
Glance is a convenience feature, not a security upgrade. Only continue if you accept the tradeoff.
Requirements:
- macOS 15 Sequoia or later
- Apple Silicon or Intel Mac
brew install --cask hhh2210/tap/glance-face-unlockTo update:
brew update
brew upgrade --cask hhh2210/tap/glance-face-unlockOr download Glance-Fork-<version>.zip from this fork's releases, extract it, and move Glance Fork.app to /Applications.
Distribution status: these builds are ad-hoc signed, not Developer ID signed or notarized by Apple. macOS may block the first launch; use its per-app Open Anyway approval in System Settings → Privacy & Security if you choose to run the fork. Do not disable Gatekeeper. An update may require granting Accessibility again.
The fork uses its own app name, bundle identifier, preferences, Keychain service, and encrypted face store. It does not import or overwrite upstream Glance's enrollment or credentials. Quit the original app before using the fork, then enroll and grant Camera and Accessibility permissions to Glance Fork. Enter your Mac password only in the app's own setup screen.
Updates come from Homebrew or the fork's GitHub Releases. The upstream automatic updater is not included.
Enrollment captures the center pose and eight directions. For each direction:
- Follow the remaining adjustment, such as Raise your chin slightly once your left turn is sufficient.
- When all capture conditions pass, Hold still while the hold ring fills over 0.5 seconds.
- Keep still during Capturing. The hold timer finishing does not mean the samples have been captured yet.
- Move to the next direction only after capture completes.
If your pose or capture quality stops qualifying, the app explains the blocker and restarts the hold after it recovers. Previously collected samples and completed directions are retained. Enrollment feedback does not change the face-match threshold or the unlock liveness checks.
| Permission | Why |
|---|---|
| Camera | To see your face. Frames are processed in memory and never written to disk. |
| Accessibility | To type your password into the lock screen. |
| Touch ID | Gates the key that encrypts your face data and password. |
- Launch the app and follow the onboarding to enroll your face. Glance guides you through capturing your face, turning your head in nine directions. Each frame becomes a 512-number embedding — a mathematical fingerprint — and the image is thrown away.
- Enter your Mac password once, encrypted behind Touch ID.
- When your Mac locks or wakes from sleep, the animation appears in the notch and starts searching for a face.
- If it's you — and the liveness checks agree you're a real person — Glance types the password and you're in.
| Feature | Description |
|---|---|
| Face unlock | Triggers on wake, on lock, or on pressing space at the lock screen. Pick any combination. |
| Multiple identities | Enroll several people, or several versions of yourself — with glasses, a beard, different lighting. Toggle any of them off without deleting. |
| Liveness checks | Watches for the motion and reflections that separate a real face from a photo. Light or Heavy strictness, or off. |
| Notch UI | A closed pill that expands into a scan animation with success and failure states. Hover to retry — or turn animations off entirely and Glance stays invisible. |
| Camera & display | Choose which camera to use, including different cameras for the built-in display vs. an external monitor. |
| Auto-locking sessions | The Touch ID session re-locks itself after an idle period you choose, so an unattended Mac doesn't stay authorized forever. |
| Trackpad haptics | Hovering over the notch will trigger haptics |
| Notchless Mac support | Macs without a notch will be replaced with a pill-shape, dynamic island style design. |
| Your data, your call | Edit or delete your enrolment or stored password at any time. The encrypted files are removed immediately. |
Glance is designed to keep biometric data and credentials on-device.
Glance never stores camera images. During enrollment, each captured face is converted into a 512-dimensional embedding using an ArcFace-based Core ML model. The original frame is then discarded.
Embeddings are stored locally and encrypted with AES-GCM.
Your Mac password is stored as encrypted data and is never written to disk in plaintext. The encryption key is a 256-bit AES key stored in the macOS Keychain, protected by userPresence — requiring Touch ID or your device password.
The key is only held in memory while an authorized Glance session is active.
Glance won't type your password simply because a face matches. An unlock requires all of the following:
- A valid Glance session is authorized.
- The Mac is actually at the lock screen.
- An enabled identity matches above the configured similarity threshold.
- Liveness checks accept the detected face.
- Accessibility permission is available to enter the password.
Face recognition and liveness detection run independently and must both succeed before the password is entered.
Face recognition, face enrollment, and liveness detection run entirely on-device using Vision and Core ML. Glance does not send face data, camera frames, or credentials to a server.
Five independent cues over a rolling ~2s window, in two roles:
- Deny cues are evidence of a spoof — screen glare, or a device-shaped rectangle framing the face. Either one fails the scan outright and overrides anything else.
- Confirm cues are evidence of a real face — flat-vs-3D landmark geometry, nose parallax across head turns, blinks. Any one is enough, and their absence is never a failure, since a live person can sit still and not blink.
Light detection only include deny cues. Heavy detection includes both deny and confirm cues.
Face Lab is a hidden debug console to test face recognition and liveness detection with real values.
To open it: Settings → About, then click the app icon 5 times. A debug section should appear in the sidebar.
- macOS 15+
- Xcode 26+
- Clone repository:
git clone https://github.com/hhh2210/glance.git
cd glance- Build without launching the app:
./script/build_and_run.sh --build-only
- Run the development build:
./script/build_and_run.sh
The Xcode scheme is glance; the app product is Glance Fork.app. Local builds use ad-hoc signing and do not require the upstream developer's signing team. The run script stops only the fork's process.
Run the enrollment regression checks without a camera, password, or enrolled identity:
./tools/enrollment_selftest.shThe checks compile the same capture evaluator used by the app. They cover pose boundaries, hold timing, interrupted capture, and sample completion. They do not establish real-camera usability or spoof resistance.
To create a universal release ZIP and its SHA-256 file:
./tools/package-release.sh --version 1.2.1See release maintenance for the tag workflow and Homebrew update process.
Issues and focused pull requests for this fork are welcome at hhh2210/glance. Include reproduction steps and relevant test or build results. For enrollment changes, distinguish state-machine tests from real-camera testing, and keep authentication/security changes separate from UI feedback.
The original project's contribution policy applies to its own repository; do not send fork-specific bugs to its author.
- The Boring Notch — for the notch window physics.
- InsightFace — the ArcFace model doing the recognition.
- Alcove — big design inspiration.
MIT © Jonathan Zhou