This guide is for people who want to run a Sloppy Voice server for their friends, family or group. It covers the reference server: what it is, how to set it up on Cloudflare or on your own Linux machine, and how to look after it once people are using it.

You don't need to be a systems administrator, but you do need to be comfortable with a terminal, DNS records and copying long commands carefully. If you only want to use Sloppy Voice, download a client and join someone else's server instead.

Warning

The reference server is pre-release software. Parts of it are still being built: backups, restore, key rotation and end-to-end encryption ("secure mode") aren't finished yet. Read Known limitations before you invite people you can't easily talk to if something goes wrong.

How a server fits together

A Sloppy Voice server is one community, like a Discord server: it has members, a channel list, roles and moderators. People's addresses look like email addresses, for example alice@voice.example.org, where voice.example.org is the server's canonical domain.

A running server has four parts:

Part Where What it does
Web client and API https://<web host>/ The browser version of Sloppy Voice, and the API that every app talks to.
Admin page https://<web host>/admin The operator console. Same origin as the web client.
Files host https://files.<web host>/ Serves uploaded attachments and avatars. Kept on its own origin so uploaded files can't run script in the client.
Relay Your server's public IP, or through TURN Carries voice, video and screen sharing. All call media goes through the relay; people's devices never connect to each other directly.

The desktop, Android and iPhone apps connect to any server by its domain, so the people you invite can use the apps from the download page or just open your web host in a browser.

Insecure by default

A new server is insecure unless you say otherwise. That means the server can read messages and hear and see calls, the same as most chat services. Connections are still encrypted with HTTPS; it's the server itself that isn't kept out. This is deliberate: it makes accounts, new devices and lost phones easy for people who aren't technical.

Secure mode adds end-to-end encryption, so the server can't read or hear anything. Turning it on can never be undone. It isn't ready yet; see Secure mode.

Before you start

Decide these first. The first one can't be changed later.

Setting What to choose
Canonical domain The domain in everyone's address (alice@voice.example.org). Permanent. Pick a domain you expect to keep for years.
Web host The hostname people open in a browser, and where the API and /admin live. Defaults to the canonical domain.
Files host A separate hostname for uploads. Defaults to files.<web host>.
Community name Shown in the apps. Defaults to the domain; you can change it any time in Server details.
First admin The local part (the bit before @) of the first community admin, usually yours. Defaults to admin.
Registration invite (the default): people need an invite code. open: anyone can sign up. closed: no new accounts. Changeable later.
Where it runs Cloudflare, or a Linux machine you control. See below.

You also need a sign-in provider: Sloppy Voice has no passwords of its own, so people sign in with an account they already have. Google, Microsoft (Entra ID), GitHub and any OpenID Connect provider work. You register an app with the provider during first run.

Cloudflare or your own machine

Cloudflare Your own Linux machine
What you need A Cloudflare account with Workers Paid and R2 turned on, and the domain's DNS on that account. A Linux server with a public IPv4 address, Docker with the Compose plugin, and ports 80, 443 and 3479 open.
Calls The relay runs in a Cloudflare Container and is reached through Cloudflare Realtime TURN. The relay listens directly on UDP/TCP 3479. Behind CGNAT or without inbound UDP, add a coturn server on a machine that has it.
Cost Workers Paid plan, plus R2 storage and TURN traffic. TURN bills each stream at least twice. The machine and its bandwidth.
Privacy Cloudflare's TURN service sees the IP addresses of people in calls. Only you, unless you add an outside TURN server.
Good for Not wanting to look after a machine. Keeping everything in your own hands. Docker host networking means Linux only, not Docker Desktop on Mac or Windows.

Either way, the server is one process with one database. It isn't built to scale across machines; it's sized for a community, not a public service.

Getting the server

The reference server is part of the Sloppy Voice source repository, in the reference-server/ directory. It runs on Node.js 26 or later and is set up with a command-line tool called svctl.

Note

The source repository isn't public yet. This guide is published ahead of it so you can see what running a server involves. Until it's public, ask the Sloppy Voice project for access.

On the machine you'll run setup from (your own computer is fine for Cloudflare; the server itself for a Linux install), install Node.js 26+, npm and Docker, then from the repository root:

npm ci
npm run build -w sdk

Both commands must finish without errors.

Set up on a Linux server

