Self hosting

Your relay.
Your infrastructure.

Shellbell’s relay is free and open source. Run it under your own account and hostname to control its metadata, deployment access, backups, and operational policies.

Choose where it runs.

Both supplied runtimes use the same relay core. Your hosting resources and notification credentials remain your responsibility.

Cloudflare

Use your Cloudflare account.

A Worker and SQLite-backed Durable Objects provide the WSS endpoint and per-computer coordination.

  • Managed runtime and storage for each computer
  • Preserve Worker and object identities during upgrades
  • Account quotas and platform billing apply
Cloudflare setup guide
Node + SQLite

Use a server you operate.

The standalone container runs one Node process with a private, durable SQLite volume, behind your TLS and WebSocket proxy.

  • Choose the host and reverse proxy
  • One owning process and one local volume
  • Operate backups, monitoring, and upgrades
Server setup guide

The relay coordinates connections and never carries terminal content. It cannot decrypt anything it relays. Terminal data travels over direct WebRTC, or through TURN when your relay offers it. See the connection architecture for that flow.

Give both devices
the same relay address.

Deploy a reachable WSS endpoint first, then set the computer’s relay before pairing the phone.

On the computer

Use Relay address in the Mac app, or save it with the CLI. Restart the service to apply the change.

shellbell config set relay wss://relay.example.com

On the phone

A new pairing QR includes the relay address. For an existing pairing, check Relay URL in that computer’s settings. An empty replacement relay may require pairing again.

Device configuration guide

Before an organization rolls it out.

Owning the relay gives you operational control. Decide who owns each responsibility before connecting real work.

Endpoint

Make it reachable from the intended networks.

Provide TLS, WebSocket upgrades, rate protection, and connection limits. A browser login challenge in front of the native WebSocket endpoint will break the clients.

Storage

Protect metadata and test restoration.

Control access and retention for device identities, pairing records, and notification state. Protect backups and check host, proxy, and platform logging.

Rollout

Start with an isolated test relay.

Verify discovery, input and output, reconnects, revocation, and notifications with disposable sessions. Record compatible builds and a rollback procedure before expanding.

Organization operations guide

What self hosting changes.

A clear scope makes the security decision easier to assess.

You control

  • The relay hostname and hosting account
  • Deployment access, metadata, and backups
  • Retention, monitoring, and upgrade procedures

Plan separately

  • Organization SSO, centralized enrollment, and read-only roles are not supplied.
  • Background push still uses Apple APNs or Google FCM.
  • The relay address doesn’t change the clients’ STUN settings.
  • TURN is optional: the Cloudflare relay issues Cloudflare TURN credentials when its TURN secrets are set. The Node relay doesn’t issue TURN servers yet.

Pairing is approved on the computer and grants control of sessions exposed by its OS user. A relay deployment is not an independent security audit or regulatory certification.

Choose how you handle notifications.

Terminal access and background notification delivery have different setup requirements.

Direct FCM or APNs delivery needs matching app identities and provider credentials. An independent relay does not inherit the project’s push setup. Source deployment instructions cover credential handling and native build requirements.

Review the data you’ll be responsible for.

The privacy inventory distinguishes terminal content from relay and notification metadata.

Read the privacy inventory