1. Prepare the platform and administrator
Install Docker Engine or Docker Desktop, Docker Compose and Git. You also need a model account that supports tool calling. If Xpert is already deployed, check its version and your administrator permissions, then continue to plugin installation. For a new instance, start with community Docker deployment:.env. Set API_BASE_URL and CLIENT_BASE_URL to the addresses the browser will use. Do not use example secrets for a public deployment or commit .env to Git.
Replace DB_PASS, REDIS_PASSWORD, SESSION_SECRET, JWT_SECRET, JWT_REFRESH_SECRET, SECRETS_ENCRYPTION_KEY, XPERT_MCP_APP_TOKEN_SECRET and XPERT_MCP_REQUEST_STATE_SECRET. Run openssl rand -hex 32 in your own terminal to generate an independent value for each. Preserve existing encryption keys when upgrading; do not regenerate them on every startup.
New tutorial instances preinstall four model providers: OpenAI-compatible, DeepSeek, Tongyi Qianwen and Volcengine Ark. Set the following in .env:
PLUGINS list and append missing packages.
schema-sync to install startup plugins and synchronize the database before starting the API and Web services. Wait for schema-sync to show Exited (0) and the API to become ready before initializing the platform. View synchronization progress with:
CLIENT_BASE_URL, choose the welcome page’s start action, and enter the initial administrator, password and organization. This administrator belongs to the Default tenant and has the Super Admin role.
Check API readiness, replacing the address if you changed ports:
Optional: dedicated local ports
Use a new clone and a dedicateddocker/volumes data directory for an independent local instance. The following configuration uses Web port 18080 and API port 13080, with database and Redis access confined to the container network. Configure it before starting the services.
Set CLIENT_BASE_URL=http://localhost:18080 and API_BASE_URL=http://localhost:13080 in .env, then create docker/compose.ports.yml:
-p live-dashboard-demo and the same -f arguments in all subsequent Compose commands. Open the platform at http://localhost:18080 and check API readiness at http://localhost:13080/api/health/ready.
Version requirements
This guide uses the following versions:
Use matching API and Web images, with platform SDK / Contracts versions that satisfy the plugin peer requirements.
2. Install the dashboard and file plugins
Sign in as Super Admin in the Default tenant and open Settings → Plugins for system-level installation. Choose Install Plugin → NPM and install each package using the separate name and version fields:
Enter each package name and version in its corresponding field. After installation, restart the API during a maintenance window to load the plugins:
-f arguments when using Compose overrides. Wait for API readiness, then confirm that both plugins are loaded in plugin management.
3. Prepare the model, skill and runtime
This guide uses standard charts and file examples. Configure the primary model and file Sandbox before initializing the application. The application template configures the dashboard skill and its tools.
HTML / ECharts dashboards additionally require a compatible Browser Runtime Provider and Provider Binding. The standard-chart example does not need this configuration. See Sandbox Jobs and Browser Runtime.
3.1 Model
Open Model Providers (/copilot) in the current organization. After section 1’s default packages load, the page should list OpenAI-compatible, DeepSeek, Tongyi Qianwen and Volcengine Ark. Configure the provider you intend to use; accounts and credentials for all four are not required.
- Add an API key on the selected provider’s card and complete its connection form. Supply the actual model name or service URL when required.
- Validate the credentials and enable a large language model that supports tool calling.
- Open Default Model Settings and set it as the organization’s primary model before initializing Live Dashboard.
3.2 Choose a file Sandbox
Prepare a file Sandbox for your deployment environment before initializing the application. Initialization selects an available provider for the template.
Deploy NsJail on a supported Linux environment with matching architecture. Relative paths in the official configuration use the repository root as their base. The API and Runner must mount the same host Sandbox directory, and the Runner control port should be accessible only to the API.
3.3 Use Local Shell when running the API from source
If you run the API from the Xpert source checkout, setXPERT_LOCAL_SANDBOX_ENABLED=true in the API process environment and restart the API. The API loads the Local Shell plugin from the checkout. After startup, confirm that it is loaded in Settings → Plugins.
Local Shell runs commands with the operating-system permissions of the API process. Use it only in a trusted single-user development environment.
4. Initialize Live Dashboard
- Select the target organization in the upper-left switcher, open
/explore?catalog=applications, and choose Live Dashboard. - Review the dependencies, organization primary model and Sandbox provider in the initialization checklist. Confirm that a file Sandbox is available.
- Click Apply to current organization and confirm in the setup panel. The platform prepares the private configuration Workspace, template dependencies and entry Assistant.
- Wait until ready, then open the Live Dashboard Assistant.
- Below the chat composer, choose Select Project → New Project · Live Dashboard Project and enter a name, such as “Regional sales demo”.
- After creating the Project, open Live Dashboard from the sidebar and select the new Project in Select Project before starting the conversation.
5. Create and check your first dashboard
Choose Regional sales · Starter (区域销售 · 入门) from the Assistant’s opening prompts, then click Send once the prompt fills the composer. The Assistant reads the recipe, prepares Project files, registers the source, previews queries and saves a dashboard draft. The example is labeled as demo data.
The result should include a “Regional sales · Demo data” resource card and a revision label such as Dashboard · Draft r1. Click the card’s Open action and wait for the chart and detail table in the separate dashboard tab to load:
- Confirm the Project and dashboard title. All four regions appear initially, with matching chart and table amounts.
- Enter
Eastin the Region text field and click Apply filters. Both the chart and table should show only East, amount 12,000 CNY. Replace it withWestand apply again: only West, amount 18,000 CNY, should remain. - Keep
Westselected and click Refresh in the dashboard toolbar. After the query completes, the input should still contain West and both views should still show 18,000 CNY. - Clear the Region input and apply filters to restore all four regions.
- Close the dashboard tab, then open the same resource card again. The saved draft and its data should remain available.
- Ask the Assistant to rename the current dashboard to “Regional sales overview · Demo data”, save to the same draft, preserve bindings and filters, and neither create a new dashboard nor publish. After receiving the new revision receipt, open the dashboard and click Refresh in its toolbar to view the updated title and revision. Reload the full browser page to confirm that the updated dashboard and data are saved.
The Assistant saves a draft when creating or editing a dashboard and returns a revision such as
Draft r1 or Draft r2. This tutorial keeps the dashboard as a draft. When ready for formal publication, a Project manager can use Publish draft; see Edit and publish.
Once Browser Runtime is configured, choose Sales overview · Starter (销售总览 · 入门) to explore HTML / ECharts dashboards.