This uses Docker Compose to run three services on the host network: the server, the relay and Caddy, which gets HTTPS certificates for you.

  1. Point DNS for the web host and the files host at the server's public IP (A records, and AAAA if you have IPv6).

  2. Open inbound TCP 80 and 443 (web and certificates) and UDP and TCP 3479 (call media) in your firewall and at your hosting provider.

  3. Set the deployment values in your shell. Use your own domain:

    DOMAIN=voice.example.org
    WEB_HOST="$DOMAIN"
    FILES_HOST="files.$WEB_HOST"
    FIRST_ADMIN=admin
    PUBLIC_IPV4=203.0.113.10
    OUT="$PWD/reference-server/private"
    SVCTL=(node "$PWD/reference-server/cli/src/main.ts")
    umask 077
    mkdir -p "$OUT"
    

    OUT is the private setup directory. Setup keeps its progress and every generated secret there. If other people can read the repository checkout, put it somewhere only you can read instead, and keep using the same directory if you need to re-run setup.

  4. Build and run setup:

    node reference-server/scripts/verify.mjs --only build
    "${SVCTL[@]}" setup --target node --runner docker --non-interactive --json \
      --domain "$DOMAIN" --host "$WEB_HOST" --files-host "$FILES_HOST" \
      --first-admin "$FIRST_ADMIN" --insecure --out "$OUT" \
      --config-dir "$OUT/config" --data-dir "$OUT/state" \
      --relay-mode direct --relay-public-ip "$PUBLIC_IPV4" \
      > "$OUT/setup-output.json" 2> "$OUT/setup.log"
    docker compose -f "$OUT/config/compose.yml" ps
    

    Setup must exit with status 0. Compose should show server, relay and caddy running. If setup stops part-way, read $OUT/setup.log, fix the cause and run the same command again with the same values.

Leave out --non-interactive --json and the redirections if you'd rather answer questions one at a time. Run as root, setup puts configuration in /etc/sloppy-voice and data in /var/lib/sloppy-voice unless you pass --config-dir and --data-dir.

No inbound UDP (CGNAT, some home connections)

The relay needs to receive UDP from the internet. If your machine can't (it's behind carrier-grade NAT, for example), run coturn on a small VPS that can, then replace the two relay flags above with:

--relay-mode turn --turn-provider coturn \
  --turn-urls turns:turn.example.org:443?transport=tcp,turn:turn.example.org:3478 \
  --turn-secret-env SV_TURN_SECRET

Put the same shared secret in SV_TURN_SECRET and in coturn's configuration. If you leave SV_TURN_SECRET unset, setup generates one and writes a turnserver.conf into the setup directory for you to copy to the coturn machine. coturn needs UDP 3478, a TLS port (443 is the most likely to get through restrictive networks) and a UDP port range for relaying. Remember that whoever runs the coturn machine can see the IP addresses of people in calls.

What's where

Path (in the config or data directory) What it is
config/server.json Server configuration. No secrets.
config/secrets.env The server's master keys. Back this up, separately from the database. Without it, the database's sealed data (sign-in provider secrets and more) can't be read.
config/relay.env Relay identity, credential and addresses.
config/compose.yml, config/Caddyfile The Docker Compose stack and the web proxy configuration.
state/data/server.db The database (SQLite): accounts, channels, messages, settings.
state/data/blobs/ Uploaded files.
state/keys/ The server's signing keys.
state/journal/security.jsonl The security journal, a tamper-evident log of key and security events.
private/setup-result.json The operator login, first-admin links and DNS records from setup.

