Tutorial

DGX Spark OpenCode: Run a Local Coding Agent in One Command (2026)

Back to BlogWritten by Published Dec 2, 2026
DGX Spark OpenCodeDGX Spark Model LauncherDGX Spark SetupDGX Spark Coding Agent SetupQwen3.8-27B NVFP4DGX Spark Tokens Per SecondDGX SparkAI Agents
DGX Spark OpenCode: Run a Local Coding Agent in One Command (2026)

NVIDIA's Sync app has a Model Launcher, still in beta. That's a shortcut over the separate, manual CLI Coding Agent playbook NVIDIA also publishes, which installs a different default model entirely. Neither doc says how long the setup takes, or how fast the model it installs talks back. This post walks the DGX Spark OpenCode setup, puts real forum-measured tokens-per-second numbers on the default Qwen3.8-27B NVFP4 model, and ends on the signal for handing that same agent a bigger GPU.

TL;DR: What Does the DGX Spark OpenCode Setup Actually Install, and How Fast Is It?

  • Setup: NVIDIA Sync's Model Launcher installs nvidia/Qwen3.8-27B-NVFP4, the eugr/spark-vllm:nightly-20261002 container, and an OpenCode workspace on a DGX Spark, in one command.
  • Hardware: Model Launcher runs only on 64GB or 128GB Spark units, standalone or clustered across two to four Sparks.
  • Decode speed: a single-Spark forum benchmark measured Qwen3.8-27B-NVFP4 at 24.0 tok/s thinking, 26.0 tok/s non-thinking, with 5-token MTP speculative decoding.
  • Concurrency: at 16 concurrent requests, stock NVFP4 vLLM reached 134.41 tok/s; a tuned community build hit 260.2 tok/s on the same hardware.
  • Next step: Spheron's Agent GPU Sandbox lets a coding agent deploy an H100 ($2.96/hr on-demand as of 05 Dec 2026) once one Spark's throughput runs out. Check live GPU pricing.

What the DGX Spark Model Launcher Actually Automates (Model, vLLM Container, OpenCode Harness)

Model Launcher sits inside NVIDIA Sync, the app you already use to manage a Spark, and it's scoped narrowly on purpose. Click it on a standalone DGX Spark, or on a cluster of two to four Sparks, and it installs exactly three things: the model nvidia/Qwen3.8-27B-NVFP4, served by the eugr/spark-vllm:nightly-20261002 container, and the open-source OpenCode harness, registered as a Sync custom app, per NVIDIA's Model Launcher documentation. Sync drops the workspace at ~/opencode on the primary node, adding an AGENTS.md file and a set of skills before you open it.

That's a meaningfully different default than NVIDIA's other, manual path. The CLI Coding Agent playbook on build.nvidia.com skips Sync entirely: it pulls Ollama, installs qwen3.6:35b-a3b-mtp-q4_K_M as its stated default, a roughly 23GB download, then wires up OpenCode, Claude Code, or Codex CLI with a single ollama launch <agent> command. Two NVIDIA-published routes, two different models. If you're comparing benchmarks you find online against your own Model Launcher session, check which path produced them first, because "DGX Spark running OpenCode" doesn't pin down the model by itself.

Model Launcher also isn't a general-purpose model installer. NVIDIA scopes it to this one default; anything else routes through NVIDIA Playbooks or the Local AI Inference Recipes site instead, per the same documentation.

DGX Spark Setup Before You Run the Launcher

Model Launcher assumes your DGX Spark setup is already done, and it has its own hardware floor on top of that. Getting there first matters more than the one-command step that follows it.

How Do You Connect a DGX Spark to Your Laptop?

DGX Spark is a headless box: no monitor, no keyboard attached by default. You control it from NVIDIA Sync running in a browser on your laptop, once both devices are signed into the same NVIDIA account and reachable on the same network. The Model Launcher button, and every setup step below it, lives entirely inside that browser session, not on the Spark's own screen, because it doesn't have one.

With Sync open and pointed at your Spark, two things gate whether Model Launcher is even available. First, the hardware floor: NVIDIA states Model Launcher supports only the 64GB and 128GB Spark configurations, run either standalone or clustered across two to four Sparks with one node designated primary. Second, before Sync downloads anything, it shows you the model and container sizes it's about to pull, per the same documentation, so you can confirm disk space and bandwidth before committing. That preview is the last manual checkpoint; everything past it happens without touching a terminal.

