An air-gapped LLM is a language model that runs on hardware with no connection to the internet or any outside network, so prompts, documents and outputs never leave the building. You prepare the model on a connected machine, carry it

across by hand, and run it in isolation. The model is the easy part. Designing the boundary, the update path and the retrieval layer so the gap holds up in daily use is where projects stall. We build local AI deployments at Bowtie, and this guide covers the working version: what the term means, how the workflow runs, what breaks it, and how to decide if you need it.

TL;DR

  • An air-gapped LLM runs with no outbound network path. Weights, containers and updates cross the gap manually, under human control.
  • Deployment has two phases: stage everything on a connected machine, then mount and run it on the isolated one with no API keys and no outbound access.
  • Most failures come from the edges: an over-broad retrieval index, an exposed internal API, verbose logs, or a copied USB drive.
  • Many teams that say “air-gapped” need a private on-prem or VPC deployment instead. Define the real boundary first, then pick the architecture.

Table of Contents

What “air-gapped” means for an LLM

NIST’s glossary defines an air gap as an interface where two systems are not physically connected and any logical connection is not automated: data moves only manually, under human control. Apply that to an LLM and three things follow.

  • The inference server has no route to the internet. That includes telemetry, license checks, model downloads and package installs.
  • Every file that enters, whether weights, container images, libraries or documents, is carried in by a person through a defined channel.
  • Nothing the model produces leaves except through a reviewed, manual path.

The purpose is simple: a prompt or a document cannot be sent anywhere because there is nowhere to send it. For legal files, patient records, source code, defense work or unreleased financials, that is a stronger guarantee than any vendor’s privacy policy.

An on-prem server that is allowed some approved outbound traffic is not air-gapped, even if it feels locked down. It may be exactly the right design for you. It is a different design, and it should be named as such.

Air-gapped, on-prem and hybrid: which tier fits

These terms get mixed up in vendor decks. Here is how we separate them.

Setup Network path Where the model runs Typical fit
Air-gapped None. Data crosses by hand only Isolated hardware you control Classified, regulated or crown-jewel data
Private on-prem, restricted egress A short allow-list of approved outbound destinations Your data center or office rack Sensitive data with managed update needs
Private cloud or VPC Private networking to a cloud provider Dedicated cloud GPUs Teams that need elasticity and privacy controls
Hybrid Sensitive workloads local, general tasks routed to a hosted API Both Mixed data sensitivity

The further up the table, the more you give up in convenience: instant updates, easy scaling, quick experiments. You gain control and a much smaller attack surface. The right tier is the lightest one that satisfies your data rules.

How an air-gapped LLM deployment works

Vendors and cloud providers document nearly the same workflow, and it has two phases.

Phase 1: stage everything on a connected machine

NVIDIA’s documentation for its air-gap deployment of NIM describes the pattern: on a network-connected machine, download the model assets and prepare them for transfer through an allowed channel such as an archive copy, scp, rsync or physical media. Google’s open-weight LLM reference architecture for air-gapped Distributed Cloud follows the same shape: weights come down from Hugging Face on an internet-connected machine before anything touches the isolated environment.

A staging checklist that holds up in practice:

  1. Pick and pin the model. Choose an open-weight model and record the exact version and file hashes. Our guide to choosing an open-source LLM for your business covers license terms and size trade-offs.
  2. Pin the serving stack. Fix the inference server (vLLM or Ollama are common), the CUDA and driver versions, and the container image.
  3. Collect every dependency. Python wheels, system packages, tokenizers, embedding models for retrieval. If it is not in the bundle, it will not exist on the other side.
  4. Scan and sign. Run malware and vulnerability scans on the bundle, then generate checksums so the isolated side can verify what arrived.
  5. Record chain of custody. Who built the bundle, when, from which sources, and who carried it.

Phase 2: mount and run in isolation

On the isolated machine, NVIDIA’s workflow mounts the pre-staged assets and runs the container with no outbound network access and no API keys. Google’s reference architecture copies the weights into a Persistent Volume Claim through a helper pod, then serves the model with vLLM on port 8000 or Ollama on port 11434, with a ProjectNetworkPolicy enforcing isolation and controlling traffic to the LLM service ports.

On the isolated side:

  • Verify checksums before loading anything.
  • Run the inference server with outbound traffic blocked at the host firewall and the network layer, not only by convention.
  • Put authentication in front of the internal API, even though the network is closed.
  • Send logs to an internal store with defined retention.

If you are running this on Kubernetes, our walkthrough of first moves to deploy LLMs on Kubernetes with vLLM covers the serving side in more detail.

Updates: the part teams forget

A model that never updates ages quickly, and so does the software around it. Meta’s guide to self-hosting Llama in regulated industries describes the usual answer: weights move by physical media under chain-of-custody procedures, and new model versions are validated in an isolated test environment before promotion to production. Plan this loop on day one. Decide how often you refresh, who approves a bundle, and how you roll back.

Air-gapped model update and rollback lifecycle

Quality needs the same discipline. Before promoting a new model, run it against a fixed test set so you can compare it with the one it replaces. Our LLM evaluation readiness check shows a lightweight way to do that in CI.

What accidentally defeats an air gap

Most leaks in “air-gapped” projects are not exotic. They are ordinary engineering shortcuts. A 2026 guide on on-prem and air-gapped deployment with vLLM and Ollama lists the repeat offenders: an over-broad retrieval index, an exposed API, permissive logs and a copied USB drive.

