In one minute
- Most people don't need it: playback, search (including Plex), voice, scenes, schedules and remote control all work without it.
- Install it if you want Sonos in Apple Home (Siri, Home automations, sensors) or arrive/leave triggers.
- How: tap "Add bridge" in the app, confirm you have an always-on NAS, and install the recommended way (graphical on Synology / fnOS, a one-tap command elsewhere) — it pairs in about 10 seconds.
- Phone on your home Wi-Fi: a bridge that's running and waiting to be set up shows up in the app by itself — tap "Add to my home", no setup code needed.
- Not supported: Docker Desktop on Mac or Windows.
Do you need the bridge?
| Feature | Bridge? |
|---|---|
| Play, pause, volume, grouping, multi-room | No |
| Search across services (incl. Apple Music radio, Plex) | No |
| Voice assistant, scenes, schedules, remote control | No (some need a Sonos account sign-in) |
| Rooms and scenes in Apple Home (Siri, automations, sensors) | Yes |
| Arrive / leave triggers | Yes |
| Saving to playlists / Sonos favorites while away | Partly (at home it goes over your LAN) |
| AI requests going straight into the queue | Yes (without it music still starts, just not in the queue until you open the app) |
If the bridge goes offline, only the "Yes" items pause; everything else keeps working.
Before you start
- An always-on machine with Docker — Synology, fnOS, Unraid, TrueNAS, an OpenWRT / iStoreOS router or a Linux box — on the same home network as your Sonos, with internet access.
- Docker Desktop on Mac or Windows isn't supported: it has no host networking, so it can't discover Sonos on your LAN.
- The ZoneFoundry iPhone app already sees and controls your Sonos rooms. Your iPhone doesn't need to be on the same network segment as the bridge.
Option 1: add it from the app (recommended)
From 1.0.14, "Add bridge" first asks whether you have a suitable machine, then recommends an install method for your platform. The whole flow:
Open "Add bridge"
Open ZoneFoundry, tap the gear at the top right of Home and go to Settings → Home bridge (on 1.0.10 and earlier: Advanced (Bridge) → Bridges). Tap "+" at the top right → "Add bridge".
Answer "do you have an always-on NAS?"
The first screen asks "Do you have a NAS, soft router or Linux computer at home that's always on and has Docker installed?" and explains: "The bridge runs on that device, not on your phone. Docker Desktop on Mac / Windows isn't supported."
- Tap "No, I don't" and the app shows "You don't need a bridge for everyday use" — "Playback, music search, voice, scenes and remote control when you're out all work without a bridge. Only Apple Home and automatic arrive / leave triggers need one." No command is generated. For Siri, tap "Set up Siri Shortcuts"; if you get a machine later, tap "Actually, I do have one".
- Tap "Yes, I have one" to continue.


Pick the platform, a name and the network region
Choose where you'll install it (Synology, fnOS, Unraid, TrueNAS, OpenWRT / iStoreOS or other Linux). "Bridge name" names the NAS or computer — e.g. Study Synology — not a speaker. Under "Network region", in mainland China choose "🇨🇳 中国大陆" (it downloads from an Alibaba Cloud mirror, since Docker Hub isn't reachable there); elsewhere choose "🌏 全球 Global".
Install the recommended way
- Synology, fnOS, TrueNAS: the default is "Install with docker-compose (graphical)" — "Create a project in your NAS's Docker app and paste the YAML — no terminal commands needed." Enter a bridge name, tap "Generate pair code", and the app gives you YAML with the pairing code filled in; follow your platform under Option 2. Prefer the terminal? Expand "Or use a one-tap command".
- Unraid, OpenWRT / iStoreOS, Linux: the default is "One-tap install". Tap "Generate one-tap install command" → "Copy command" and run it on the Docker machine (terminal or SSH). The command works for 24 hours: if the install didn't finish you can run it again (up to 5 times), and it only stops working once the bridge has paired. Opening or previewing the link in WeChat doesn't use it up. The one-tap command works on every platform.

Watch the progress and check the bridge appears
After you generate the one-tap command, the app shows "Install progress" live: "Waiting for you to run it on your device (not detected yet)" → "Install script downloaded" → "Bridge paired" → "Bridge is online". If it's still on the first step after 10 minutes, it reminds you "This command has to be run in your NAS's terminal / SSH, not on your phone." with "Open the install guide". With YAML, the bridge pairs about 10 seconds after it starts.
Once installed, the bridge appears in the Home bridge list on its own — no IP to enter. When you see it, you're connected.

