vLLM air-gapped deployment

Running vLLM with no internet access means staging model weights, container images and packages inside the boundary and closing every port that is not meant for users. This page covers what the docs support, what to configure and what to confirm.

On this page

What an air-gapped vLLM deployment requires

A regulated or isolated network that must run inference with no outbound internet access cannot use vLLM's defaults as shipped. The engine is free to use: vLLM is licensed under Apache-2.0 according to its GitHub repository and has no paid edition. What you pay for comes from GPU or other accelerator capacity, the surrounding infrastructure, the implementation work to make it run inside your boundary, and the people who operate it. The licence cost is zero, but the effort to remove connectivity assumptions is real and falls on your team or your implementation partner.

The defaults that assume connectivity are concrete. By default vLLM downloads models from Hugging Face, so weights must be staged inside the boundary and loaded from local paths. The FastAPI /docs page needs internet access unless you enable --enable-offline-docs. Cache directories rooted at VLLM_CACHE_ROOT (default ~/.cache/vllm) and the Hugging Face cache mounted into containers must sit on storage you control, and cache contents are loaded without integrity checks, so only files your team has produced or verified should be placed there. Confirm each of these in your own build, because the exact variables and flags depend on the vLLM release you pin.

The work therefore covers five areas: offline API documentation, staged model weights and container images with checksums, private cache locations, the usage statistics setting, and a written list of internal ports that stay closed. Ask your team to verify the telemetry behavior and the full set of outbound calls in a test enclave before go-live, and document the result as evidence. Plan the port list with the security team up front, including /metrics and the endpoints that the security guidance says the --api-key option does not protect. Each of these items needs an owner, a test and a record.

Where vLLM reaches the internet by default

A vLLM server and the platform around it can reach the internet in several places without anyone asking for it. Each of these needs an explicit decision, a staged copy inside the boundary, or a documented block before the environment is called isolated.

Hugging Face model downloads

By default, vLLM downloads model weights and tokenizers from Hugging Face the first time a model is requested. In an air-gapped environment, the model must already be staged in a local directory or a private mirror that the server can read. Check which model IDs your teams can request, and make sure the server fails closed when a model is missing rather than attempting an outbound fetch.

vLLM Docker docs

Hugging Face cache directory

The Docker guide mounts the Hugging Face cache at /root/.cache/huggingface inside the container. That cache is where downloaded weights and metadata land, so it is the place to pre-populate and to control. Confirm the cache path, its ownership and its permissions on the host, and decide whether it is a read-only mount in production. Keep it separate from the vLLM cache, which has its own trust rules.

FastAPI /docs page

The interactive API documentation served at /docs loads its assets from the internet by default. Without a connection, the page renders incompletely or not at all. The --enable-offline-docs flag serves it from the server itself. Enable it in the air-gapped build, then test the page from a host with no route to the internet to confirm nothing external is requested.

Online serving docs

Container and package installs

Building or upgrading a vLLM image pulls base images, Python wheels, CUDA or ROCm libraries and OS packages from public registries and package indexes. Each of these must be mirrored or built ahead of time, and every package carried across the boundary should be checked for integrity and provenance. Ask your team to list every build step that reaches out, then confirm the list against a build run with the network disabled.

vLLM installation docs

Kubernetes control plane images

When vLLM runs on Kubernetes inside an isolated network, the cluster itself may still need images for its control plane. With kubeadm, the control plane images can be listed and pulled in advance, and kubeadm init can point at a private registry with --image-repository. Confirm that every image the cluster and the vLLM manifests reference is available in the internal registry before the first deployment.

kubeadm init docs

Configuration options for an offline vLLM host

This table compares the vLLM settings that matter once a host has no internet access, including docs, model location, cache, chat templates and API key limits. Read each row for when the option fits and what to confirm in the version you run, since usage statistics and telemetry switches vary by release.

OptionWhat it controlsWhen it fitsWhat to confirm
--enable-offline-docsServes the FastAPI /docs page from local assets instead of loading them from the internetAny offline host where operators or developers need the interactive API referenceThat the page loads fully with no outbound requests in your version
Hugging Face cache and model pathWhere model weights and tokenizer files are read from, by default the Hugging Face cache mounted at /root/.cache/huggingface in DockerPre-staged weights on an internal volume, loaded by local path or a pre-populated cacheThat the model loads with downloads disabled and that the path, ownership and file set match what was staged
VLLM_CACHE_ROOT (default ~/.cache/vllm)Location of vLLM's own cache directories, which are loaded without integrity checksPointing the cache at a private, root-owned volume with restricted write accessThat only the serving account can write to it and that no cache content was copied from an untrusted source
--chat-templateSupplies a Jinja chat template for a model that does not ship one, so chat completions workInternally fine-tuned or older checkpoints whose tokenizer config lacks a templateThat the template came from a reviewed source and the model returns correct role formatting in tests
--api-keyRequires a bearer key on /v1, /v2, /inference and /cohere endpoints onlyA single-tenant host behind a proxy that already enforces identityThat /invocations, /pause, /resume, /abort_requests, /metrics and /health are blocked at the proxy, since the key does not cover them
Usage statistics and telemetryWhether the server reports usage data outside the boundary, controlled by environment settingsEvery air-gapped host, so no outbound report is attemptedThe exact variable names and default values in your release, verified by blocking egress and checking for connection attempts

