# 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

- Category: Multimodal Generation / Vision & Understanding
- Language: Swift
- Licence: MIT
- Repository: https://github.com/jonnyoo/glance
- Canonical page: https://ai-tldr.dev/tools/glance-face-unlock/
- Updated: 2026-09-30

## In short

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.

## 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.

1. 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.

2. 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.

3. 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.

4. 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.

5. 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.

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

## 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

## Version history

- 2026-09-30 v1.2.0: 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.
