AI Infrastructure

Air-Gapped AI: How to Deploy AI Agents in Restricted Networks

How defence, intelligence, and critical-infrastructure organisations deploy AI agents in air-gapped and restricted networks — architecture patterns, model selection, update strategies, and governance without cloud connectivity.

Air-gapped AI means running AI systems, including language models, retrieval indexes and agents, on infrastructure with no network path to the internet or any external network, with model weights and software updates carried across the gap only through a controlled, human-approved transfer such as scanned removable media. Prompts, documents and outputs never leave the perimeter.

Most enterprise AI conversations assume the internet is available. Cloud APIs, SaaS dashboards, hosted vector databases, managed inference endpoints — the entire modern AI stack presupposes connectivity. But a significant number of organisations operate in environments where connectivity is not available, not permitted, or not safe.

Defence agencies. Intelligence services. Nuclear facilities. Power grids. Financial trading floors with regulatory isolation requirements. Classified government programmes. These environments run air-gapped or restricted networks where no data path to the public internet exists by design.

The question for these organisations is not whether AI is useful — it clearly is — but whether AI can be deployed without violating the isolation constraints that define their security posture.

The answer is yes, but the architecture looks different from what most AI platform vendors describe.

The three isolation patterns, and what each changes:

PatternConnectivityModel updatesTypical environments
Fully air-gappedNone, by designVerified physical media on a batch cadenceClassified defence and intelligence networks, nuclear facilities
Diode-restrictedOne-way inbound via data diodeStaged on the low side, pushed through the diodeCritical infrastructure OT networks, SCADA environments
Restricted egressOutbound blocked to general internet; internal routes allowedInternal artifact registry, mirrored releasesTrading floors, sovereign government clouds, air-gapped LLM programmes

What is air-gapped AI?

Air-gapped AI is an AI deployment whose network has no route to the outside world, so every model call, retrieval query and agent action is served by hardware inside the boundary. The term comes from security engineering. The CNSSI 4009 definition, reproduced in the NIST Computer Security Resource Center glossary, describes an air gap as an interface where two systems are not physically connected and any logical connection is not automated, so data crosses only by hand, under human control.

Two consequences follow for AI. Nothing in the stack may depend on a hosted service: no cloud model API, no managed vector database, no licence server and no telemetry endpoint. And under that strict reading, a network fed by an automated one-way data diode counts as restricted rather than air-gapped, even though many programmes still call it air-gapped; the table above lists the two separately.

Air-gapped vs on-prem vs private cloud

The three terms describe how far a deployment is cut off, and buyers often use them interchangeably. On-premises AI runs on hardware you own in your own facility, but it normally keeps an outbound route for package mirrors, model downloads or vendor licence checks. Private cloud, in the NIST SP 800-145 definition, is cloud infrastructure provisioned for one organisation’s exclusive use; a third party may own and operate it, and it may sit on or off premises. Air-gapped AI removes the route out altogether.

Air-gapped AIOn-premises AIPrivate cloud AI
Where it runsAn isolated network in your own facilityYour data centre, on hardware you ownCapacity reserved for you, run by you or a provider
Route to the internetNoneUsually yes, through your firewall and proxiesYes, limited by tenancy and network controls
How models and patches arriveManual, approved transfer, verified on both sidesInternal mirror or direct vendor downloadProvider registry or your own pipeline
Hosted dependencies allowedNone: no licence callbacks, telemetry or cloud APIsSome, where policy allowsMost, within the contract
Typical usersDefence, intelligence, critical-infrastructure OT, classified researchRegulated enterprises keeping data in-houseTeams that want dedicated capacity without running hardware

The practical test is short. List every outbound connection your AI stack makes, then ask which of them your security policy allows. If the answer is none, you need an air-gapped design: our offline LLM serving guide covers getting weights into the enclave and proving what they are, and the enclave agent tooling notes cover connecting agents to the ticketing, document and build systems already inside. If some egress is acceptable, a connected build along the lines of the on-prem AI reference architecture is easier to operate.