Setting up vLLM inside the boundary

This sequence takes vLLM from a network with internet access to a self-contained serving endpoint inside your boundary. Each step ends with a check, so the team can prove that model loads and requests complete without any outbound calls.

  1. Inventory every outbound dependency

    Before anything is copied across the boundary, list every external host the vLLM server, its container runtime and its host operating system could reach. Cover the model source (by default vLLM downloads models from Hugging Face), the container registry, Python package indexes, CUDA or ROCm driver repositories, telemetry and usage-statistics endpoints, and the documentation endpoint that serves the FastAPI /docs page. The security team owns the resulting list, and the platform team owns the mapping from each entry to a staged artifact or a configuration change. Done means every entry has an owner and a replacement, so no item is left as an unexplained dependency.

  2. Stage model weights and vLLM artifacts through approved transfer

    Download the model weights, the tokenizer and chat template files, the vLLM container image or wheels, and their dependencies on a connected staging host, then move them through the transfer process your organization already approves for software crossing the boundary. Record a cryptographic hash and the source for each artifact in a manifest. Ask your security team how they expect integrity and authenticity of vendor software and patches to be verified before import, since that verification is the control that matters most at this step. Done means the manifest matches the artifacts that arrived inside the boundary, and nothing was fetched from a live source during the import.

  3. Build or mirror the container registry inside the boundary

    Load the staged vLLM image and its base images into a registry that runs inside the boundary, and point the serving hosts at that registry only. Pin image references by digest rather than by tag so the running image matches the one that was reviewed. Confirm the registry's own dependencies, such as its storage and certificates, are also internal. Done means a host with no route to the internet can pull the image and start the container, and the pull log shows only internal registry addresses.

  4. Point model and cache directories to private paths

    Set the Hugging Face cache to a directory on an internal volume, mount it into the container at the path the Docker guide uses, and set VLLM_CACHE_ROOT to a private location instead of the default under the user's home directory. The vLLM security documentation treats these cache directories as private and trusted because their contents are loaded without integrity checks, so restrict write access to the service account and copy cache contents only from sources you have verified. Done means the cache paths in the running configuration point to the internal volume, the directory permissions are limited to the service account, and no cache file came from an unverified source.

  5. Turn off outbound usage and documentation calls

    Enable the --enable-offline-docs option so the /docs page is served locally, and confirm that the chosen model's chat template is included with the staged files or supplied with --chat-template, since chat completions depend on it. Disable any usage statistics reporting according to the current vLLM configuration options for your release, and confirm the setting with the release notes for the version you staged. Ask the vendor or your own testing which settings your version exposes, instead of assuming a flag name from older guides. Done means the server starts with the offline documentation flag set and the configuration file lists no external URL.

  6. Confirm no DNS or egress during model load

    Start the server with the model directory set to the staged path and capture network activity from the host and the container during startup and the first model load. Run DNS query logging on the internal resolver and a firewall rule that drops outbound connections from the serving network, then review both logs. Any attempt to resolve an external name or open an outbound connection is a failed check and should send the team back to the inventory in the first step. Done means the captured logs contain no external DNS queries and no blocked outbound connections attributable to the vLLM process or container.

  7. Lock the internal ports and restrict endpoints

    Limit the API port to the clients that should reach it and keep the vLLM port closed to every other network. The vLLM security documentation notes that the --api-key option does not protect every route, including /metrics, /health, /pause and /resume, so put a reverse proxy in front that allowlists only the endpoints users need. If the deployment is multi-node, place those nodes on an isolated network, because inter-node communication is insecure by default. Done means a port scan from an allowed client shows only the intended listener, and requests to the administrative routes fail from user networks.

  8. Verify with a test request

    Send a request to the chat completions endpoint and the completions endpoint from an allowed internal client, using a prompt that the team has already reviewed. Confirm that the response is returned, that the logs show the request was served by the local model files, and that the network check from the previous step still shows no external traffic. Record the test in the deployment record with the image digest, model hash and configuration version. Done means the test passes, the record is filed, and any later change to the image, model or configuration starts this sequence again from the step it affects.

