n8n on DGX Spark: Run AI Workflows Fully Offline
There is a specific, uncomfortable conversation that keeps happening in 2026: a company wants AI automation, but their data cannot leave the building. Healthcare records, financial documents, legal contracts, defense-adjacent research — the moment a workflow touches a cloud API, the deal is off. For those cases, the combination of n8n and NVIDIA’s DGX Spark is the most practical answer I have found, and it is the stack this enterprise AI adoption guide is really about: a fully offline AI workflow engine running on a $3,999 box that sits on a desk.
The short version: n8n handles the automation (triggers, routing, 400-plus integrations), DGX Spark provides the local compute and unified memory to run real models, and Ollama serves open source AI models over a local HTTP endpoint. Wire the three together and you have workflows that summarize, classify, extract, and route documents without a single byte leaving your network.
This guide covers what the hardware actually is, why you would run offline, the setup, and — just as important — where the whole idea falls short.
What NVIDIA DGX Spark actually is
DGX Spark is NVIDIA’s “personal AI supercomputer,” a 1.2 kg box measuring 150 x 150 x 50.5 mm that runs the GB10 Grace Blackwell Superchip. The spec sheet reads like a workstation’s fever dream:
- 20-core Arm CPU (10 Cortex-X925 + 10 Cortex-A725)
- 128 GB LPDDR5x unified memory (a 64 GB configuration also exists)
- Up to 4 TB NVMe storage
- Up to 1 petaFLOP of AI compute at FP4 precision
- ConnectX networking to link up to four Spark units
The headline number that matters for this use case is the memory. NVIDIA’s own positioning is that a single 128 GB Spark runs inference on models up to 200 billion parameters and fine-tunes up to 70 billion parameters. That is not marketing rounding — The Register’s hands-on review confirmed the box runs 4-bit-quantized models that 5090-class consumer cards simply cannot hold, because the unified memory is the differentiator, not the raw speed.
The price is $3,000 to $4,000 depending on configuration and OEM. The NVIDIA Founder’s Edition lists at $3,999 with 4 TB of storage. Dell, Lenovo, HP, Asus, and Acer all ship GB10-based variants, some with less storage and a lower price.
It runs DGX OS, NVIDIA’s Ubuntu-derived Linux, and ships with the NVIDIA AI software stack preinstalled — including the pieces you need to develop, test, and deploy always-on agents locally.
Why n8n + DGX Spark is the offline pairing
n8n is the open-source workflow automation tool — the self-hostable alternative to Zapier — and its Community edition is free. It runs locally, stores its database locally, and exposes an editor at localhost:5678. In a fully offline deployment, n8n becomes the orchestration layer while a local model server does the inference.
The reason the pairing works so well is division of labor. n8n is light on hardware — it runs fine on a modest CPU — so nearly all of DGX Spark’s capability goes to the model. A local 7B to 8B parameter model running through Ollama is enough for the tasks most automation pipelines actually need: classification, extraction, summarization, and routing. You do not need a frontier model to decide whether a ticket is a refund or a shipping complaint.
There are four concrete reasons teams choose this over a cloud stack:
- Data sovereignty. PII, contracts, and support tickets never leave the network boundary.
- Predictable cost. A one-time hardware purchase replaces a token-metered bill that scales unpredictably with volume.
- No third-party rate limits. You are bounded only by your own hardware.
- Offline resilience. The pipeline keeps running if the internet drops, which matters for air-gapped and edge deployments.
The trade-off, stated plainly: local models — especially CPU-friendly quantized ones — sit meaningfully behind frontier hosted models on complex reasoning. You are also now responsible for uptime, patching, and backups. For structured extraction work, this is usually a fine trade. For open-ended reasoning at scale, it is not.
Choosing the open source AI models to run
The model is the part people get wrong, so this is worth its own section. You are choosing from open source AI models served by Ollama, which exposes a simple HTTP API at localhost:11434. The practical candidates as of late 2026:
| Model | Rough size | Good for |
|---|---|---|
| Llama 3.1 8B (Q4) | ~4.7 GB | General summarization and classification |
| Mistral 7B | ~4 GB | Instruction-following and compact tasks |
| Qwen 2.5 7B | ~4.5 GB | Structured output, extraction, multilingual |
| Phi-3 mini | ~2 GB | Low-latency, constrained hardware |
Model size matters more than model brand at this tier. A 7B to 8B model fits comfortably in 16 GB of RAM, but DGX Spark’s 128 GB unified memory means you can run much larger models — and several at once — without swapping. The sweet spot for an offline automation box is to run a solid 7B to 8B model for high-volume tasks and keep a larger model loaded for the occasional hard job.
For workflows that need structured output, ask explicitly for JSON and parse it in a Code node. For classification and extraction, set temperature low (0.1 to 0.3). For creative drafting, use 0.7 to 0.9. These are small levers, but they are the difference between a pipeline that runs reliably and one that fails intermittently on unparseable output.
The setup, step by step
The honest caveat up front: installation is not offline. You need internet once to download Docker images, Ollama, and model files. After that, inference and workflow execution run fully air-gapped. Plan the download-and-disconnect sequence accordingly.
Step 1 — Install Ollama and pull a model. Ollama runs natively on the DGX Spark’s DGX OS.
curl -fsSL https://ollama.ai/install.sh | sh
ollama pull llama3.1:8b
curl http://localhost:11434/api/tags # verify the model is present
Step 2 — Run n8n. Docker is the cleanest path, but n8n also installs via npm (npm install -g n8n). The Docker version needs a persistent volume so workflows survive restarts.
docker volume create n8n_data
docker run -d --name n8n \
-p 5678:5678 \
-v n8n_data:/home/node/.n8n \
--add-host=host.docker.internal:host-gateway \
n8nio/n8n
Open http://localhost:5678 and create the owner account — it is local to your instance and needs no cloud API.
Step 3 — Connect n8n to Ollama. This is the step where most people stumble. If n8n runs in Docker, localhost refers to the container, not the host. Use http://host.docker.internal:11434 on Docker Desktop (and add the extra_hosts mapping on Linux, as above). If both run directly on the host, http://localhost:11434 works.
The simplest integration is an HTTP Request node pointing at Ollama’s generate endpoint:
{
"model": "llama3.1:8b",
"prompt": "Classify this ticket: {{ $json.text }}",
"stream": false,
"options": { "temperature": 0.2 }
}
Set stream to false for automation — you want one complete response to parse, not a sequence of chunks.
Step 4 — Build a first workflow. Start simple, with a chain or classifier rather than a full AI Agent. A reliable first pattern:
Manual Trigger → Read file → HTTP Request (Ollama) → Code node (parse) → Write file
Prove the whole path works before adding complexity. Then expand into the n8n Self-hosted AI Starter Kit, which bundles n8n, Ollama, PostgreSQL, and Qdrant in a single Docker Compose project — useful once you want retrieval-augmented generation over local documents.
What actually works offline (and what does not)
A fully offline n8n deployment can do a surprising amount. Useful workflows include summarizing local documents, tagging files, extracting structured fields from text, drafting internal reports, and routing support tickets stored on your machine.
The requirement is strict: every step must use local files, local databases, LAN services, or offline-compatible nodes. Manual and schedule triggers keep working. Local LAN webhooks keep working if the network is up.
What breaks without connectivity is the long tail: cloud model APIs, Gmail, Slack, Notion, Google Drive, GitHub, online search, remote databases, cloud storage, OAuth refresh, and internet-facing webhooks. Automatic updates and telemetry also need to be disabled for a strict air-gap. Review every node and external URL, then test with outbound traffic actually blocked — that is the only way to know the system is genuinely offline, not just “configured to look offline.”
One more security point that gets glossed over: bind n8n and Ollama to localhost rather than a LAN-facing address unless other devices genuinely need access. An exposed Ollama endpoint on a shared network can leak documents, prompts, and generated output to anyone who can reach the port.
Cost and ROI
The economics are straightforward but worth writing down. A cloud-based automation pipeline on a managed model can cost hundreds of dollars a month at moderate volume, with the bill scaling with usage. The same workload on a self-hosted model is effectively $0 per month after the one-time hardware cost of the DGX Spark.
That framing is slightly optimistic. Hardware, storage, electricity, and your own maintenance time are real costs. But for a pipeline running thousands of AI tasks a day on sensitive data, the math tips decisively toward self-hosting — and the data-sovereignty argument often closes the deal before the cost argument even comes up.
Limitations and caveats
The pairing is not a drop-in replacement for a cloud AI stack, and the gaps are worth naming.
First, local models lag frontier hosted models on open-ended reasoning. For extraction and classification, fine. For “write me a strategy memo that requires synthesizing five sources,” you will feel the difference.
Second, throughput on CPU-only inference is modest. DGX Spark has real GPU compute, but it is optimized for fitting large models into memory rather than raw tokens-per-second on small models. This stack is best for moderate-volume automation, not high-concurrency production inference.
Third, n8n’s Community edition has limits — no SSO, no advanced role-based access control, no managed scaling — so at some enterprise scale you will hit the ceiling and either pay for n8n’s paid tiers or outgrow the self-host model entirely.
Fourth, the offline requirement is a discipline, not a checkbox. One misconfigured node phoning home to a cloud API silently breaks your air-gap. You need the outbound-traffic-blocked test to be part of your deployment ritual.
Who should use this stack
- Healthcare, legal, finance, and defense teams with data that legally or contractually cannot leave the building.
- Small teams that want predictable cost and full model control instead of a variable API bill.
- Anyone running air-gapped or edge deployments where the internet is intermittent or forbidden.
Who should NOT use this stack
- Teams that need frontier-model reasoning quality and are not data-constrained — a hosted API will outperform this.
- Anyone who needs high-concurrency inference at scale — this is a workstation, not a GPU cluster.
- Teams without someone willing to own the operations: patching, backups, and monitoring are now yours.
The bottom line
n8n on DGX Spark answers a question that cloud-first AI largely ignores: what do you do when the data cannot leave? The answer is a $3,999 box running open source AI models behind a local HTTP endpoint, orchestrated by a free self-hosted workflow engine, with every byte staying inside the building.
It is not the fastest inference, not the smartest model, and not the cheapest to stand up on day one. It is the most practical way I have found to run real, useful AI automation in the places where the cloud is simply not allowed. For a surprising number of teams in 2026, that is the whole ballgame.