| Method | Best for | Needs Node.js | HomeKit works on |
|---|---|---|---|
| Docker | Servers, NAS boxes, always-on machines | No | Linux hosts only |
| Homebrew | Macs, and Linux machines that already use Homebrew | No | Linux, macOS |
| npm | Desktops, laptops, Raspberry Pi, quick trials | Yes, 22.23.4+ | Linux, macOS |
| From source | Contributing to OpenBridge, running an unreleased branch | Yes, 22.23.4+ | Linux, macOS |
If you are unsure: use Docker on a machine that is always on, Homebrew on a Mac, and npm everywhere else.
All four install the same npm package. Docker is the only one that can update itself from the dashboard, because its restart policy is what starts the daemon again afterwards; the others tell you the command to run instead.
System requirements
| Minimum | Notes | |
|---|---|---|
| CPU | 64-bit x86-64 or arm64 | A Raspberry Pi 3B+ is enough. 32-bit ARM is not supported. |
| RAM | ~512 MB free | Verified on a 906 MB Raspberry Pi 3B+ running Alpine. |
| Disk | ~150 MB (npm), ~1 GB (from source) | A global npm install measures about 106 MB including dependencies. |
| Node.js | 22.23.4 or newer | Not needed for Docker. Tested on 22 and 24. Node 20 is end of life. |
| OS | Linux (glibc or musl), macOS | Windows is untested. Use WSL2 or Docker on a Linux host. |
| Network | Wired or Wi-Fi LAN with mDNS | See Network requirements. This is the part people get wrong. |
Building from source needs meaningfully more: roughly 1 GB of free disk, since node_modules alone lands around 720 MB.
Network requirements
OpenBridge speaks to HomeKit over the local network. These apply to every install method.
| Port | Protocol | Purpose |
|---|---|---|
| 8582 | TCP | Dashboard and HTTP API |
| 51829 | TCP | HomeKit accessory protocol (HAP) |
| 5353 | UDP | mDNS / Bonjour, how HomeKit finds the bridge |
Both ports are configurable in config.json (bridge.port and bridge.hapPort).
For pairing to work:
- The device running OpenBridge and your iPhone, iPad or Home hub must be on the same subnet. HomeKit discovery is link-local and does not cross routed networks.
- Client isolation (also called AP isolation or guest mode) on your Wi-Fi must be off.
- If your phone is on a different VLAN from your smart home devices, you need an mDNS reflector (available in OPNsense, pfSense, UniFi and most managed switches).
OpenBridge has no authentication by default
The dashboard and the full HTTP API are unauthenticated. Anyone who can reach port 8582 can control your devices, edit your config, and use the built-in terminal.
Do not port-forward it or expose it to the internet. Reach it remotely over a VPN or an overlay network such as Tailscale instead.
Docker
The recommended method for anything that runs unattended.
There is no OpenBridge image to pull. A stock node:22.23.4-alpine container installs @nubisco/openbridge from npm into a volume the first time it starts, and runs it from there. That is deliberate: it is the same package the npm install uses, on every architecture Node itself supports, and the volume is also what the in-app updater replaces, so updating is an npm install rather than an image pull.
Docker on macOS and Windows will not pair with HomeKit
HomeKit requires the container to share the host's network so it can send and receive mDNS on your LAN. Docker Desktop on macOS and Windows runs containers inside a VM, where network_mode: host does not provide real LAN access.
Everything else (the dashboard, the API, plugins) works fine. If you want HomeKit, use Docker on a Linux host, or install from npm instead.
With Docker Compose
Create docker-compose.yml:
services:
openbridge:
image: node:22.23.4-alpine
container_name: openbridge
restart: unless-stopped
# Host networking is required for mDNS discovery, HomeKit advertisement,
# and direct WebSocket connections to smart devices.
network_mode: host
environment:
# Tells the daemon it may replace itself and restart into the new tree.
OPENBRIDGE_INSTALL: docker
# `latest` installs the newest release on first boot. Set a concrete
# version to hold this deployment at it; see Pinning a version below.
OPENBRIDGE_VERSION_SPEC: latest
TZ: Europe/Lisbon
NODE_ENV: production
volumes:
- openbridge-config:/root/.openbridge
- openbridge-app:/opt/openbridge
# Installs only when the volume is empty or the pin changed, so a plain
# restart needs no network and cannot undo an update applied from the UI.
command: >
sh -c '
set -eu
PREFIX=/opt/openbridge/current
SPEC="$${OPENBRIDGE_VERSION_SPEC:-latest}"
mkdir -p "$$PREFIX"
if [ ! -x "$$PREFIX/node_modules/.bin/openbridge" ] || [ "$$(cat "$$PREFIX/.spec" 2>/dev/null || true)" != "$$SPEC" ]; then
echo "Installing @nubisco/openbridge@$$SPEC ..."
npm install --prefix "$$PREFIX" --omit=optional --no-audit --no-fund "@nubisco/openbridge@$$SPEC"
printf %s "$$SPEC" > "$$PREFIX/.spec"
fi
exec "$$PREFIX/node_modules/.bin/openbridge"
'
healthcheck:
test: ['CMD', 'wget', '-qO-', 'http://127.0.0.1:8582/api/health']
interval: 30s
timeout: 5s
retries: 3
# Generous: the very first boot installs from npm before it can answer.
start_period: 120s
volumes:
openbridge-config:
openbridge-app:Then:
docker compose up -d
docker compose logs -fThe first start spends a minute or two on the npm install before the dashboard answers. Later starts skip it. Open http://<host-ip>:8582 in a browser, using the IP address of the machine running Docker.
The terminal pane is disabled under Docker
The bootstrap passes --omit=optional, which skips node-pty, because building it would need a C toolchain the Node image does not carry. Everything else works; only the dashboard's interactive shell pane is unavailable.
What the volumes hold
| Volume | Contents | Losing it means |
|---|---|---|
/root/.openbridge | config.json, HomeKit pairing data, installed plugins, metrics, session key | Re-pairing with HomeKit and reconfiguring |
/opt/openbridge | The app itself, plus the previous version kept for rollback | Nothing permanent, it is reinstalled from npm on boot |
Back up /root/.openbridge. That is the one that matters.
Upgrading
Press Install update in Settings. The daemon installs the new version into /opt/openbridge/staging, swaps it into place, keeps the old tree as previous, and exits; the unless-stopped restart policy brings it straight back on the new version. If it fails to come up, Rollback in Settings puts previous back.
To upgrade from the shell instead, delete the installed tree and restart:
docker compose down
docker volume rm openbridge_openbridge-app
docker compose up -dYour config and pairing live on the other volume and survive either route.
Both routes replace OpenBridge, not Node. Node comes from the image: line, so when Node ships a security release, raise that tag to the patched version and run docker compose up -d. OpenBridge needs Node 22.23.4 or newer and says so in its log at startup when it runs on anything older.
Pinning a version
Set a concrete version rather than latest:
OPENBRIDGE_VERSION_SPEC: 0.30.0then docker compose up -d --force-recreate. While a pin is set the in-app updater is disabled, and Settings shows what to edit instead: a restart would reinstall the pin and silently undo any update applied from the UI.
Homebrew
brew install nubisco/tap/openbridge
brew services start openbridgeOpen http://localhost:8582. brew services starts OpenBridge now and again at every login, and restarts it if it stops. Homebrew brings its own Node.js, so you do not need to install one. Settings and pairing data live in ~/.openbridge, as with every other method.
brew upgrade openbridge && brew services restart openbridge # upgrade
brew services stop openbridge && brew uninstall openbridge # remove the program
rm -rf ~/.openbridge # remove config and pairing data tooHomebrew owns the files it installs, so the dashboard does not update a Homebrew install itself. Settings shows the brew upgrade command instead. Logs are in $(brew --prefix)/var/log/openbridge.log.
Homebrew holds back npm packages published in the last day, as a guard against a compromised release. A new OpenBridge version therefore reaches Homebrew a day after it reaches npm.
npm
npm install -g @nubisco/openbridge
openbridgeOpen http://localhost:8582. The dashboard is bundled in the package, so there is nothing else to build or serve.
openbridge --help # usage
openbridge --version # print the version
openbridge --port 9000 # run on a different portAvoid sudo npm install -g
If you get EACCES errors, the fix is not sudo. Installing global packages as root leaves root-owned files in your home directory and causes problems later. Either use a version manager, which is the cleaner option:
# fnm (https://github.com/Schniz/fnm) or nvm both work
fnm install 22 && fnm use 22
npm install -g @nubisco/openbridgeor point npm at a directory you own:
mkdir -p ~/.npm-global
npm config set prefix ~/.npm-global
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.profile
source ~/.profile
npm install -g @nubisco/openbridgeAlpine and other musl systems
Supported on x64 and arm64. OpenBridge's only native dependency, node-pty, is an optional dependency: if it cannot be built, the install still succeeds and everything works except the dashboard's interactive shell pane.
To enable the shell pane, install a toolchain first:
apk add build-base python3 linux-headers
npm install -g @nubisco/openbridgeRunning as a service
On Linux with systemd, create /etc/systemd/system/openbridge.service. Replace youruser and the path to openbridge (find it with which openbridge):
[Unit]
Description=OpenBridge
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=youruser
ExecStart=/usr/local/bin/openbridge
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.targetsudo systemctl daemon-reload
sudo systemctl enable --now openbridge
systemctl status openbridge
journalctl -u openbridge -fRun it as a normal user, not root. State is written to that user's home directory, so the service user must match the account you installed under.
Upgrading and uninstalling
npm install -g @nubisco/openbridge@latest # upgrade
npm uninstall -g @nubisco/openbridge # remove the program
rm -rf ~/.openbridge # remove config and pairing data tooPublished packages
The daemon is @nubisco/openbridge. Plugin authors depend on the libraries directly rather than installing the daemon as a dependency:
| Package | Use |
|---|---|
@nubisco/openbridge | The daemon and CLI (what you install) |
@nubisco/openbridge-sdk | definePlugin() for plugin authors |
@nubisco/openbridge-core | Plugin types, registry, lifecycle |
@nubisco/openbridge-logger | Structured logger |
@nubisco/openbridge-config | Zod-validated config schema |
@nubisco/openbridge-compatibility-homebridge | Homebridge platform plugin adapter |
All six are released together under one version, from CI, with npm provenance attestations linking each tarball to the commit and workflow run that built it.
From source
For contributors, or to run an unreleased branch.
Additional requirements: pnpm 9, Git, and roughly 1 GB of free disk.
npm install -g pnpm@9
git clone https://github.com/nubisco/openbridge
cd openbridge
pnpm install
pnpm build
node apps/daemon/dist/index.jspnpm build covers the runtime packages and the dashboard. It deliberately excludes the documentation site, which needs more than 1 GB of RAM to build and would otherwise make the whole build fail on small machines. Build the docs separately with pnpm build:docs.
See Getting Started for the development workflow with hot reload.
Verifying the install
curl http://localhost:8582/api/health{ "status": "ok", "version": "0.30.0", "capabilities": { "shell": true, "ui": true } }capabilities tells you which optional pieces are present:
ui: falsemeans the bundled dashboard was not found, and the API is serving JSON only.shell: falsemeansnode-ptyis not installed, so the terminal pane is disabled. Nothing else is affected.
Where OpenBridge stores data
Everything lives under ~/.openbridge, in the home directory of the user running the daemon (/root/.openbridge in the Docker image):
| Path | Contents |
|---|---|
config.json | Your configuration |
hap-storage/ | HomeKit pairing data. Deleting it unpairs the bridge. |
plugins/openbridge/ | Installed OpenBridge plugins |
plugins/homebridge/ | Installed Homebridge plugins |
metrics/, energy-history/ | Recorded device metrics |
session.key | Secret for signing session cookies |
sessions.json | Dashboard sessions, so one can end before its cookie expires (Accord sign-in only) |
install.json | The random id of this install, for the install heartbeat |
The location follows the HOME environment variable, so running the daemon under a different HOME relocates all of it.
Anonymous install heartbeat
Once per start, and once a day while it keeps running, the daemon tells Nubisco that this install is alive. That is how we know how many installs there are, how many are new, and how many have updated, per install method, without an account or a sign-in.
What it sends, and nothing else:
| Field | Value |
|---|---|
installId | A random UUID, generated once and kept in ~/.openbridge/install.json. Not derived from your hardware, user or hostname. |
version | The OpenBridge version running |
previousVersion | The version that ran before, only on the first start after an update |
firstRun | true only on the very first start of an install |
installMethod | docker, homebrew, npm or source |
os, arch | darwin, linux or win32, and arm64 or x64 |
Nothing about your home, your devices, your plugins, your network or you. The request goes to https://downloads.nubisco.io/ping with a openbridge/<version> user agent, times out after four seconds, is never retried and never delays startup. Offline installs simply send nothing.
On the server, the install id is hashed with a secret before it is stored, so the value in install.json never reaches Nubisco's records. As with any web request, the server also sees your IP address and user agent. The IP address is used to work out the country and to tell installs apart within one day, and is kept only as a keyed hash, never in clear. Update checks are separate: they go to the npm registry and GitHub, under those services' own terms. The full wording is in the Nubisco privacy policy.
To turn it off, switch off Anonymous install heartbeat under Settings → Updates in the dashboard, or set it in config.json:
{
"telemetry": { "installHeartbeat": false }
}The change applies at once, no restart needed. Deleting install.json makes the next start count as a new install.
Environment variables
| Variable | Effect |
|---|---|
OPENBRIDGE_PORT | Dashboard and API port. Same as --port. |
OPENBRIDGE_UI_PATH | Override where the built dashboard is loaded from. |
OPENBRIDGE_SESSION_SECRET | Fixed secret for signing session cookies. Minimum 16 characters. Generated and stored if unset. |
OPENBRIDGE_MCP | on serves the MCP endpoint at /mcp, for Claude and other AI agents. Off by default. |
OPENBRIDGE_PUBLIC_URL | The address clients use when the bridge is behind a proxy or tunnel, e.g. https://bridge.example.com. Used by the MCP endpoint for its sign-in addresses. Defaults to the address each request came in on. |
TZ | Timezone, mainly useful in Docker so log timestamps match your locale. |
The ACCORD_* variables are for signing in with Accord and do nothing unless ACCORD_ENABLED is set.
Signing in with Accord
The dashboard is open to your network unless you turn sign-in on. Nubisco's own bridge signs people in with Accord, Nubisco's sign-in service. Accord is not offered to other households, so a home install normally leaves all of this unset.
| Variable | Effect |
|---|---|
ACCORD_ENABLED | true turns sign-in on. Off by default. |
ACCORD_ISSUER | Accord's issuer, the address its tokens name. |
ACCORD_AUTH_ORIGIN | Where the browser signs in, and where the bridge asks about members. Defaults to the issuer. |
ACCORD_APP_ID | The app the tokens must be issued to. Defaults to openbridge. |
ACCORD_CLIENT_ID | The openbridge app's client id in Accord. With the secret, turns on the membership check below. |
ACCORD_CLIENT_SECRET | Its client secret. Put it in the service's environment, never in config.json or a repository. |
ACCORD_MEMBER_CHECK_SECONDS | How often each signed-in person is checked. 300 (five minutes) by default, 30 at the least. |
Before 2026-11-28 these were named PLATFORM_ENABLED, PLATFORM_ISSUER, PLATFORM_AUTH_ORIGIN and PLATFORM_APP_ID. The old names are still read when the new ones are not set, with a warning at startup, and stop working in a later release.
When someone loses access in Accord
With the client id and secret set, the bridge asks Accord about each person at sign-in, every five minutes for each person with an open session or an MCP token or connection, and when an MCP token or connection is used (reusing each answer for a minute). When Accord answers that someone is not a member (removed from OpenBridge, deactivated, or erased), the bridge:
- refuses their sign-in, and ends their sessions, closing any open logs, metrics or shell,
- revokes the MCP tokens and connections they made,
- deletes what they had read or cleared in the bell, the only thing the bridge keeps about a person.
A change of name, address or picture in Accord reaches the dashboard at the next check.
When Accord cannot be reached, nothing changes. Sessions stay open and the bridge asks again at the next check. The bridge runs a house, and a network blip must not lock its people out of the gate or the heating. The cost is that someone removed while Accord is unreachable keeps access until the bridge can ask again. A session lasts at most seven days in any case.
Without the client id and secret, nobody is checked, and someone removed in Accord keeps their session until it expires (up to seven days). The daemon warns about this at startup.
Why the bridge asks instead of listening. Nubisco's products learn about people from Accord through the Nubisco bus, and the rule is that they never poll. The bus only reaches services on Cloudflare, and a bridge runs in a home. Asking Accord is the exception, decided by Jose on 2026-11-28.
Troubleshooting
The bridge does not appear in the Home app
Almost always a network problem rather than an OpenBridge problem. In order of likelihood:
- Your phone is on a different subnet or VLAN from the bridge. Put them on the same one, or run an mDNS reflector.
- Wi-Fi client isolation is enabled on your access point. Turn it off.
- You are running Docker without
--network host, or on Docker Desktop for macOS or Windows. HomeKit cannot work through a bridge network. - A firewall is blocking UDP 5353 or TCP 51829.
Confirm the daemon itself is healthy first with curl http://localhost:8582/api/health. If that returns ok, the problem is on the network side.
EADDRINUSE: address already in use
Something else holds port 8582. Either stop it, or move OpenBridge:
openbridge --port 9000To make it permanent, set bridge.port in ~/.openbridge/config.json. Values below 1024 are rejected there, since binding them requires root.
EACCES when installing globally
See Avoid sudo npm install -g.
The terminal tab in the dashboard does not work
node-pty is not installed. Confirm with curl http://localhost:8582/api/health and look for "shell": false. Install a build toolchain (build-base python3 linux-headers on Alpine, build-essential python3 on Debian and Ubuntu) and reinstall. Everything except the terminal works without it.
Under Docker this is expected: the bootstrap installs with --omit=optional, so the pane is off there by design.
The container reports unhealthy
On the very first start it is still installing from npm, which is why start_period is 120s. Watch docker compose logs -f until the daemon reports it is listening.
Otherwise, check that the health check targets the same port the daemon listens on. If you changed bridge.port, update the healthcheck block too.
JavaScript heap out of memory when building from source
You are building the documentation site on a machine with under 1 GB of RAM. Use pnpm build, which excludes it, rather than pnpm build:all.
Unpairing and starting over
Remove the bridge in the Home app first, then:
rm -rf ~/.openbridge/hap-storageRestart the daemon and pair again. Changing bridge.username in config.json has the same effect, since HomeKit identifies the bridge by that value.
Next steps
- Getting Started walks through first-run config, HomeKit pairing, and installing a plugin.
- Configuration Reference documents every config field.