Run it as a service
The installer does not configure startup.
The curl installer only places binaries on disk. For an
always-on Linux host, install the daemon as a systemd service and
allow the LocalSend ports through the LAN firewall. macOS can run
the same daemon directly; Windows is not wired into the curl
installer for this alpha.
Linux and macOS install
mkdir -p "$HOME/.local/bin"
curl -fsSL https://raw.githubusercontent.com/NightBridgeHQ/nightbridge/main/install.sh | \
sh -s -- --version 26.5.0-alpha \
--install-dir "$HOME/.local/bin"
The curl installer supports Linux and macOS release tarballs.
Linux systemd unit
sudo useradd --system --home /var/lib/night-bridge \
--shell /usr/sbin/nologin nightbridge
sudo install -d -o nightbridge -g nightbridge /var/lib/night-bridge/inbox
sudo install -d -m 0755 /etc/night-bridge
sudo tee /etc/systemd/system/night-bridge.service >/dev/null <<'EOF'
[Unit]
Description=NightBridge daemon
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=nightbridge
Environment=XDG_CONFIG_HOME=/etc
Environment=XDG_DATA_HOME=/var/lib
ExecStart=/usr/local/bin/night-bridge-daemon \
--config /etc/night-bridge/config.toml \
--identity /var/lib/night-bridge/identity.key \
--trust-db /var/lib/night-bridge/trust.db \
--inbox /var/lib/night-bridge/inbox \
--alias "Home Server" \
--localsend-receive-policy trusted
Restart=on-failure
RestartSec=5s
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable --now night-bridge.service
macOS run-direct alpha path
mkdir -p "$HOME/NightBridgeInbox"
"$HOME/.local/bin/night-bridge-daemon" \
--alias "Home Server" \
--localsend-receive-policy trusted \
--inbox "$HOME/NightBridgeInbox"
A LaunchAgent can keep it running, but the alpha site keeps macOS startup explicit for now.
Windows alpha status
# Windows native install is not in install.sh yet.
# For this alpha, use WSL/Linux or build from source.
cargo build --release -p lsi-cli -p lsi-daemon -p lsi-tui
Windows CI build and tests are green, but polished Windows packaging is still pre-release work.
LAN firewall ports
sudo ufw allow from 192.168.1.0/24 to any port 53317 proto tcp
sudo ufw allow from 192.168.1.0/24 to any port 53317 proto udp
sudo ufw allow from 192.168.1.0/24 to any port 53400 proto udp
Adjust the CIDR to your trusted LAN, for example 192.168.1.0/24.
Check status
systemctl status night-bridge.service
journalctl -u night-bridge.service -f
curl -k https://127.0.0.1:53317/api/localsend/v2/info
On macOS, use the same curl -k check against the daemon process you started.