Who needs it comes down to whether any route out is permitted. Defence and intelligence networks, operational technology in power, water and telecoms, classified or export-controlled research, and security teams that ban outbound traffic outright all land here; the full list is under who needs air-gapped AI. US defence contractors deciding where controlled unclassified information (CUI) may be processed can start with our guide to AI tools under CMMC.

What “air-gapped” actually means for AI

An air-gapped network has no logical or physical connection to the internet. A restricted network may have controlled, one-way connections (typically via data diodes) but still prohibits outbound data transfer to general-purpose cloud services.

For AI deployments, this creates several hard constraints:

  • No API calls to hosted models. OpenAI, Anthropic, Google, and other cloud inference endpoints are unreachable. Every model must run on local hardware.
  • No cloud-hosted vector databases. Pinecone, Weaviate Cloud, and similar services are unavailable. Retrieval-augmented generation (RAG) requires a locally deployed vector store.
  • No continuous model updates. Model weights cannot be pulled from a registry. Updates follow controlled-media transfer processes.
  • No telemetry exfiltration. Usage data, performance metrics, and logs stay inside the perimeter. Observability must be entirely self-contained.
  • No external tool access. AI agents cannot browse the web, call external APIs, or access SaaS platforms. Every tool an agent uses must exist within the network boundary.

These are not limitations to work around. They are security requirements to design for.

The air-gapped AI stack

A working air-gapped AI deployment has the same logical layers as a cloud-connected one, but every component must run locally.

Inference layer. Open-weight models — Llama 3 and 4, Mistral, Phi, Qwen, DeepSeek, Command R, and others — served via local inference engines such as vLLM, TGI, or llama.cpp. GPU servers (NVIDIA A100, H100, or L40S) provide the compute. For latency-sensitive or resource-constrained tasks, smaller models (1B–7B parameter SLMs) run on CPU or modest GPU hardware.

Embedding and retrieval layer. Locally deployed embedding models (e.g. BGE, E5, GTE, or Nomic) paired with a self-hosted vector database — Qdrant, Milvus, Weaviate (self-hosted), or pgvector. Document ingestion, chunking, and indexing all happen within the perimeter.

Agent orchestration layer. A platform that coordinates multi-step agent workflows, routes tasks to the appropriate model, manages tool invocations, enforces policies, and maintains execution traces. This layer must operate without any external dependencies.

Data connector layer. Connectors to internal systems — databases, file shares, SharePoint (on-prem), internal wikis, SCADA/OT systems, classified document repositories — that agents use as knowledge sources or action targets.

Governance and audit layer. Immutable logging of every prompt, model response, tool invocation, and human approval. Local SIEM integration. Access controls. Policy enforcement. All running on infrastructure inside the air gap.

Model selection for air-gapped environments

Cloud-connected enterprises can route tasks to the best available model — a large frontier model for complex reasoning, a smaller model for simple classification. Air-gapped environments must pre-position every model they intend to use.

This makes model selection a procurement and architecture decision, not a runtime API call.

Practical considerations:

  • Licence terms matter. Some open-weight models have usage restrictions (e.g. Meta’s Llama community licence). Defence and government use cases must verify licence compatibility before importing model weights.
  • Model size drives hardware. A 70B parameter model requires substantial GPU memory. Air-gapped environments may not have unlimited hardware budgets, so the model portfolio must balance capability against available compute.
  • Specialist models earn their place. Rather than relying on a single general-purpose LLM, air-gapped deployments often benefit from a portfolio: a capable general model (30B–70B) for complex tasks, several smaller specialist models fine-tuned for domain-specific work (classification, entity extraction, summarisation), and lightweight embedding models for retrieval.
  • Quantisation extends reach. 4-bit and 8-bit quantised models can run on significantly less hardware with acceptable quality loss for many tasks. GPTQ, AWQ, and GGUF formats are commonly used in disconnected deployments.

The key insight is that model routing — directing each task to the right model — becomes more valuable, not less, when compute is constrained and models cannot be swapped at will.

