Skip to Content
BricoleDocs

Install a Bricole host

Prepare an installation, check its configuration, and claim the first administrator account.

Install a host when you want to run Bricole on your own domain. If someone already operates your host, ask them for its address and creator access, then go straight to your first artifact.

Prepare the checkout

Start in a Bricole source checkout with Git and mise installed. During the private preview, your account needs access to the source. Run the commands from the repository root with mise active in your shell.

mise install
bun install --frozen-lockfile

For the supported hosted installation you need a Cloudflare account with Workers Paid and an active DNS zone in that account. Compare Cloudflare, local development and celld before provisioning. Choose one sign-in provider: email codes, Cloudflare Access or OpenID Connect (OIDC).

Describe the installation

Keep the operator file in your own configuration repository. For the email installation, start with the supplied example.

mkdir -p ../my-host
cp packages/operator/bricole.example.jsonc ../my-host/bricole.jsonc

For OIDC, copy packages/operator/bricole.oidc.example.jsonc instead. For Access, use the email example as a base and replace its identity block with the Access configuration. Replace the example account, Worker names, host and apps domains, and identity settings. Remove the example websites mapping unless you already have an artifact to serve there. Keep the Worker name stable across upgrades because its storage belongs to that installation.

Check before provisioning

bun run operator check --config ../my-host/bricole.jsonc
bun run operator deploy --config ../my-host/bricole.jsonc --new --dry-run

The first command validates the file and builds the Workers locally. The second prints the proposed account operations using an assumed empty installation. Both leave your Cloudflare account untouched.

Complete the external setup printed by check. For a fresh apps zone this includes a proxied wildcard AAAA record pointing to 100::. For email, enable Email Sending on the sender domain. For Access, protect the host’s /auth/access path with the configured Access application. For OIDC, register the exact callback URI printed for your host and supply OIDC_CLIENT_SECRET to the deploy process from your secret manager.

Install and claim ownership

bun run operator login
bun run operator deploy --config ../my-host/bricole.jsonc --new

Run the install in a private terminal. Store the printed operator token and one-time setup code securely. Save the returned KV namespace ID under resources.oauthKv. If the installation includes an identity Worker, also save its D1 ID under identity.service.database.

The command checks the host’s /healthz and OAuth issuer before it exits. Open the printed /setup address, sign in, and enter the code to become the first administrator. You can now grant creators access to publish artifacts.

For an upgrade, use a reviewed checkout and the same operator file. Run bun run operator deploy --config ../my-host/bricole.jsonc without --new. If the planner reports a changed storage binding or identity provider, reconcile the file with the live installation before accepting the change.