Skip to main content
SDK Version: 2.5.0

Installation & Launch

Beta release (v0.1.1)

DX-AI-Studio is a beta release. Features, APIs, and the UI may change before the general-availability release.

Prerequisites​

  • Python 3.8+. ./launcher.sh installs the package automatically on first run — no manual install step. The base Studio package uses the Python standard library (dependencies = []); the optional requirements below apply only to their features.
  • Local compilation needs the DX Compiler SDK; real NPU inference needs DX-RT, a compatible driver, a DEEPX NPU and prepared models / examples (from dx-runtime / dx_app). Without these the Studio still launches; tools report missing requirements.
  • DX Stream additionally needs the system GStreamer + PyGObject (python3-gi, gstreamer1.0-*) — standard on desktop Linux — to run pipelines.
  • Live DX App runs (camera, RTSP, Continuous, Run Demo video, and Graph Live) draw the example's window on a virtual display and stream it to the browser. They need the OS packages xvfb, libxcb1, and Pillow (typically python3-pil on Debian/Ubuntu). These display dependencies are not required for ordinary image or batch-video inference. A missing dependency is reported rather than replaced with a successful mock run.
  • Graph Composer, a feature of DX App, needs a dx_app build containing multi_model_graph_sync / multi_model_graph_async and the models used by the graph. Build the graph runners with dx_app's ./build.sh; Studio detects the installed build's capabilities. Edit on the frame… needs Pillow, and reading a video's first frame or using Layers for this frame also needs ffmpeg. See Graph Composer.
  • DX Cloud requires the optional boto3 AWS extra for real AWS operations, plus host-side credentials and the relevant AWS subscriptions / permissions. Browsing the page and its guide does not require this extra. See DX Cloud.
How the studio finds these

./launcher.sh creates its virtualenv with --system-site-packages, so it inherits the platform-provided dx_engine (DEEPX runtime) and gi (GStreamer bindings). The base Studio stays stdlib-only; feature-specific packages are not base dependencies. If dx_engine is missing, DX Monitor shows NPU telemetry unavailable and live inference is unavailable; if gi is missing, DX Stream can build but not run pipelines.

Camera discovery and preview decoding use a separate media Python with compatible NumPy and OpenCV; the Studio web server does not import cv2. If no compatible interpreter is available, Setup diagnostics and camera selection report the missing media runtime rather than treating it as an empty camera list. These are feature-specific requirements, not base Studio dependencies.

Check your NPU

Once the DEEPX runtime is installed, dxrt-cli --status lists each NPU device with its driver and firmware versions. DX Monitor shows the same info live in the browser.

Launch​

From the dx-ai-studio directory:

./launcher.sh

It starts the launcher hub, boots every module server, and opens your browser at the hub URL. On first load a brief splash appears while servers start — give it a moment if a tool isn't ready yet.

Common options​

OptionEffect
--port <PORT> / -p <PORT>Preferred hub port (default 8890). If another service holds it, the next free port is used; the last port is remembered in .launcher-port. Open the URL the launcher prints.
--no-browserStart the servers but do not open a browser.
--no-killKeep a studio that is already running (by default a new launch replaces your previous one).
--fastSkip the boot animation in the terminal.
--debug[=PATH]Log user actions to var/log/studio-debug.log (or to PATH).

Run ./launcher.sh --help for the full flag list. The hub proxies all modules, so you only ever open the hub port.

Typical Workflows​

Once the hub is running, here are common workflows:

🎯 Workflow 1: Model to Inference​

The complete path from model to running inference:

  1. Model Zoo — Browse and download AI models (ONNX + .dxnn variants)
  2. Compiler — Convert ONNX to optimized .dxnn for DEEPX NPU
  3. App or Stream — Run inference on images, video, or camera
  4. Monitor — Watch real-time NPU performance and utilization

🎯 Workflow 2: Hardware Selection​

Find the right DEEPX hardware for your workload:

  1. Benchmark — Review benchmark results across NPU platforms
  2. EdgeGuide — Get hardware recommendations based on your requirements

🎯 Workflow 3: Quick Development​

Build NPU applications from natural language:

  1. Agent Dev — Describe what you want; the agent generates and runs it

See The Hub for details on all nine tools and navigation.

How to Use This Manual​

📖 Getting Started:

  1. Installation & Launch (this page) — Get the studio running
  2. The Hub — Understand the interface and navigation

🔧 Workflow:

  • Model Zoo — Browse and download AI models
  • Compiler — Convert ONNX to .dxnn for DEEPX NPU
  • App — Run image/video inference
  • Stream — Build real-time GStreamer pipelines

📊 Monitoring:

  • Monitor — Watch NPU performance in real time
  • Benchmark — Review benchmark results across NPU platforms
  • EdgeGuide — Get hardware recommendations

🚀 Development:

  • Agent Dev — Generate NPU apps from natural language
  • DX Cloud — Compile on AWS and deploy to edge devices

📚 Reference:

📋 Appendix:

Stopping​

Ctrl+C in the terminal running ./launcher.sh. Running ./launcher.sh again replaces your previous studio; pass --no-kill to leave it running (the new one then takes the next free port).

Remote access & security​

By default the hub listens on all network interfaces, so a studio running on a headless NPU board can be opened from another machine's browser. The launcher prints that address under other computers: in its URL banner (for example http://192.168.0.42:8890), and the Connected browsers button in the top bar shows it too. Remote browsers must be paired first — nobody on the network can use the studio without the code shown on the board. The module servers behind the hub (App, Stream, Compiler …) only listen on the board's 127.0.0.1; everything goes through the hub.