The update problem

In a cloud-connected environment, switching to a new model version is an API configuration change. In an air-gapped environment, every model update is a controlled transfer event.

A typical update cycle:

  1. New model weights, patches, or configuration files are identified on the unclassified side.
  2. Artefacts are scanned, verified, and staged in a transfer preparation environment.
  3. A cross-domain solution (data diode, verified removable media, or an approved transfer mechanism) moves the artefacts into the classified network.
  4. The artefacts are verified again on the classified side — checksums, integrity validation, security scanning.
  5. Models are loaded into the inference layer, tested against validation suites, and promoted to production.

This process is inherently batched. Air-gapped AI deployments do not get daily model updates. Most operate on monthly or quarterly update cadences, with emergency updates following an expedited transfer process.

Implications for platform design:

  • The orchestration layer must handle model versioning gracefully — running multiple model versions simultaneously during transition periods.
  • Validation and regression testing suites must exist inside the air gap, so new models can be evaluated before production promotion.
  • Rollback must be straightforward. If a new model version degrades performance, the previous version must remain available.

Agent design for disconnected operation

AI agents in air-gapped environments face a fundamental constraint: they cannot reach external resources. Every tool, every knowledge source, every API an agent calls must exist within the network perimeter.

This changes agent design in several ways:

Tool inventories are fixed. The set of tools available to agents is defined at deployment time. Adding a new tool requires a configuration update through the controlled transfer process. Agents must degrade gracefully when a task requires a capability that is not available.

Knowledge is bounded. RAG systems draw from locally ingested document collections. There is no web search fallback. The quality of agent responses depends entirely on the quality and completeness of the local knowledge base. Document ingestion pipelines — covering internal wikis, classified document repositories, operational databases — become critical infrastructure.

Human-in-the-loop is not optional. In classified and critical-infrastructure environments, autonomous agent actions typically require human approval above a defined risk threshold. The agent orchestration layer must support configurable approval gates that do not depend on external notification services.

Latency profiles differ. Without network round-trips to cloud APIs, local inference can actually be faster for many tasks. But hardware constraints may create bottlenecks — a single GPU cluster serving multiple agent workflows needs careful capacity planning and request queuing.

Governance without the cloud

Enterprise AI governance platforms increasingly assume cloud connectivity for dashboards, alerting, and compliance reporting. Air-gapped deployments need all of this to work locally.

What governance looks like inside the air gap:

  • Audit logs stored in tamper-evident local storage, integrated with the facility’s SIEM.
  • Access controls managed through the facility’s identity provider (often Active Directory on an isolated domain).
  • Policy enforcement at the orchestration layer — data classification rules that prevent certain document types from being used in certain agent workflows.
  • Compliance documentation generated locally and exportable through approved transfer mechanisms for external review.
  • Model cards and decision documentation maintained locally for each deployed model, recording provenance, evaluation results, and known limitations.

For organisations subject to the EU AI Act, the documentation and traceability requirements must be met with locally generated evidence. The ability to produce compliance artefacts without cloud tooling is a non-negotiable requirement for air-gapped deployments in European defence and critical infrastructure contexts.

Who needs air-gapped AI?

Air-gapped AI is for organisations whose network has no route to the internet by design: defence and intelligence, critical national infrastructure, classified government programmes, and regulated banking or healthcare environments where a classification rule forbids egress. VDF AI ships into them as container images pulled once and run entirely offline. The organisations deploying AI in air-gapped and restricted networks include:

  • Defence and intelligence agencies operating on classified networks (e.g. SIPRNet, JWICS, or national equivalents) — see the government & defense solution and the government executive brief.
  • Nuclear facilities where regulatory frameworks mandate physical network isolation.
  • Critical national infrastructure — power grids, water systems, telecommunications backbone — where operational technology networks are isolated from IT networks.
  • Financial institutions with trading floor isolation requirements or regulatory mandates for data processing locality.
  • Government programmes handling sensitive but unclassified (SBU) data under strict data handling rules.
  • Research facilities working with export-controlled or ITAR-restricted data.

