Skip to main content
NVIDIA
Explore
Models
Skills
Blueprints
GPUs
Docs
Help Center
Getting Started
  1. Create and verify your account to unlock full access to NVIDIA NIM APIs.
ResourcesDeveloper ForumsContact Support
FAQs
  • View All Playbooks
    View All Playbooks

    onboarding

    • Set Up Local Network Access
    • Open WebUI with Ollama

    data science

    • Single-cell RNA Sequencing
    • Portfolio Optimization
    • CUDA-X Data Science
    • Build Knowledge Graphs with txt2kg
    • Optimized JAX

    tools

    • DGX Dashboard
    • RAG Application in AI Workbench
    • Set up Tailscale on Your Spark
    • VS Code
    • Connect Three DGX Spark in a Ring Topology
    • Connect Multiple DGX Spark through a Switch

    fine tuning

    • FLUX.1 Dreambooth LoRA Fine-tuning
    • LLaMA Factory
    • Fine-tune with NeMo
    • Fine-tune with Pytorch
    • Unsloth on DGX Spark

    use case

    • Run Hermes Agent with a Local LLM
    • cuTile Kernels
    • CLI Coding Agent
    • Run NemoClaw with a Local LLM
    • 🦞 Set Up Example NemoClaw Agents 🦞
    • Live VLM WebUI
    • Install and Use Isaac Sim and Isaac Lab
    • Vibe Coding in VS Code
    • Build and Deploy a Multi-Agent Chatbot
    • Connect Two Sparks
    • NCCL for Multiple Sparks
    • Build a Video Search and Summarization (VSS) Agent
    • Spark & Reachy Photo Booth
    • Secure AI Agents with OpenShell
    • Run OpenClaw with a Local LLM

    inference

    • Generate Images and Videos with ComfyUI
    • Serve LLMs with vLLM
    • Speculative Decoding
    • Run models with llama.cpp on DGX Spark
    • Nemotron Model Family on DGX Spark
    • Serve LLMs with SGLang
    • TRT LLM for Inference
    • Quantize Models to NVFP4 with NVIDIA Model Optimizer
    • Multi-modal Inference
    • NIM on Spark
    • LM Studio on DGX Spark

    Open WebUI with Ollama

    15 MIN

    Install Open WebUI and use Ollama to chat with models on your Spark

    • DGX
    • Spark
    OverviewOverviewOpen WebUI on Remote SparkOpen WebUI on Remote SparkOpen WebUI on Desktop SparkOpen WebUI on Desktop SparkTroubleshootingTroubleshooting

    Step 1
    Use NVIDIA Sync to connect to the Spark and open a terminal

    TIP

    If you haven't already installed NVIDIA Sync, learn how here.

    From your laptop:

    • Open NVIDIA Sync with the desktop icon or from the system tray or taskbar.
    • Select your Spark from the device dropdown.
    • Select Connect.
    • After the connection is established, select Terminal to open a terminal on the Spark

    Step 2
    Configure Docker permissions

    You must first make sure that your user account can run Docker commands on the Spark without sudo.

    To test that, in the terminal run:

    docker ps > /dev/null
    

    Success: If the command returns a blank, then skip ahead to Step 3.

    Otherwise, you will see a permission denied error, which means you still need to remove the sudo requirement. To do that, add your user to the docker group with the commands below.

    sudo usermod -aG docker $USER
    newgrp docker
    

    Then verify the change is set by testing Docker access again with the command:

    docker ps > /dev/null
    

    Step 3
    Download the Open WebUI container image

    Pull the container image onto your Spark with the command:

    docker pull ghcr.io/open-webui/open-webui:ollama
    

    Wait for the image to download, then go to Step 4.

    Step 4
    Add Open WebUI as a custom application through NVIDIA Sync

    A custom application lets NVIDIA Sync start Open WebUI and automatically forward its port.

    In the NVIDIA Sync device window:

    • Select Add New in the Custom section.

    • Fill out the form with these values:

      • Name: Open WebUI
      • Port: 12000
      • Auto open in browser at the following path: Check this checkbox
    • Then, copy and paste the entire script below into the Launch Script field

    #!/usr/bin/env bash
    set -euo pipefail
    
    NAME="open-webui"
    IMAGE="ghcr.io/open-webui/open-webui:ollama"
    
    cleanup() {
      echo "Signal received; stopping ${NAME}..."
      docker stop "${NAME}" >/dev/null 2>&1 || true
      exit 0
    }
    trap cleanup INT TERM HUP QUIT EXIT
    
    # Ensure Docker CLI and daemon are available
    if ! docker info >/dev/null 2>&1; then
      echo "Error: Docker daemon not reachable." >&2
      exit 1
    fi
    
    # Already running?
    if [ -n "$(docker ps -q --filter "name=^${NAME}$" --filter "status=running")" ]; then
      echo "Container ${NAME} is already running."
    else
      # Exists but stopped? Start it.
      if [ -n "$(docker ps -aq --filter "name=^${NAME}$")" ]; then
        echo "Starting existing container ${NAME}..."
        docker start "${NAME}" >/dev/null
      else
        # Not present: create and start it.
        echo "Creating and starting ${NAME}..."
        docker run -d -p 12000:8080 --gpus=all \
          -v open-webui:/app/backend/data \
          -v open-webui-ollama:/root/.ollama \
          --name "${NAME}" "${IMAGE}" >/dev/null
      fi
    fi
    
    echo "Running. Press Ctrl+C to stop ${NAME}."
    # Keep the script alive until a signal arrives
    while :; do sleep 86400; done
    
    • Finally, click the "Add" button to finish the configuration.

    Step 5
    Launch Open WebUI and create an administrator account

    Once the app is configured, you can launch it from NVIDIA Sync and connect to it with your browser.

    In the NVIDIA Sync application window for the Spark, select "Open WebUI" in the "Custom" section.

    The application should open in your web browser at the URL http://localhost:12000.

    If it does not, open your web browser and go to http://localhost:12000.

    Open WebUI uses a local administrator account to control access. The account credentials are stored locally on your Spark.

    When the app opens in your browser, create your admin account as follows:

    • Select "Get Started" at the bottom of the screen.
    • Complete the admin account creation with easily remembered details.
    • Select "Create Admin Account" to complete.

    Step 6
    Select a model to download

    TIP

    The Open WebUI container doesn't come with a model so you must download one before chat will work. Open WebUI downloads selected models from the Ollama registry here.

    Do the following in the Open WebUI application:

    • Click "Select a model" in the top left corner of the Open WebUI interface.
    • Type gpt-oss:latest in the search field.
    • Click the Pull "gpt-oss:latest" from Ollama.com button that appears.
    • Wait for the model to fully download. You can monitor progress in the interface.

    Alternatively, you can enter qwen3.6:latest instead of gpt-oss:latest.

    After the download completes, the model appears in the Select a model menu.

    Step 7
    Load the model and submit a query

    TIP

    Selecting an available model loads it onto the GPU, which can take up to 30 seconds, depending on the model size. This can delay server response to your initial query.

    • Select the model from the Select a model menu in the top-left corner.
    • In the chat box, enter a prompt such as Write me a haiku about GPUs and press Enter.

    Step 8
    Stop Open WebUI with NVIDIA Sync

    When you finish your session, you can stop the Open WebUI container from the NVIDIA Sync application window.

    • Click on the NVIDIA Sync icon in your system tray or taskbar to open the main application window.
    • Under the "Custom" section, click the x icon on the right of the "Open WebUI" entry.
    • This closes the tunnel and stops the Open WebUI Docker container.

    Step 9
    Next steps

    You can follow up with other playbooks or use different models.

    • Use DGX Dashboard to monitor GPU and memory utilization while working with the model
    • Find and compare models from the Ollama model registry.

    Step 10
    Cleanup and rollback

    Steps to remove the Open WebUI from your Spark.

    WARNING

    These commands will permanently delete all Open WebUI data and downloaded models on the Spark.

    1. Stop the Open WebUI application in the NVIDIA Sync device window (this will also stop the container)

    2. Open a terminal on the Spark using the Terminal App in the NVIDIA Sync device window

    3. Remove the container with the command:

    docker rm open-webui
    
    1. Remove the downloaded image with the command:
    docker rmi ghcr.io/open-webui/open-webui:ollama
    
    1. Remove the persistent data volumes with the command:
    docker volume rm open-webui open-webui-ollama
    
    1. Remove the custom application from NVIDIA Sync by opening the device window and deleting the Open WebUI entry from the Custom section.

    Resources

    • Open WebUI Documentation
    • DGX Spark Documentation
    • DGX Spark Developer Forum
    • DGX Spark User Performance Guide
    Terms of Use
    Privacy Policy
    Your Privacy Choices
    Contact

    Copyright © 2026 NVIDIA Corporation