1-bit

Bridge · Setup

Setup walkthrough

From a blank machine to a paired iPhone in about ten minutes. No Go toolchain, no Docker — just a pre-built binary, a config wizard, and a quick QR scan. Pick your platform and follow the steps.

Before you start

You'll need:

  • A computer that stays on while you listen — Mac, Linux box, Raspberry Pi 4+ (arm64), or Windows 10/11 PC. A modern NAS that runs containers also works (see the Docker guide — one command, no init step).
  • Your music library on a disk that machine can read — a folder of .flac, .dsf, .alac, .m4a, .mp3, and friends. Tags can be missing; the bridge enriches what it can.
  • The 1-bit iOS app installed on your iPhone or iPad (iOS 26.1 or newer).
  • About 10 minutes the first time. Future updates take seconds.
  • Optional — only for audio analysis, Smart Mixes, and upscaling: the sox audio tool built with FLAC support (brew install sox on macOS, apt install sox libsox-fmt-all on Debian/Ubuntu), plus ffmpeg / ffprobe for AAC / m4a sources. The bridge runs fine without them and simply leaves those opt-in features off; install them only if you plan to turn the features on. (Running in Docker? The image already bundles both — nothing to install.)
  1. Download for your platform

    Grab the archive matching your OS and CPU from the download page and unpack it in a folder it can stay in: the archive has no folder of its own, and the service bridge init installs runs the program from where it is. On Linux, one line can do this step and step 3 for you (below the cards).

    macOS

    tar -xzf 1-bit-bridge_*_macos_arm64.tar.gz

    Apple Silicon → arm64. Intel Mac → amd64. Signed and notarized; Gatekeeper is happy on first run.

    Linux / Raspberry Pi

    tar -xzf 1-bit-bridge_*_linux_arm64.tar.gz

    Pi 4 / Pi 5 → arm64. x86_64 server → amd64. Static binary — no glibc gymnastics.

    Windows

    Expand-Archive -Path 1-bit-bridge_*_windows_amd64.zip -DestinationPath bridge
    cd bridge

    SmartScreen will warn "unrecognized app" on first run — click More info → Run anyway. Authenticode signing is in progress.

    On Linux, in one line. On moOde, Raspberry Pi OS, Volumio, Debian, Ubuntu or another Linux with systemd, 64-bit (amd64 or arm64), run this as the user the bridge should run as, not as root:

    curl -fsSL https://1-bit.app/install.sh | sh

    The script is stamped with its release. It downloads that release, checks the archive against the release's checksums.txt, installs the program as ~/.local/bin/bridge and runs bridge init (step 3), which offers your music folders, writes the settings and installs the bridge as your user's systemd service. It asks for sudo once, and says why first: to turn on lingering, so the bridge keeps running after you log out and starts at boot. On a box with a DAC whose group your user isn't in, it says so and prints the commands for the bridge's own player; it runs neither. It finishes with how to pair your phone: the admin console through an SSH tunnel whose local port is the same as the admin console's (7789 by default, as in ssh -L 7789:127.0.0.1:7789 you@the-box, then http://127.0.0.1:7789/ on your computer), or bridge pair in the terminal. On Volumio, a factory reset or a system update can remove the bridge, which lives outside /data: run the installer again afterwards and pair your phone again. Your music is never touched. A bridge already installed as your user's service the way bridge init sets it up, from an archive or by this script, is upgraded; any other layout (a system service, a ~/.local/bin/bridge no service of yours runs, settings with no service, or a service whose program or environment a drop-in changes) is refused with nothing changed, and told what to run instead.

    To update, run the same line again: it upgrades the bridge through bridge update, which checks your paired devices first and keeps the previous program for a rollback. Options go after sh -s --: --library PATH names the music folder (needed when there is no terminal to ask), --version X.Y.Z installs that release on a new install, --uninstall prints the commands that remove the bridge and changes nothing, and --help lists the rest. To read the script before you run it, save it with curl -fsSL https://1-bit.app/install.sh -o install.sh and run sh install.sh.

  2. Run a preflight check (optional)

    bridge doctor prints a punch list of what's wrong with your environment before you commit to a config. It's safe — it makes no changes.

    ./bridge doctor

    You're aiming for all green. The most common red is port already in use on :7788 or :7789 — close whatever owns those ports, or pick different ones in the next step with --listen-address and --admin-address.

  3. Run bridge init

    The init wizard walks you through the minimum you need to start serving music: a library path and a library name (shows up on your iPhone). The bridge listens on :7788 for the app and 127.0.0.1:7789 for the admin console; --listen-address and --admin-address choose others. Defaults are sane — pressing return is usually fine.

    ./bridge init

    It will ask for:

    • Library path — the top-level folder containing your music. Use an absolute path. Multiple roots can be added later from the admin console.
    • Library name — what your phone shows in the Sources list. "Home library" is fine.
    • Service install — on macOS and Linux it installs one without asking; on Windows it asks how the bridge should start. On macOS that's a LaunchAgent, which starts the bridge when you log in. On Linux it's your user's systemd service; it starts at boot and keeps running after you log out only with lingering on, which the one-line installer tries to turn on (it warns if it can't) and bridge init doesn't — turn it on yourself with sudo loginctl enable-linger $USER. On Windows the default is a Startup-folder launcher that starts the bridge when you log in; for one that starts at boot and survives logout, choose the Windows Service instead (.\bridge.exe init --service, from an elevated PowerShell).

    If you'd rather not install a service yet, run ./bridge init --no-service --yes --library /path/to/music and start the bridge manually with ./bridge serve. Quit-on-close, keep-it-simple — recommended for first-time exploration.

  4. Open the admin console

    Once bridge init reports success, open http://127.0.0.1:7789/ in any browser on the same machine. If you chose a different admin port with --admin-address, replace 7789 in that URL with your chosen port.

    The admin console is loopback-only — it answers exclusively on 127.0.0.1, never on your LAN or Tailscale IP. There's no login because anyone with a shell on this machine already has access to the data the console manages. From here you can:

    • Browse — your library as a player: albums, artists, playlists and search, with each album's variants beside it.
    • Add music — once uploads are enabled, add files or whole folders to a library root from the browser.
    • Stats — the scanner and its Scan now button, library composition, enrichment, and paired devices at a glance.
    • Roots — add or remove root folders, and manage the trash and the transcoded cache.
    • Devices — pair iPhones, approve pending pair requests, rotate or revoke tokens.
    • Listening history — your opt-in listening history, pooled across devices, with export.
    • Settings — metadata, audio (upscale / analysis), access (Tailscale, DLNA, public mode), auto-update & quiet hours, backups.
  5. Wait for the first scan

    The bridge starts scanning your library the moment it's pointed at a folder. The Scanner panel on the console's Stats page shows live progress: scanning · N tracks so far.

    What "first scan" looks like for typical libraries:

    Approximate first-scan and re-scan durations by library size
    Library sizeApprox. first scanSubsequent re-scans
    2,000 tracks30 secondsunder 5 seconds
    10,000 tracks2 minutes10–20 seconds
    50,000 tracks5–15 minutes30–60 seconds

    Times depend on disk speed and how much enrichment (MusicBrainz lookups, artwork downloads) the bridge has to do. The first scan is the slow one because every track gets enriched; later scans only enrich what's new.

    You can pair your iPhone before the scan finishes. The app will stream what's already indexed and pick up the rest as it lands.

  6. Pair your iPhone — Method A: tap-to-pair (recommended)

    This is the easiest path. Both devices must be on the same Wi-Fi.

    1. Open the 1-bit app.
    2. Tap + in the Sources list, then Add 1-bit Bridge… → Discover on network.
    3. Your bridge appears in a list — tap Join. The app shows a 6-digit verification code.
    4. Switch to the admin console — Devices in the sidebar shows a pending count. Open it.
    5. Under Pending join requests, confirm the 6-digit code matches what's on your phone and click Approve. The device keeps the name it sent.
    6. Your phone's Sources list now shows the bridge as a paired source. Tap into it.

    The verification code prevents an attacker on your network from MITM'ing the pair — only the device that actually holds the matching code is talking to your bridge.

  7. Pair your iPhone — Method B: QR / manual entry

    If you'd rather pair from the admin side first (e.g. you're configuring a phone for someone else), use the legacy flow.

    1. In the admin console, open the Devices tab and click Pair manually (advanced).
    2. Give it a name and click Generate token. The console shows a QR code encoding an onebit://pair?... URL, which 1-bit reads from version 2.2 (a bridge before 0.2.3 writes bridge://pair?...).
    3. On the iPhone: 1-bit → + → Add 1-bit Bridge… → Scan QR Code. Point the camera at the QR.
    4. Or paste the URL, token, and TLS fingerprint manually via Add 1-bit Bridge… → Enter Manually, which works with any version of the app.

    Either method ends with the bridge appearing as a paired source in 1-bit. Every subsequent request from the iPhone is bearer-token-authenticated and TLS-fingerprint-pinned.

  8. Test playback

    From the iPhone's Sources list, tap into the bridge. Browse to an album. Tap a track. You should hear it within a second or two.

    Open the Now Playing screen: with a DAC 1-bit has a profile for, the format label on the artwork should end in BIT-EXACT for FLAC / ALAC / DSF playback — tap it for the full signal path. If the mini player's signal badge turns orange with a warning sign (resampling), iOS hit a sample-rate ceiling on the route — usually means an AirPlay or BT speaker is in the path.

  9. Optional: enable remote access via Tailscale

    If you want to listen to your library from outside your home network, the cleanest answer is Tailscale — a free, peer-to-peer VPN. The bridge has built-in support for it.

    Two integration modes are available:

    • tsnet mode (recommended for new installs). The bridge embeds a tailnet node directly in its own process. No system Tailscale install needed; HTTPS certs renew automatically. Authenticate once with ./bridge tsnet auth.
    • cli mode. If you already have Tailscale running on the host (typical desktop setup), this delegates to the system tailscale binary.

    See Features → Tailscale integration for the full rundown — when to choose which mode, the macOS sandboxed-CLI gotcha, and how to verify Magic-DNS works end-to-end.

