Host your own Sphere

Four steps, about 15 minutes. Run one container, give it an address, and claim it in the app. Your Sphere’s channels and messages live on your machine, encrypted with your own key, and friends join with a code.

  1. Run the Sphere container

    Install Docker Desktop (Windows, macOS) or Docker Engine (Linux); on a Synology NAS use Container Manager, on QNAP Container Station. On Windows, run these in WSL or Git Bash. Then download the compose file and the settings file, fill in two values and start it. Keep the machine on while people use the Sphere. Docker pulls the ready-made Sphere image, so there’s nothing to build. On first start the Sphere makes its encryption key and a one-time setup code; your data lives in the sphere-data volume.

    mkdir aetherhub-sphere && cd aetherhub-sphere
    curl -fsSLO https://aetherhub.chat/docker-compose.yml
    curl -fsSL https://aetherhub.chat/sphere.env.example -o .env
    
    # Fill in .env:
    #   JWT_SECRET       openssl rand -hex 32
    
    $ docker compose up -d
    $ curl http://localhost:3000/api/health
    {"ok":true,"service":"self-hosted-sphere",...}
  2. Give it a public address

    Friends reach your Sphere over HTTPS. Pick one of these, then put the address in .env as PUBLIC_URL and run docker compose up -d again. Playing on your home network only? Skip this and use http://<this machine’s IP>:3000.

    Tailscale FunnelSuggested here

    A public HTTPS address with no domain, no router ports and no certificates to manage, and your home IP stays private. Your friends don’t need Tailscale. In the Tailscale admin console turn on MagicDNS and HTTPS first; the first funnel command prints a link to allow Funnel for this machine.

    curl -fsSL https://tailscale.com/install.sh | sh
    sudo tailscale up
    sudo tailscale funnel --bg 3000
    tailscale funnel status
    # https://nightowls.tail1234.ts.net

    Your own domain

    Forward TCP 80 and 443 on your router to this machine and put Caddy in front for HTTPS. It shows your home IP, and needs a dynamic-DNS name if that changes.

    # /etc/caddy/Caddyfile
    chat.nightowls.gg {
      reverse_proxy localhost:3000
    }
  3. Claim it in AetherHub

    Open AetherHub, choose Create Sphere, pick Self-hosted and enter https://nightowls.tail1234.ts.net. The app checks the server and sees it’s new. Enter the setup code from the logs: your account becomes the server’s owner and the code stops working. Then save the encryption key the app shows you, somewhere other than the server, such as a password manager. Without it a restored backup can’t be read, and nobody can recover it for you.

    docker compose logs sphere | grep "Setup code"
  4. Share the join code

    Name your Sphere and create it, and the app gives you its join code. Friends choose Join with code in AetherHub and type it; they never need your server’s address. If the address changes later, use Change address in My servers and the code keeps working.

After that

Organise your channels. Drag channels into categories, between them or to the top, or use Move to… in a channel’s menu; text and voice channels can share a category. In Sphere settings, pick your Sphere’s category so people can find it in Discover. Owners and admins can do this on Sphere 0.3 or later.

Squad voice on your server. If you own a squad, open its options → Voice server and pick your Sphere. The lounge’s voice then runs through your server and its relay, and falls back to AetherHub Cloud on its own if your server goes offline.

Keep it up to date. When a newer Sphere server is out, the app says so at the top of your Sphere’s settings. If your server’s address changes, use Change address in My servers: your join code keeps working.