For all of these, cloud AI is not a viable option. The question is whether they deploy AI on their own terms or do not deploy AI at all.

What to look for in an air-gapped AI platform

Not every AI platform can operate in a disconnected environment. Many have hard dependencies on cloud services — licence validation servers, telemetry endpoints, managed model registries, cloud-hosted dashboards.

An air-gapped-capable AI platform must:

  • Run entirely on local infrastructure with zero outbound network dependencies.
  • Support open-weight models served on local GPU or CPU hardware.
  • Include a local vector database and document ingestion pipeline.
  • Provide agent orchestration with local tool registries and policy enforcement.
  • Generate audit logs, compliance documentation, and governance reports without cloud connectivity.
  • Support controlled update mechanisms — model imports, configuration changes, software patches — through approved transfer processes.
  • Integrate with local identity providers and security infrastructure.

VDF AI is designed as a sovereign, on-premises AI platform that meets these requirements. The entire stack — model serving, agent orchestration, RAG, governance, and observability — runs within the customer’s infrastructure with no external dependencies. The air-gapped LLM deployment guide covers the inference layer in detail, and the air-gapped enterprise chatbot guide covers the assistant pattern on top of it.

For organisations operating in air-gapped and restricted environments, this is not a feature. It is the baseline.

Frequently asked questions

What is an air-gapped AI deployment?

An air-gapped AI deployment runs AI models, agents, and supporting infrastructure on a network that has no direct connection to the public internet. Data, model weights, and updates are transferred through controlled physical media or one-way data diodes. This architecture is used in classified government environments, defence networks, critical infrastructure, and any context where data must never leave a physically isolated perimeter.

Our security team forbids outbound traffic. Can we still run AI?

Yes. Every layer of a working AI stack can run inside the perimeter: open-weight models such as Llama, Mistral or Qwen served with vLLM or llama.cpp on your own GPUs, a self-hosted vector database for retrieval, and an agent platform with no licence callbacks or telemetry. Model weights and patches enter through the approved transfer process you already use for other software. What you give up is anything that needs the internet, such as web search or SaaS connectors, so agents work only over the data and tools you bring inside.

Can an air-gapped LLM be updated?

Yes, in planned batches rather than continuously. New weights, tokeniser files and serving patches are downloaded and scanned on the connected side, checked against the publisher's checksums, carried across on approved media, verified again inside, and then run against your own evaluation set before promotion. Keep the previous model version loaded until the new one passes, so rolling back never waits for another transfer. Plan a faster path for urgent security fixes as well.

What governance is needed for air-gapped AI agents?

Air-gapped AI agents need the same governance as any enterprise AI deployment — audit logging, human-in-the-loop controls, access-based permissions, and decision traceability — but with the added constraint that all governance infrastructure must also run locally. This means on-premises logging, local SIEM integration, and offline-capable compliance reporting.

Can an AI ops assistant run in an air-gapped environment?

Yes, provided every component it depends on runs inside the perimeter: a locally served model, a self-hosted vector index over your runbooks and telemetry, connectors to internal monitoring systems, and local audit logging. What it loses is live internet knowledge — an air-gapped ops assistant reasons only over the documentation and system state you import through the controlled update path.

Which data platforms support AI agents on classified or air-gapped national-security data?

The pattern is a fully self-hosted stack: a vector database you operate (Qdrant, Milvus, or pgvector), locally deployed embedding models, connectors to on-premises repositories, and an agent platform with zero outbound dependencies — the deployment model VDF AI is built for. Cloud-managed data platforms are excluded by definition; anything with licence-validation callbacks, telemetry endpoints, or managed registries fails the import review.

Filed under
air-gapped AIon-premise AIrestricted networksdata sovereigntyAI governanceenterprise AIsecure AIAI infrastructure
On-Prem AI

Plan your on-prem AI deployment

Book an architecture call and we will scope a private, on-prem AI deployment for your environment — integrations, hardware, and governance included.

Keep reading