WhoWhat they need
You, on the board itself (or through an SSH / VS Code tunnel)Nothing — works as before.
A browser on another machineThe 6-digit code printed in the board's ./launcher.sh terminal — once per browser.
A script / API clientDX_API_TOKEN (header Authorization: Bearer <token> or X-DX-Api-Token).

Pair a browser (open LAN access)​

  1. On the board, run ./launcher.sh. Next to the URL banner it prints Remote access code: 123456.
  2. On your laptop, open the address printed under other computers: (or shown in Connected browsers on the board). You see Connect this browser — type the code.
  3. That browser is remembered for 30 days (DX_SESSION_DAYS). The code works once; a new one is printed after each use, and after 5 wrong tries the studio pauses for a minute and prints a new code.

Connected browsers (top bar) lists every paired browser — browser and OS, IP, last active, paired date — with Disconnect. On the board you see and disconnect all of them; a paired browser sees only itself and can Disconnect this browser. Scripts can use GET /api/auth/sessions, POST /api/auth/sessions/revoke (board only) and POST /api/auth/logout.

Watching DX Stream from another computer

Choose Playback → Remote (MJPEG) in DX Stream. Local (WebRTC) is for the board itself or the same LAN segment and does not cross an SSH tunnel.

Worked example — laptop → board at 192.168.0.42
  • On the board: ./launcher.sh → note Remote access code: 482915.
  • In your laptop browser: open http://192.168.0.42:8890, enter 482915.

Private access via SSH tunnel (no network exposure)​

Keeps the studio invisible to the network — only someone who can SSH into the board can reach it, and no code is needed (the tunnel arrives on the board's localhost).

  1. On the board, bind to localhost only:
    DX_BIND_LOCAL=1 ./launcher.sh
  2. From your laptop, forward the port over SSH:
    ssh -L 8890:localhost:8890 <user>@<board-ip>
    (On Windows, PuTTY/MobaXterm can save this as a stored port-forward.)
  3. Open http://localhost:8890 in your laptop browser.

What the studio refuses​

  • Requests whose Host is a name other than localhost, this machine's hostname or an address listed in DX_ALLOWED_HOSTS (an IP address is always fine) — this blocks DNS rebinding.
  • Cross-site requests: no Access-Control-Allow-Origin: *, and a state-changing request (POST/PUT/PATCH/DELETE) carrying another site's Origin/Referer is refused, even on the board itself.
  • Compile paths outside the allowed folders — the suite folder, the studio's var/, your home folder, /media and /mnt (add more with DX_COMPILER_ALLOWED_ROOTS).
  • For HTTPS or access from outside the LAN, put the hub behind an approved reverse proxy that terminates TLS; requests that come through a proxy (X-Forwarded-For) are treated as remote and must be paired.

Multiple people​

  • Different machines — fully independent studios. On an open LAN, remember each is reachable by anyone via its board IP (use SSH tunnels to keep them private).
  • Same board, same Linux account — relaunching ./launcher.sh stops the previous instance (it clears stale studio processes owned by your user on start). Two people sharing one login will interrupt each other; pass --no-kill to leave a running instance alone, but they'll then contend for the port and shared files.
  • Same board, separate Linux accounts — instances don't kill each other (the cleanup is per-user) and the port auto-bumps (8890 → 8891 …). Give each user their own copy of dx-ai-studio so they don't share outputs/, sessions, and downloads.

Environment variables​

VariableEffect
DX_BIND_LOCAL=1Bind 127.0.0.1 only — no network exposure (use with an SSH tunnel).
DX_BIND_HOST=<host>Bind the hub to an explicit interface/address.
DX_API_TOKEN=<secret>Lets scripts call the studio from another machine (Authorization: Bearer / X-DX-Api-Token). Required to run a module server on its own beyond 127.0.0.1.
DX_PAIRING=offDisable browser pairing — remote access only with DX_API_TOKEN.
DX_SESSION_DAYS=<n>How long a paired browser stays connected (default 30).
DX_ALLOWED_HOSTS=<a,b>Extra host names the studio answers to (e.g. a DNS alias).
DX_COMPILER_ALLOWED_ROOTS=<dir:dir>Extra folders the compiler may read from and write to.

Troubleshooting​

  • DX Monitor says NPU telemetry unavailable / tools say the SDK is missing — the NPU or SDK isn't detected. Confirm the driver is loaded with lsmod | grep dx (expect dxrt_driver and dx_dma) and the device with dxrt-cli --status; DX Monitor's version panel shows what the studio sees.
  • A tool stays on the splash / "not ready" — module servers may still be starting; wait a moment and reload. If it persists, check the terminal running ./launcher.sh for errors.
  • "Port already in use" — 8890 auto-bumps to the next free port; pin one with -p, or pass --no-kill to leave an existing instance alone.
  • UI works but compile / inference fails — inspect the error rather than assuming the UI proves readiness. Use Setup in DX Compiler for its SDK, or DX App / DX Stream for the runtime, driver, example binaries and models required by the action.
  • Stream refuses to launch after a runtime change — open Setup → DX-Runtime Dependencies and NPU Linux Driver, inspect the failed check and follow its remediation. After an authorized installation or a requested reboot, run the checks again before retrying the pipeline. A browsable Dashboard is not proof that the runtime and driver passed validation.
  • Graph validation / Run once is unavailable — check that Studio is using a dx_app checkout with the graph runners, build them there, and prepare the graph's models. A missing runner or model is not an automatic mock mode.