Acerca de
Autenticación facial para Linux
Seguridad y privacidadCrecimiento de estrellas medido
- in 24h
- +3
- in 7 days
- +8
- in 15 days
- +22
- in 1 month
- Recopilando historial
Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.
README.md
Original[!NOTE] Gaze includes local liveness anti-spoofing checks and supports infrared (IR) cameras. In high-security environments, we recommend keeping your usual system authentication enabled as a fallback.
Facial authentication for Linux with on-device face recognition, PAM integration, and tools for login, lock screen, sudo, and desktop management.
Install
curl -fsSL https://gaze.gundulabs.com/install.sh | sh
The installer sets up the Gaze daemon, CLI, and GUI. On openSUSE Tumbleweed (x86_64), it uses the native zypper package manager and Gaze's Tumbleweed-specific RPM repository.
It chooses desktop integration based on your session: GNOME gets the GNOME Shell extension, Cinnamon gets gaze-cinnamon-extension, KDE Plasma gets gaze-kde, Quickshell Omarchy gets gaze-omarchy, and Hyprland with hyprlock gets gaze-hyprlock. On other desktops, the installer skips desktop-specific packages rather than pulling in GNOME Shell.
Follow the installer's final status. If a reboot is requested, reboot before running gaze setup. Manual desktop activation is covered in the installation guide.
Manual install (Debian/Ubuntu, Fedora/openSUSE RPM systems, Arch/Manjaro/CachyOS)
Debian / Ubuntu
Each apt suite carries only the builds for that release: noble (Ubuntu 24.04), questing (Ubuntu 25.10), resolute (Ubuntu 26.04), stonking (Ubuntu 26.10), trixie (Debian 13), forky (Debian 14, testing).
sudo mkdir -p --mode=0755 /usr/share/keyrings
curl -fsSL https://packages.gundulabs.com/keys/gundulabs-repo.gpg \
| sudo tee /usr/share/keyrings/gundulabs-archive-keyring.gpg >/dev/null
suite="$(. /etc/os-release && echo "${VERSION_CODENAME:-$UBUNTU_CODENAME}")"
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/gundulabs-archive-keyring.gpg] https://packages.gundulabs.com/deb $suite main" \
| sudo tee /etc/apt/sources.list.d/gundulabs.list >/dev/null
sudo apt update
sudo apt install gaze gaze-gui
Fedora and compatible DNF systems
sudo rpm --import https://packages.gundulabs.com/keys/gundulabs-repo.asc
sudo tee /etc/yum.repos.d/gundulabs.repo >/dev/null <<'EOF'
[gundulabs]
name=Gundu Labs
baseurl=https://packages.gundulabs.com/rpm/fedora/$releasever/$basearch
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://packages.gundulabs.com/keys/gundulabs-repo.asc
EOF
sudo dnf makecache
sudo dnf install gaze gaze-gui
Fedora OSTree (Silverblue / Bazzite / Kinoite)
sudo tee /etc/yum.repos.d/gundulabs.repo >/dev/null <<'EOF'
[gundulabs]
name=Gundu Labs
baseurl=https://packages.gundulabs.com/rpm/fedora/$releasever/$basearch
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://packages.gundulabs.com/keys/gundulabs-repo.asc
EOF
sudo rpm-ostree install gaze gaze-gui
Fedora via Copr (alternative to the repository above; do not enable both)
sudo dnf install dnf-plugins-core
sudo dnf copr enable gundulabs/gaze
sudo dnf install gaze gaze-gui
Manual Fedora package installs do not select Gaze's authselect profile. Check
the active profile first with sudo authselect current, then follow the
Fedora PAM instructions.
Selecting Gaze with --force replaces the active profile and feature
selection, so preserve features you rely on and do not switch from sssd or a
custom authentication profile blindly. On OSTree systems, reboot after
rpm-ostree install before configuring PAM.
openSUSE Tumbleweed (x86_64)
sudo rpm --import https://packages.gundulabs.com/keys/gundulabs-repo.asc
sudo tee /etc/zypp/repos.d/gundulabs.repo >/dev/null <<'EOF'
[gundulabs]
name=Gundu Labs
baseurl=https://packages.gundulabs.com/rpm/opensuse/tumbleweed/$basearch
enabled=1
autorefresh=1
type=rpm-md
gpgcheck=1
gpgkey=https://packages.gundulabs.com/keys/gundulabs-repo.asc
EOF
sudo zypper refresh
sudo zypper install gaze gaze-gui
Arch / Manjaro / CachyOS
# Requires an AUR helper such as yay or paru. yay shown here.
yay -S --needed gaze-bin gaze-gui-bin
Flatpak (GUI only; also install one of the system packages above for the gazed daemon)
flatpak install --from https://packages.gundulabs.com/flatpak/com.gundulabs.Gaze.flatpakref
On openSUSE Tumbleweed, the RPM post-install script enables Gaze in the shared PAM stack. If needed, reapply that setting with sudo pam-config --add --gaze && sudo pam-config --update.
For GNOME lock screen face unlock after a manual package install, also install gaze-gnome-extension (gaze-gnome-extension-bin on Arch) and reboot. Then run gnome-extensions enable [email protected] and gsettings set org.gnome.shell.extensions.gaze enable-face-authentication true from your GNOME session. On Cinnamon, install gaze-cinnamon-extension and enable it from System Settings → Extensions; see the Cinnamon guide. On KDE Plasma, install gaze-kde (gaze-kde-bin on Arch) to enable hands-free lock screen face unlock and add a Gaze page to System Settings; see the KDE guide.
Nix / NixOS (flake)
The repo is a Nix flake with packages (gaze, gaze-gui, gaze-gnome-extension, gaze-cinnamon-extension) and a NixOS module that configures the daemon, D-Bus/polkit, and PAM declaratively:
# flake.nix inputs
inputs.gaze.url = "github:GunduLabs/gaze";
# NixOS configuration
imports = [ inputs.gaze.nixosModules.default ];
services.gaze = {
enable = true;
gui.enable = true;
};
See the Nix & NixOS guide for module options, GNOME lock screen setup, hyprlock, and home-manager usage.
Reboot when requested by the installer, after staging OSTree packages, or to activate a newly installed GNOME extension.
Quick start
gaze setup # check camera, enroll, test, and check desktop integration
Or open gaze-gui and follow the setup checklist. Defaults are ready to use; open gaze config only when you want to change a setting.
How it works
Gaze's daemon (gazed) communicates over DBus. When PAM, the GNOME lock screen extension, or the CLI requests authentication, the daemon captures a frame from your webcam, detects and aligns your face, then uses an ONNX model to create an embedding and compare it with your enrolled profiles.
Everything stays on your machine: Gaze processes faces locally and stores embeddings on disk. It does not transmit face data anywhere.
Camera → Face Detection (SCRFD) → Alignment → Embedding (ArcFace) → Match → Liveness (MiniFASNet-V2)
Components
| Component | Description |
|---|---|
gazed |
System daemon exposing com.gundulabs.Gaze on DBus |
gaze |
CLI for enrollment and authentication (crate: gaze-cli) |
gaze-gui |
GTK4/Adwaita graphical application |
pam-gaze |
PAM module for login/lock screen integration. Asks gazed over DBus; links no camera or inference code |
gaze-security |
TPM sealing and the privileged credential store behind template encryption and keyring unlock |
gaze-gnome-extension |
GNOME Shell extension for lock screen and GDM auth |
gaze-cinnamon-extension |
Cinnamon Spices extension for lock screen and PolKit auth |
gaze-kde |
KDE Plasma lock screen wiring and a Gaze page in System Settings |
gaze-omarchy |
Omarchy Quickshell lock plugin with independent password, fingerprint and face authentication |
gaze-hyprlock |
PAM service for hyprlock face unlock on Hyprland |
Configuration
# /etc/gaze/config.toml
[inference]
execution_provider = "cpu" # cpu | auto | openvino | vitis
device = "cpu" # auto/vitis: npu; openvino: cpu | gpu | npu
[security]
level = "medium" # low | medium | high | maximum | custom
[cameras]
rgb = "primary"
dark_luma_threshold = 20
[auth]
abort_if_ssh = true
abort_if_lid_closed = true
[enrollment]
max_templates = 2
min_face_size_ratio = 0.25
[liveness]
enabled = true
threshold = 0.8
[storage]
encrypt_templates = true # requires a usable TPM 2.0
unlock_kwallet = false # optional TPM-backed KDE wallet unlock
unlock_gnome_keyring = false # unlock the GNOME keyring after a GDM or greetd face login
Standard builds support Intel OpenVINO and AMD Ryzen AI NPU runtimes, but use
the CPU by default. To enable acceleration, install the vendor drivers and
runtime, register it under /usr/lib/gaze/runtimes, and set auto/npu. Then
restart gazed and run gaze doctor --benchmark.
See the hardware acceleration guide for supported hardware,
SDK installation, CPU fallback, and precision validation.
See the configuration guide for all options.
CLI usage
gaze add-face <name> Enroll a new face
gaze refine-face <name> Add samples to an existing enrollment
gaze setup Guided first-run setup
gaze test Test face recognition
gaze test --verbose Include detailed metrics
gaze test --silent Test silently (exit code only)
gaze list-faces List enrolled faces
gaze rename-face <old> <new> Rename a face
gaze remove-face <name> Remove a face
gaze clear-user Remove all face data for current user
gaze config Settings menu with review and save
gaze config --show Print current config and exit
gaze keyring Enroll optional TPM-backed GNOME Keyring unlock
gaze keyring --forget Remove the stored GNOME Keyring credential
gaze keyring --kwallet Enroll optional TPM-backed KDE KWallet unlock
gaze doctor Show actionable setup problems
gaze doctor --verbose Show every diagnostic check
gaze doctor --benchmark Also measure detector/recognizer/liveness inference speed
gaze uninstall Completely remove Gaze (packages, PAM, config, models, data)
gaze uninstall -y Skip confirmation prompt
Enrollment starts with a straight-on reference. Gaze then asks you to make small up, down, left, and right movements relative to that pose.
Building from source
Dependencies: Rust 1.92+, just 1.51+, nfpm
# Ubuntu/Debian
sudo apt install build-essential pkg-config clang libclang-dev \
libopencv-dev libv4l-dev libpam0g-dev libtss2-dev libssl-dev \
libgtk-4-dev libadwaita-1-dev \
libcairo2-dev libglib2.0-dev libgdk-pixbuf-2.0-dev libpango1.0-dev libgraphene-1.0-dev \
libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev \
gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-pipewire \
gettext
For just package, install the additional KDE build dependencies listed in the
development guide.
Ubuntu 24.04 uses GAZE_KCM=legacy for deb packages.
# Build
just build-rust
# The same build includes Intel and AMD NPU provider adapters
# Vendor drivers and runtimes are installed separately; see the hardware acceleration guide
# Package
just package <deb | rpm | archlinux>
See the development guide for more.
Repository layout
| Directory | Contents |
|---|---|
crates/ |
Rust daemon, CLI, GUI, shared libraries, and PAM modules |
integrations/ |
GNOME Shell, Cinnamon, KDE, and Omarchy source |
packaging/ |
Package definitions, lifecycle hooks, and installed system configuration |
scripts/ |
Development helpers and integration test harnesses |
docs/ |
User and contributor documentation |
The root Cargo.toml, Justfile, and flake.nix coordinate the workspace.
License
Gaze is free software licensed under the GNU General Public License, version 3 or later (GPL-3.0-or-later).
Gaze - Facial authentication for Linux
Copyright (C) 2026 Gundu Labs <[email protected]>
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <https://www.gnu.org/licenses/>.
Contributions are accepted under the same license.
Explorar proyectos relacionados
Cargando…