Brume · Docs
Installation

Getting the instance running

From a deployed instance to the first organization: secrets, database, health check, registration, emails, first superadmin, license, handover to the referent.

In brief

Deployment makes the instance run; this page makes it usable. Nine steps, in order, up to the moment you hand an organization to its first referent.

This page follows any of the three deployment modes — Docker all-in-one, Docker Compose, or the Helm chart. Each step links to the page that details it; nothing is copied here.

Fix the durable secrets

JWT_SECRET signs session tokens and APP_ENCRYPTION_KEY encrypts the secrets stored in the database (model keys, OIDC client secret). Generate them before the first start, keep them in your secret manager, and keep the same values across redeployments: rotating one invalidates sessions, rotating the other makes stored secrets unreadable. The generation procedure is in Secure your instance, the full list in Configuration variables.

Two silent failures

Without JWT_SECRET, the backend starts and signs everything with a known default value: anyone can forge a session. Without APP_ENCRYPTION_KEY, startup also succeeds, and it is the first key save that fails.

Provision the database role and apply the migrations

Brume runs with a restricted PostgreSQL role, distinct from the owner that applies migrations. The owner provisions the application role, then plays the migrations; the application process never receives the administration DSN.

In containers, the entrypoint chains both as soon as the administration DSN is provided; on Kubernetes, an init container does it. Applied by hand:

DATABASE_URL="$DATABASE_ADMIN_URL" python -m brume.db_roles
DATABASE_URL="$DATABASE_ADMIN_URL" python -m brume.migrate

An applied migration is never edited

Every migration is pinned by its checksum. Editing a file that has already been applied, even a comment, stops the instance from restarting.

Start and verify

At startup, the backend refuses to serve if the migrations have not been applied, if its role carries privileges it should not have, or if the image and the database are not on the same version. Then check the health endpoint:

curl -fsS https://<your-domain>/health

An ok means the API answers and the database is healthy. It says nothing about the job queue: if object storage is misconfigured, reads work and deferred processing fails. Check the worker logs after the first file upload.

Close registration

As long as no invite code is configured, registration is open: anyone who reaches the instance can create an account and their organization. Set INVITE_CODES to the list of codes you hand out; registration then requires them, and the sign-up page asks for one.

Take the same moment to move the settings shipped with development values: ENVIRONMENT to production (otherwise debug routes are exposed), COOKIE_SECURE to true behind HTTPS, and a BRUME_INTERNAL_SECRET specific to the instance. The detail is in Secure your instance.

Wire up email delivery

Invitations and password resets go through SMTP or Resend. Without either, delivery is logged and then counted as successful: the invitation never leaves and the interface shows no error. Set EMAIL_FROM and the SMTP_* variables, or RESEND_API_KEY, before inviting anyone.

Create the first superadmin

The operations account is not created from the interface: it is a command, run against an account that has already registered and belongs to no organization.

make superadmin [email protected]

That account opens the operator panel: customers and wallets, platform keys, pricing, instance version. It is also what decides whether BYOK is allowed on the instance or whether everything goes through credit.

Install the Enterprise license

This step is for Enterprise instances only. Provide the signed license through BRUME_LICENSE_KEY or a mounted file, along with the verification public key. A missing, malformed, or expired license raises no visible error: the instance falls back to the Community edition and Enterprise features simply disappear. Check the active edition after startup, as described in Enterprise Edition.

Open the first organization

Register the account that will carry the organization, create it, then follow the setup assistant. It walks three screens: the model routing policy, the embedding space, then access — linking Brume Credit or entering a model key. The assistant does not finish until an inference source is available; the page Configure API keys (BYOK) details that screen.

Hand over to the referent

Invite the person who will run the organization from the organization members. If email delivery is not wired up yet, ask for the invitation link rather than the send, and pass it on yourself.

From here the manual changes hands: what follows happens in Workspaces & organization, which goes from the first message to the first shared skills.

Getting-started checklist

  • JWT_SECRET and APP_ENCRYPTION_KEY fixed and backed up.
  • Application role provisioned, migrations applied by the owner.
  • /health answers ok and a first uploaded file is processed.
  • INVITE_CODES set, ENVIRONMENT=production, COOKIE_SECURE=true.
  • A test email actually arrives.
  • Superadmin account created and the operator panel reachable.
  • Active edition verified (Community, or Enterprise under a valid license).
  • First organization opened, assistant completed.
  • Backups in place and a restore rehearsed, as described in Back up & restore.

Next

The instance is in service. Daily life — monitoring, upgrades, troubleshooting, restoring — is covered by the following pages of this manual.

On this page