On this page · 12 min
What air gapped AI means
An air gap is a network measure that physically isolates a system from unsecured networks such as the public internet. The Wikipedia article on air gaps describes the systems that use it, from military networks to industrial control, and the way data crosses on physical media such as USB drives. Air gapped AI applies the same idea to a model and the software around it. Inference, retrieval and the agent's tools all run inside the boundary, and nothing calls out.
The difference from a vendor promise matters for buyers. Encryption, a SOC 2 report and a data processing agreement are promises about behaviour. An air gap is a fact about the network: if there is no route, data cannot leave, whatever anyone intends. Defence, government, banking and health teams are the usual reasons to need that guarantee. This article is for the self-hosted and BYOC buyer who has to show it to them.
What counts as "outside" for an agent
An agent is not a database. A database answers queries from inside a system. An agent decides its next step, and each step can reach a new host. Take a coding agent on a self-hosted cluster, asked to fix a failing test. It installs a package from a public index. On its first use, the inference library downloads a tokenizer from a model hub. It calls an external API for one tool, and the platform sends a telemetry report. None of this is malicious, and each one is a route out. Each is also easy to miss when the architecture diagram shows only the model.
Vendor guidance describes the same pattern. The Airbyte guide says hidden dependencies, such as tokenizer downloads and telemetry calls, often break after launch, and that runtime calls to outside APIs create data crossings nobody approved. It recommends copying the context the agent needs into the boundary in advance.
So split "outside" into three paths:
- The model: the weights arrive once, as a file you check. The agent must not call a hosted model at runtime.
- The tools and dependencies: packages, container images, tokenizers (the files that split text into the units a model reads), plugins and any outside API the agent calls. Each needs a mirror inside the boundary or an approved path.
- The platform: control-plane updates and telemetry. Read your platform's documentation for what it sends out, how often, and how to turn it off.
On-prem, BYOC and cloud: what the words mean
These terms get mixed up, so here is what each one means for where the data and the model run.
- On-prem means you own the hardware and run the software on it, in your own data centre or on your own servers.
- BYOC, bring your own cloud, means the vendor operates the platform inside your cloud account. The data and compute sit in your account, but the vendor's operators manage the platform, so it needs a control path back to them.
- Cloud means the vendor runs the platform in its own account, and your data lives in the vendor's infrastructure.
"On-prem vs AWS" is really the question of whether you run the platform on hardware you control, or rent it from AWS inside your own account. This reader usually wants on-prem or BYOC. A hosted cloud service is outside the question, because the data leaves your network by definition.
The model runs inside, with three trade-offs
Running a model inside your boundary means open-weight models on your own GPUs, with an inference server you operate. Open-weight models publish their trained weights so you can run them yourself. Three trade-offs decide whether that works for you.
Capability comes first. A local model is generally less capable than the largest hosted models, and the gap is real for open-ended reasoning, as a vendor writing on local deployment points out. For bounded agent work, such as triage, code review inside one repository or extracting fields from documents, a smaller local model is often enough. Test it on your own tasks before you commit, rather than trusting a public leaderboard.
Licences come next. Open-weight licences differ: some are permissive, and others add conditions on commercial use or attribution. The Airbyte article says the same. Read the licence that ships with each model you pick, and keep a copy with your records.
Hardware cost comes last. Idle GPUs cost money, and in-boundary capacity pays off only at high, sustained utilisation. Size the hardware from a pilot: count the agents you expect to run at once and the tokens each one generates per hour, then size for the peak, not the average.
The three options
Only the first option is air-gapped. The other two keep a path out on purpose, under control. On boxd, each machine is its own microVM with its own kernel, so one agent's code cannot see another machine's kernel. That isolation is the same whichever option you pick, because it comes from the machine boundary, not the network.
| Fully air-gapped | Self-hosted, controlled egress | BYOC | |
|---|---|---|---|
| Where data and model run | Your hardware, no network route | Your cloud or bare metal | Your cloud account, operated by the vendor |
| Outbound path | None | A short list of named hosts | A control path back to the vendor |
| Updates | Signed offline packages | Pulled through the allowlist | Managed by the vendor over the control path |
| Who runs it | Your team | Your team | The vendor, inside your account |
| Main cost | Manual transfers and slower patching | Keeping the allowlist correct | Approving the control path |
Fully air-gapped
Nothing goes out, and everything comes in as approved media: model weights, packages, container images and security fixes. A vendor describing its own air-gapped deployments, in its own words, says the customer's security team validates each signed package and promotes it through change management. The trade-off is timing: you may not get the newest model the day it ships. This is the only option that removes the network path entirely.
The costs are the ones the Wikipedia article lists: manual transfer, software that does not update itself, and side channels. Coder documents that all of its features work in air-gapped or offline deployments, so a workspace platform can fit this option. Its isolation depends on how each workspace is built, since a workspace can be an EC2 VM, a Kubernetes pod or a Docker container. Check that against your own threat model.
Self-hosted with controlled egress
You run the platform and the models in your cloud or on bare metal, and allow a short list of hosts out. The list is the part you have to design, and each entry needs a reason. Typically it holds your internal package mirror and your update server. Enter each one by name or address, and add nothing you cannot justify.
The platform itself may need an entry. A self-hosted boxd cluster sends one usage report an hour, with counts only, so that is an outbound path to put on the list or to switch off. A licence key with telemetry opt-out turns it off. Check the setting before go-live, because a telemetry call you did not plan for is exactly the leak this option is meant to prevent.
This option suits a team whose security staff can name every outbound host and test that the rest are blocked. E2B documents self-hosting through a Terraform guide for AWS, Google Cloud, Azure or a general Linux machine. The work is in the cloud setup, so budget for it, and plan the allowlist before the first deployment.
BYOC
The vendor operates the platform inside your cloud account, so your data and compute stay where your policy puts them, and your team does not run the control plane. The catch is the control path back to the vendor, which your security team has to approve. E2B's BYOC runs sandboxes in your AWS, Google Cloud or Azure VPC, on its Enterprise plans. Ask any vendor exactly what the control path carries, because that is the part your policy must cover.
How to choose
Each option has a rule:
- Fully air-gapped, when a rule or classification requires disconnection. The Airbyte article names DoD IL6, which covers classified work up to SECRET, as the clearest case, and says an authorising authority decides it. It also says most rules it surveys, including HIPAA, GDPR, DORA and the EU AI Act, focus on governance, data location and concentration risk rather than disconnection. That is one vendor's reading. Check it with your own counsel before you buy hardware.
- Controlled egress, when you can name every outbound host and show the others are blocked with the test below.
- BYOC, when you want a vendor to run the platform but the data has to stay in your account. Get your security team to sign off on the control path first.
For the self-hosted case, the reasons that matter are concrete. boxd is one Rust binary, with no Kubernetes, external Postgres or Redis to run, so there is nothing else to install before the platform runs. A self-hosted cluster deploys in 30 to 60 minutes, on Google Cloud, AWS or bare metal. Air-gapped installs and BYOC are available on request.
Before you rely on it, check one number against your plan. Self-hosting is free up to 16 worker vCPUs, and a licence lifts that limit, so count your workers against it.
Test the boundary before you buy hardware
Airbyte recommends a default-deny egress test before any hardware is bought. Run it from the machine or namespace where an agent will run:
- Block all outbound traffic except the hosts you have approved.
- From inside, try to reach a public host you did not approve, by name and by raw address:
curl -fsS --max-time 5 https://huggingface.co -o /dev/null; echo "exit $?"
curl -fsS --max-time 5 https://1.1.1.1 -o /dev/null; echo "exit $?"The -f flag makes an HTTP error count as a failure, so only a full, successful response exits 0. Exit 0 on either line means that machine has a route out, and you should find it before go-live. Exit 6 means the name could not be resolved, exit 7 means the connection was refused, and exit 28 means it timed out. Each of these shows the route is closed. Exit 22 means a server answered with an HTTP error, which is a route to investigate, not a closed one.
One refused request shows the path is closed for that host, not that no route exists anywhere. Repeat the test for the other ways out your network allows, such as another port, and check the firewall logs for blocked attempts during a real run.
- Next, run the agent's real tasks, not a hello-world. Hidden dependencies show up on the first call that uses them: a tokenizer, a package or a telemetry ping.
- Then copy in everything the agent needs, through your approved media. Pre-staging is safer than letting the agent fetch them at runtime. Before a weight file goes inside, check it against the SHA-256 checksum the publisher lists, and verify its signature where one is published.
- Last, give each agent's machine a delete-after timer, so a run that hangs does not leave a machine behind. For example,
boxd machine new agent-1 --delete-after=2hcreates a machine namedagent-1that deletes itself two hours later, whatever state it is in. Copy results out first. When the timer fires, the disk and everything on it are gone, so move outputs to storage inside your boundary before the timer runs out. The command reference lists the other flags.
What an air gap does not fix
An air gap removes a network path. It does not remove people or media. The Wikipedia article lists the usual failures: malware carried on USB drives, as with Stuxnet and Agent.BTZ; insiders and social engineering; and side channels, such as acoustic or thermal leaks shown by researchers between 2013 and 2020. Air-gapped systems also do not patch themselves, so a lapsed update routine leaves vulnerable software running.
Plan for each one. Control and log removable media, restrict who can carry data across the gap, and keep a dated schedule for the offline packages, so an update is never skipped by accident.
The decision
- If nothing may leave, ever, go fully air-gapped, and show there is no route with the test above.
- If something may leave, to a few named hosts, self-host with controlled egress. The allowlist is the list you can defend in an audit. boxd's self-hosted cluster is one option for this, and it runs without Kubernetes.
- If everything must sit in your cloud account but a vendor runs it, choose BYOC, once your security team has approved the control path.
- If data may leave your network, this is a hosted question, and this article is not the answer to it.
If you are weighing self-hosting or BYOC for agents, talk to us, and we will go through your boundary with you.
Frequently asked
- What does air-gapped AI mean?
- Air-gapped AI runs the model, the agent's tools and the platform inside a network boundary with no route to the internet, so nothing the agent does leaves that boundary. If the agent can still reach an outside host, the setup is controlled egress instead.
- Can AI be deployed on premise?
- Yes. You can run open-weight models on your own GPUs, with an inference server you operate. Local models are generally less capable than the largest hosted models, and the gap is real for open-ended reasoning, so test a local model on your own tasks first.
- What is the difference between on-prem and BYOC?
- On-prem means you own the hardware and run the software on it. BYOC means a vendor operates the platform inside your own cloud account, so the data stays in your account, but the vendor still needs a control path back to it.
- How do I test that an agent has no route out?
- From the machine where the agent runs, try to reach a public host you did not approve, for example with curl and a short timeout. The request should fail with a DNS error or a timeout. Run the agent's real tasks too, because tokenizers, packages and telemetry calls often only appear on first use.



