█

AI/TLDR

Buy me a coffee
Buy me a coffee

Glance

Face unlock for the Mac, run on-device by an ArcFace Core ML model with liveness checks and a scan animation in the notch

Vision & UnderstandingOpen source
Latest
v1.2.0
Updated
30 Sep 2026
Language
Swift
License
MIT

What's new

v1.2.030 Sep 2026

Adds a menu-bar option, swipe navigation between Settings pages and a "Never" session auto-lock option, gives directional feedback during enrolment when a head turn goes too far, speeds up password entry, and allows up to two seconds of continuous non-matches before a scan fails.

IN SHORT

What is Glance?

Glance is a native macOS app, written in Swift and SwiftUI, that unlocks a Mac when it recognises your face through the webcam — the iPhone FaceID idea brought to a machine that has no FaceID hardware. It sits in the Vision & Understanding category of the Multimodal Generation tools and is open-source, written in Swift and licensed MIT.

Updated Markdown version ↗

Overview

Glance is a native macOS app, written in Swift and SwiftUI, that unlocks a Mac when it recognises your face through the webcam — the iPhone FaceID idea brought to a machine that has no FaceID hardware. When the Mac locks or wakes from sleep, a scan animation opens out of the MacBook's notch (or a pill shape on Macs without one), looks for a face, and if it is an enrolled one, Glance types your password at the lock screen.

The recognition is machine learning, and it runs entirely on-device through Apple's Vision and Core ML frameworks. During enrolment you turn your head in nine directions; each captured face is converted by an ArcFace-based Core ML model (the README credits InsightFace for the model) into a 512-dimensional embedding, and the image itself is discarded. Embeddings are stored locally, encrypted with AES-GCM. Your Mac password is stored encrypted under a 256-bit AES key kept in the macOS Keychain and protected by `userPresence`, so Touch ID or the device password gates it. A separate liveness analyser runs five cues over a rolling window of about two seconds: deny cues (screen glare, a device-shaped rectangle around the face) fail a scan outright, while confirm cues (flat-versus-3D landmark geometry, nose parallax across head turns, blinks) count as evidence of a real face. Light mode uses only the deny cues; Heavy mode uses both.

The project is explicit about its limits, and they belong up front. A MacBook webcam sees a flat 2D image, not the 3D depth map an iPhone uses, so the README states that Glance is not as secure as FaceID or Touch ID: it defeats a printed photo or a photo on a phone screen with reasonable confidence (with Heavy liveness on), but does not reliably defeat a video of you. And because macOS offers no API for a third-party app to authorise a login, Glance unlocks by typing your stored password. The author's own framing is that it is a convenience feature, not a security upgrade. It is MIT-licensed, requires macOS 15 Sequoia or later, and runs on Apple Silicon and Intel Macs.

What it does

  • Face unlock that triggers on wake, on lock, or on pressing space at the lock screen — any combination
  • On-device recognition: an ArcFace-based Core ML model turns each face into a 512-number embedding; camera frames are processed in memory and never written to disk
  • Liveness detection with Light or Heavy strictness (or off), combining spoof-evidence cues such as screen glare with real-face cues such as 3D landmark geometry, nose parallax and blinks
  • Multiple identities — enrol several people, or several versions of yourself with glasses, a beard or different lighting, and toggle any of them off without deleting
  • A notch UI that expands into a scan animation with success and failure states, a pill shape on notchless Macs, or no animation at all
  • Face Lab, a hidden debug console that shows real recognition and liveness values for testing

Getting started

Glance needs macOS 15 Sequoia or later on an Apple Silicon or Intel Mac. Read the project's security warning first: it is a convenience feature that types your stored password, not a replacement for Touch ID.

Download and install

Download `Glance.dmg` from the project's GitHub Releases page (github.com/jonnyoo/glance/releases), open it and drag Glance to `/Applications`, then open it.

Grant the three permissions

Camera, to see your face (frames stay in memory); Accessibility, so Glance can type your password into the lock screen; and Touch ID, which gates the key that encrypts your face data and password.

Enrol your face and store your password

The onboarding walks you through capturing your face while turning your head in nine directions. Then enter your Mac password once; it is encrypted behind Touch ID. From then on, when the Mac locks or wakes, the notch animation searches for a face and unlocks only if an enabled identity matches and the liveness checks agree.

Tune and test it

Choose the triggers, liveness strictness, camera (including a different camera for an external monitor) and session auto-lock period in Settings. To see the raw recognition and liveness values, open Face Lab: go to Settings → About and click the app icon five times, and a debug section appears in the sidebar.

Or build from source

Building needs macOS 15+ and Xcode 26+. Clone the repository, open the Xcode project, then click Run or press Cmd + R.

bashbash
git clone https://github.com/jonnyoo/glance.git
cd glance
open glance.xcodeproj

Commands and code are distilled from the project's own documentation — always check the official repo for the latest.

When to use it

  • Reach for it when you want hands-free unlocking on a Mac, such as a MacBook docked to an external display with the Touch ID key out of reach, and you accept the convenience-over-security tradeoff the project spells out
  • Reach for it to share one Mac between several enrolled people, or to enrol yourself with and without glasses so recognition holds up in different conditions
  • Reach for it as a readable, MIT-licensed Swift reference for on-device face recognition on macOS: an ArcFace Core ML embedder, a face-recognition pipeline and a separate liveness analyser, with Face Lab exposing the live values

How Glance compares

Glance alongside other open-source vision & understanding tools AI/TLDR tracks, ranked by GitHub stars.

ToolStarsWhat it does
PaddleOCR★ 93.5kA toolkit for detecting and recognizing text in images across many languages, plus document parsing.
OpenCV★ 91.8kThe long-standing open-source computer-vision library for C++, Python and Java; version 5 rewrote the DNN engine and added ONNX-based LLM and VLM inference in-library.
Ultralytics YOLO★ 63.9kA framework for training and running YOLO models for real-time object detection, segmentation, and tracking.
YOLOv5★ 58.3kUltralytics' PyTorch repo for training, running and exporting YOLOv5 object-detection, instance-segmentation and classification models with plain scripts and PyTorch Hub.
Supervision★ 51.8kA Python toolkit for processing, annotating, and visualizing detections and segmentations from many vision models.
MediaPipe★ 38kGoogle's on-device ML framework: ready-to-run vision, text and audio tasks with one cross-platform API for Android, iOS, web, desktop and edge.
MMDetection★ 33.1kAn OpenMMLab toolbox with many object detection and instance segmentation algorithms for research and production.
Glance★ 2kFace unlock for the Mac, run on-device by an ArcFace Core ML model with liveness checks and a scan animation in the notch