How artifacts cross the isolated boundary

The path starts with approved external sources, such as model repositories and container registries, which are pulled only on the transfer side. Every model file and image is verified and scanned there before it is carried across the boundary into the internal registry and model store. The vLLM server reads only from that internal store, and users reach it only through the internal reverse proxy allowlist. The trust boundary and the closed ports sit where the transfer step meets the internal network, so check that nothing crosses except through that gate.

Artifacts move through one verified gate before reaching the vLLM server.

How to stage model weights and images without losing integrity

The core risk in staging is that vLLM trusts what is already in its cache. Its security documentation states that cache directories, rooted at VLLM_CACHE_ROOT (default ~/.cache/vllm), are assumed to be private and trusted, and that their contents are loaded without integrity checks. The same docs warn against copying cache contents from untrusted sources. In an air-gapped build, the boundary is where a tarball, USB drive or transfer share is most likely to be handled by people and tools outside the engineering team, so the organization must verify model weights, tokenizer files and container images itself before they cross in. vLLM will not do that check for you. Plan a verification step with hashes recorded at the source, signature or checksum validation where the publisher provides it, and a named owner who signs off each transfer. Keep the staging host and the cache volume under the same access controls as the serving hosts.

Version control needs the same discipline. vLLM ships new minor releases about every two weeks, for example v0.31.0 on October 5, 2026, according to the project's GitHub releases. Staging against a moving target means the image, the Python wheels and the model files you verified last month may no longer match what the team wants to run. Pin the exact vLLM version, container tag and model revision you stage, and record them in the same manifest as the hashes. Then re-stage on a planned schedule that suits your change process rather than on each release. Confirm with your own engineers which vLLM versions your hardware and model recipes support before you commit to a version, and confirm that each staged artifact in the manifest matches the pinned version exactly.

Ports and endpoints that must stay closed

A vLLM server exposes more than its inference routes, and several of them are not covered by the API key. In an air-gapped deployment the boundary is only as strong as the endpoints you leave reachable, so the cards below cover what to block, what to allowlist and what to keep off shared storage.

API server behind an allowlist proxy

Do not publish the vLLM API server port directly to application or user networks. The vLLM security docs recommend a reverse proxy that allowlists only the endpoints meant for users, so place the proxy in front of the server and pass only the inference routes your applications call, such as the /v1 paths. Confirm the current list of routes against the security docs before writing the proxy rules, because the set of endpoints changes between releases.

vLLM security docs

Control endpoints the API key does not cover

The --api-key option protects the /v1, /v2, /inference and /cohere paths, but not /invocations, /pause, /resume, /abort_requests, /metrics or /health. Treat /pause, /resume and /abort_requests as administrative controls that stop or change serving, and block them at the proxy for every client that is not an operator. Verify the list against the security docs for your release, since an unprotected route is easy to miss.

Metrics and health routes

The /metrics endpoint publishes request counts, token throughput, latency histograms and KV cache use in Prometheus format, which tells an outsider how busy the model is and how it behaves under load. The /health route is useful to load balancers and orchestrators but should not be reachable from user networks. Allow scraping only from the monitoring subnet and confirm that the scrape path works after the proxy rules are in place.

vLLM metrics docs

Multi-node traffic on an isolated network

The vLLM security docs state that communication between nodes in a multi-node deployment is insecure by default, with no authorization or encryption. Place all inter-node traffic on a dedicated, isolated network that no user or application segment can reach, and keep Ray or multiprocessing ports off the routed network. If your standard requires encryption of that traffic, plan an external control, because vLLM does not provide it for these links.

Parallelism and scaling docs

Private cache directories

vLLM roots its caches at VLLM_CACHE_ROOT, which defaults to ~/.cache/vllm, and loads cache contents without integrity checks. Set the variable to a directory owned by the service account, restrict its permissions, and never share it between hosts or copy it from a source you did not build. Mount the Hugging Face cache, which is normally at /root/.cache/huggingface in containers, read-only where possible so no process can plant files there.

Verify every port against current docs

Build a written port inventory for your exact vLLM version, listing each listening port, each route and the owner who approved it. Test from an untrusted segment that each blocked path returns a denial, and repeat the test after every upgrade, since new minor releases ship about every two weeks. Ask the vendor or the community for any route that is not in the docs so it can be reviewed before it reaches production.

Minor release cadence
Every two weeks

Operating an air-gapped vLLM server over time