Alternative: public-internet deployment

If you'd rather expose the bridge directly on the public internet — a small VPS for friends and family, a fixed public hostname rather than a tailnet identity, or any setup where Tailscale isn't an option — substitute step 3 above with the public-mode initialiser:

./bridge init --public

Steps 1, 2, 5, 6, 7, and 8 above are unchanged. The public profile differs from the loopback default in three ways:

  • Admin console password. The init wizard generates a 16-character random password and prints it once. Copy it somewhere safe; rotate later with ./bridge admin reset-password.
  • Let's Encrypt cert. If you set autocert.enabled: true with a public domain pointed at the host, the bridge fetches a real TLS cert automatically. No reverse proxy needed.
  • Reachable admin console + TLS-port shift. The admin listener binds a routable interface (not 127.0.0.1) so you can manage the bridge from another machine, and the iOS-facing TLS listener defaults to :443 instead of the loopback default :7788 — Let's Encrypt's TLS-ALPN-01 challenge only validates on TCP/443.

Lock down what you expose: open only the bridge's TLS port (:443 with this profile, unless you overrode it with --listen-address) and, if you need remote admin, the admin port (default :7789) — keep the admin port firewalled to the operator's IP via your VPS firewall / ufw / cloud security group.

Something not working?

Check the troubleshooting page for common symptoms — bridge not appearing in Discover, "Server unreachable" errors, slow scans, certificate-rotation flow. If your problem isn't listed, open an issue on GitHub.

Next steps

Once you have playback working: