A typical Node.js bridge
- A Node.js runtime and a web server for the admin page
- A plugin for your cameras, with its own tree of npm packages
- Updates that pull in third-party code nobody reviews
- A login page on your network that anyone can find
An Ultra.dev project
Connect UniFi Protect to HomeKit in 90 seconds flat.
Install it, sign in to Protect once, scan the code in the Home app. Every camera, doorbell and sensor shows up, and Gantry keeps running in the background until you tell it to stop.
Detections
01 · Speed
There is no config file to write and no plugin to find. From a fresh install to cameras in the Home app takes about a minute and a half.
With Homebrew, or with the install script, which checks the download against its published checksum.
brew install ultradotdev/tap/gantry or
curl -fsSL https://ultra.dev/gantry/install.sh | sh Make a local-access-only account for Gantry in UniFi OS, with View Only access to Protect (or Full Management if you want to control floodlights), then run setup. It confirms your console’s certificate, saves the password to your Keychain and installs the service, which asks for your Mac password once.
Asked about Local Network access? Here’s what to do.
gantry setup Open the dashboard and add the bridge in the Home app under Add Accessory › More Options. Every camera, doorbell and sensor comes across.
gantry You’ll need a Mac on macOS 14 or later (Linux support is coming very soon), a UniFi Protect console on the same network, and FFmpeg (brew install ffmpeg). Recordings need a home hub and iCloud+, as with any HomeKit Secure Video camera.
02 · Security
A HomeKit bridge sits inside your network with the keys to your cameras. Every package it depends on, and every update those packages ship, gets the same access. Locking down the machine doesn’t help when the attack arrives in code you chose to install. So Gantry keeps the list of things you have to trust as short as it can be.
There is no admin page, so there is no login to brute-force and no web server to patch. The dashboard runs in a terminal: on the Mac itself, or over SSH from anywhere you can reach it.
By default Gantry never writes it to disk. After a restart, gantry unlock hands it over from your Keychain and the service holds it in memory only. It talks only to the console certificate you confirmed at setup.
It needs your Protect console and your Apple home on the local network, and nothing else. Give it its own VLAN, keep it off the internet, and leave it there.
There are no plugins to keep current and no package tree to audit. Unless Ubiquiti changes the Protect API, the version you installed keeps doing its job like clockwork.
It’s light, too. A small memory footprint, video handled on the GPU, and a service that starts at boot and keeps running.
03 · Simplicity
Simple doesn’t mean fixed. The dashboard handles the changes people actually make, right in the terminal, and Home picks them up instantly.
* Floodlight control needs a Protect account with Full Management. Everything else works with a View Only user.
gantrygantry unlockgantry service statusgantry logs -fQuestions
View Only is all you need for cameras, doorbells, sensors, motion and recordings, and it keeps Gantry from changing anything on your console. Give the account Full Management only if you want to change the state of Protect devices from the Home app, such as controlling floodlights. Either way, make it a local-access-only account used just for Gantry.
The service starts at boot and waits for you to run gantry unlock (locally or over SSH). For a machine that has to come back with nobody there, you can put the password in a file readable only by you instead. That trades some safety for convenience, so it’s off by default.
Not yet, but it’s next. Linux support is coming very soon. For now Gantry runs on macOS 14 or later.
macOS blocks new apps from reaching devices on your network until you allow them. Open System Settings › Privacy & Security › Local Network and turn on Gantry. Setup carries on by itself, and the service connects within seconds without a restart.
For UniFi Protect, yes. That’s the one job, and we want it done well before anything else. Chimes, smoke and CO alarms, and Protect’s sound detections aren’t published yet.
No single tool does that. Gantry cuts your supply chain attack exposure by consolidating a core function into a stupidly simple Rust binary with only one dependency. No more compromised Node packages. Keep the Mac updated, limit who can log in to it, and treat it like any device with access to your security system.
gantry service uninstall. For the default system service it asks for your Mac password, or prints a sudo command to run yourself.~/Library/Application Support/gantry. It holds the config, the HomeKit pairing, your dashboard choices, the log, and the copy of the program the service runs.gantry-protect item in Keychain Access.brew uninstall gantry.Built by Ultra.dev. Thanks to unifi-protect and HAP-NodeJS.
View Gantry on GitHub