Platform operators own the recurring work inside the boundary. vLLM ships new minor releases about every two weeks, so each upgrade has to be planned as a transfer of artifacts across the boundary, not as a live pull. Keeping a staged media process and a predictable release review cadence prevents the team from skipping steps when a release looks urgent.

  • Staged updates: Bring vLLM wheels or images, model weights, and dependencies through the same approved media path each time, and record what was imported and when.
  • Metrics inside the boundary: vLLM exposes Prometheus-format metrics at /metrics, so run the collector and dashboards on internal systems only and confirm the scrape path never leaves the network.
  • Kubernetes images: Use kubeadm config images list and kubeadm config images pull on a connected staging host, then push to a private registry and point kubeadm init at it with --image-repository.
  • Cache hygiene: Keep VLLM_CACHE_ROOT and Hugging Face cache paths on storage the team controls, and do not copy cache contents from outside sources.
  • Release review: Check each new release notes entry for changed endpoints or flags before it reaches production.

Confirm with your own change process whether the staging host, transfer media and registry are inside the same authorization boundary as the server.

Limits to confirm in your environment

The offline behavior of vLLM depends on the model, the engine version, and the accelerator software around it. No offline-specific version or support statement has been published for this combination, so each item below is a check to run and record in your own boundary rather than a claim to accept.

Model and tokenizer loading

Confirm that every model, tokenizer, processor and chat template in use loads with the network disabled. vLLM downloads from Hugging Face by default, so a model that is missing from the local cache or that pulls a remote tokenizer or config file will fail in the boundary or try to reach out. Load each model from a local path in a test enclave with egress blocked, and record which files it reads. Also confirm that any model served with a supplied chat template does not fetch one at runtime.

vLLM Docker docs

External calls in the chosen version

Each vLLM release can change which background calls the server makes, so the offline test must be repeated for the exact version you pin rather than carried forward from an earlier one. Run the server with egress blocked, watch DNS and outbound connections, and check whether usage reporting, documentation assets or dependency lookups still attempt connections. Use --enable-offline-docs for the API documentation page and confirm the usage statistics setting is off in your configuration.

Online serving docs

GPU driver and CUDA sourcing

The GPU driver, CUDA runtime and container toolkit sit below vLLM and are often the hardest part of the boundary to stage. Confirm which packages your hosts install, which repositories they resolve against, and whether the vLLM image's bundled CUDA libraries match the driver you can deliver offline. Mirror the exact package set internally, verify signatures, and record the driver version that each host runs so an upgrade request can be planned against it.

Accelerator vendor software delivery

If you run AMD ROCm, Intel XPU or a third-party hardware plugin, the vendor's runtime, compiler and kernel packages must come through the same controlled intake as everything else. Ask each vendor whether it publishes an offline bundle, which versions it supports with the vLLM release you plan to pin, and how it signs its artifacts. Treat the answers as open items until they are written in your procurement file.

Package and image provenance

Every Python wheel, container image layer and model file carried across the boundary needs an integrity check. Under NERC CIP-013-2, supply chain procurement processes are expected to address verification of software integrity and authenticity for vendor software and patches, so record hashes and signatures at the point of import. Confirm that your internal registry and package mirror do not silently refresh from public sources.

CIP-013-2 text

Cache and network path retests

Offline behavior drifts after changes, so the boundary test should be a repeatable check rather than a one-time sign-off. Re-run model loading, the cache directory test under VLLM_CACHE_ROOT, and a full egress capture after each pinned version change, driver update or model addition. Ask your vendors and internal platform owners to name who approves a retest before any change moves inside the boundary.

Questions buyers ask before an air-gapped vLLM rollout

Does vLLM cost money to run in an air-gapped environment?

vLLM has no paid edition and is licensed under Apache-2.0, so the license itself adds no fee. The cost of an air-gapped rollout comes from the accelerator capacity the model needs, the infrastructure around it, the work of staging and verifying every artifact that crosses the boundary, and the time your operators spend running the platform. Ask for each of these as a separate line in any quote. Also confirm which of your internal tools, such as a private registry, a model mirror or a scanning pipeline, you already own and which would need to be added. Those decisions usually move the total more than the software does.

What drives the cost and effort of an air-gapped vLLM rollout?

Four factors drive most of the effort:

  • The accelerator plan, including GPU generation, number of nodes and whether the model needs multi-node parallelism.
  • The staging process, meaning how model weights, container images, Python packages and documentation are moved in and checked.
  • Verification, covering the checks on each transferred artifact and the tests that show the server behaves correctly with no outbound access.
  • Operator time for patching, model changes and troubleshooting after go-live.

