Quick start
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.
-
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-hostThe first start creates the host’s keys, database and configuration in the
zaun-hostvolume, then serves. There are no ports to publish: members reach it through SimpleX relays. -
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.tomldocker restart zaun-host -
Note the host’s address and key.
Terminal window docker exec zaun-host zaun-host address # the SimpleX addressdocker exec zaun-host zaun-host id # the host id and public key -
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 }));use zaun_client::Client;use zaun_client::protocol::{b64, keys::PublicKey};let client = Client::builder("./owner").name("Me").key("a store passphrase").start()?;let host_key = PublicKey::from_bytes(&b64::decode("<public key from zaun-host id>")?)?;let community = client.create_community("<address>", host_key, "My community", "Me")?;let invite = community.create_invite(10, None)?; // 10 uses, no expiryprintln!("{invite}"); -
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.tomldocker restart zaun-host -
Invite people with the
zaun://join/…link. Treat it as a secret: anyone with it can join.
What next?
Section titled “What next?”- Install a bot that answers
/ping. - Configure the host: attachments, voice, bots, your own relays.
- Build an app with
zaun-client.