// CONTENTS Part 03 · First day

// PART 03

First-run wizard

Chapter 14 / 60 2 min read English Part 03 of 15

The desktop edition ships a dedicated first-run wizard that runs before the local stack exists. It is static HTML/CSS/JS bundled with the application and rendered by its own window, so it never depends on botserver, botui, Vault, PostgreSQL, OtterIO or the network.

Where it lives

Piece Path
Static page botui/ui/wizard/index.html
Styles botui/ui/wizard/wizard.css
Controller botui/ui/wizard/modules/ (00_core → 70_init; wizard.js loader is gone)
Step rendering botui/ui/wizard/wizard-steps.js
State and provider copy botui/ui/wizard/wizard-state.js
Tauri bridge botui/ui/wizard/wizard-bridge.js
Headless checks botui/ui/wizard/selftest.html
Tauri backend botapp/src/desktop/wizard/
Provisioning mode botserver/src/main_module/wizard_provision.rs

The page is served at /wizard/index.html. In a packaged build it resolves from the Tauri asset protocol; in development botui serves botui/ui/wizard/ at /wizard. In headless provisioning the same sequence runs as ./start.sh --provision, printing one GBWIZARD:{...} line per component so scripts can follow progress.

Platform prerequisites

The packaged desktop edition is built for Linux x86_64 and Linux arm64 (preview), and, best effort, Windows x64 and macOS arm64. The host check is read-only and installs nothing:

Platform Check Agent backend
Windows .\PROD-DEPENDENCIES.ps1 -Check WSL2 distro (GBO_WSL_DISTRO, default Debian) with systemd and Incus
Linux ./PROD-DEPENDENCIES.sh --check Incus on the host, user in the incus-admin group
macOS ./PROD-DEPENDENCIES.sh --check Remote Incus (incus remote add) or a Linux VM; Incus cannot run containers natively on macOS

On macOS the unsigned dmg is best effort. The wizard must mark the service stack components (PostgreSQL, Valkey, OtterIO/oc, Qdrant, Vault, Zitadel and llama.cpp) unavailable instead of failing provisioning, because they have no darwin builds. BotModels has no darwin pythonbox yet, and the agent backend needs remote Incus or a Linux VM. Gatekeeper blocks the unsigned app until the user right-clicks -> Open or runs xattr -dr com.apple.quarantine "/Applications/General Bots.app".

What the wizard configures

  • The service plan: which bundled components to install and start (the product file’s services_off list is subtracted; GB Lite ships with cache,vector_db,directory off).
  • The LLM: local mode is seeded by the installer; the free / own-key / hosted choices write the global secret/gbo/llm secret (a desktop install is single-user). Relevant overrides: GB_WIZARD_MODEL_MODE, GB_WIZARD_LLM_URL, GB_WIZARD_LLM_MODEL, GB_WIZARD_LLM_KEY, GB_WIZARD_WITH_BOTMODELS (BotModels is only provisioned when asked).
  • The administrator: the wizard’s administrator record (admin-credentials.json in the stack) is created here and checked first at sign-in; POST /api/auth/password changes it later (Settings › Conta).
  • Offline installs: with GB_DESKTOP_OFFLINE=1 every component must already sit in the botserver-installers/ cache; downloads are refused and named.

Found a mistake? Open an issue · All books

// SEARCH ESC
Pagefind · 236 pages · 4 books Enter to open ↑ ↓ to move