The cost of the first three is largely one-time, while the fourth recurs. Models with large weight files, many model versions, or several teams sharing one cluster raise each factor.

How long does an air-gapped vLLM rollout take?

Duration depends on scope: how many models and hardware targets are in play, how many internal systems the server must connect to, whether a Kubernetes cluster is already in place, and how quickly your network, registry and security teams can approve changes. A single-host deployment with one approved model is a much smaller piece of work than a shared multi-node service with several tenants and an approval workflow for each model. Your written scope should show the phases and the dependencies, including the time your internal reviews need. Ask for a timeline built from those phases rather than a single overall number.

What does the work need from our teams?

The engagement depends on several internal groups being ready:

  • The network team, to define the isolated segment, confirm which outbound paths stay closed and open only the internal ports the service needs.
  • The registry owners, to host the container images and any Python packages used by the build.
  • The model approval owners, to decide which model weights and versions may enter the boundary, and to accept the file hashes used to verify them.
  • The security team, to review the transfer process, cache directory permissions and the endpoint exposure before go-live.

Identifying these owners at the start usually prevents the longest delays.

Can our own team run an air-gapped vLLM deployment in-house?

Yes, if your team has Linux, container and GPU operations experience and time to read the vLLM documentation carefully, particularly the security guidance on the API server and the cache directories. The points most often missed are offline documentation, which needs the --enable-offline-docs option, usage reporting that must be turned off, private cache locations, and the internal ports that must stay closed. A partner is useful when your team lacks GPU or air-gap experience, or when compliance evidence must be produced on a deadline. Compare your internal estimate, including the people involved, against a written scope from a partner before deciding.

How do updates to vLLM and the model catalog reach an isolated network?

Updates arrive by the same staging process used for the first install. vLLM ships new minor releases about every two weeks, so a team that wants to stay current needs a repeatable way to review release notes, rebuild or re-pull images, test the new version in a staging environment and then carry the approved artifacts across the boundary. Model updates follow the same path, with new weights verified before use. Confirm the release channel your organization will follow, because skipping releases can make later upgrades harder. Ongoing support, upgrades and continuous testing are available as DeployOpen retainers, and the scope of each retainer is agreed in writing.

What does a DeployOpen retainer cover after go-live?

DeployOpen offers ongoing support, upgrades and continuous testing as retainers. A retainer for an air-gapped vLLM service would typically be agreed around the work that recurs: staging and verifying new vLLM releases and model versions, applying changes to the internal ports and endpoint controls, reviewing the server's configuration after changes, and supporting your operators during incidents. The scope, response expectations and deliverables are written into the agreement before work starts. Ask for the exact list of recurring tasks, how changes are requested and how the retainer is priced against the fixed-scope rollout.

Does an air-gapped deployment satisfy our compliance requirements on its own?

No. An air-gapped deployment reduces exposure, but it does not by itself meet a regulatory requirement. DeployOpen prepares systems, controls and evidence for compliance assessments, while independent auditors and certification bodies issue audit reports, attestations and certifications. Requirements such as software integrity checks on packages carried across an isolated boundary, which the NERC CIP-013-2 standard addresses in its supply chain control, need to be mapped to specific steps in your process. Confirm with your assessor which controls apply to your sector before the rollout begins.

How DeployOpen scopes and delivers this work

DeployOpen is a Chainscore Labs company that plans, implements, hardens, documents and supports self-hosted open-source platforms inside the client's own infrastructure, including air-gapped networks. For a vLLM deployment with no internet access, that means the work happens in your cloud accounts, data centers or isolated enclaves, with the model weights, container images, package mirrors and cache directories staged inside your boundary. Most engagements are fixed-scope: the scope, deliverables and timelines are agreed in writing before any work starts, so the boundary, the endpoints to be exposed and the acceptance tests are fixed on paper rather than discovered during the build.

Scoping for an air-gapped vLLM server usually starts with a short set of questions the written scope has to answer: which models and versions are approved, how weights and images cross the boundary and who verifies them, which internal ports and endpoints are reachable and by whom, and what the fallback is if a dependency needs an update. Ongoing work such as vLLM version upgrades, re-importing approved model artifacts and retesting the closed-port baseline can be covered by a retainer. Ask for the quote to show which of these items are one-time and which recur, and who performs each transfer and check.

DeployOpen prepares systems, configuration, runbooks and evidence that your compliance and security teams can use in an assessment, including records of what was staged, how it was checked and which ports and endpoints were tested. DeployOpen does not issue audit reports, attestations or certifications; independent auditors and certification bodies make those determinations. Confirm with your assessor, before scoping, which evidence they will accept and in what format, so the deliverables match what they will ask to see.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.