Find your next open-source project

Search by name, purpose, or keyword, or paste a GitHub URL. Start with / to search agent skills (e.g. /pdf)

Replaces UniFi Protect's AI Key and AI Port with local open models for search, captions and camera detections.

428
58
Python
Apache-2.0
2 days old
+325 stars in 19h

What it does

Keystone is a free, self-hosted stand-in for Ubiquiti's AI Key and AI Port hardware in UniFi Protect. It runs on a machine on your own LAN, advertises itself over Ubiquiti's discovery protocol, and is adopted in UniFi Protect → UniFi Devices like a physical device. No vendor firmware or proprietary binaries are bundled, and it is an unofficial community project not affiliated with Ubiquiti; it has been tested against Protect 7.3.74 and 7.4.112.

The core capability is Find Anything, on by default: natural-language and reference-photo search inside Protect's own search bar, backed by a local CLIP model and a PostgreSQL/pgvector database. Optional features include vision-model event descriptions, face recognition with Enhance Face, license plate recognition, speech-to-text transcripts, and a virtual AI Port that gives ONVIF third-party cameras (Reolink, Amcrest, Nest via Scrypted) and older UniFi cameras smart detections, zones, tripwires and loitering.

It fits homelab and self-hosting users who already run UniFi Protect and want local AI features without buying Ubiquiti hardware or paying for cloud subscriptions.

Quick start

Several install paths exist: a Home Assistant OS app, Docker Compose, Proxmox LXC, Debian/Ubuntu, Unraid, a Homebrew package on macOS, and a manual Python install. The Docker Compose path on a Linux host is the shortest documented route:

mkdir keystone && cd keystone
curl -fsSLO https://raw.githubusercontent.com/seeARMS/keystone/main/docker-compose.yml
curl -fsSLO https://raw.githubusercontent.com/seeARMS/keystone/main/scripts/setup-compose.py
python3 setup-compose.py
docker compose up -d

During setup, enter the Protect controller's IP address. To enable event descriptions, enter the URL of an Ollama or OpenAI-compatible vision server; press Enter to skip them, and Find Anything search still works. Then open UniFi Protect → UniFi Devices and adopt the discovered AI Key using the initial credentials ubnt / ubnt; Protect rotates them on adoption. Enable Basic Object Recognition and per-camera Smart Detections under Protect's intelligence settings, then follow the post-adoption steps. The bundled status dashboard listens on 127.0.0.1:8088 by default.

See the Quick start section for Home Assistant, Proxmox, Unraid, macOS and manual procedures; some hardware-specific details, such as Intel GPU troubleshooting and Mac mini sizing, are important and worth reading alongside the install steps.

Requirements and limits

  • Base Find Anything and AI Port detections fit in roughly 2–4.5 GB RAM on CPU; enabling faces, plates, speech and Enhance Face together is better on 8 GB. Event descriptions need a separate vision server (Ollama, LM Studio, llama.cpp, vLLM, or hosted OpenAI/Anthropic) and benefit from a GPU, described as 2–5 s per caption on a discrete GPU versus about 20–25 s on an integrated one.
  • The first start downloads about 1.6 GB of models. Google Coral is not supported.
  • Both containers use host networking so Protect can discover Keystone and reach the ports it expects; this can conflict with existing services on ports 443, 5432, 8080 and 10001/udp. Kubernetes, macvlan and LoadBalancer setups need a single LAN IP for adoption and search.
  • Face recognition downloads InsightFace weights that are licensed for non-commercial research only, so rightsholders should verify permitted use. Keystone computes face embeddings for every clear face in person events when enabled, and the README places compliance responsibility for biometric and privacy law on the operator.
  • The dashboard is local-only by default; enabling 0.0.0.0 should be done on a trusted management network.
  • The code is Apache-2.0, with parts adapted from another Apache-2.0 project and several third-party model licenses listed in the NOTICE file.

HotRepo's take

The project appeared on HotRepo's new-project list on 2026-12-03, reporting 53 stars gained over the roughly 90-minute window tracked that day and 156 stars in total; the hourly star sampling moves from 123 to 156 between 21:46 and 22:46 UTC. That is a short observation window, enough to note the launch-day interest but not a trend. What stands out is the scope relative to a simple wrapper: Keystone reimplements the AI Key and AI Port adoption protocols, ships a web dashboard and CLI, and documents hardware, VLAN, Kubernetes and GPU paths in detail, while leaving the choice of vision model to the user.

Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.

You might also like

  1. bnlqn/overlookRead-only homelab status page that aggregates checks, server health, app stats, and chores from tools you already run.Go106