Skip to content

This page takes you from nothing to a running community you own. You need Docker, and either Rust or Node.js 22+ for the small script that creates the community.

  1. Start a host.

    Terminal window
    docker run -d --name zaun-host --restart unless-stopped --memory 512m \
    -v zaun-host:/var/lib/zaun-host ghcr.io/zaunchat/zaun-host

    The first start creates the host’s keys, database and configuration in the zaun-host volume, then serves. There are no ports to publish: members reach it through SimpleX relays.

  2. Allow community creation, once. By default nobody may create communities on a host. Open it while you create yours:

    Terminal window
    docker exec zaun-host sed -i 's/^community_creation = .*/community_creation = "open"/' \
    /var/lib/zaun-host/zaun-host.toml
    docker restart zaun-host
  3. Note the host’s address and key.

    Terminal window
    docker exec zaun-host zaun-host address # the SimpleX address
    docker exec zaun-host zaun-host id # the host id and public key
  4. Create the community with zaun-client. You become its owner, and its root key (its identity) is saved in the client’s directory: back it up.

    import { Client } from "zaun-client";
    const client = await Client.start({ name: "Me", key: "a store passphrase" });
    const community = await client.createCommunity({
    host: "<address>",
    hostKey: "<public key from zaun-host id>",
    name: "My community",
    displayName: "Me",
    });
    console.log(await community.createInvite({ maxUses: 10 }));
  5. Close creation again, so strangers can’t create communities on your host:

    Terminal window
    docker exec zaun-host sed -i 's/^community_creation = .*/community_creation = "closed"/' \
    /var/lib/zaun-host/zaun-host.toml
    docker restart zaun-host
  6. Invite people with the zaun://join/… link. Treat it as a secret: anyone with it can join.