Translate those into things you can check:

  • Retrieval that sees too much. A RAG system indexes documents so the model can answer from them. If the index covers every shared drive, any user can ask the model to summarize files they should never open. Scope the index by role and by source.
  • An internal API with no auth. “It’s on the private network” is not access control. Anyone on that network can send prompts and read answers.
  • Chatty logs. Prompts and completions often contain the sensitive data. Logging them in full to a wide-access location recreates the exposure you were avoiding.
  • Removable media. A USB drive is both your delivery channel and your biggest risk. Use dedicated, labeled, scanned drives, and wipe them after transfer.
  • Hidden outbound calls. Telemetry, auto-update checks and package managers that quietly try to phone home. Test by blocking egress and watching what fails.
  • Agents with tools. If the model can call tools or write files, an injected instruction in a document can trigger actions. Our AI agent security playbook and guide to audit-ready LLM guardrails cover the controls.

The SL5 recommendations paper makes a useful point here. It argues that physical air gaps are the most reliable isolation because software separation is less reliable, but that an air gap should never create a false sense of security. Zero Trust principles still apply inside the walls, because breaches remain possible.

Hardware and software you need

The bill depends on the model size and how many people use it at once. Think in four layers.

  1. GPU capacity. Memory is the constraint. A small model on a single workstation GPU suits a team of a few users. Larger models, or many concurrent users, need server-class GPUs, possibly several.
  2. Serving software. vLLM is built for throughput with many users. Ollama is simpler for small teams and single machines.
  3. Retrieval layer. A vector database, an embedding model that also runs locally, and a document ingestion pipeline.
  4. Operations. Monitoring, backups, access control and the update process from the previous section.

No one needs the biggest model. Many internal tasks, such as summarizing contracts, drafting from templates or searching internal documentation, run well on mid-sized open-weight models. Pick the smallest model that passes your evaluation set. It cuts hardware cost and latency together, and our piece on reducing LLM latency in production apps covers the tuning.

If usage is heavy, the economics change. Our self-hosted LLM decision framework for teams walks through the token-volume math that tells you when owning the hardware beats paying per token.

When you actually need an air-gapped LLM

Ask these questions in order.

  1. Is there a rule or contract that forbids the data from leaving a controlled environment? Classified work, some defense contracts, certain research facilities and some healthcare settings fall here. This is a strong yes.
  2. Would a breach of this specific data be catastrophic? Source code for a core product, unreleased deal documents or patient genomics might justify full isolation even without a rule.
  3. Can a private deployment with controlled egress meet the requirement? If your auditor or customer accepts it, you keep easy updates and simpler operations.
  4. Can your team run it? An air gap adds operational work: manual updates, offline troubleshooting, no searching Stack Overflow from the server room.

If you answer yes to the first or second and no to the third, go air-gapped. If you are unsure, start with the boundary question: write down exactly which data classes the model may touch, and which networks may touch the model. The architecture follows from that page.

Costs and trade-offs

Expect these differences against a hosted API.

  • Upfront spend moves from usage fees to hardware and engineering time.
  • Model quality is bounded by what open-weight models can do. For focused, well-evaluated tasks that is usually enough.
  • Speed of change slows down. Every upgrade is a managed release.
  • Control goes up. You decide exactly what runs, what is logged and who can reach it.

The cost of the build is easier to predict when you scope it as stages: assess the infrastructure, containerize the application, set up monitoring, then add the model. We publish prices for several of those pieces. An Infrastructure Assessment is $2,750 one-off, Dockerizing Your Application is $3,800 and Automated Monitoring / Logging / Alerts is $2,750.

Where Bowtie fits

Local AI model deployment is one of the services we sell, and our positioning is built around it: we combine AI expertise with experienced human engineers to deliver maintainable, secure, production-ready code, and we support compliance and privacy with local AI models. We also keep our workflow focused on reducing token costs and complexity.

Where Bowtie fits

For an air-gapped project that means one team can look at the full chain: the model choice, the container build, the retrieval design, the monitoring and the handoff, then stay on after launch for support. Our local AI model development pages by state show where we work.

If you want a second set of eyes before committing hardware budget, a Senior Developer Review starts at $449 one-off. If you already have a prototype built with AI tools and need it hardened, our Vibe Check is $449 one-off. For a full build, AI Assisted Engineering starts at $9,950 one-off, and AI Engineering Assistance and Local AI Model Development are quoted per project on our services page.

Bowtie

Tell us your data classes, your users and your update constraints, and we will tell you which tier of isolation fits.

Our perspective

Most teams that ask us about an air-gapped LLM are asking a different question: how do we use AI on our own data without losing control of it? Sometimes the answer is a true air gap. More often it is a well-scoped private deployment with a short allow-list and good access control.

What we keep seeing as the common thread is that the model is never the hard part. The hard part is the last mile: retrieval that respects permissions, logs that do not become a second copy of your secrets, an update path that someone owns, and an evaluation set that tells you whether the new model is better than the old one.

That is why we pair AI tooling with senior engineers. Local models reduce token costs and keep data in-house, and we design them to be simple enough that your team can run them after we hand them over. We stay on for support because a deployment that cannot be maintained is a prototype with a bigger bill.

Chad

FAQ

What is the purpose of an air gap for an LLM?

It removes any network path between the model and the outside world. Prompts, documents and outputs stay inside your controlled environment, which matters when rules or risk forbid sending data to a third-party service.

Can an air-gapped LLM still use retrieval over my documents?

Yes. The vector database and embedding model run locally too, and documents are ingested through your approved transfer process. Scope the index by role so the model cannot surface files a user should not see.

Is an on-prem server with limited internet access air-gapped?

No. If it has even approved outbound connectivity, it is a private on-prem deployment. That can be the right choice, but the boundary should be stated accurately so the architecture matches the promise.

How do I update the model in an air-gapped setup?

Stage the new weights and dependencies on a connected machine, scan and checksum them, and carry them across by approved media. Validate the new version in an isolated test environment before promoting it to production, as Meta’s regulated-industry guidance describes.

Sources