> For the complete documentation index, see [llms.txt](https://docs.understand.tech/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.understand.tech/documentation/english-version/ai-in-a-box/installation-and-setup-guide.md). Agents can also search and read this documentation through its [MCP server](https://docs.understand.tech/~gitbook/mcp).

# Installation and Setup Guide

### Overview

This guide walks you through deploying UnderstandTech on your brand new NVIDIA DGX Spark system.

### What you'll have done

* UnderstandTech accessible at [https://understand.local](https://understand.local/) from any device on your network
* GPU-accelerated LLM inference running entirely on your hardware
* A web-based management interface (see [Portainer Guide](https://docs.understand.tech/documentation/english-version/ai-in-a-box/portainer-guide-for-understand-tech.md)) for monitoring and controlling services
* Full administrative control over your deployment
* All data stored locally on your DGX, never leaving your premises

Time Required: \~20 minutes (plus image download time)

Internet Connection Required: The initial setup requires an internet connection to download software components.

***

### Setting up your DGX Spark

If this is a brand-new DGX Spark fresh out of the box, you'll need to complete NVIDIA's first-time setup before installing UnderstandTech. This section walks you through that process. If your DGX is already set up with a working desktop and network connection, skip ahead to Prerequisites.

For full details on the first-boot process, see NVIDIA's official documentation:[ https://docs.nvidia.com/dgx/dgx-spark/first-boot.html](https://docs.nvidia.com/dgx/dgx-spark/first-boot.html)

#### What You'll Need

* Your DGX Spark unit
* A monitor connected to the DGX
* A USB keyboard and mouse
* A stable Wi-Fi network with internet access, or an Ethernet connection. Avoid captive-portal networks (hotels, airports) and phone hotspots — the setup process downloads a large software image and can't recover gracefully from dropped connections.
* A separate device to run the NVIDIA Sync app later

#### Initial Boot and OS Setup

{% hint style="info" %}
Important: The DGX Spark powers on automatically as soon as you plug it in. Connect your monitor, keyboard, and mouse before connecting the power cable.
{% endhint %}

1. Connect peripherals and apply power. Plug in the monitor, keyboard, and mouse first, then connect the power supply. The DGX will boot and launch NVIDIA's first-time setup wizard automatically.
2. Select your language, time zone, and keyboard layout. The wizard walks you through these one at a time. The input fields filter as you type, so you can start typing your time zone or language name to find it quickly.
3. Accept the terms and conditions. Review and accept NVIDIA's license terms to continue.
4. Create your user account. This is the most important step for the UnderstandTech deployment:

* Username: Use <mark style="color:green;">ut</mark>

{% hint style="warning" %}
This username matters. The UnderstandTech deployment scripts, file paths, and service configurations all reference the <mark style="color:green;">ut</mark> account. Using a different username will require modifying multiple configuration files later.
{% endhint %}

* Password: Choose a strong password you'll remember. You'll need it for sudo commands throughout this guide and for SSH access later.

5. Configure information sharing (optional). You can choose whether to share analytics and crash reporting data with NVIDIA. This is entirely optional.
6. Connect to your network. Select your Wi-Fi network and enter its password. If you've already connected an Ethernet cable, this step is skipped automatically.

{% hint style="info" %}
Why Ethernet is better for this setup: The first-boot process downloads the full DGX software image, and the UnderstandTech installation that follows downloads several gigabytes of container images. Ethernet will make both of these steps significantly faster and more reliable.
{% endhint %}

7. Wait for the software download and installation to complete. After connecting to the network, the DGX downloads and installs its full software image. This is the longest part of the process and can take 10 minutes or more depending on your connection speed. The system may reboot more than once during this phase.

{% hint style="warning" %}
Do not shut down or unplug the DGX during this step. The installation cannot be interrupted once the download begins — powering down during updates can damage the system software and require a full recovery.
{% endhint %}

8. Log in. When installation is complete, the DGX reboots one final time and presents the login screen. Sign in with the <mark style="color:green;">ut</mark> account you just created. You should now be at the Ubuntu desktop the DGX is ready for the next phase.

#### Connect from Your Device with NVIDIA Sync

The NVIDIA Sync app lets you manage your DGX remotely - browsing files, opening a terminal, and monitoring system status without needing a monitor plugged into the DGX. While not strictly required for the UnderstandTech installation, it's useful for ongoing management and is worth setting up now.

1. Download the NVIDIA Sync app on your separate device (Windows/macOS). It's available from <https://build.nvidia.com/spark/connect-to-your-spark/sync>.

{% hint style="info" %}
For more details on Sync's capabilities, see NVIDIA's documentation: <https://docs.nvidia.com/dgx/dgx-spark/nvidia-sync.html>
{% endhint %}

2. Open the app and select "Add New Device."
3. Enter the connection details:

* Hostname: This is the same as the hotspot SSID printed on the Quick Start Guide that came in the DGX box. It typically looks something like *<mark style="color:green;">spark-a2b4</mark>*. Look on the card or sticker included with your DGX packaging.
* Username: ut (the account you created during setup)
* Password: The password you chose during setup

4. Connect. The app should find your DGX on the local network and establish a connection. If it can't find the device, make sure your laptop/phone is on the same Wi-Fi network as the DGX.

You're now ready to begin the UnderstandTech installation. You'll need a terminal (command line) for the remaining steps.

#### Open a Terminal

Right-click the desktop and select "Open Terminal," or press Ctrl+Alt+T.\
With a terminal open, continue to the Prerequisites section below.

***

### Prerequisites

#### Hardware

* NVIDIA DGX Spark with initial OS setup complete (see above)
* Keyboard, monitor, and mouse connected to the DGX (for initial setup; remote management is possible afterward)
* Network connection — the DGX should be connected to the same network as the devices you'll use to access UnderstandTech

#### Credentials from UnderstandTech

Before starting, make sure you've received the following from the UnderstandTech team:

| Credential               | Format               | Purpose                                               |
| ------------------------ | -------------------- | ----------------------------------------------------- |
| Service account username | dgx-access           | Authenticates with our container registry             |
| Access token             | Starts with ghp\_... | Grants permission to download UnderstandTech software |

{% hint style="warning" %}
Keep your token secure. This token is unique to your deployment. Do not share it, commit it to any repository, or include it in files that others can access. If you suspect it has been compromised, contact UnderstandTech immediately for a replacement.
{% endhint %}

If you haven't received these credentials, contact us at <support@understand.tech>.

***

### Setting up the UnderstandTech platform

#### Step 1: Verify Docker Is Installed

Docker is the platform that runs all UnderstandTech services as isolated containers. It should already be installed on your DGX Spark, but let's confirm. Open a terminal and run:

```shellscript
docker --version
```

You should see output like <mark style="color:green;">Docker version 24.x.x</mark> or newer. If Docker is not installed, refer to your DGX system documentation or contact UnderstandTech support.

#### Step 2: Add Your User to the Docker Group

By default, Docker commands require sudo (administrator) privileges. Adding your user to the docker group lets you run Docker commands directly, which simplifies day-to-day management.

```bash
sudo usermod -aG docker $USER
```

Enter your password when prompted. This change won't take effect until you log out and back in (or reboot, which we'll do shortly).

#### Step 3: Authenticate with GitHub Container Registry

UnderstandTech's software is distributed as container images hosted on GitHub's Container Registry (GHCR). You need to authenticate so your DGX can download these images.

Run the following command, then paste your access token when prompted for a password:

```shellscript
docker login ghcr.io -u dgx-access
```

You should see <mark style="color:green;">Login Succeeded</mark>. If you see unauthorized or denied, double-check your token and try again. If the problem persists, your token may have expired — contact UnderstandTech for a replacement.

{% hint style="info" %}
What's happening here: This stores an authentication credential on the DGX so that Docker can pull private images from ghcr.io/understand-tech/. The credential persists across reboots, so you only need to do this once (unless the token is revoked or replaced).
{% endhint %}

#### Step 4: Clone the Repository

The repository contains the configuration files that tell Docker how to assemble and run the UnderstandTech platform. Clone it to your home directory:

{% code overflow="wrap" %}

```bash
git clone https://dgx-access:<YOUR_ACCESS_TOKEN>@github.com/understand-tech/ai-in-a-box.git ~/understand-tech
```

{% endcode %}

Enter.

{% code overflow="wrap" %}

```bash
cd ~/understand-tech && ls
```

{% endcode %}

Replace <mark style="color:green;">\<YOUR\_ACCESS\_TOKEN></mark> with the token provided by UnderstandTech (the same one you used in Step 3).

{% hint style="info" %}
What this creates: A <mark style="color:green;">\~/understand-tech</mark> directory containing <mark style="color:green;">compose.yaml</mark> (the service definitions), <mark style="color:green;">Caddyfile</mark> (the web server configuration), environment templates, and operational scripts you'll use to manage the platform.
{% endhint %}

#### Step 5: Configure mDNS (Network Discovery) for main platform

mDNS (multicast DNS) allows devices on your local network to find the DGX using the friendly hostname understand.local instead of requiring you to remember an IP address. This step changes the DGX's hostname and installs the service that broadcasts it on the network.

First, note your current hostname — you'll need it in a moment:

```shellscript
hostname
```

Copy the output (e.g., <mark style="color:green;">spark-a2c4</mark>) and save it somewhere.

**Now install/update the mDNS daemon** and update the hostname:

1. Install the Avahi mDNS daemon

```shellscript
sudo apt-get update && sudo apt-get install -y avahi-daemon avahi-utils
```

2. Change the system hostname to "understand"

```shellscript
sudo hostnamectl set-hostname understand
```

3. Update the hosts file to match the new hostname

```shellscript
sudo sed -i 's/OLD_HOSTNAME/understand/g' /etc/hosts
```

{% hint style="warning" %}
**Important:** In the <mark style="color:green;">sed</mark> command above, replace <mark style="color:green;">OLD\_HOSTNAME</mark> with the hostname you copied earlier.
{% endhint %}

4. Restart the mDNS service

```shellscript
sudo systemctl restart avahi-daemon
```

{% hint style="info" %}
Why this matters: Without mDNS, you'd need to find and type the DGX's IP address every time you want to access UnderstandTech. With mDNS configured, any device on the same network can simply navigate to <https://understand.local>. This works on macOS, Windows 10+, and most Linux distributions out of the box.
{% endhint %}

{% hint style="warning" %}
If you already have a DGX configured with 'understand' as the hostname, change the hostname of the existing box by following the steps above. That is because in a particular network, in order for mDNS resolution to work correctly you can only have one device with a particular hostname.
{% endhint %}

#### Step 6: Reboot

Both the Docker group membership (Step 2) and the hostname change (Step 5) require a reboot to take effect:

```shellscript
sudo reboot
```

{% hint style="success" %}
After this step, **the system reboots** and applies the changes we made earlier (step 3 & step 5).
{% endhint %}

After the system comes back up, sign in again and **open a terminal** and verify both changes applied correctly:

```shellscript
# Verify the hostname changed
hostname

# Expected output: understand

# Verify Docker group membership
groups

# Expected output should include 'docker' in the list
```

This is how it should look like:

<div data-with-frame="true"><figure><img src="https://2654650065-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXgNPw9jE3xyWIcnvYeCB%2Fuploads%2F9xnGefG4x9yXG5skrIAW%2Funknown.png?alt=media&amp;token=df8dd622-f92c-460c-a6c0-46c3f8ab4431" alt=""><figcaption></figcaption></figure></div>

If docker doesn't appear in the groups output like below, repeat Step 2 and reboot again.

#### Step 7: Enable Auto-Start and App Hostnames

Step 5 gave the DGX a single friendly name, `understand.local`. The platform also serves several applications on names one level below it — `llms.understand.local`, `assistants.understand.local`, `admin.understand.local` — and mDNS does not answer for those on its own. Each one needs to be announced separately.

This step publishes those names and registers the platform to come back up by itself after a reboot or a power cut.

Run the setup script from the repository you cloned in Step 4:

```bash
cd ~/understand-tech
sudo ./setup-autostart.sh
```

{% hint style="info" %}
The script only installs. It does not download images or start the platform — you will do that in later steps. Running it now simply means the platform is ready to start itself from then on.
{% endhint %}

<div data-with-frame="true"><figure><img src="https://2654650065-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXgNPw9jE3xyWIcnvYeCB%2Fuploads%2FhXhHp0uebJmhg5dLk6XS%2Fimage.png?alt=media&amp;token=9247ed1d-ef87-4994-8e7e-04bd534d1deb" alt=""><figcaption></figcaption></figure></div>

**What it installs**

| File                                         | Purpose                                     |
| -------------------------------------------- | ------------------------------------------- |
| `/etc/systemd/system/understandtech.service` | Starts the platform on every boot           |
| `/etc/systemd/system/ut-mdns-alias.service`  | Keeps the application hostnames published   |
| `/usr/local/bin/ut-mdns-alias`               | The publisher itself                        |
| `/etc/default/ut-mdns-alias`                 | The list of names to publish — safe to edit |

{% hint style="warning" %}
You will see a warning that `.env` is missing:

```
[WARN] No .env in /home/<user>/understand-tech yet — units installed anyway.
```

This is expected at this point — you create `.env` in Step 9. The services are installed correctly and will pick it up then.
{% endhint %}

**Hostnames published**

| Hostname                      | Serves                                        |
| ----------------------------- | --------------------------------------------- |
| `understand.local`            | The main platform (from Step 5)               |
| `llms.understand.local`       | Model catalogue and playground                |
| `assistants.understand.local` | Assistant builder                             |
| `admin.understand.local`      | Administration portal                         |
| `builder.understand.local`    | App Builder, if you install the add-on        |
| `<app>.apps.understand.local` | One per app you generate with the App Builder |

Apps you create later in the App Builder are picked up automatically — the publisher announces new names without any further configuration.

**Verify**

Confirm both services are registered to start on boot:

```bash
systemctl is-enabled understandtech ut-mdns-alias
```

```
# Expected output:
enabled
enabled
```

Confirm the publisher is running and the names resolve:

```bash
avahi-resolve -n llms.understand.local
```

```
# Expected output (your IP will differ):
llms.understand.local	192.168.1.42
```

You can also see everything at once:

```bash
sudo ./setup-autostart.sh --status
```

{% hint style="info" %}
The names resolve immediately, but opening them in a browser will not show anything until the platform is deployed in Step 10. Resolving is the DGX saying "that name is me" — there is simply nothing listening yet.
{% endhint %}

**Adding your own hostnames**

The published list lives in `/etc/default/ut-mdns-alias`. Add names to `UT_MDNS_ALIASES`, separated by spaces, then restart the publisher:

```bash
sudo nano /etc/default/ut-mdns-alias
sudo systemctl restart ut-mdns-alias
```

This file is created once and is never overwritten, so your additions survive re-running the setup script.

**Re-running the script**

`sudo ./setup-autostart.sh` is safe to run again at any time. It compares what it would install against what is already there and only makes changes where something actually differs — your hostname list is left alone, and the publisher is not interrupted if its configuration has not changed.

Useful options:

| Command                                 | Effect                                        |
| --------------------------------------- | --------------------------------------------- |
| `sudo ./setup-autostart.sh`             | Install or refresh both services              |
| `sudo ./setup-autostart.sh --mdns`      | Only refresh the hostname publisher           |
| `sudo ./setup-autostart.sh --status`    | Show both services and the running containers |
| `sudo ./setup-autostart.sh --uninstall` | Remove both services                          |

**Troubleshooting**

| Symptom                                    | Cause and fix                                                                                                                                |
| ------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------- |
| `avahi-publish not found`                  | Avahi was not installed in Step 5. Run `sudo apt-get install -y avahi-daemon avahi-utils`, then `sudo systemctl start ut-mdns-alias`.        |
| `no usable IPv4 address yet` in the logs   | The network was not up when the service started. It retries automatically every 5 seconds; check with `sudo systemctl status ut-mdns-alias`. |
| Names do not resolve from another computer | mDNS must be supported on the client too. macOS and Windows 10+ work out of the box; on Linux install `libnss-mdns`.                         |
| `Install directory not found`              | You ran the script from somewhere other than the cloned repository. Use `cd ~/understand-tech` first, or pass `--dir ~/understand-tech`.     |

To read the publisher's log:

```bash
sudo journalctl -u ut-mdns-alias -n 50
```

#### Step 8: Install Portainer (Container Management UI)

Portainer gives you a web-based dashboard for monitoring and managing all UnderstandTech services. While everything can be done from the command line, Portainer provides a visual interface that's especially useful for checking service health, viewing logs, and restarting individual containers. Refer to the [Portainer guide](https://docs.understand.tech/documentation/english-version/ai-in-a-box/portainer-guide-for-understand-tech.md) for detailed usage instructions.

```shellscript
# 1. Create a persistent volume for Portainer's data
docker volume create portainer_data

# 2. Install and run Portainer
docker run -d \
  -p 9443:9443 \
  --name portainer \
  --restart=always \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -v portainer_data:/data \
  portainer/portainer-ce:latest \
  --admin-password '$2y$05$OK0hJ5gFUq5DBHNtKh01Vu/SIeufwJZwrNJOGdA9H8KTdnq288lQq'
```

Once running, access Portainer at [https://localhost:9443](https://localhost:9443/) from the DGX itself (by opening Firefox).

On first access:

1. Your browser will show a <mark style="color:$danger;">**security warning**</mark> about the self-signed certificate; this is **expected and safe** for internal use. Click "Advanced" → "Proceed" to continue.
2. You'll be prompted to enter the username, and the password field will be pre-filled. If not, enter '**admin**' as username and '**REPLACE\_ME\_IMMEDIATELY**' as the password.
3. Once logged in, remember to change the password to a secure one and store it someplace safe.
4. Select **Get Started with Docker** and click '**Live** **Connect'.**
5. You can leave the webpage open for now.

<div data-with-frame="true"><figure><img src="https://2654650065-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXgNPw9jE3xyWIcnvYeCB%2Fuploads%2Ft4PBewkDaJgolKQXi851%2Fimage.png?alt=media&amp;token=919edb3f-d962-4753-8f08-88cf3cc225d5" alt=""><figcaption></figcaption></figure></div>

{% hint style="info" %}
What Portainer provides: A point-and-click interface for everything you'd otherwise do with docker commands like viewing container status, reading logs, restarting services, scaling workers, and more. See the Portainer Guide section later in this document for detailed usage instructions.
{% endhint %}

#### Step 9: Configure Environment Variables

The .env file contains all the configuration values that the UnderstandTech services need to run- database credentials, API keys, model settings, and more. This file is the single source of configuration for your entire deployment.

Open the **terminal** again, and navigate to the **project directory** and create your environment file from the provided template:

```shellscript
cd ~/understand-tech

# 1. Create .env from the template
cp .env.example .env

# 2. Restrict file permissions so only your user can read it
chmod 600 .env
```

Open the file in VS Code (or any text editor) to configure it:

```shellscript
code .env
```

#### Understanding the .env File

The environment file is organized into three sections:

**Section 1: Image Tags (Update for Releases)**

<div data-with-frame="true"><figure><img src="https://2654650065-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXgNPw9jE3xyWIcnvYeCB%2Fuploads%2Flz9ouWnd3InsxReCJwOH%2Fimage.png?alt=media&amp;token=f69d2bab-4d47-4b19-a6f4-3b1b853d18d0" alt=""><figcaption></figcaption></figure></div>

These specify which versions of the UnderstandTech containers to run. When UnderstandTech releases an update, you'll receive new image tags to replace these values.

**To update:** follow the procedure in [Updating the platform](#updating-the-platform) at the end of this guide. Each release lists the image tags to change and the new variables to add to your `.env`.

**Section 2: User Configuration (Edit These)**

<div data-with-frame="true"><figure><img src="https://2654650065-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXgNPw9jE3xyWIcnvYeCB%2Fuploads%2F4A6DDHYq2lpHRXOjBsDd%2Fimage.png?alt=media&amp;token=8d88fcf7-eadc-4ed7-91d3-4a47cf317808" alt=""><figcaption></figcaption></figure></div>

These are the values you should customize for your deployment:

| Variable                   | Description                                                       | Default                  | Recommendations                         |
| -------------------------- | ----------------------------------------------------------------- | ------------------------ | --------------------------------------- |
| `MONGODB_USERNAME`         | Database administrator username                                   | `your_chosen_username`   | Change to your preferred username       |
| `MONGODB_PASSWORD`         | Database administrator password                                   | `<your_chosen_password>` | **Must change** - use a strong password |
| `WORKER_REPLICAS`          | Number of main API worker containers                              | `2`                      | Increase for higher throughput          |
| `WORKER_CUSTOMER_REPLICAS` | Number of customer API worker containers                          | `2`                      | Increase for higher throughput          |
| `VLLM_LLM_MODEL`           | Base LLM model for UnderstandAI                                   | `openai/gpt-oss-20b`     | See model options below                 |
| `ADMIN_SETUP_PASSWORD`     | Password that opens the initial setup page of the admin dashboard | `password`               | **Must change** - use a strong password |

**MongoDB Credentials**

These credentials are set during first startup and used to access the database.

<mark style="color:green;">MONGODB\_USERNAME</mark>= "your-chosen-username" (ex.: "admin")\ <mark style="color:green;">MONGODB\_PASSWORD</mark>= "your-chosen-password" (ex. "password1234567")

Replace 'your-chosen-username' and 'your-chosen-password' with values you choose. These will be the administrator credentials for the MongoDB database that stores all application data.

{% hint style="info" %}
**Important constraints for MongoDB credentials:**

* Use only alphanumeric characters (letters and numbers). Special characters like @, #, !, or % can cause connection failures because they have special meaning in database connection strings.
* Choose a strong password with at least 12 characters mixing uppercase, lowercase, and numbers.
* These credentials are set during first startup. If you need to change them later, the process is more involved (see the MongoDB Guide section).
  {% endhint %}

**Worker Replicas**

Workers process background jobs like document parsing, assistant generation, and async tasks. More workers = more parallel processing capacity.

* **Default (2):** Suitable for small teams or testing
* **Production (4-8):** Recommended for active usage
* **High volume (8+):** For large deployments with many concurrent users

**Alternative LLM Models**

The `VLLM_LLM_MODEL` variable determines which AI model powers Understand AI's responses. The table below lists a set of well-known, commonly used alternatives. For a full list of vLLM-compatible text generation models up to 128B parameters, see the [Hugging Face model hub](https://huggingface.co/models?pipeline_tag=text-generation\&num_parameters=min:0,max:128B\&apps=vllm\&inference_provider=all\&sort=likes).

{% hint style="warning" %}
**Important:** If you choose a model not listed here, you are responsible for adjusting `VLLM_LLM_GPU_MEM_UTIL`, `VLLM_LLM_EXTRA_ARGS`, `LLM_MAX_CONTEXT_LEN`, and `VLLM_CONDENSE_MODEL` to match that model's requirements. Refer to the model's Hugging Face page for its parameter count, context window size, and any vLLM-specific serving notes.
{% endhint %}

<table><thead><tr><th width="189">VLLM_LLM_MODEL</th><th width="142">VLLM_LLM_GPU_MEM_UTIL</th><th width="172">VLLM_LLM_EXTRA_ARGS</th><th width="135">LLM_MAX_CONTEXT_LEN</th><th width="138">VLLM_CONDENSE_MODEL</th></tr></thead><tbody><tr><td><code>openai/gpt-oss-20b</code></td><td>0.55</td><td><code>--max-model-len 32768</code></td><td>32768</td><td><code>openai/gpt-oss-20b</code></td></tr><tr><td><code>openai/gpt-oss-120b</code></td><td>0.80</td><td><code>--max-model-len 32768</code></td><td>32768</td><td><code>openai/gpt-oss-120b</code></td></tr><tr><td><code>Qwen/Qwen3-32B</code></td><td>0.70</td><td><code>--max-model-len 32768</code></td><td>32768</td><td><code>Qwen/Qwen3-32B</code></td></tr><tr><td><code>meta-llama/Llama-3.3-70B-Instruct</code></td><td>0.75</td><td><code>--max-model-len 32768</code></td><td>32768</td><td><code>meta-llama/Llama-3.3-70B-Instruct</code></td></tr><tr><td><code>deepseek-ai/DeepSeek-R1-Distill-Qwen-32B</code></td><td>0.70</td><td><code>--max-model-len 32768</code></td><td>32768</td><td><code>deepseek-ai/DeepSeek-R1-Distill-Qwen-32B</code></td></tr></tbody></table>

{% hint style="info" %}
Contact UnderstandTech for recommendations based on your hardware and use case.
{% endhint %}

**Notes:**

* All models in the table above fit within the DGX's 128 GB total VRAM without requiring `--tensor-parallel-size`. If you add a model larger than \~70B in bf16, add `--tensor-parallel-size 2` (or higher) to `VLLM_LLM_EXTRA_ARGS`.
* `VLLM_CONDENSE_MODEL` should generally match `VLLM_LLM_MODEL`. You may point it to a lighter model (e.g. keep it as `openai/gpt-oss-20b`) to preserve VRAM headroom when running a larger primary model.
* Set `HF_HUB_OFFLINE="0"` on first run to download a new model, then set it back to `"1"`.
* `VLLM_VLM_*` variables are independent of LLM model selection and do not need to change.

**Setup Password**

`ADMIN_SETUP_PASSWORD` is the password you will enter on the admin dashboard the very first time you configure the platform (see [First-time Admin Configuration](#first-time-admin-configuration)). The template ships with the value `password`: replace it with a strong, unique value. You will redefine it during the first configuration, after which this initial value stops working.

{% hint style="warning" %}
Do not leave `ADMIN_SETUP_PASSWORD` empty. An empty value disables the initial setup page entirely, and the platform can never be configured.
{% endhint %}

***

**Section 3: System Configuration (Do Not Edit)**

<div data-with-frame="true"><figure><img src="https://2654650065-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXgNPw9jE3xyWIcnvYeCB%2Fuploads%2FK75nsZKWJoOvfrdzLkEL%2Fimage.png?alt=media&amp;token=12144aba-96a9-4ae5-8f2e-f3112a781fb4" alt=""><figcaption></figcaption></figure></div>

These values are pre-configured to work with the Docker Compose setup. Changing them may break connectivity between services.

This section includes:

* Internal service hostnames and ports
* Embedding and reranker model paths
* Authentication URLs and redirects
* Storage and logging configuration

After configuring section 2, **save the file** (Ctrl + S), and **close the editor.**

#### Step 10: Deploy the Stack

You're now ready to pull the container images and start all services. This is where everything comes together.

```shell
cd ~/understand-tech

# 1. Download all container images (10-20 minutes depending on your network connections)
docker compose pull

# 2. Start all services in the background
docker compose up -d
```

{% hint style="info" %}
**What does the 1. step (pull) do?**\
It downloads all the software components. This is the longest part of setup as the images include the application code and their dependencies. Subsequent updates will be much faster as Docker only downloads what has changed.
{% endhint %}

{% hint style="info" %}
**What does the 2. step start?**\
This command launches the entire platform - the web frontend, backend API, GPU-accelerated LLM service, MongoDB database, Redis cache, background workers, and the Caddy reverse proxy that ties them all together behind <https://understand.local>.
{% endhint %}

#### Step 11: Verify the Deployment

Services take a couple of minutes to initialize, especially the LLM service which needs to load AI models into GPU memory.

There are two ways to verify the deployment; through the **terminal** or via **portainer.**

1. **Terminal:**

```shellscript
docker compose ps
```

2. **Portainer:**\
   Open the portainer webpage, go to the sidebar, and click on '**Containers**'.\
   For more information check out the [Portainer guide](https://docs.understand.tech/documentation/english-version/ai-in-a-box/portainer-guide-for-understand-tech.md).

<div data-with-frame="true"><figure><img src="https://2654650065-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXgNPw9jE3xyWIcnvYeCB%2Fuploads%2F6R4U6ZlWikLnAjpgg694%2Fimage.png?alt=media&amp;token=481c8f61-8530-4be9-bdc5-2b0efb6ce246" alt=""><figcaption></figcaption></figure></div>

{% hint style="info" %}
What "healthy" means: Each service has a built-in health check that periodically verifies it's working correctly. "Healthy" means the service is fully operational and ready to handle requests. If a service stays "unhealthy" for more than a few minutes, check its logs for errors. Learn where to check for logs from the Portainer guide.
{% endhint %}

You should see the following containers: `ut-caddy`, `ut-api`, `ut-frontend`, `ut-admin-portal`, `ut-app-llms`, `ut-app-assistants`, `ut-api-customer`, `ut-mongodb`, `ut-mongodb-backup`, `ut-redis`, `ut-llm`, `nim-llm`, `nim-vlm`, plus the worker containers (`understandtech-workers-*`).

{% hint style="info" %}
`nim-llm` and `nim-vlm` take noticeably longer than the other services on the very first start, because they download the AI models into their cache. Wait for them to become healthy before moving on.
{% endhint %}

#### Step 12: Setup the TLS Certificate for the Frontend

Once all the services are healthy and you first visit [https://understand.local](https://understand.local/).\
Your browser will show a security warning, something like "Your connection is not private" (Chrome), "Warning: Potential Security Risk Ahead" (Firefox), or "This Connection Is Not Private" (Safari).

{% hint style="info" %}
**Why this happens:** Caddy, the reverse proxy that sits in front of UnderstandTech, automatically generates an SSL certificate to encrypt all traffic between your browser and the DGX. This is a real, working certificate, and your connection is genuinely encrypted. However, because Caddy generated and signed this certificate itself (rather than a public authority like Let's Encrypt), your browser doesn't recognize the signer and flags it as untrusted. This is **perfectly normal and expected** for any locally-hosted service.
{% endhint %}

**The quick workaround** is to click through the warning each time: "Advanced" → "Proceed to understand.local." This works, but you and every user on your network will see the warning on every new browser session, which gets annoying and can cause confusion.

**The proper fix** is to export Caddy's root certificate and install it as a trusted certificate on each device that accesses UnderstandTech. Once installed, the warnings disappear permanently and the browser shows a normal padlock icon.

**Export the Certificate from the DGX**

On the DGX, run this command to extract the root CA certificate that Caddy uses to sign its SSL certificates:

```shellscript
docker exec ut-caddy cat /data/caddy/pki/authorities/local/root.crt > caddy-root-ca.crt
```

This creates a file called <mark style="color:green;">caddy-root-ca.crt</mark> in your current directory.\
\
Important: You'll need to transfer this file to each device that should trust the certificate. You can do this via USB drive, email, shared network folder, or any encrypted messaging service. Once shared, follow the steps below for macOS, Windows and Linux machines:

**Install on macOS**

1. Double-click the caddy-root-ca.crt file. This opens **Keychain Access** automatically.
2. The certificate will appear in your login keychain. Find it in the list (it will be named something like "Caddy Local Authority").
3. Double-click the certificate to open its details.
4. Expand the **Trust** section.
5. Change "When using this certificate" to **Always Trust.**
6. Close the window. You'll be prompted for your macOS password to confirm the change.
7. Restart your browser. The warning should no longer appear when visiting <https://understand.local>.

**Install on Windows**

1. Double-click the caddy-root-ca.crt file. A certificate dialog will appear.
2. Click **Install Certificate**.
3. Select **Local Machine** (this trusts the certificate for all users on this Windows PC). Click Next.
4. Select **Place all certificates in the following store**, then click **Browse**.
5. Choose **Trusted Root Certification Authorities**. Click OK, then Next, then Finish.
6. If prompted by a security warning asking whether you want to install this certificate, click Yes.
7. Restart your browser. The warning should no longer appear.

**Note for Windows users**: If "Local Machine" is grayed out, you may need to run the certificate import as Administrator. Right-click the .crt file → "Install Certificate" and select "Local Machine" with elevated privileges.

**Install on Linux**

```shellscript
# 1. Copy the certificate to the system trust store
sudo cp caddy-root-ca.crt /usr/local/share/ca-certificates/caddy-root-ca.crt

# 2. Update the system certificate bundle
sudo update-ca-certificates

# 3. Restart your browser
```

Most Linux browsers (Firefox, Chrome, Chromium) will pick up the system certificate after restart. Firefox uses its own certificate store, so if the warning persists in Firefox specifically, you can import the certificate manually: Settings → Privacy & Security → Certificates → View Certificates → Authorities → Import.

**Enterprise Environments (MDM / Group Policy)**

If your organization manages devices through a Mobile Device Management (MDM) platform or Active Directory Group Policy, you can distribute the Caddy root certificate across all managed devices at once. Contact your IT admin for further steps.

{% hint style="info" %}
In corporate environments, users may not have permission to install certificates themselves, and browser security warnings can trigger IT security alerts or helpdesk tickets. Deploying the certificate through your existing MDM or GPO infrastructure ensures a seamless experience for all users.
{% endhint %}

#### Step 13: Using a Custom Domain (Optional)

By default the box serves everything under <mark style="color:green;">understand.local</mark>. If you want to reach it at your own domain instead — for example <mark style="color:green;">chat.example.com</mark> — the box only needs one setting changed, but three things follow from it: mDNS, the certificate, and, if App Builder is on, the apps it generates.

```bash
# in .env
UT_DOMAIN="chat.example.com"
```

Every address the platform uses — the frontend, the admin dashboard, the LLMs and Assistants apps, App Builder — is derived from this single value. Changing it is a one-line edit; restart the stack for it to take effect.

{% hint style="warning" %}
mDNS (the understand.local discovery mechanism from Step 5) only answers for `.local` names. The moment `UT_DOMAIN` points at a real domain, the box's mDNS service detects it and stops announcing names — it will not retry. You need to create the DNS records yourself, pointing at the box (or at whatever sits in front of it):

```
chat.example.com  llms.chat.example.com  assistants.chat.example.com  admin.chat.example.com  builder.chat.example.com  *.apps.chat.example.com
```

{% endhint %}

**Certificates: the apex and the four satellite names**

With a real domain you are no longer limited to the self-signed certificate — you can supply your own, including a wildcard your organization already manages. Set the ingress mode and drop your files in the certificate directory:

```bash
UT_INGRESS_MODE="custom"
```

Place <mark style="color:green;">fullchain.pem</mark> and <mark style="color:green;">privkey.pem</mark> in the certificate directory (`UT_CERT_DIR`). That certificate must cover the apex **and** the four satellite names: `chat.example.com`, `llms.chat.example.com`, `assistants.chat.example.com`, `admin.chat.example.com`, `builder.chat.example.com`. A certificate with those five names as SANs works, and so does one issued for `chat.example.com` + `*.chat.example.com`.

{% hint style="danger" %}
**If `UT_DOMAIN` sits two levels below your organization's real domain** — say you own `example.com` and the box is reachable at `test.app.example.com` — a wildcard your IT already has for the parent (`*.example.com`, or even `*.app.example.com`) does **not** cover the satellites. A wildcard only matches one label: `*.app.example.com` covers `test.app.example.com` itself, but not `llms.test.app.example.com` — that name is one level further down. You need a certificate issued specifically for `test.app.example.com` + `*.test.app.example.com` (or explicit SANs for all five names), not whatever wildcard is already sitting in your certificate store. Ask your IT team for one scoped at exactly that level.
{% endhint %}

**Apps generated by App Builder**

If App Builder is on, each generated app gets its own name one level further down: `<app>.apps.chat.example.com` (or `<app>.apps.test.app.example.com` in the nested example above). The apex/satellite certificate above does not cover these — Caddy serves them from a second, separate wildcard:

```bash
UT_APPS_CERT_FILE=/path/to/apps-fullchain.pem
UT_APPS_KEY_FILE=/path/to/apps-privkey.pem
```

That file must cover `*.apps.chat.example.com` (one level below `apps.chat.example.com`). The same depth caution applies: a generic company wildcard almost never reaches this deep — it has to be requested for that exact name.

{% hint style="info" %}
Two things live outside the box and have to be updated by hand: the **redirect URI** registered with your identity provider must match the new domain, and any **App Builder app generated before the change** keeps serving under the old domain until it is redeployed.
{% endhint %}

Before restarting the stack, validate the configuration — it checks the files are present and the certificate's SANs actually match every hostname, without changing anything:

```bash
sudo ./setup-autostart.sh --check
```

***

### First-time Admin Configuration

The platform must be configured from the **platform admin dashboard**, available at <https://admin.understand.local>. Nothing can be used until a super administrator completes the initial setup there.

When you first navigate to <https://understand.local> from any device on the same network as the DGX, you'll see a blocking **Setup required** dialog: *"This platform hasn't been configured yet. A super administrator must complete the initial setup from the admin dashboard before the application can be used."* The dialog may offer an **Open the admin dashboard** button; otherwise, simply open <https://admin.understand.local> yourself.

The whole process takes five steps:

1. **Initial setup** on the admin dashboard: sign-in method, first administrators, setup password. **Mandatory.**
2. **Sign in** to the admin dashboard with your own account.
3. **Configuration**: AI providers, email, integrations, branding. Can be revisited at any time.
4. **Organization**: create the organization your users belong to, so roles and usage statistics have a scope.
5. **Restart** the API and the workers so that the API keys are picked up everywhere.

{% hint style="info" %}
You **must complete step 1** to use the platform: until the sign-in method is chosen, nobody can sign in anywhere. Steps 3 to 5 can be done later.
{% endhint %}

#### Step 1: Open the Initial Setup Page

Open <https://admin.understand.local>. While the platform is not configured, the dashboard automatically takes you to its **Platform setup** page.

<div data-with-frame="true"><figure><img src="https://2654650065-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXgNPw9jE3xyWIcnvYeCB%2Fuploads%2FaiVuZqYUII7E32xrEeYo%2FCapture%20d%E2%80%99e%CC%81cran%202026-09-04%20a%CC%80%2015.24.18.png?alt=media&amp;token=7dac6306-5b03-42ba-8c79-71bc313051cf" alt=""><figcaption></figcaption></figure></div>

Enter the **setup password**. This is the value of `ADMIN_SETUP_PASSWORD` in your `.env` file (see [Step 9](#step-9-configure-environment-variables)). Then click **Continue**.

| Message                                                                       | Meaning                                                                                           |
| ----------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- |
| *Invalid setup password.*                                                     | The value does not match `ADMIN_SETUP_PASSWORD` in `.env`.                                        |
| *The setup page is disabled: no setup password is configured on this server.* | `ADMIN_SETUP_PASSWORD` is empty in `.env`. Set a value and restart the API (see Troubleshooting). |
| *Too many failed attempts. Please try again later.*                           | Five wrong attempts within five minutes. Wait a few minutes and try again.                        |

The setup form is deliberately short: only what is needed to open the door. It has three sections, **Authentication**, **Dashboard administrators** and **Setup password**, all saved together with the **Save** button at the bottom.

#### Step 2: Authentication

<div data-with-frame="true"><figure><img src="https://2654650065-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXgNPw9jE3xyWIcnvYeCB%2Fuploads%2F2jR4v7Np37Gq3dce2FwU%2FCapture%20d%E2%80%99e%CC%81cran%202026-09-04%20a%CC%80%2015.51.33.png?alt=media&amp;token=c01b19c8-dc8b-410b-8166-00c4bba6e176" alt=""><figcaption></figcaption></figure></div>

Choose how your users will sign in to the main application. Two cards are shown:

* **Firebase**: email and password accounts managed with Google Firebase. On the DGX this card is greyed out (*Not available on your deployment*): the AI in a Box runs on MongoDB, which does not support it.
* **OpenID Connect**: single sign-on through your company identity provider (SSO). **Select this one.**

UnderstandTech uses OpenID Connect (OIDC) for all user authentication. There is no built-in username/password login; all users sign in through your organization's identity provider (IdP). Users who turned on two-factor authentication (2FA) enter their code right after the company sign-in. See [Security](https://docs.understand.tech/documentation/english-version/platform/security.md).

You'll need the **following values from your identity provider** (e.g., Microsoft Entra ID, Okta, Google Workspace, Auth0, Keycloak, or any OIDC-compliant provider):

| Field               | What It Is                                                       | Where to Find It                                   |
| ------------------- | ---------------------------------------------------------------- | -------------------------------------------------- |
| Client ID           | The application/client ID assigned to UnderstandTech in your IdP | Your IdP's app registration page                   |
| Client secret       | The secret used to authenticate the application with your IdP    | Generated during app registration                  |
| Secret key          | A key used to sign and verify session tokens                     | Choose a long random string (32+ characters)       |
| Redirect URI        | Where users land in the application once signed in               | Use `https://understand.local/auth/openid/success` |
| Server metadata URL | The IdP's .well-known/openid-configuration endpoint              | Your IdP's documentation (see examples below)      |
| Token endpoint URL  | The endpoint that exchanges authorization codes for tokens       | Found in the metadata URL response                 |
| JWKS endpoint URL   | The endpoint serving the public keys used to verify tokens       | Found in the metadata URL response                 |
| Issuer              | The issuer identifier for your IdP                               | Found in the metadata URL response                 |

{% hint style="warning" %}
**Callback URL to register in your IdP.** When your IT team registers UnderstandTech as an application in the identity provider, the authorized redirect (callback) URL to declare is `https://understand.local/api/openid/callback`. This is different from the *Redirect URI* field above, which is where the user lands once signed in.
{% endhint %}

Common metadata URLs by provider:

* Microsoft Entra ID: <https://login.microsoftonline.com/{tenant-id}/v2.0/.well-known/openid-configuration>
* Okta: https\://{your-domain}.okta.com/.well-known/openid-configuration
* Google Workspace: <https://accounts.google.com/.well-known/openid-configuration>
* Keycloak: https\://{your-host}/realms/{realm}/.well-known/openid-configuration
* Auth0: https\://{your-domain}.auth0.com/.well-known/openid-configuration

{% hint style="info" %}
Tip: If your IdP supports a discovery/metadata URL, start there. Navigating to the metadata URL in your browser will return a JSON document that contains the token endpoint, JWKS endpoint, and issuer values - you can copy them directly into the corresponding fields.
{% endhint %}

Need help?\
**SSO configuration depends on your specific identity provider,** and your IT or security team will likely need to register UnderstandTech as an application in your IdP. If you're unsure about any of these values, involve your identity/SSO administrator or contact UnderstandTech support.

**Sign-out from your identity provider (optional)**

To sign users out of UnderstandTech when they sign out of your identity provider, declare this back-channel logout URL in the provider: `https://understand.local/api/openid/backchannel-logout`

<details>

<summary>Keycloak</summary>

In **Clients** > your client > **Settings** > **Logout settings**: turn **Front channel logout** off, enter the URL in **Backchannel logout URL**, then turn **Backchannel logout session required** on.

</details>

{% hint style="info" %}
Changing any authentication setting later, from the Configuration page or from this setup page, signs out every connected user.
{% endhint %}

#### Step 3: Dashboard Administrators

List the email addresses of the people who will manage the admin dashboard, yourself included. Type an address and click **Add** (or press Enter). **At least one is required**: the save is refused otherwise, because only these people will be able to sign in to the dashboard once the platform is configured.

Administrators sign in to the dashboard with their platform account, through SSO. There is no separate dashboard password. Use each address exactly as your identity provider reports it.

<figure><img src="https://2654650065-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXgNPw9jE3xyWIcnvYeCB%2Fuploads%2F8OPs2cHHGToEh0TgJrL7%2FCapture%20d%E2%80%99e%CC%81cran%202026-09-04%20a%CC%80%2015.51.35.png?alt=media&amp;token=929c7ff9-759b-4803-81b9-218626992811" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Add at least two administrators, so nobody gets locked out if one person leaves. You can add or remove administrators later from the dashboard.
{% endhint %}

#### Step 4: Setup Password

<div data-with-frame="true"><figure><img src="https://2654650065-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXgNPw9jE3xyWIcnvYeCB%2Fuploads%2FdTHyfZttYFErGShZC4bN%2FCapture%20d%E2%80%99e%CC%81cran%202026-09-04%20a%CC%80%2015.51.38.png?alt=media&amp;token=fef332d9-7834-4e03-94d3-cb3f712c0dfa" alt=""><figcaption></figcaption></figure></div>

Define a **new setup password** and confirm it. It replaces the installation value from `.env`, which stops working after this save. This password is what re-opens the initial setup page later if the sign-in settings ever need fixing: it is your recovery key.

{% hint style="info" %}
Choose a strong password (at least 12 characters) and store it with your infrastructure secrets. This is **separate** from your DGX system password and your SSO credentials.
{% endhint %}

Click **Save**. A confirmation dialog, *Confirm the first configuration*, recaps the administrators you listed and reminds you how to come back to this page. Confirm: the message *Configuration saved. You can now sign in.* appears and you are taken to the dashboard's sign-in page.

#### Step 5: Sign In to the Admin Dashboard

On the sign-in page, click **Continue with the main application**. You are taken to `understand.local`, where you sign in with your identity provider, then brought back to the dashboard, signed in. If you already hold a session on the main application, this happens automatically.

If the dashboard says *Access denied: this dashboard is restricted to super admins*, the address you signed in with is not one of the administrators listed in Step 3.

Now go back to <https://understand.local> and click **I've completed the configuration** in the *Setup required* dialog. The dialog disappears and the platform's sign-in page is shown. Users can already sign in at this point.

#### Step 6: Platform Configuration

Everything else lives on the dashboard's **Configuration** page (left sidebar). Fill in what you need, then click **Save configuration** at the bottom. The page has six tabs.

**Overview**

A read-only recap of the other tabs, with a **Configure** button on each card.

**Access**

The same authentication settings as the setup page, plus the list of **Dashboard administrators**. Adding or removing an administrator applies immediately, without saving. You cannot remove yourself.

**AI providers**

<div data-with-frame="true"><figure><img src="https://2654650065-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXgNPw9jE3xyWIcnvYeCB%2Fuploads%2FaVLmCz143vAC7Mwzlt4T%2FCapture%20d%E2%80%99e%CC%81cran%202026-09-04%20a%CC%80%2017.49.31.png?alt=media&amp;token=72e05bcd-2ad7-4ac7-b6dd-1fa33d70541d" alt=""><figcaption></figcaption></figure></div>

This tab controls which AI models are available to your users inside the UnderstandTech apps.

At the top, **Understand AI** is UnderstandTech's own assistant. It runs locally on your DGX's GPU, needs no API key, and is enabled by default. It's the primary reason for having a DGX in the first place: all inference happens on your hardware, so your data never leaves your premises. The model it runs is the one set by `VLLM_LLM_MODEL` in your `.env` (see [Step 9](#step-9-configure-environment-variables)).

Below it, the third-party providers: **Open AI**, **Mistral AI**, **Claude**, **Gemini**, **DeepSeek**, **Grok**, **Groq** and **Perplexity**. Enabling any of these gives your users that provider's models alongside (or instead of) Understand AI. This is useful when you want to give users access to a broader range of models for different tasks, for example a frontier model for complex reasoning or Perplexity for research with web sources. The specific models available in the platform are added automatically based on the API keys you enter.

**To enable a provider:**

1. Tick the box next to the provider name.
2. Paste the provider's **API key** in the field that appears. **Ensure that the models you want are available through that key.**
3. Repeat for any additional providers, then click **Save configuration**.

{% hint style="info" %}

* **A ticked provider needs a key.** Saving is refused until every ticked provider has one. Untick it instead if you don't intend to use it yet.
* **Keys are verified when you save.** An invalid key is rejected with the provider's name shown under the field, and nothing is saved.
* **Unticking a provider clears its stored key** on the next save. You will need to paste it again if you re-enable the provider later.
  {% endhint %}

{% hint style="warning" %}
Important: Enabling third-party providers means that queries sent to those models will leave your DGX and travel to the provider's servers over the internet. If data sovereignty is a concern, you may want to leave all third-party providers disabled and rely exclusively on Understand AI, which processes everything locally.
{% endhint %}

**Integrations**

<div data-with-frame="true"><figure><img src="https://2654650065-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXgNPw9jE3xyWIcnvYeCB%2Fuploads%2FiuqAwu2hrIxwsSZcgBfn%2FCapture%20d%E2%80%99e%CC%81cran%202026-09-04%20a%CC%80%2017.51.13.png?alt=media&amp;token=0cacfa1e-fbae-414c-9a89-bb0bad1bfb58" alt=""><figcaption></figcaption></figure></div>

The first card, **Email (SendGrid)**, holds the API key the platform uses to send emails to users: team invitations, workflow status, notifications. Without it, users cannot be invited by email. To get a key, create an account at [sendgrid.com](https://sendgrid.com) and follow the steps outlined at <https://www.twilio.com/docs/sendgrid/ui/account-and-settings/api-keys>, then paste it in **SendGrid API key**.

Below it, the **Integrations** card connects UnderstandTech to external data sources so users can bring in documents and data from tools they already use.

{% hint style="info" %}
**All integrations are optional.** You can skip them entirely and come back later.
{% endhint %}

Each integration requires OAuth credentials created in the vendor's developer console, and the redirect URI you declare there must point to your DGX, as indicated below.

**Microsoft (OneDrive / SharePoint)**

<div data-with-frame="true"><figure><img src="https://2654650065-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXgNPw9jE3xyWIcnvYeCB%2Fuploads%2FHaHWQegoR3TvFUfnUuCN%2FCapture%20d%E2%80%99e%CC%81cran%202026-09-04%20a%CC%80%2017.51.46.png?alt=media&amp;token=094b40d5-140c-4394-87a3-60f246f79f7e" alt=""><figcaption></figcaption></figure></div>

The Microsoft integration connects UnderstandTech to your organization's OneDrive and SharePoint, allowing users to bring documents and files from their Microsoft 365 environment into the platform for AI-powered analysis.

You'll need to **register UnderstandTech as an application** in Azure AD / Microsoft Entra ID. The fields map to values from that app registration:

<table data-header-hidden><thead><tr><th width="288.421875">Field</th><th>Purpose</th></tr></thead><tbody><tr><td>Client ID</td><td>The application (client) ID from your Entra ID app registration</td></tr><tr><td>Client secret</td><td>The secret generated for that app registration</td></tr><tr><td>Redirect URI</td><td>The callback URL - use <strong>https://understand.local/api/microsoft/callback</strong></td></tr><tr><td>Authority</td><td>Your tenant's authority URL, typically https://login.microsoftonline.com/{tenant-id}</td></tr></tbody></table>

To let users sync the calendar events and members of a SharePoint site's Microsoft 365 group, add the delegated Microsoft Graph permission **Group.Read.All** to this app registration (**API permissions**) and grant admin consent. Without it, documents still sync.

**Google (Drive)**

<figure><img src="https://2654650065-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXgNPw9jE3xyWIcnvYeCB%2Fuploads%2FxChK2oPX5ziRAZ0gpIb5%2FCapture%20d%E2%80%99e%CC%81cran%202026-09-04%20a%CC%80%2017.51.48.png?alt=media&amp;token=54fd73f0-d4fb-42e4-9726-34190d2fcefc" alt=""><figcaption></figcaption></figure>

The Google integration connects UnderstandTech to Google Drive, so users can import files from their Google Workspace.

You'll need to create an OAuth client in the Google Cloud Console (**APIs & Services → Credentials**) and enable the Google Drive API and Google Picker API on that project. The fields map to values from that project:

<table data-header-hidden><thead><tr><th width="288.421875">Field</th><th>Purpose</th></tr></thead><tbody><tr><td>Client ID</td><td>The OAuth client ID from the Google Cloud Console</td></tr><tr><td>Client secret</td><td>The OAuth client secret from the Google Cloud Console</td></tr><tr><td>Redirect URI</td><td>The callback URL - use <strong>https://understand.local/api/google/callback</strong></td></tr><tr><td>App ID</td><td>The project number of your Google Cloud project, required by the Google Drive file picker</td></tr></tbody></table>

**HubSpot**

<div data-with-frame="true"><figure><img src="https://2654650065-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXgNPw9jE3xyWIcnvYeCB%2Fuploads%2FHaeaUTd59BDhDotI7WHG%2FCapture%20d%E2%80%99e%CC%81cran%202026-09-04%20a%CC%80%2017.51.50.png?alt=media&amp;token=864e0dad-3343-41d3-b97f-8331e4b88eca" alt=""><figcaption></figcaption></figure></div>

The HubSpot integration connects UnderstandTech to your HubSpot CRM, giving users the ability to query and analyze CRM data through the AI assistant.

You'll need to create a private app in your HubSpot account (Settings → Integrations → Private Apps). The fields map to values from that app:

| Client ID     | The client ID from your HubSpot private app                                |
| ------------- | -------------------------------------------------------------------------- |
| Client secret | The client secret from your HubSpot private app                            |
| App ID        | The app ID assigned to your private app                                    |
| Redirect URI  | The callback URL - use **<https://understand.local/api/hubspot/callback>** |

**GitLab (Studio)**

The **Allowed GitLab hosts** field restricts which GitLab instances App Builder users may connect to, and is the only way to allow a GitLab hosted on your internal network. See [Allow an Internal GitLab Instance](#step-4-allow-an-internal-gitlab-instance-optional).

**Customization**

Make the main application yours. This tab lets you set:

* **Identity**: application title, logo and favicon (uploaded directly from the page).
* **Login page**: headline and welcome message shown on the sign-in screen.
* **Home page**: title and description shown at the top of the apps list.
* **Appearance**: primary color, corner radius and spacing.
* **Support & legal**: contact email and terms-of-use URL.
* **Behavior**: hide assistant images, force a single language (English or French), and hide certain model types from end users.

These settings apply as soon as you save, without a restart.

**Visibility**

Default visibility for every organization on the platform: which sidebar sections, data source types and applications users can see. Each organization's administrators can narrow these lists further for their own teams. Leave a switch off to apply no restriction. These settings are saved by their own button and apply immediately.

#### Step 7: Create Your Organization

Users who sign in through single sign-on arrive on the platform as individuals, attached to nothing. An **organization** is the container that gives them structure: it holds the teams in which people share what they build — assistants, knowledge bases, data sources — it carries the roles that say who administers what, and it is the scope every usage figure is reported against. Without it, everything anyone creates stays private to them. Create one now — on a DGX, a single organization for the whole company is the usual case — and roles and statistics work from the first day, instead of being retrofitted once people already use the platform.

In the dashboard sidebar, under **Manage**, open **Organisations**, then click **New Organisation**. A three-step wizard opens.

**1. Organisation.** Enter the **Organisation name** — this is the name your users see across the platform — and pick a **Subscription plan**. On an on-premise deployment the plan restricts nothing: assistants, seats, data and prompts are unlimited whichever one you choose. Take **Enterprise** and move on.

**2. Members.** Enter the **Organisation owner**: the email address of the person with full control over the organization. It is required. Below it, **Additional members** lets you add other administrators, each as **Super-admin** or **Admin**; they are granted their role directly, with no email sent.

Use each address exactly as your identity provider reports it — that is what people are matched on when they sign in through SSO.

**3. Review.** Check the recap, then click **Create Contract**. The organization appears in the list.

{% hint style="info" %}
If the SendGrid key is configured, the owner also receives a welcome email. It is not needed here: with single sign-on, the owner simply signs in at [understand.local](https://understand.local) with the address you entered and lands in their organization.
{% endhint %}

Click the organization in the list to open its detail page. That is where you manage it from now on:

| Tab           | What it holds                                                                                                                                                                                                              |
| ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Plan**      | The organization's name, its plan, and an optional monthly prompt limit.                                                                                                                                                   |
| **Members**   | The organization-level roles. Add someone as **Owner**, **Super-admin** or **Admin**, or change an existing role. Changes are staged in the list and applied with **Save**.                                                |
| **Teams**     | The teams inside the organization. A team is the working group that shares assistants and data sources; teams are created by the organization's administrators from the main application, in its **Organization** section. |
| **Usage**     | Prompts consumed for the month, broken down by member — who used what, across the whole organization.                                                                                                                      |
| **Workspace** | Which sidebar sections, data source types and applications this organization's users see. It narrows the platform-wide defaults you set in **Configuration → Visibility**.                                                 |

#### Step 8: Apply the Configuration (Restart)

Most settings apply as soon as you save: authentication, administrators, branding, visibility. Two kinds of values are only read when a service starts, so they need a restart to be fully applied:

* the **API keys** (AI providers and SendGrid), which the background workers load at startup. Workflows and invitation emails run there;
* the **Secret key** of the OpenID configuration.

The dashboard reminds you of this with a notice next to the **Save configuration** button and, when a restart is needed, with the message *Configuration saved — restart the server to fully apply your changes*.

To restart, from a terminal on the DGX:

```shellscript
cd ~/understand-tech
docker compose restart api workers
```

Or from **Portainer**: open the **Containers** tab, tick `ut-api` and the `understandtech-workers-*` containers, then click **Restart** at the top of the page.

<div data-with-frame="true"><figure><img src="https://2654650065-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXgNPw9jE3xyWIcnvYeCB%2Fuploads%2F56jhnOfXTha4C8v3fWZW%2Fimage.png?alt=media&amp;token=d3a6d8f9-b683-41e3-8d11-29802bffc629" alt=""><figcaption></figcaption></figure></div>

It typically takes 5-15 seconds for the containers to restart. You can check their live status by refreshing the page periodically (by clicking the Refresh button next to the Container list heading).

Once the status returns to healthy, you're ready to go. Head to the login page ([understand.local](https://understand.local/)) and sign in with your SSO provider.

And you're all set! **Welcome to Understand Tech** :smile:

**One last thing: bring your people in.** Someone who signs in through SSO without belonging to anything can use the platform, but they work alone — their assistants, knowledge bases and data sources are shared with nobody, and their consumption shows up in none of the organization's figures. So add your users rather than letting them arrive on their own:

* **Organization administrators** are added from the dashboard, in **Organisations → your organization → Members**, as Super-admin or Admin.
* **Everyone else** joins through a team. From the main application, in the **Organization** section, the organization's administrators create the teams that match how people actually work, then invite members into them.

A team is what lets colleagues share assistants, knowledge bases and data sources instead of rebuilding them each on their side — and it is what makes the **Usage** tab readable, per team and per member, when you want to know how the platform is being used.

#### Recovering Access to the Admin Dashboard

A configuration mistake (for example a wrong single sign-on setting) can lock every administrator out. The initial setup page doubles as the recovery door:

1. On the dashboard's sign-in page, click **Trouble signing in?**, then **Modify the configuration**.
2. Enter the **setup password** you defined in Step 4.
3. Fix the authentication settings and/or add an administrator, then click **Save**. Changing the setup password at the same time is optional: leave both fields blank to keep it.
4. Sign in normally again.

If the setup password itself is lost, an administrator who can still sign in can reset it:

1. In the dashboard, open **Configuration → Access**.
2. In the **Setup page password** section, click **Reset setup password**, then confirm with **Reset**.

The initial setup page then opens again with the `ADMIN_SETUP_PASSWORD` value of your `.env`, and your next save there asks for a new setup password, as in Step 4. If you changed that value since the platform started, apply it first with `docker compose up -d api`. If `ADMIN_SETUP_PASSWORD` is empty, the reset is refused (see [The initial setup page says it is disabled](#the-initial-setup-page-says-it-is-disabled)).

If nobody can sign in and the setup password is lost, contact UnderstandTech support.

#### Adding or Removing Administrators Later

In the dashboard, open **Configuration → Access** (or **Settings → Member management**, which manages the same list). Enter the person's email and click **Add**: they become an administrator immediately and can sign in with their usual platform account. To revoke someone, click the cross next to their email. You cannot remove yourself.

***

### Configuring the App Builder (Optional)

The App Builder lets users describe an application in plain language and have it built, hosted and served on the DGX, at <https://builder.understand.local>. Each generated app gets its own address, `https://<app>.apps.understand.local`. Everything runs locally: the builder uses Understand AI through the platform's LLM gateway, so nothing leaves your network.

The App Builder is enabled by the `COMPOSE_FILE` line of your `.env` (present in the template). It also needs two variables that tell it how to reach the platform's LLM gateway and how to authenticate to it. Without them, creating an app fails with:

```
UT_GATEWAY_BASE_URL / UT_GATEWAY_API_KEY are not set on the orchestrator (AGENT_BACKEND=deepagents)
```

#### Step 1: Create an API Key in the Platform

Sign in to <https://understand.local>, open the **Developer** section and create an API key, as described in [Developer](https://docs.understand.tech/documentation/english-version/platform/developer.md#creating-an-api-key). Copy the key: it is shown only once.

{% hint style="info" %}
Create the key from an administrator account that will stay on the platform. The key belongs to that account: if the account is removed, the key stops working and the App Builder with it.
{% endhint %}

#### Step 2: Set the Variables in .env

Open your `.env` (`code ~/understand-tech/.env`) and make sure the App Builder block contains these three lines. `COMPOSE_FILE` and `APP_BUILDER_GATEWAY_URL` keep the values from the template; paste your key in `APP_BUILDER_GATEWAY_API_KEY`:

```shellscript
COMPOSE_FILE="compose.yaml:compose.appbuilder.yaml"
APP_BUILDER_GATEWAY_URL="http://ut-api-customer:8501/api/llm"
APP_BUILDER_GATEWAY_API_KEY="<the API key you just created>"
```

#### Step 3: Start the App Builder

```shellscript
cd ~/understand-tech
docker compose up -d
```

Docker Compose starts (or recreates) the `ut-app-builder` and `ut-app-builder-traefik` containers with the new values. Check with `docker compose ps` that both are healthy, then open <https://builder.understand.local>. A **Create App** entry point also appears in the main application.

{% hint style="info" %}
If Docker Compose stops with `network proxy declared as external, but could not be found`, create that network once with `docker network create proxy`, then run `docker compose up -d` again. Generated apps attach to this shared network.
{% endhint %}

***

### Connecting the App Builder to GitLab (Optional)

The App Builder can push the code of every app it generates to GitLab. On the first synchronisation it creates a private project; after every iteration it pushes the new commit straight to that project's `main` branch. Your users end up with a continuously up-to-date copy of their app, which they can clone, review and deploy from.

The integration stays hidden until you configure it. Users connect with an **access token**: nothing to register on the GitLab side, each user pastes a GitLab URL and a token they created themselves, with the `api` scope. It works with any GitLab instance reachable from the DGX, GitLab.com included.

Apps can be created in a user's personal space or in a group. With a **group access token** (role **Maintainer**, scope `api`), apps go to the token's group. With a **personal access token**, they go to the user's personal space, or to a group if the user enters that group's URL, e.g. `https://gitlab.acme.com/my-group`; the user then needs the Maintainer role in the group. On recent GitLab versions, a personal token with the `api` scope is created with **Generate token → Legacy token**. Details for your users are in [Understand Studio](https://docs.understand.tech/documentation/english-version/platform/understand-studio.md#where-studio-creates-your-projects). An instance on your internal network must first be allowed in the admin dashboard: see [Step 4](#step-4-allow-an-internal-gitlab-instance-optional).

{% hint style="info" %}
The one-click **GitLab.com** sign-in (OAuth) is not currently available on-premise.
{% endhint %}

<table><thead><tr><th width="340">Variable</th><th>Role</th></tr></thead><tbody><tr><td><code>APP_BUILDER_TOKEN_ENCRYPTION_KEY</code></td><td>Encryption key protecting the GitLab tokens stored in the database. Enables the integration, and is required for it: the App Builder refuses to store a token in plaintext.</td></tr></tbody></table>

{% hint style="info" %}
This section assumes the App Builder itself is already running, as described in [Configuring the App Builder](#configuring-the-app-builder-optional).
{% endhint %}

#### Step 1: Generate the Token Encryption Key

This key encrypts the GitLab tokens the App Builder stores. Generate one on the DGX:

```shellscript
cd ~/understand-tech
docker compose exec ut-app-builder \
  python -c 'from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())'
```

This runs inside the App Builder container, which already ships the library that will read the key back — nothing to install, and no internet access needed. Copy the line it prints: you will paste it into your `.env` in Step 2.

{% hint style="info" %}
If the container is not running yet, `openssl rand -base64 32 | tr '+/' '-_'` on the DGX produces an equally valid key.
{% endhint %}

{% hint style="warning" %}
**Back this key up together with your MongoDB backup, and do not change it afterwards.** The tokens in the database can only be read with the key that wrote them: replacing the key makes every existing GitLab connection unusable, and each user has to reconnect their account.
{% endhint %}

#### Step 2: Set the Variable in .env

Open your `.env` (`code ~/understand-tech/.env`) and fill in the encryption key:

```shellscript
APP_BUILDER_TOKEN_ENCRYPTION_KEY="<the key generated in Step 1>"
```

This is the only line to fill in. If the GitLab block is missing from your `.env`, copy it from the `.env.example` shipped with your release.

#### Step 3: Apply the Configuration

```shellscript
cd ~/understand-tech
docker compose up -d
```

Docker Compose recreates the `ut-app-builder` container with the new values. To see what actually reached it:

```shellscript
docker compose exec ut-app-builder env | grep -E 'GITLAB|TOKEN_ENCRYPTION'
```

`TOKEN_ENCRYPTION_KEY` should appear here with the value you set.

#### Step 4: Allow an Internal GitLab Instance (Optional)

By default, users can connect any GitLab instance with a public address, GitLab.com included. An instance whose name resolves to a private address (`10.x.x.x`, `172.16.x.x` to `172.31.x.x`, `192.168.x.x`) is refused, and that is usually the case for a GitLab hosted on your own network behind a reverse proxy. The rule exists so that nobody can make the App Builder send requests to the machines of your internal network by entering their address as a "GitLab instance".

To allow your internal GitLab, list it in the admin dashboard:

1. Open <https://admin.understand.local>, then the **Configuration** page and its **Integrations** tab.
2. In the **GitLab (Studio)** block, enter the host in **Allowed GitLab hosts**: the host name alone, without `https://`, port or path, for example `gitlab.acme.com`, then click **Add** (or press Enter). Repeat for each host; the cross next to a host removes it.
3. Click **Save configuration**.

The change applies from the next connection attempt, without restarting anything.

Once the list is filled in, **only** the listed hosts can be connected, and they may resolve to a private address. To keep GitLab.com available to your users, add `gitlab.com` to the list as well.

If you set `APP_BUILDER_GITLAB_ALLOWED_HOSTS` in `.env` with an earlier version, it keeps working: its hosts are added to the dashboard list.

#### Verifying the Integration

Open <https://builder.understand.local>: a GitLab entry now appears at the bottom left of the sidebar.

Connect an account: the dialog then shows the type of token and where new apps will go. Turn on **GitLab sync** on a project to confirm the whole path works. What your users do with it from there is covered in [Understand Studio](https://docs.understand.tech/documentation/english-version/platform/understand-studio.md#connect-to-gitlab).

#### Troubleshooting

<table><thead><tr><th width="300">Symptom</th><th>Cause and fix</th></tr></thead><tbody><tr><td>No GitLab entry in the sidebar</td><td>The encryption key is not set, or it never reached the container. Run the <code>docker compose exec</code> check from Step 3.</td></tr><tr><td>The token dialog refuses the connection</td><td><code>APP_BUILDER_TOKEN_ENCRYPTION_KEY</code> is empty. The App Builder will not store a token without it.</td></tr><tr><td><code>GitLab rejected the token…</code></td><td>The token is wrong, expired, or lacks the <code>api</code> scope. A scope cannot be added to an existing token: create a new one with <code>api</code> checked.</td></tr><tr><td><code>This is a private GitLab instance…</code></td><td>The instance is on your internal network and is not in the allowed hosts. Add it as described in Step 4.</td></tr><tr><td><code>This GitLab instance is not allowed on this deployment…</code></td><td>The allowed hosts list is filled in and does not include that host. Add it as described in Step 4.</td></tr><tr><td><code>… could not be resolved from the Studio server</code></td><td>The App Builder cannot resolve that host name. Check the name, and that your DNS resolves it.</td></tr><tr><td><code>The token is missing the api scope…</code></td><td>The token has no <code>api</code> scope. On recent GitLab versions this is what a fine-grained personal token gives: create a legacy token instead (<strong>Generate token → Legacy token</strong>) with <code>api</code> checked.</td></tr><tr><td><code>The token has the … role in …</code> or <code>… is not a member of …</code></td><td>The token's role in the group is too low to create projects. A group access token needs to be recreated with the Maintainer role; for a personal token, a group Owner gives the user the Maintainer role.</td></tr><tr><td><code>Only Owners may…</code>, <code>Only administrators may…</code> or <code>Nobody may create projects in…</code></td><td>The group's <strong>Minimum role required to create projects</strong> setting excludes Maintainers. A group Owner can change it in the group's <strong>Settings → General → Permissions and group features</strong>.</td></tr><tr><td><code>This token can't see a group at…</code></td><td>The URL does not end with the path of a group the token can access. Copy the group's address from GitLab, e.g. <code>https://gitlab.acme.com/my-group</code>.</td></tr><tr><td><code>… is a project, not a group</code></td><td>The URL is a project's address. Enter the URL of the group, or the instance URL alone for the personal space.</td></tr><tr><td><code>This is a project access token…</code></td><td>Project access tokens only reach their own project. Use a group access token or a personal access token.</td></tr><tr><td>Sync banner <code>GitLab refused to create the project in…</code></td><td>The token cannot create projects there: give it the Maintainer role in the group, and check the group's <strong>Minimum role required to create projects</strong> setting. A group access token connected before group support must be connected again.</td></tr></tbody></table>

***

### Updating the platform

UnderstandTech publishes platform releases as new container image tags, together with an updated `compose.yaml`, `Caddyfile`, scripts and `.env.example` in the repository you cloned in Step 4. Your `.env` file is yours and is never overwritten by an update: when a release adds new variables, you copy them from `.env.example` into your `.env`. The release notes below list exactly what to change for each release.

#### General procedure

1. Stop the platform:

```shellscript
cd ~/understand-tech
docker compose down
```

2. Fetch the new release files (`compose.yaml`, `Caddyfile`, scripts, `.env.example`):

```shellscript
git pull
```

3. Edit your `.env`: update the image tags and add the new variables listed in the release notes below.

```shellscript
code .env
```

{% hint style="info" %}
`diff .env .env.example` lists every line that differs between your file and the new template. It's a quick way to spot variables you haven't added yet.
{% endhint %}

4. Download the new images and start the platform:

```shellscript
docker compose pull
docker compose up -d
```

5. Refresh the auto-start service and the published hostnames (safe to re-run, see Step 7 of the installation, *Enable Auto-Start and App Hostnames*):

```shellscript
sudo ./setup-autostart.sh
```

6. Verify with `docker compose ps` (or Portainer) that every container is healthy, then open <https://understand.local>.

{% hint style="info" %}
After an update, the first start of the AI model services can take several minutes longer than usual while new model files are downloaded.
{% endhint %}

#### Release 2.0 (2026-Q3)

This release introduces the admin dashboard (`admin.understand.local`), the LLMs and Assistants apps, the optional App Builder, and the NVIDIA NIM inference backend. The `git pull` in step 2 brings the new `compose.yaml` and `Caddyfile`. The changes below apply to your `.env`.

**1. Image tags.** Set every existing image to `2.0-arm64`. Two images were renamed:

```shellscript
LLM_IMAGE="ghcr.io/understand-tech/ut-llm-customers:2.0-arm64"            # renamed (was ut-llm-customer)
API_IMAGE="ghcr.io/understand-tech/ut-api-customer:2.0-arm64"
WORKER_IMAGE="ghcr.io/understand-tech/ut-worker-customer:2.0-arm64"
FRONTEND_IMAGE="ghcr.io/understand-tech/ut-frontendv2-customer:2.0-arm64" # renamed (was ut-frontend-customer)
API_CUSTOMER_IMAGE="ghcr.io/understand-tech/ut-api-rest-customer:2.0-arm64"
WORKER_CUSTOMER_IMAGE="ghcr.io/understand-tech/ut-worker-rest-customer:2.0-arm64"
```

**2. New images.** Add these lines right after the previous ones:

```shellscript
LLMS_APP_IMAGE="ghcr.io/understand-tech/ut-app-llms-customer:2.0-arm64"
ADMIN_PORTAL_IMAGE="ghcr.io/understand-tech/ut-portal-customer:2.0-arm64"
ASSISTANTS_APP_IMAGE="ghcr.io/understand-tech/ut-app-assistants-customer:2.0-arm64"
APP_BUILDER_IMAGE="ghcr.io/understand-tech/agentic-app-builder-customer:2.0-arm64"
NIM_IMAGE="ghcr.io/understand-tech/nim/nvidia/model-free-nim:2.0.9"
```

**3. New variables you must set yourself.** Add them to the user configuration section and choose your own values:

```shellscript
ADMIN_SETUP_PASSWORD="<strong password>"   # opens the admin dashboard's initial setup page
JWT_SECRET="<long random string>"          # signs user sessions - generate one with: openssl rand -base64 32
```

The default model also changes to `VLLM_LLM_MODEL="Qwen/Qwen3.8-27B"`, served by NVIDIA NIM. We recommend adopting it: the LLM configuration block in point 5 is tuned for it.

**4. New variables to copy as-is.** Add them to the system configuration section. The placeholder values for `OA_KEY`, `SENDGRID_API_KEY` and `OPENID_SECRET_KEY` are expected: the real keys are set from the admin dashboard.

```shellscript
GPU_VM_API_TOKEN="ut"                      # existing variable, new value
OA_KEY="SJKFVK"
SENDGRID_API_KEY="FVVE"
OPENID_SECRET_KEY="SJBVSJB"
DEPLOY_ENV="production"
EXTRA_ALLOWED_ORIGINS="https://admin.understand.local,https://llms.understand.local,https://assistants.understand.local,https://builder.understand.local"
CUSTOMER_API_URL="https://understand.local/api/v3"
VITE_API_BASE_URL="https://understand.local/api"
VITE_UT_APP_URL="https://understand.local"
APP_LLMS_MONGODB_DB="ut-app-llms"
APP_LLMS_BASE_URL="https://llms.understand.local"
APP_LLMS_CORS_ORIGINS="https://llms.understand.local"
APP_LLMS_UT_APP_BASE_URL="http://api:8501/api"
APP_LLMS_UT_CUSTOMER_URL="http://api-customer:8501"
UNDERSTAND_API_VERSION="v3"
APP_ASSISTANTS_BASE_URL="https://assistants.understand.local"
APP_ASSISTANTS_CORS_ORIGINS="https://assistants.understand.local"
APP_ASSISTANTS_MONGODB_DB="ut-app-assistants"
GATEWAY_MODELS='[{"id": "claude-opus-4-8", "served": "claude-opus-4-8", "upstream": "llm", "display_name": "Claude Opus 4.8", "multimodal": false, "base_url": "https://api.anthropic.com/v1", "api_key_env": "CLAUDE_API_KEY"}, {"id": "uai-large", "served": "Qwen/Qwen3.8-27B", "upstream": "llm", "display_name": "Understand AI", "multimodal": false}, {"id": "uai-vision", "served": "Qwen/Qwen3-VL-4B-Instruct", "upstream": "vlm", "display_name": "Understand AI Vision", "multimodal": true}]'
```

**5. LLM configuration.** Delete the old `# LLM configuration` block from your `.env` (from `LLM_BACKEND` down to `HF_HUB_OFFLINE`, including the commented `OLLAMA_*` lines) and paste this new block at the end of the file:

```shellscript
#########################################################################
# LLM Configuration                                                     #
#########################################################################

COMPOSE_PROFILES="nim"
LLM_BACKEND="nim"

VLLM_LLM_IMAGE="vllm/vllm-openai:muse-glimmer"
VLLM_LLM_MODEL_PATH="Inferact/Muse-Glimmer-30B-NVFP4-W4A4"

NIM_VLM_PASSTHROUGH_ARGS=--gpu-memory-utilization 0.25 --max-model-len 8192
NIM_LLM_PASSTHROUGH_ARGS=--gpu-memory-utilization 0.55 --max-model-len 131072 --enable-auto-tool-choice --tool-call-parser qwen3_coder --reasoning-parser qwen3 --speculative-config '{"method":"mtp","num_speculative_tokens":3}' --default-chat-template-kwargs '{"enable_thinking":false}' --enable-prefix-caching
NIM_LLM_MODEL_PATH="hf://Inferact/Qwen3.8-27B-NVFP4"

VLLM_CONDENSE_MODEL="Qwen/Qwen3.8-27B"
VLLM_VLM_MODEL="Qwen/Qwen3-VL-4B-Instruct"
VLLM_LLM_BASE_URL="http://nim-llm:8000/v1"
VLLM_VLM_BASE_URL="http://nim-vlm:8000/v1"
VLLM_LLM_GPU_MEM_UTIL="0.45"
VLLM_VLM_GPU_MEM_UTIL="0.12"
VLLM_LLM_EXTRA_ARGS="--max-model-len 32768"
VLLM_VLM_EXTRA_ARGS="--limit-mm-per-prompt.video 0 --max-model-len 8192"
VLLM_API_KEY="EMPTY"
LLM_MAX_CONTEXT_LEN="131072"
DOWNLOAD_ONNX_EMBED="true"
ONNX_EMBED_HF_REPO="Qwen/Qwen3-Embedding-0.6B"
EMBED_MODEL_BACKEND="nomic"
HF_HUB_OFFLINE="0"

LLM_MODEL="Qwen/Qwen3.8-27B"
CONDENSE_MODEL="Qwen/Qwen3.8-27B"
VLM_MODEL="Qwen/Qwen3-VL-4B-Instruct"
GATEWAY_LLM_SERVED_NAME="Qwen/Qwen3.8-27B"
GATEWAY_VLM_MODEL="Qwen/Qwen3-VL-4B-Instruct"
GATEWAY_PUBLIC_URL="https://understand.local"

AGENT_MAX_OUTPUT_TOKENS=24576
```

**6. App Builder (optional add-on).** The App Builder lets users describe an application and have it built and served on the DGX, at `https://builder.understand.local`. Copy the following block into your `.env` in all cases. If you don't want the App Builder, comment out the `COMPOSE_FILE` line (`# COMPOSE_FILE=...`) and leave the rest as-is. To use it, set `APP_BUILDER_GATEWAY_API_KEY` as described in [Configuring the App Builder](#configuring-the-app-builder-optional): the builder refuses to create apps until this key is set.

```shellscript
#########################################################################
#   App Builder                                                          #
#########################################################################

COMPOSE_FILE="compose.yaml:compose.appbuilder.yaml"
APP_BUILDER_GATEWAY_API_KEY=""
APP_BUILDER_AGENT_BACKEND="deepagents"
APP_BUILDER_ANTHROPIC_API_KEY=""
APP_BUILDER_AGENT_MAX_OUTPUT_TOKENS="8192"
APP_BUILDER_AGENT_CONTEXT_TOKENS="24576"
APP_BUILDER_MEMORY_LIMIT="4G"
APP_BUILDER_CPU_LIMIT="2"

# Do not edit below
APP_BUILDER_BASE_URL="https://builder.understand.local"
APP_BUILDER_ADMIN_URL="https://admin.understand.local"
APP_BUILDER_PREVIEW_SUFFIX="apps.understand.local"
APP_BUILDER_UT_API_URL="http://ut-api:8501"
APP_BUILDER_GATEWAY_URL="http://ut-api-customer:8501/api/llm"
APP_BUILDER_GATEWAY_MODEL="uai-large"
APP_BUILDER_UT_V3_URL="http://ut-api-v3"
APP_BUILDER_UT_CUSTOMER_URL="http://api-customer:8501"
APP_BUILDER_HOST_PORT="8011"
APP_BUILDER_LLM_PROXY_PORT="8011"
APP_BUILDER_MONGODB_DB="app-builder"
APP_BUILDER_SESSION_COOKIE_SECURE="1"
```

**7. After the update**

* **The admin configuration moved** to the new admin dashboard at `https://admin.understand.local`. Read the [First-time Admin Configuration](#first-time-admin-configuration) section: it describes the new flow.
* **If your box was already configured**, your settings (SSO, API keys, integrations) are kept. To gain access to the new dashboard: open `https://admin.understand.local`, click **Trouble signing in?** then **Modify the configuration**, enter the admin password you had set in the previous version, add your email under **Dashboard administrators**, and save.
* **Update the OpenID Redirect URI.** The value used by previous versions (`https://understand.local/en/login/openid-auth`) no longer works. In **Configuration → Access**, set *Redirect URI* to `https://understand.local/auth/openid/success`.
* **Two-factor authentication.** Users who had turned on two-factor authentication (2FA) turn it on again from **Security** after this update, and save the recovery codes they get. See [Security](https://docs.understand.tech/documentation/english-version/platform/security.md).
* **Zoho** is no longer supported as a data source. Its settings are removed on the next save.
* **Check the new hostnames resolve** from the DGX: `avahi-resolve -n admin.understand.local` should print the DGX's IP address. If not, run `sudo ./setup-autostart.sh --mdns`.

***

### Troubleshooting

#### "understand.local" Not Resolving

From another device on your network, open the terminal and run:

```shellscript
ping understand.local
```

If not resolving:

```shellscript
# On the DGX, verify hostname
hostname

# Should show: understand

# Check Avahi status
sudo systemctl status avahi-daemon

# Restart Avahi
sudo systemctl restart avahi-daemon
```

{% hint style="info" %}
Note: mDNS requires devices to be on the same network segment. Corporate networks with client isolation may block mDNS. Check with your network administrator.
{% endhint %}

#### Docker Permission Denied

```shellscript
# Verify group membership
groups
# Should include 'docker'

# If not, add yourself and reboot
sudo usermod -aG docker $USER
sudo reboot
```

#### GHCR Authentication Failed

```shellscript
# Re-authenticate with your provided credentials
docker logout ghcr.io
docker login ghcr.io -u dgx-access
# Paste your token when prompted

# Test pull manually (use the tag from your .env)
docker pull ghcr.io/understand-tech/ut-api-customer:2.0-arm64
```

If you see unauthorized or denied, contact UnderstandTech - your token may have expired or been revoked.

#### GPU Not Available

```shellscript
# Test GPU access
docker run --rm --gpus all nvidia/cuda:12.0-base-ubuntu22.04 nvidia-smi

# If not working, restart Docker
sudo systemctl restart docker
```

#### Firewall (if enabled)

```shellscript
sudo ufw allow 443/tcp
sudo ufw allow 9443/tcp  # For Portainer
```

#### "admin.understand.local" Not Resolving

The application hostnames (`admin.`, `llms.`, `assistants.understand.local`) are published by the service installed in Step 7 of the installation (*Enable Auto-Start and App Hostnames*). Re-run the publisher and check its status:

```shellscript
cd ~/understand-tech
sudo ./setup-autostart.sh --mdns
sudo systemctl status ut-mdns-alias
```

#### "Setup required" Dialog Does Not Go Away

The main application caches the configuration status for up to 30 minutes. Click **I've completed the configuration** in the dialog to force a re-check. If the dialog still says the configuration is missing, go back to the admin dashboard and make sure your last save succeeded: a rejected value (for example an invalid API key) means nothing was saved.

#### "Access denied" on the Admin Dashboard

The account you signed in with is not a super administrator. Ask an existing super administrator to add you from **Configuration → Access**. If nobody can sign in any more, use the initial setup page (see [Recovering access](#recovering-access-to-the-admin-dashboard)) to add an administrator.

#### The Initial Setup Page Says It Is Disabled

If the initial setup page shows *"The setup page is disabled: no setup password is configured on this server"*, the `ADMIN_SETUP_PASSWORD` variable is empty in your `.env`. Set a value, then recreate the API so it reads the new value:

```shellscript
cd ~/understand-tech
docker compose up -d api
```

A `docker compose restart api` is not enough: it keeps the value the API had when it was created.

#### Creating an App in the App Builder Fails With "UT\_GATEWAY\_BASE\_URL / UT\_GATEWAY\_API\_KEY are not set"

The App Builder has no API key to reach the platform's LLM gateway. Create one and set `APP_BUILDER_GATEWAY_API_KEY` in your `.env`, then run `docker compose up -d`. See [Configuring the App Builder](#configuring-the-app-builder-optional).

#### Signing In to the Admin Dashboard Lands on the Main Application

Always use the **Continue with the main application** button on the dashboard's sign-in page rather than typing your identity provider's URL. The button takes you through `understand.local` and brings you back to the dashboard, signed in.

***

### Support

If you encounter issues not covered in this guide, contact us at *<support@understand.tech>*.