The One-Command Setup, Measured: Download Time to First Token

Here's exactly what the single Model Launcher confirmation triggers, in order:

  1. Eligibility check. Sync verifies your Spark (or cluster) against the 64GB/128GB, one-to-four-node support matrix and shows the model and container download sizes before pulling either.
  2. Container pull. It downloads the eugr/spark-vllm:nightly-20261002 vLLM container image.
  3. Model pull. It downloads the quantized weights for nvidia/Qwen3.8-27B-NVFP4.
  4. Workspace install. It writes the OpenCode workspace to ~/opencode on your primary node, including an AGENTS.md file and a set of skills already populated.
  5. Serve and connect. vLLM starts serving the model locally, and OpenCode is pointed at that endpoint automatically, with no API key or provider file to edit before your first prompt.

What's missing from NVIDIA's own documentation, and from every other page currently ranking for this setup, is a wall-clock number for any of that. Nobody publishes how many minutes steps 2 and 3 take, which depends on your own network and storage throughput rather than anything NVIDIA controls. The one size anchor available: the manual CLI Coding Agent playbook's Ollama default is roughly 23GB, a ballpark for "multi-gigabyte pull, not a trivial one," even though it isn't the same model Model Launcher installs.

One gotcha worth checking before you trust your first few responses: a separate single-Spark vLLM benchmark of this exact model found that the shipped `tokenizer.json` silently truncated text prompts at 2048 tokens until the field was manually cleared, with Unsloth since publishing a corrected tokenizer. If OpenCode seems to lose context on longer files right after setup, check that field before blaming the model.

Tokens Per Second on the Default Qwen3.8-27B NVFP4 Model

Model Launcher installs a specific model, quantization, and hardware combination, and that exact combination has been independently benchmarked on the DGX Spark developer forum using a manual vLLM setup, not the Launcher's button itself, but the same model weights and quantization the Launcher ships.

Single-user decode. With vLLM and 5-token MTP speculative decoding enabled, median-of-5-runs decode throughput came in at 24.0 tok/s in thinking mode and 26.0 tok/s with thinking turned off, close to what an interactive OpenCode session actually feels like.

Speculative decoding is most of the gap. Turning MTP speculation off dropped decode to 11.4 tok/s on the same setup; 5-token speculation brought it back to 24.7 tok/s, roughly double. If your own session feels slower than these numbers, check that flag before blaming the hardware.

Prefill degrades with context. Prefill throughput hits 1,734 tok/s at a 4,566-token prompt, so an agent reading a large file or a long diff pays a throughput cost before its first output token, on top of decode speed afterward.

Concurrency numbers come from a separate benchmark. A second DGX Spark forum thread pushed the same model to 16 concurrent requests: a tuned community build reached about 1.9x stock NVFP4 and 2.5x stock FP8 on the same single Spark. That thread also corrected an earlier single-request figure: a fixed reasoning-token count put mean single-request throughput at 44.9 tok/s (49.1 tok/s token-weighted), down from an initially overstated 58.1 tok/s. The lesson from both benchmarks: the headline figure depends on which build, which flags, and how many requests are running, not just the model name on the box.

For a sense of how that decode range compares against a different kind of local box entirely, our DGX Spark vs RTX 5090 tokens-per-second comparison runs the same kind of single-stream and concurrent benchmarks against a discrete consumer card on a different model size.

When to Point OpenCode at a Rented GPU Instead

Somewhere between 24 tok/s on one request and 260 tok/s shared across sixteen, a single DGX Spark stops being the bottleneck's answer: more than one agent session running at once, a model bigger than 27B parameters, or a prefill tax on long repository context that's eating more of each turn than decode itself.

Spheron's Agent GPU Sandbox is built for exactly that handoff: the agent itself, not a person re-running setup, requests the next GPU. Claude, Cursor, Codex CLI, VS Code, or any MCP client that supports remote servers connects once to https://connect.spheron.ai/mcp, and from there the agent can deploy the same GPUs you'd rent manually, from RTX cards and A100s up to H100, H200, B200, and B300, on most offers, single or multi-GPU. Once deployed, the agent runs a shell command as the machine's login user, with sudo available, and gets the exit code and output back. OpenCode isn't one of the clients Spheron names outright, so running it specifically qualifies only under that broader "any MCP client" language, not as a verified integration.

