Skip to content

Installation 🟑 BETA

This page installs the local stack that hosts GB Lite and checks that its services answer.

The four BotBook guides: installation belongs to Admin; daily use belongs to Lite.

Runtime Dependencies

The installer reads the host and reports missing libraries. Run the check before the first start.

./PROD-DEPENDENCIES.sh --check

The check needs no root and installs nothing. It prints the missing commands, shared libraries, groups and packages, then exits non-zero.

Install

sudo ./PROD-DEPENDENCIES.sh --install

The install path is idempotent and resolves release-specific package renames. DEPENDENCIES.sh holds the package matrix; DEV-DEPENDENCIES.sh adds the build toolchain.

Runtime matrix

Category Required for
PostgreSQL client (libpq) Database access
OpenSSL (libssl.so.3) HTTPS and tokens
Compression libraries Archives and HTTP
Clang runtime Native service components
Poppler Document text extraction
zbar Barcode and QR decoding
Incus and the incus-admin group Agent VMs, terminals and browser actions
GTK3 and WebKitGTK 4.1 Desktop shell
Fontconfig and local fonts UI rendering
ca-certificates, curl, wget Bootstrap downloads

The matrix is implemented for Debian/Ubuntu, Fedora/RHEL, Arch and Alpine. --check prints the package names for the host instead of duplicating them here.

Windows and macOS

  • Windows: .\PROD-DEPENDENCIES.ps1 -Check reports WebView2, the VC++ runtime, libpq.dll and the agent backend. -Install prints remediation commands and installs nothing.
  • macOS: ./PROD-DEPENDENCIES.sh --check reports the bundle and agent state. The service stack, the pythonbox and the native Incus agent are not available; see desktop/macos/README.md.

The packaged desktop editions carry their installers under installers/; the first-run wizard reports what is missing. See the First-Run Wizard.

Incus

The agent workspace runs each session in an Incus container. The account that runs botserver must hold the incus-admin group in its running process:

sudo usermod -aG incus-admin botserver
sudo systemctl restart botserver

Adding the group to /etc/group alone is not enough. A new login session also works.

System Requirements

Resource What to check
OS Linux, macOS or Windows; the Linux server stack is the supported host
RAM and disk Follow the host sizing page: Hardware
GPU Needed only for a local model; the server does not require one

Distribution Packages

Package Status
generalbots-linux-<arch>.tar.gz Published; unpack, then run ./install.sh
generalbots (single file) Published; chmod +x generalbots && ./generalbots
.deb / .rpm / .AppImage Best effort; not published as stable assets
.msi / -setup.exe Windows, best effort
-macos-arm64.dmg Unsigned, published in the -macos pre-release

Embedded suite UI

The desktop sidecar embeds the suite. A ui/ folder on disk takes precedence through BOTUI_PATH; a bundle without that folder serves /suite, /themes and the client routes from the compiled-in copy. API, DAV and webhook paths keep their explicit 404s.

Updating an installation

  1. Check for a newer release in Settings β†’ Updates β†’ Check now (desktop only).
  2. Read the release page; the app does not install silently.
  3. Replace the artifact for your package type and keep the data directory.

There is no registered Tauri updater plugin; the install step replaces files. User data lives outside the package in ~/.local/share/generalbots, overridable with BOTSERVER_STACK_PATH. The maintainer-level notes are in the botapp README.

Quick Start

./botserver

Bootstrap creates botserver-stack/ and fetches the components pinned in botserver/3rdparty.toml: database, object storage, cache, vector store, secrets, identity and the local model runtime when selected. It then seeds Vault, deploys the default bot and starts the services. The desktop edition runs the same sequence as ./start.sh --provision.

For a first conversation, continue with Quick Start.

Using Existing Services

Service endpoints and credentials live in Vault, one path per service; they are not config.csv keys.

Path Fields
secret/gbo/tables host, port, database, username, password, url
secret/gbo/drive host, port, accesskey, secret, bucket, backend
secret/gbo/cache host, port, password, url
secret/gbo/llm url, model, openai_key

Point these at your own instances with vault kv put before the first start. Per-bot keys do go in config.csv; see config.csv Format.

Default Ports

Service Port
Suite 3000
Cloud 4000
Login 5000
API (botserver) 8080
PostgreSQL 5432
Valkey 6379
OtterIO 9000
Vault 8200
Qdrant 6333

Login and signup are served only by the login host. Other components publish their ports in botserver/3rdparty.toml and the component status output.

Verify Installation

botserver list
botserver status tables
curl -s http://localhost:8080/health

The status command needs a component name. Component logs land in botserver-stack/logs/.

Bot Deployment

Bots live in object storage. A tenant bucket is {org}.gborg; a workspace prefix {workspace}.gbai/ holds sibling {bot}.gbot, {bot}.gbdialog, {bot}.gbkb and {bot}.gbdrive directories.

{org}.gborg/
└── {workspace}.gbai/
    β”œβ”€β”€ {bot}.gbot/
    β”œβ”€β”€ {bot}.gbdialog/
    β”œβ”€β”€ {bot}.gbkb/
    └── {bot}.gbdrive/

drive_monitor registers a bot when it discovers the prefix. For a git-owned bot, .gbdialog/ and .gbot/ come from the repository; .gbkb/ and .gbdrive/ stay Drive-owned.

S3 Sync for Development

  1. Configure an S3-compatible client with the Drive credentials from Vault.
  2. Sync a local tree to the workspace prefix.
  3. Watch the drive monitor for the reload.
rclone sync ./workspace.gbai drive:workspace.gborg/workspace.gbai --watch

Memory Optimization

For a constrained local model, set llm-server-ctx-size and llm-server-parallel in the bot's configuration and choose a smaller local model. Both keys are read in the server code.

GPU Setup

llm-server-gpu-layers is read at boot and by local model recovery. Set it in the bot's configuration only when a local model is in use.

Deployment Options

Method Use
Local stack Development and a single instance; this page
Docker Docker Deployment
Incus Container Deployment

Container-on-Host (Brother Mode)

Run botserver in a container while it manages containers on the host. Mount the host Incus socket and run the container privileged when it needs host devices. Container create commands must run from the host.

Example: Create Vault and VectorDB

botserver install vault --container --tenant mycompany
botserver install vector_db --container --tenant mycompany
incus list | grep mycompany

Troubleshooting

Symptom Check
Database connection fails Run ./PROD-DEPENDENCIES.sh --check, then verify the database service
Port conflict Stop the conflicting process or change server-port
Shared-library error --check names the missing library and the package for this host
Bootstrap stalls Look for the bootstrap completion line in botserver.log

See the Configuration Reference for all settings.

Next Steps