Skip to content

First-Run Wizard (Desktop Edition)

What it is. The setup flow embedded in the single-file desktop installer. It provisions the local stack, creates the administrator and chooses the assistant's model engine before the shell opens.

Open it. It appears on first run of generalbots (the self-extracting installer) after the payload is unpacked under ~/.local/share/generalbots. Preview it only in an isolated test rig; never press install in a developer preview.

Do this. Follow the wizard steps in order, keep the free engine provisioned, then sign in with the administrator it creates.

Limits. The wizard always provisions the free engine. Installer steps that download components are not available in the offline desktop-local edition.

Where it lives

Artefact Path
Wizard pages botui/ui/wizard/
Dictionaries botui/ui/wizard/i18n/<locale>.js
Administrator record <stack>/conf/system/appearance.json holds the accent; the admin record is created in the stack
Test rig flags GB_TEST_RIG=1, an empty BOTSERVER_STACK_PATH, a private webview profile

Avoid filenames containing -log: botui/.gitignore ignores *-log*.

Platform prerequisites

Platform Requirement
Windows The agent workspace needs a WSL2 wrapper; without it agent mode is off
Linux glibc plus libwebkit2gtk-4.1-0, libpq5 and OpenSSL 3
macOS arm64 .dmg/.app is an unsigned pre-release

The single-file installer checks component SHA-256 values from botserver/3rdparty.toml.

Detection

The desktop shell stays hidden until botserver answers /api/product. When it answers, the window is shown and the shell loads the assistant surface. The wizard runs before that point on a fresh install.

For a hidden preview, set GB_TEST_RIG=1, point BOTSERVER_STACK_PATH at an empty directory and use a separate WEBVIEW2_USER_DATA_FOLDER.

Lifecycle

  1. Unpack the payload under the user's data directory.
  2. Provision the bundled services and the free engine.
  3. Create the administrator record.
  4. Apply the chosen accent and appearance settings.
  5. Show the shell and load /api/product.

Upgrades are replace-file operations; there is no updater plugin registered in the Tauri configuration.

Privacy data map

Choice Where text goes
Local model Stays on this computer
Own server or key The server the person configures
Free model An external provider, disclosed before use
Subscription agent An isolated space on this computer, subject to the CLI's own terms

Sending text to an external engine asks for confirmation first. Downloading a model also asks and shows its origin.

Assistant model options

The four engine families are Local, Free, Own key and Subscription. FREE_MODEL is chosen by measured time to first token; a fallback replaces it when the gateway no longer offers it. A selected subscription model implies the Agent switch for that turn.

Administrator credentials

The wizard's administrator record is checked first at sign-in and synced to the directory admin. On the desktop edition there is no plain-text ~/.gb-setup-credentials. A password change goes through POST /api/auth/password from Settings › Account.

Local password recovery works only inside the desktop app, through a loopback-only listener and a secret file in the stack; never log any part of a token or query string.

AI accounts

Subscription accounts live in user_llm_accounts with per-account enabled models. The CLI's real sign-in lives inside the user's Incus container. A turn re-checks that VM before refusing a disconnected account. Disconnecting Claude Code deletes its CLI directory in the container.

Acceptance

Check Evidence
API ready /api/product answers with the edition's app list
Shell visible Assistant surface loads after the API answers
Admin works Sign-in with the wizard-created administrator
Free engine present Provisioned even when another engine is chosen
Offline install No network download during first provisioning