Ports: Caddy listens on 80 and 443; the relay on 3479 UDP and TCP. Everything else (the server on 8787, relay control on 8791, the relay's own HTTP on 8790, metrics on 9790) stays on 127.0.0.1.

Set up on Cloudflare

  1. In the Cloudflare dashboard, turn on Workers Paid and R2, and make sure the domain's DNS zone is on the same account. Check that neither the web host nor the files host is already used by something else.

  2. Create a TURN key under Realtime → TURN Server. Note its key ID and API token. These are not your Cloudflare API token.

  3. Sign Wrangler in: npx --no-install wrangler login, then check with npx --no-install wrangler whoami.

  4. Set the same shell values as in the Linux step 3 (without PUBLIC_IPV4), plus:

    CF_ACCOUNT_ID=your_account_id
    CF_WORKER=sloppy-voice
    read -rs SV_TURN_KEY_ID && export SV_TURN_KEY_ID
    read -rs SV_TURN_API_TOKEN && export SV_TURN_API_TOKEN
    
  5. Run setup:

    "${SVCTL[@]}" setup --target cloudflare --non-interactive --json \
      --domain "$DOMAIN" --host "$WEB_HOST" --files-host "$FILES_HOST" \
      --first-admin "$FIRST_ADMIN" --insecure --out "$OUT" \
      --cf-account-id "$CF_ACCOUNT_ID" --cf-worker-name "$CF_WORKER" \
      --relay-mode turn --turn-provider cloudflare \
      --turn-key-id-env SV_TURN_KEY_ID --turn-api-token-env SV_TURN_API_TOKEN \
      > "$OUT/setup-output.json" 2> "$OUT/setup.log"
    

    Setup builds the web assets and relay image, creates the storage, deploys the Workers and the relay Container, attaches both hostnames, and initialises the server. It must exit with status 0; if it stops, read the log and re-run the same command.

Two choices are worth making on purpose, because they're hard to change later: --jurisdiction eu (or fedramp) keeps stored data in that jurisdiction, and --cf-location-hint places the server near most of your members. Changing jurisdiction later means copying the data.

Sizing calls. The relay container's default instance size carries about 50 voice streams. If you expect a 50-person call with everyone talking, use a larger instance (standard-1 or standard-2).

Check it works

svctl doctor checks DNS, HTTPS certificates, security headers, discovery, the files host and the relay. It exits with the number of failed checks, so 0 means everything passed.

"${SVCTL[@]}" doctor --out "$OUT" --url "https://$WEB_HOST"

Read the warnings and skipped checks too, especially the relay ones. If the site doesn't load, look at dns.hosts and tls first. If calls fail, look at relay.health and relay.link. On Cloudflare, "${SVCTL[@]}" cloudflare status --out "$OUT" shows the Workers, the server's /meta and the relay's health.

If your canonical domain isn't your web host

If people's addresses use one domain (example.org) but the server lives on another host (voice.example.org), apps find the server through a DNS TXT record. Setup prints the exact record. It looks like:

_sloppyv.example.org.  TXT  "v=sv1 url=https://voice.example.org"

First run

  1. Open https://<web host>/admin and sign in with the operator name and secret from setup-result.json (admin.operator and admin.secret). The secret is shown once and isn't stored anywhere else. Keep the original setup-result.json somewhere only you can read.

  2. Go to Sign-in providers and press Start setup wizard. Choose Google, Microsoft Entra ID, GitHub or another OpenID Connect provider and follow the steps it shows. At the provider, register an app with this redirect URI (the page has a Copy redirect URI button):

    https://<web host>/v1/auth/callback
    

    Paste the app's client ID and secret into the wizard. The wizard saves the provider switched off; press Test provider, then Enable provider.

  3. Open the first admin's sign-up link, firstAdmins[].signupUrl in setup-result.json, within 24 hours, and sign up through the provider. The link works once. If it expires, make a new one under First admins → Create setup link.

  4. In the web client at https://<web host>/, create a channel, invite a second account (see Inviting people), and check that you can message each other and hear each other in a call.

Operator and admins

There are two kinds of authority, and they're separate on purpose:

  • The operator runs the machine. The operator login is a name and a generated secret (starting svop_), works only at /admin, and isn't a community account. Sessions end after 30 minutes idle or 12 hours in total.
  • Community admins are ordinary accounts with the admin role. They run the community from inside the apps: channels, roles, moderation, invites. An admin can step down themselves; removing someone else's admin role is the operator's job (Admins or Accounts → Remove admin).

Warning

There's no recovery yet for a lost operator secret. Keep setup-result.json, or at least the operator secret, in a password manager.

The admin page

The sections in /admin, in the order they appear:

Section Use it to
Overview See the domain, mode, version, database size, connected sockets, active calls and federation queue. Run self-test checks the server from the inside.
Server details Set the community name and description, links to your terms, privacy policy and help page, and contact addresses (admin, abuse, security). Saved changes are live straight away.
Limits Change upload sizes and other limits (see Limits and files).
Secure mode Turn on end-to-end encryption for everything. Not ready yet; leave it alone.
Domains Add alias domains that share the same accounts.
Outbound network Allow the server to reach addresses on your private network (for example a sign-in provider on 10.20.0.5). Private addresses are blocked by default.
Sign-in providers Add, test, enable and disable sign-in providers.
Registration Choose who may sign up, a terms-of-service link people must accept, and trusted client apps.
Reserved names Keep local parts (like support or staff) from being taken.
Accounts Search accounts, make invite codes, promote admins, suspend, restore or delete accounts, and revoke devices.
First admins Make one-time setup links for new admins.
Admins See who's an admin and remove the role.
Reports and bans See reports that no in-app moderator can handle, and active bans. Reported message content is never shown here.
Audit log See every admin and operator action, with who, what and why.
Federation Choose which other servers may talk to yours, and block servers.
Peer servers Review other servers whose keys changed.
MLS groups Retire a broken encrypted group. Part of secure mode; not working yet.
Relays Drain, restart, disable or add call relays, and manage relay credentials.
Active calls See how many calls are running and on which relay. No participants or content.
SFU Optionally use Cloudflare Realtime SFU for large video calls.
Diagnostics Read the call-failure reports apps send (counters only, kept 30 days).
Push notifications Choose which push gateways the server will deliver to, and manage the Web Push key.

Anything destructive asks you to confirm, and the riskiest actions make you type the domain, address or name first.

Inviting people

With the default invite registration, people need an invite code to sign up:

  1. Accounts → Invite.
  2. Choose Maximum uses (1, 5, 25 or unlimited) and Expires after (24 hours, 7 days, 30 days or never).
  3. Generate invite code and send it to them. It's shown once; active codes are listed underneath, with Revoke.

They open your server in an app or the browser, sign in with the provider, and paste the code. Community admins can also make invites from inside the apps.

To let anyone sign up, set Registration to Open. To stop new sign-ups, set it to Closed; existing accounts keep working.

Moderation and accounts

Day-to-day moderation (deleting messages, kicking, banning) is done by moderators and admins in the apps. The operator steps in when that isn't enough:

  • Reports and bans shows reports waiting for the operator: ones where no moderator in the community can act, for example a report about an admin.
  • Suspend account (in the account's page) blocks the account straight away. Its requests fail, its sessions on other servers end within a minute, and its bots are suspended. Nothing is deleted. A reason is required; it goes in the audit log.
  • Restore account lifts a suspension. If a server ban also applies, the account stays suspended until the ban ends.
  • Delete account is immediate and permanent; there's no grace period. The address is held for 365 days so nobody else can take it and pretend to be them. If the same person wants it back sooner, Reserved names → Release early; the new account starts empty.
  • Revoke in an account's device list signs out a lost or stolen device.

Domains and aliases

A server has one canonical domain and can accept others as aliases. Accounts are shared: alice@example.org and alice@example.net are the same person.

To add one, Domains → Add an alias, enter it and Add alias, then publish the TXT record the page shows (Copy record) in that domain's DNS. Run self-check confirms it; the server also rechecks every 6 hours.

Removing an alias is deliberately slow, because invite links and addresses using it stop working: the page asks you to confirm that no links have used it for a year, that you've removed the DNS record, and that 24 hours have passed since.

Federation and other servers

People on your server can talk to people on other Sloppy Voice servers. By default every server is allowed except ones you block.

  • Federation → Block a server stops traffic from a server (and optionally all its subdomains). Unblocking doesn't replay anything that was dropped.
  • If you'd rather only talk to servers you know, choose Only the servers listed below and list them.
  • The outbox table shows messages waiting to go to other servers. Ones that can't be delivered for 24 hours are dropped.

Your server remembers each other server's keys the first time it hears from it. If a server's keys change in a way it can't verify, federation with it is suspended and it appears under Peer servers. Only press Accept once that server's operator has confirmed the change to you directly; an unexpected key change can mean someone is impersonating them.

Calls and relays

Every call goes through a relay. Setup creates one; Relays shows it.

  • Drain moves calls off a relay to another with no audible gap, for maintenance.
  • Restart and Disable do what they say. With only one relay, disabling it stops all calls.
  • New relay credentials are shown once.

SFU (optional). Large video calls can use Cloudflare Realtime SFU. In SFU, choose Cloudflare Realtime SFU, enter the app ID and secret, Save SFU settings, then Run SFU self-test; it's only used once the self-test passes. While Cloudflare is having an outage, someone you've removed from a call might keep receiving video for a short time.

If calls connect but there's no sound, run doctor and look at relay.health and relay.link, and check that UDP 3479 (or your TURN server) is reachable from outside your network.

Push notifications

Phones get notifications for messages and calls while the app is closed through a push gateway. You don't need to set anything up: the server delivers to whichever gateway each app registered, including the official Sloppy Voice gateway, with the default Any gateway (recommended) setting.

The gateway only receives a content-free "something happened" signal; the phone then fetches the details from your server. Your server must be able to make outbound HTTPS requests for this to work.

If you change the setting to Only the gateways listed below, include the official gateway or the official apps stop getting background notifications.

Browsers use Web Push instead. Only use Rotate the Web Push key if you think the key has leaked; every browser then has to subscribe again.

Limits and files

Limits lists every limit with its default, floor and ceiling. Blank means the default. Changes apply to new requests straight away, with no restart. The ones people ask about:

Limit Default
maxAttachmentBytes (per upload) 25 MiB
maxAvatarBytes 1 MiB
maxCommunityIconBytes 1 MiB
maxVaultBytes (per account) 256 MiB
maxCallParticipants 200
maxDevices (per account) 30

Before raising maxAttachmentBytes, raise any upload limit in front of the server first (a reverse proxy you've added, or your storage).

Uploaded files are kept on disk under state/data/blobs/ (Linux) or in an R2 bucket (Cloudflare), and are only reachable through short-lived signed links on the files host. Message history in channels is kept forever unless a channel has a retention period set; DMs are kept forever. Abandoned uploads are cleaned up hourly.

Updating

Database changes run automatically when the new version starts.

Linux (Docker). Update your copy of the source, then rebuild and restart the stack:

git pull
npm ci && npm run build -w sdk
node reference-server/scripts/verify.mjs --only build
docker compose --project-directory "$OUT/config" -f "$OUT/config/compose.yml" up -d --build

Calls drop briefly while the relay restarts, and the apps rejoin by themselves.

Cloudflare.

"${SVCTL[@]}" cloudflare deploy --out "$OUT"

This rebuilds, deploys, and drains and restarts the relay if its image changed; calls move or rejoin automatically. After a new relay image, the first call can take up to about 8 seconds to connect while the container starts. --dry-run shows what it would do.

Backups

Warning

svctl backup and svctl restore aren't finished. Until they are, back up by hand as below, and test restoring to a spare machine before you need it.

On a Linux install, stop the server first so the database is consistent (or use SQLite's own online backup, for example sqlite3 server.db ".backup backup.db"), then copy:

  • state/data/server.db (and server.db-wal and server.db-shm if present)
  • state/data/blobs/
  • state/journal/security.jsonl
  • config/ and the private setup directory

Keep config/secrets.env and state/keys/ separately from the database copies, somewhere better protected: together they let someone run your server as you. Losing secrets.env makes parts of the database unreadable.

On Cloudflare, the data lives in Durable Objects and R2 on your account; there's no supported export yet. Keep the private setup directory safe, since it holds the credentials needed to redeploy.

Secure mode

Secure mode turns on end-to-end encryption for every account, channel and call on the server, so the server can no longer read messages or hear calls. It is permanent: an encrypted server can't be switched back, only replaced by a new one.

Warning

Don't turn on secure mode yet, and don't start a server with --secure. The admin page lets you run the dry run and the switch, but encrypted sign-up, chat and calls aren't finished in the apps or the server. Turning it on today would leave your community unable to use encrypted channels, with no way back.

When it's ready, the Secure mode section walks through it: a dry run shows who hasn't set up encryption and which bots will stop working, then a checklist (admins enrolled with a recovery key, the community warned, a fresh backup, a quiet time), and finally typing your domain to confirm.

Troubleshooting

Symptom Look at
Site doesn't load doctor's dns.hosts and tls checks. On Linux, docker compose -f "$OUT/config/compose.yml" logs caddy; Caddy needs ports 80 and 443 reachable to get certificates.
Can't sign in Sign-in providers → Test provider. Check the redirect URI at the provider matches exactly. If the provider is on a private address, add it under Outbound network.
Apps can't find the server doctor's discovery and dns.txt checks; the TXT record if the canonical domain differs from the web host.
Calls connect with no sound doctor's relay.* checks; UDP 3479 or your TURN server reachable from outside. Relays for link status.
No notifications on phones Outbound HTTPS from the server; Push notifications set to Any gateway. On Android without Google services, the person needs a UnifiedPush app such as ntfy.
Something odd Overview → Run self-test, Audit log, and on Cloudflare "${SVCTL[@]}" cloudflare tail --out "$OUT". On Linux, docker compose -f "$OUT/config/compose.yml" logs server.

Known limitations

As of December 2026:

  • Secure mode (end-to-end encryption) isn't usable yet. See Secure mode.
  • Backups, restore and signing-key rotation have no tools yet. The Overview page may show a key-expiry warning that points to a procedure that isn't written yet.
  • A lost operator secret can't be recovered.
  • Only one operator login; there's no page yet for adding more.
  • Direct messages with people on other servers only partly work: a DM that includes an account on a third server fails until secure identity support lands.
  • Testing is thin in places: calls through a real coturn server and browser calls against a Linux install haven't been covered by automated tests yet. Do a real two-person call after setup and after every update.
  • One server, one machine. There's no clustering.

For the protocol itself, and for building apps or bots that talk to any Sloppy Voice server, see the developer site.