Keystone puts local AI search inside UniFi Protect

Share

Keystone v0.1.9, released on 5 December 2026, lets UniFi Protect adopt a locally run service as a virtual AI Key and optional AI Port. The result is plain-English video search and local model features inside Protect’s existing camera, alert and device-management interface, rather than a separate surveillance application.

At a glance

  • Keystone v0.1.9 adds CUDA images and a Prometheus metrics endpoint.
  • Keystone’s project documentation says plain-English and photo search work locally on a CPU by default.
  • The optional virtual AI Port can pair up to 10 HD ONVIF cameras with UniFi Protect.
  • The tested Protect versions are 7.3.74, 7.4.112 and 7.4.114.
  • Unraid OS 7.4.0 retains extra Docker-network attachments after a container update or recreation.

What is Keystone for UniFi Protect?

Keystone is an unofficial, Apache-2.0-licensed project that presents itself to UniFi Protect as virtual Ubiquiti-style AI hardware. Its repository says Protect discovers and adopts a virtual AI Key, while the AI Port function is optional.

That design matters because it preserves camera governance. Here, governance means the controls that decide which cameras exist, who can view them, which events create alerts, and where recordings live. Keystone does not ask the operator to move cameras into a new dashboard. Protect remains the system where a user adopts the AI device, opens events and manages the camera estate.

The project says it uses no patched Protect files, database hacks, vendor firmware or proprietary model weights. That is not a Ubiquiti endorsement. It is an architectural claim from the project, and readers should treat Keystone as community software with its own update and security responsibility.

How does local model search stay inside Protect?

Keystone’s useful distinction is between AI processing and camera control. It indexes video events for Find Anything, a search feature where phrases such as “person with a backpack” can retrieve relevant footage. The project says the feature is on by default and runs locally on a CPU without extra setup.

Search does not replace Protect’s recording view. The project describes Protect 7.3 and later as using Keystone’s PostgreSQL and pgvector search service, while the operator still searches from Protect’s native interface. An embedding is a list of numbers that represents the meaning of an image or phrase, letting similar concepts be matched without exact keywords.

This is the governance point that ordinary “local AI” descriptions often miss: the model host can be your server, but the camera inventory and user workflow stay in Protect. Keystone also maps descriptions to Protect tags, according to the project’s feature page, so the results can feed Protect filters and automations rather than a parallel rules engine.

Which cameras can Keystone improve?

Keystone’s virtual AI Key route is aimed at UniFi cameras that already provide smart detections. The compatibility notes say G4 and newer cameras can gain plain-English search and event descriptions, while G4 and G5 cameras can also use face and license-plate recognition.

The optional virtual AI Port is a different decision. It exists for older UniFi cameras and third-party ONVIF cameras, including examples such as Reolink and Amcrest. ONVIF is an interoperability standard that lets a camera expose common controls and streams to another system.

For this route, the project specifies H.264 video for live view and recordings. It says H.265 streams can still permit detections, but Protect will not receive relay video. That is a compatibility limit, not a minor preference, so check a camera’s main-stream codec before committing to the AI Port setup.

Camera situationConcrete capabilityExact limit or versionReader decisionEvidence tier
UniFi G4 or newer with smart detectionsFind Anything search and event descriptionsProtect 7.3.74, 7.4.112 or 7.4.114 testedUse the virtual AI Key first.Project-documented compatibility
UniFi G4 or G5Face and plate recognition in ProtectG4/G5 only in the published capability statementEnable those features only after search works.Project-documented capability
ONVIF or older UniFi cameraSmart detections through virtual AI PortUp to 10 HD camerasConfirm H.264 before pairing.Project-documented limit

The project’s camera guidance and the 10-camera ceiling come from its published setup instructions, not from Ubiquiti product documentation.

What does Keystone cost against AI hardware?

Keystone’s software price is $0, but its published comparison with Ubiquiti hardware needs careful reading. The Keystone repository states an AI Key price of $799 and an AI Port price of $199 for up to three HD cameras. Those are project-published figures, not prices independently verified on a Ubiquiti store page here.

That arithmetic compares acquisition prices only. It does not show accuracy, support quality, recording performance or the cost of maintaining a local server.

Concrete optionExact stated priceWhat it buysEvidence tier
Keystone software$0Virtual AI Key and optional AI Port on an existing hostProject claim
Ubiquiti AI Port$199Hardware route cited by Keystone for up to three HD camerasProject claim, not vendor-price verified
Ubiquiti AI Key$799Hardware route cited by KeystoneProject claim, not vendor-price verified
AI Key plus one AI Port$998Combined stated hardware acquisition priceFuturPulse calculation from project-stated prices
Keystone avoids the stated AI hardware purchase price: Keystone software, AI Port, AI Key, AI Key plus AI Port
Keystone avoids the stated AI hardware purchase price · Source: github.com

The decision is therefore not simply “free versus paid.” Keystone shifts spending from appliance purchase to host ownership. If an always-on Linux server, Unraid machine or Mac already exists on the camera LAN, the incremental software cost is clear. If it does not, price the host, storage, maintenance time and power before calling it cheaper.

What network setup preserves camera governance?

Keystone needs more than a browser connection because Protect must discover and adopt it like an appliance. The published port map lists UDP 10001 for initial LAN discovery, TCP 8080 for AI Key adoption, TCP 5432 for the Protect search database, and TCP 443 when the virtual AI Port is enabled.

The standard Compose approach uses host networking so Protect can reach the expected services and discovery traffic can cross the local network. This is functional, but it raises the importance of port conflicts and firewall rules. The project specifically lists conflicts on ports 443, 5432, 8080 and UDP 10001 on shared Docker hosts.

For a NAS or server that cannot safely share those ports, Keystone recommends a dedicated LAN address through Docker macvlan. Unraid’s container guide describes macvlan and ipvlan as custom networks that give a container its own LAN IP, making it appear as a separate device.

That dedicated-address pattern better matches the governance goal. Protect sees one reachable AI appliance address, while the administrator can limit inbound access to the Protect controller and selected management hosts. It does not make Keystone officially supported, but it reduces the temptation to expose service ports broadly.

How should Unraid users install Keystone?

Unraid users should use a fixed address on the LAN-facing br0 network, not the Docker default bridge, according to Keystone’s Unraid instructions. The project says its container stores persistent data at /mnt/user/appdata/keystone and includes PostgreSQL by default.

Unraid OS 7.4.0 is relevant if the installation uses an existing database container. Its release notes say Docker templates can attach containers to multiple custom networks and preserve those attachments during updates. That lets Keystone keep one LAN identity for Protect and a second private network for PostgreSQL.

On older setups, a manual Docker attachment is possible. Docker’s reference says docker network connect attaches a running container to another network and can assign an IP where that network has an appropriate subnet. The trade-off is operational: manual attachments must be restored after replacing a container.

  1. Give Keystone a fixed LAN IP that Protect can reach.
  2. Enter the Protect controller’s IPv4 address during setup.
  3. Adopt the discovered virtual AI Key in Protect’s UniFi Devices screen.
  4. Confirm Find Anything search before enabling face, plate or AI Port features.
  5. For third-party cameras, set the main stream to H.264 before pairing.
  6. Restrict the required ports to the Protect controller and trusted administration network.

Should you use a GPU for local models?

No GPU is required for Find Anything search, according to Keystone’s setup notes. A GPU becomes more relevant when enabling video descriptions, transcription, recognition or AI Port analysis across several cameras. The practical question is throughput: can the host keep up without delaying ordinary camera work

Keystone v0.1.9 adds CUDA container images for amd64 hosts. The release notes say CUDA can run the AI Port detector and Whisper’s FP32 encoder on the GPU, while the project’s broader setup guide says failed CUDA initialization falls back to CPU processing.

An NVIDIA route needs more than a graphics card. NVIDIA’s Container Toolkit guide requires a compatible driver and configures Docker through nvidia-ctk runtime configure --runtime=docker. NVIDIA also warns that a systemd daemon reload can make containers lose requested GPU access on affected systems.

AMD support deserves separate verification before purchase. AMD’s ONNX Runtime guidance lists specific supported GPU architectures for its MIGraphX execution provider and requires ROCm first. That is not the same as a Keystone support promise, so do not infer that every Radeon card will accelerate every Keystone feature.

Security and privacy check: local processing means models can run on your network, not that every enabled feature is automatically offline. Keystone says event descriptions can use Ollama or an API. Choose a local vision endpoint if footage-derived prompts must not leave the premises, and review the provider setting before enabling descriptions.

What we could not verify?

Ubiquiti has not published an endorsement of Keystone, and the project identifies itself as unaffiliated. Ubiquiti could settle whether future Protect releases will preserve this virtual-device behavior. It could also settle current official AI Key and AI Port pricing, camera limits and support terms.

No public vendor benchmark establishes that Keystone matches Ubiquiti hardware for detection accuracy, event latency or multi-camera capacity. The project lists tested Protect releases, but that is not a guarantee for every console, firmware level, VLAN design or third-party camera. Operators should trial it on one non-critical camera before enabling face recognition or alert automations across a site.

What should you actually do?

Use Keystone if you already run UniFi Protect, have a trusted always-on host on the camera LAN, and want local search without moving camera administration out of Protect. Start with the virtual AI Key and CPU search. That is the least disruptive configuration.

Add the virtual AI Port only when you need ONVIF or older cameras to create Protect-native detections. Use a dedicated LAN IP if port 443 or other required ports already belong to a NAS service. Keep Ubiquiti hardware as the lower-maintenance option if vendor support, appliance ownership and predictable deployment matter more than self-hosting flexibility.

Sources

Liam Johnson
Liam Johnson
Liam Johnson is a technology journalist covering artificial intelligence and the tools shaping how people work.

Read more

Local News