Skip to main content
System parameters can be controlled through environment variables. For the community Docker deployment, use docker/env.example as the reference; if you are already inside the docker/ directory, run cp env.example .env and then adjust the values as needed. Some parameter explanations are as follows:

Organization Bootstrap and Templates

The following variables are mainly used when a new organization is created. They control the default workspace bootstrap flow, analytics seed data, and external xpert templates: Example:
Notes:
  • ORG_DEFAULT_XPERT_TEMPLATE_KEYS uses template IDs, not display names. The two example IDs above correspond to ChatBI with Sales Analysis Expert and Text2SQL-ChatDB.
  • ORG_ANALYTICS_BOOTSTRAP_MODE=semantic-only initializes only the semantic-model prerequisites; full-demo also imports demo indicators and demo stories.
  • If XPERT_TEMPLATE_DIR is not set, the service falls back to the default data directory. In Docker this is typically /var/lib/xpert/data/xpert-template.
  • These settings affect newly created organizations only. Existing organizations are not backfilled automatically.

Permissions and Handoff Routing

Example:
The routing file structure can follow the sample in docker/handoff-routing.example.yaml from the Xpert source repository. A minimal example looks like this:
Notes:
  • ALLOW_SUPER_ADMIN_ROLE does not create or remove roles. It only controls whether SUPER_ADMIN automatically passes certain tenant and organization permission checks.
  • If HANDOFF_ROUTING_CONFIG_PATH is not set, the service logs a warning and falls back to built-in defaults.
  • The handoff routing file is loaded during module initialization, so API restart is required after editing the YAML file.

Plugins and Default Skill Repositories

Example:
Notes:
  • PLUGINS is read during service startup, so API restart is required after changes.
  • AI_DEFAULT_SKILL_REPOSITORIES also accepts a raw JSON array, but the wrapped repositories format from docker/env.example is recommended for future extensibility.
  • The provider field in AI_DEFAULT_SKILL_REPOSITORIES must match a supported skill repository provider, such as github or clawhub.
  • Invalid JSON is ignored and a warning is logged.
  • These default repositories are only auto-registered for newly created tenants. Existing tenants need manual registration and sync through the skill repository APIs.
To customize the SMTP mail server configuration, you need to configure the following environment variables:

File Storage

Custom File Storage Providers