Option 2: install by platform
On "Add bridge", pick your platform, enter a bridge name and tap "Generate pair code": on Synology, fnOS and TrueNAS it's right in the "Install with docker-compose (graphical)" card; on Unraid, OpenWRT and Linux expand "Manual install (advanced)" first. The app writes a docker-compose YAML (Synology, fnOS, TrueNAS) or a docker run command (Unraid, OpenWRT, Linux) for that platform with the pairing code filled in — copy the whole thing. Platform steps:
Synology (Container Manager)
- Don't use Registry → Download Image; use Project below.
- SSH into the Synology and run the
chown/synoacltool/chmodcommand the app shows, which creates and fixes/volume1/docker/zonefoundry-bridge. - Container Manager → Project → Create → set the path to that folder → "Create docker-compose.yml" and paste the app's YAML.
- Next → Done → Start; it pairs in about 10 seconds. If it fails, use Stop → Clean → Build, not Restart.
fnOS
- SSH in (default account admin) and run the app's
mkdir/chmodcommand to create/vol1/1000/docker/zonefoundry-bridge. That's the default for the admin user (UID 1000) on one volume; change/vol1/1000/if you have several users or volumes. - Docker app → Project → New → "Create from docker-compose.yml", paste the app's YAML → Start; it pairs in about 10 seconds.
- If it fails, use Stop → Clean → Build, not Restart.
Unraid
- Web UI → Tools → Web Terminal, paste the app's
docker runcommand and press Enter; it pairs in about 10 seconds and shows up on the Docker tab. - Keep
--group-add 281(Unraid's docker group) — it lets the app's one-tap upgrade work. - Community Apps also lists zonefoundry, but that template is older; prefer the command from the app.
TrueNAS SCALE
- Apps → Custom App → "Install via YAML", paste the app's YAML, save and start; it pairs in about 10 seconds. Check App Logs if it's slow.
OpenWRT / iStoreOS routers
- Make sure Docker is installed: built into iStoreOS; on OpenWRT install dockerman / luci-app-docker first.
- SSH into the router and run the app's
docker runcommand; it pairs in about 10 seconds and keeps data in/opt/docker/zonefoundry-bridge.
Linux
- SSH into a machine with Docker and run the app's
docker runcommand; it pairs itself and keeps credentials in/var/lib/zonefoundry-bridge.--restart unless-stoppedis already included, so it starts on boot.
What the command looks like (reference)
Normally just copy it from the app; this is only so you know what each line does. ZF-XXXXXXXX is the pairing code; pick the image for your region.
docker run -d \
--name zonefoundry-bridge \
--network host \
--restart unless-stopped \
--pull always \
-e TZ=Asia/Shanghai \
-e ZF_RELAY_URL=wss://relay.zonefoundry.dev/ws \
-e ZF_PAIR_CODE=ZF-XXXXXXXX \
-e ZF_AGENT_LABEL=my-bridge \
-v /var/lib/zonefoundry-bridge:/app/data \
-v /var/run/docker.sock:/var/run/docker.sock \
ghcr.io/kisssam6886/zonefoundry:latest
- Image: outside mainland China use
ghcr.io/kisssam6886/zonefoundry:latest; in mainland China usecrpi-csglvxm8dyi65pur.cn-shenzhen.personal.cr.aliyuncs.com/zonefoundry/bridge:latest. - Host networking is required: the bridge discovers Sonos on your LAN; bridge-mode networking can't see the speakers.
- /app/data keeps the pairing credentials so a restart doesn't need re-pairing. The container fixes permissions itself; only if the log says
data dir is not writablerunchown -R 10001:10001 <folder>on the host (Synology does this up front, step 2 above). - docker.sock powers the app's Upgrade button; remove that line if you prefer manual updates. Don't add
--cap-drop ALL— the container then can't drop privileges properly.
My phone is on home Wi-Fi — why don't I need a setup code any more?
From 1.0.14 the app finds bridges that are waiting to be set up on the same internet connection as your phone. If the container started without a pairing code, or the code expired or was already used, the bridge waits to be set up; open the "Bridges" list or "Add bridge" and a card appears at the top:
- Title "Found a bridge waiting to be set up: hostname (platform)", with "It's on the same network as your phone, so you don't need to type a setup code." underneath.
- If you recognise the machine, tap "Add to my home". A second prompt, "Confirm this is your device at home", says "Only add it if you just installed this bridge yourself. If you don't recognise the name, tap Cancel." After confirming you'll see "Added name to your home", then "Bridge paired" → "Bridge is online".
- Don't recognise it? Tap "Not mine" and it's hidden on this page.


When it appears: your phone and the bridge share the same public IP (phone on home Wi-Fi, no proxy), and the bridge started within the last 30 minutes and hasn't paired yet. If more than 5 bridges are waiting behind the same IP (for example a carrier sharing one address across homes), the card isn't shown — use a setup code instead.
If tapping it says "This bridge is no longer waiting to be set up (it may have been added already, restarted, or your phone switched networks). Make sure your phone is on your home Wi-Fi, or enter the ZF- setup code from the bridge's log instead.", use a setup code as in the next section.
When auto-discovery doesn't appear: use the setup code
If your phone is on a proxy or cellular data (not the same internet connection as the bridge), or the bridge started more than 30 minutes ago, the card won't appear. Use the setup code:
- If the container started without a pairing code, or the code expired or was already used, the bridge switches to a setup code by itself (the log says the pairing code is no longer valid) and requests one —
ZF-plus 8 characters, valid 30 minutes. Get it withdocker logs zonefoundry-bridge 2>&1 | grep "Setup code: *ZF-" | tail -1. - In the app go to Settings → Home bridge → "+" (top right) → "Enter setup code", enter it and tap "Confirm"; it pairs in about 5 seconds. Case, dashes and spaces don't matter. Server maintenance restarts don't invalidate the setup code.
Pairing code vs setup code vs the Apple Home code
- Pairing code: from "Generate pairing code" in the app —
ZF-plus 8 letters/digits, valid 30 minutes, goes into the command. - Setup code: the code the bridge requests by itself when the container has no (valid) pairing code — also
ZF-plus 8 characters, valid 30 minutes, entered under "Enter setup code" in the app. On home Wi-Fi you usually won't need it (see auto-discovery); how to use it is in the section above. - Apple Home code: the log also shows a "Setup code" in the form
XXX-XX-XXX— that one is for Apple's Home app; don't enter it in ZoneFoundry.
Connect to Apple Home
Once you have at least one bridge, the Home Bridge page shows an "Apple Home pairing" section. Tap "Copy pairing code", then in Apple's Home app choose Add Accessory and enter the code (format XXX-XX-XXX).
- Each room becomes a "light" named after the room: on = play, off = pause, brightness = volume (0–100).
- Every ZoneFoundry scene becomes a switch you can combine with lights and AC in one Home scene.
- For automations to run when you're not around, you need a HomePod or Apple TV as a home hub (an Apple requirement).
- No code shown? From 1.0.14 this section tells you why: when the bridge is offline it says "The bridge is offline, so the Apple Home pairing code can't be shown. Check that the bridge container is running." — start the container first. Only a genuinely outdated bridge shows "Update the bridge to the latest version to show the Apple Home pairing code."
More: Let Siri & Apple Home control your Sonos · Link a scene with lights & AC · Auto-run a scene when someone walks in
What do the notes on a bridge card mean?
From 1.0.14, each card in the Bridges list tells you directly what's wrong:
- "Long offline (last online …)": the bridge hasn't connected for a long time. The app only flags it and never revokes it automatically; tap "Remove" next to it if you no longer use it.
- "(not found this time)" after a room name: the room was seen before but not in this scan — usually the speaker is powered off or not on the bridge's network.
- "The speakers this bridge sees aren't in the Sonos account you're signed in to.": the Sonos on the bridge's network belongs to a different Sonos account than the one signed in to the app. If it says "The speakers this bridge sees are in another Sonos system in your account (…).", tap "Switch to this Sonos system", then "Switch" in the "Switch Sonos system?" prompt.
- "Online …% in the last 24 hours" / "Last disconnected …": connection quality — if it drops often, check that machine's network first.
Upgrade, remove, re-pair
- Upgrade: when a new version is out, the bridge row shows an Upgrade button; the bridge restarts on the new version within 30–60 seconds (needs the docker.sock line). If it's offline, the button becomes available once it's back. From v0.3.52 (2026-10-01) the bridge switches to a backup entry point when the main one is unreachable and reconnects within 1–2 minutes after a drop; existing containers can upgrade with the Upgrade button (the app may take a few hours to show the new version).
- For manual updates, recreate the container (pull the new image, remove the old container, run the same command again);
docker restartalone won't switch versions. - Remove: choose Revoke on the bridge in the list to disconnect it from your home; the container can pair again with a new code.
FAQ
The bridge never shows up in the list?
Check in order: ① host networking; ② the machine is on the same home network as Sonos and can reach the internet (pairing goes through wss://relay.zonefoundry.dev); ③ it's not Docker Desktop on Mac/Windows; ④ the code hasn't expired (pairing/setup codes 30 min; the one-click command can be re-run within 24 h, up to 5 times); ⑤ look for errors in docker logs zonefoundry-bridge; ⑥ the bridge is v0.3.52 or newer — older versions don't switch to the backup entry point, so tap Upgrade in the app first.
My phone is on home Wi-Fi but "Found a bridge waiting to be set up" never appears?
Check in order: ① your phone isn't on a proxy / VPN and is on home Wi-Fi, not cellular; ② the bridge started within 30 minutes and hasn't paired — bridges installed with a pairing-code command or YAML pair themselves, so no card appears; ③ the card is hidden when more than 5 bridges are waiting behind the same public IP. Otherwise use the setup code.
The Apple Home pairing section says the bridge is offline?
The bridge isn't connected right now — it doesn't need an update. Check in that machine's Docker app or with docker ps that the container is running; once the bridge is back online the code appears.
Log says "Could not resolve host"?
The machine's DNS is broken. In mainland China, try setting DNS to 223.5.5.5.
Synology / fnOS won't start it?
In Project, use Stop → Clean → Build, not Restart — only that re-applies the YAML and pulls a fresh image.
Can I run it on a Mac or Windows PC?
Not with Docker Desktop — it has no host networking, so it can't find Sonos. Use a NAS, router or Linux box.
Does Plex need the bridge?
No. It works as long as your phone and speakers are on the same home Wi-Fi and the speakers can reach your Plex server.
The bridge is an optional extra, not a requirement
ZoneFoundry is an iOS app that works with the Sonos you already have; add the bridge later if you want Apple Home.