# Keystone > Open-source local AI Key and virtual AI Port at keystone.armstr.ng, made by Colin Armstrong, that adopts natively into UniFi Protect for plain-English Find Anything search, motion-aware event captions, and ONVIF smart detections using Ollama, CLIP ViT-L/14, and YOLOX on your own hardware. Protect's AI features on the cameras Ubiquiti's AI doesn't cover: third-party ONVIF cameras and UniFi cameras older than G6. Keystone is an open-source AI Key and AI Port that adopts into Protect like Ubiquiti's own hardware, on a box you already own. Apache-2.0 · Ollama, CLIP & YOLOX · 100% LAN - Adopts like real hardware: Advertises over Ubiquiti UDP discovery and connects over Protect's own mTLS and WebSocket protocols (`0xa5f0` and `0xa5f5`). No database hacks or patched Protect files. - Captions and plain-English search: Looks at several moments of each event so moving cars aren't called parked, maps results onto Protect's 5,375-tag vocabulary, and embeds object crops with local CLIP ViT-L/14. - Smart detections on ONVIF cameras: The built-in virtual AI Port (`UP AI PORT X`) relays HD streams with zero video transcoding, runs motion-gated YOLOX detections, and evaluates Protect's own polygon zones. - Find Anything: Search every camera in plain English, or with a photo, older UniFi and ONVIF cameras included. A local CLIP model indexes what they see. - Event descriptions: “Vehicle detected” becomes a sentence about what happened, written by a local vision model from several moments of the clip. - Smart detections on ONVIF cameras: Reolink, Amcrest, Nest and other third-party cameras get Protect's own person, vehicle and animal detections, inside the zones you draw in Protect. - Protect's own tags and alarms: Every description maps onto Protect's tag vocabulary, so its filters, notifications and Alarm Manager work as they do with Ubiquiti's hardware. - Context across cameras: When someone walks from the driveway to the door, what one camera saw clearly helps describe what the next one sees. - Local by default: Ollama, CLIP and YOLOX on your own hardware. Point descriptions at an OpenAI-compatible or Anthropic endpoint only if you want to. - How is this different from Frigate? Frigate is a separate NVR, with its own recordings, its own app and its own events. Keystone isn't an NVR and records nothing. It adopts into UniFi Protect as an AI Key and AI Port, so search, descriptions and smart detections show up in Protect itself: the web and mobile apps, push notifications, the timeline and Alarm Manager. You keep Protect for recording, and everyone in the house keeps the app they already use. - Do I need Ubiquiti's AI Key, AI Port or G6 cameras? No. Keystone takes the AI Key's and AI Port's place: it shows up in UniFi Devices as a virtual AI Key, and optionally a virtual AI Port, running on hardware you already own. And it works with the cameras you have, not only Ubiquiti's newest. - Which cameras does it work with? Every camera Protect records, including the ones Ubiquiti's AI doesn't cover. UniFi cameras older than G6 get Find Anything and event descriptions. Third-party ONVIF cameras you've added to Protect, such as Reolink, Amcrest or Nest, can also pair with Keystone's AI Port for Protect's own person, vehicle and animal detections, detection and exclude zones, and descriptions. - What hardware do I need? Any Linux machine, LXC container or Docker host on the same network as Protect. Search and ONVIF detection run on the CPU in about 4 GiB of RAM. Descriptions need a vision model through Ollama, on the same machine or on another one with a GPU. A discrete GPU describes an event in a few seconds; an integrated one takes longer. - Does anything leave my network? Not unless you choose to send it. Ollama, CLIP and YOLOX all run locally. If you'd rather use a hosted model for descriptions, Keystone can call any OpenAI-compatible or Anthropic endpoint instead. It pins Protect's certificates, its adoption password rotates when Protect adopts it, and its status dashboard only listens on `127.0.0.1` unless you change that. - Which models does it use? Descriptions come from any vision model Ollama serves (`qwen3.5:9b` by default), or from an OpenAI-compatible or Anthropic API. Find Anything uses CLIP ViT-L/14, and ONVIF detection uses YOLOX, both as ONNX models downloaded on first run. - Which versions of Protect does it support? Protect 7.3 and later. Find Anything relies on the `pgvector` search database Protect 7.3 introduced, which the Docker Compose setup includes. - What happens when Protect updates? Keystone doesn't patch Protect or touch its database, so an update can't overwrite it. It does speak Protect's own device protocols, so a release that changes them may need a Keystone update to match. - Can I get descriptions in Home Assistant? Yes. Besides Protect's own notifications, Keystone can send each description to a webhook or over MQTT, for Home Assistant, ntfy or anything else that listens. - Is it affiliated with Ubiquiti? No. Keystone is an unofficial, open-source community project under the [Apache-2.0 license](https://github.com/seeARMS/keystone/blob/main/LICENSE). It includes no Ubiquiti firmware, binaries or model weights. Keystone is free and open source under the Apache-2.0 license (https://github.com/seeARMS/keystone/blob/main/LICENSE), made by Colin Armstrong (https://armstr.ng/), founder and CEO of Paragraph. This page has a Markdown version at https://keystone.armstr.ng/index.md, and https://keystone.armstr.ng/ returns Markdown when a request's Accept header prefers text/markdown. ## Docs - [Keystone](https://keystone.armstr.ng/index.md): overview, how it works, features, quick start, and FAQ (including how it differs from Frigate) ## Optional - [Source on GitHub](https://github.com/seeARMS/keystone): Python daemon, Docker Compose stack with pgvector, and tests - [Colin Armstrong](https://armstr.ng/): who made Keystone