Billing is the instance's normal hourly price until you stop or terminate it, exactly as it would be without the sandbox. H100 on Spheron runs $2.96/hr on-demand as of 05 Dec 2026, and every deploy, stop, start, and terminate shows a price preview the agent waits on you to approve, with a per-connection spend limit as a backstop and no inbound port opened on the VM, which matters more to a reader coming from a fixed-cost desk-side box than the raw GPU catalog does.

This path stops short of NVLink-scale hardware: GB200, GB300, and Vera Rubin are reservation-only on Spheron, priced by quote rather than instant deploy, so a project that genuinely needs rack-scale training goes through that process next. Our DGX Spark to GB200 cloud scaling guide covers that step, and our DGX Spark vs cloud rental break-even math covers how many hours of local use it takes before a Spark pays for itself against these same on-demand rates. If your interest runs more toward retrieval than a coding agent, our DGX Spark RAG guide covers that budgeting problem, and our DGX Spark to GPU cloud pipeline guide walks the broader local-to-cloud handoff.

Pricing fluctuates based on GPU availability. Spheron rates above are live as of 05 Dec 2026; NVIDIA model, container, and benchmark figures reflect the sources linked above as of this post's date and may have changed. Check current GPU pricing → for live rates.

A DGX Spark running OpenCode is a fine place to start a coding agent. When one Spark's decode speed or concurrency stops being enough, the same agent can deploy its own GPU instead of waiting on you to provision one.

Connect your agent on Spheron →

STEPS / 04

Quick Setup Guide

  1. Open NVIDIA Sync on your laptop and sign in

    Make sure your DGX Spark is powered on, updated, and on the same network as your laptop, then open the NVIDIA Sync app in your browser and sign in with the NVIDIA account paired to the Spark.

  2. Launch Model Launcher and review the download sizes

    Open Model Launcher from Sync's menu. It checks your Spark against the supported 64GB/128GB, 1-4-node hardware matrix and shows you the download sizes for the model and the vLLM container before anything starts pulling.

  3. Confirm and let the one command run

    Approve the download. Sync pulls the eugr/spark-vllm:nightly-20261002 container and the nvidia/Qwen3.8-27B-NVFP4 weights, writes an OpenCode workspace to ~/opencode on your primary node with an AGENTS.md file and skills already in place, and starts vLLM serving the model locally.

  4. Open OpenCode and start a session

    Launch OpenCode from the Sync-installed workspace. It's already pointed at the local vLLM endpoint, so there's no API key or provider config file to edit before your first prompt.

FAQ / 04

Frequently Asked Questions

DGX Spark is a headless box, so you control it through the NVIDIA Sync app running in your laptop's browser once both are on the same network and signed into the same NVIDIA account. The Model Launcher button lives inside Sync, not on the Spark itself, so your laptop is the control surface for the entire one-command setup.

NVIDIA Sync's Model Launcher installs nvidia/Qwen3.8-27B-NVFP4, served by the eugr/spark-vllm:nightly-20261002 container, and wires it to an OpenCode workspace at ~/opencode on your primary node. That's a different default than NVIDIA's separate manual CLI Coding Agent playbook, which installs qwen3.6:35b-a3b-mtp-q4_K_M through Ollama instead.

A DGX Spark forum benchmark measured single-user decode at 24.0 tok/s in thinking mode and 26.0 tok/s with thinking off, using vLLM with 5-token MTP speculative decoding. Turning speculative decoding off dropped that to 11.4 tok/s, roughly half, which means the setting matters more than the model itself for how an OpenCode session will actually feel.

Once single-user decode in the 24-50 tok/s range stops being enough, usually when you need more than one agent session running at once, a bigger model than 27B, or faster prefill on long repository contexts. Spheron's Agent GPU Sandbox lets the same kind of coding agent deploy an H100-class GPU on demand and give it back when the job is done, billed at the instance's normal hourly price.

// Try It Yourself

Try It on Real GPUs

The GPUs behind these guides are the ones you can rent here: H100s, H200s, B200s, and more, billed per minute after a 20-minute minimum runtime, with no contracts. Pick one and you are live in under two minutes.

View Pricing
→
Or talk to our team
Spheron GPU instance going live and linking data centers across the globe