esc
  • WorkflowsPages
  • Case studiesPages
  • Machine Learning FoundationsLearn
  • AI EngineeringLearn
  • AI Guardrails & Red TeamingLearn
  • UI/UXLearn
  • Design SystemsLearn
  • Production System DesignLearn
  • AI papersPages
  • Interview KitPages
  • Book a callContact
Let’s talk

I’ll build the agent for it.

How Do You Deploy Into a Customer VPC, On-Prem or Air-Gapped?

How to run an AI system inside a customer's private cloud, on their own servers, or in a network with no internet, for your AI interview.

In short

You start by asking whether the customer's network can reach the internet and who holds the servers and keys. Then you package the model and code so they run with no outside calls, and bring updates in by a checked route.

12 min readAdvancedCommon · estimateFacts checked 27 November 2026

Say it out loud

Read it once, then say it without looking. Start with the short one; use the long one when they ask you to go deeper.

I'd start by asking whether the customer's network can reach the internet, and who owns the servers and keys. That picks the setup: a private link inside their cloud, my software on their servers, or an air-gapped site with no route out. For air-gapped sites, I fetch every file on a connected machine, carry it across on their approved route, and check each file's fingerprint before anything starts. Then I test with the network cut, because hidden downloads are what break.

What does deploying into a customer's network mean, in plain words?

Most AI products run on the company's own cloud. A customer with strict rules often says the data and the model must stay inside their network. A customer VPC is a private part of the customer's cloud account, with no public entry point. On-prem means servers the customer owns, in their own buildings. Air-gapped means a network with no route to the internet at all.

Think of a bank's fraud-review room. Its computers sit on their own network with no line out. A visiting engineer can carry a tool in on an approved drive, but the room cannot fetch anything from outside while they work. An AI system going into that room has to bring everything it needs with it.

A real case: a mid-size insurer wants a model that summarises customer claim files. Its security team says no file, log or prompt may leave the building. So the team must build something that runs there, starts without the internet, and gets updates through a controlled route.

Key words

VPC (virtual private cloud)
A private network inside a customer's cloud account, with no public entry point.
On-prem
Short for on-premises: servers the customer owns and runs in its own buildings.
Air-gapped
A network with no route to the internet or to other outside networks.
Model weights
The learned numbers stored in a model's files. Copying the files copies the model.

Which setup does the customer need?

Ask two questions first: can this network reach the internet, and who owns the servers and the keys? The answers pick the setup.

  • Customer VPC

    Private link inside their cloud

    Your model runs inside their cloud account, or a managed service is reached through a private endpoint (for example AWS PrivateLink) with no public gateway.

  • On-prem

    Your software on their servers

    You ship containers and a deployment recipe. They run it on their own machines and hold the keys.

  • Air-gapped

    No link to the outside

    Everything is carried in on approved media. Nothing can call home, so every update is a planned transfer.

A cloud's private link works like this, as AWS describes its own service:

  • “You can access Amazon Bedrock as if it were in your VPC, without the use of an internet gateway, NAT device, VPN connection, or Direct Connect connection.”

    AWS, Amazon Bedrock documentation

  • “Air-gap deployment lets you run a NIM without an internet connection, for example, with no connection to remote model registries such as NGC or Hugging Face Hub.”

    NVIDIA, NIM (its model server) documentation

The customer's security team will also ask whether data can leave. Google's version of that control is a perimeter: a fence around chosen services. Inside it, data can move; a copy command aimed outside the fence is refused.

How does an air-gapped deployment go, step by step?

The transfer is the hard part, so plan it before you write code. NVIDIA's guide for its own model servers splits the work into two phases: one on a connected machine, one on the isolated machine. The same shape works for any model.

Moving a model into an air-gapped site

Connected side

Download model files

needs internet, done once

Write the hash list

one fingerprint per file

Approved transfer

the customer's own route

Isolated side

Check file hashes

refuses to start on any mismatch

Run the container

no outbound network, no keys

Serving local users

data never leaves the site

  1. 1Model files are copied onto the approved transfer.
  2. 2The hash list travels with them.
  3. 3The files are carried across and checked again on arrival.
  4. 4Every hash is checked first, and any mismatch stops the start.
  5. 5The model starts, and users reach it on the local network only.
Files are fetched on a connected machine, carried across on an approved drive, and checked before the model starts. After that step, nothing needs the internet.
  1. 1

    Read the network rules first

    Ask what is blocked, which addresses are reachable, and who approves a transfer. Write it down before any build.

  2. 2

    Pack everything the model needs

    Model files, container images (packaged copies of the software), config, licence texts and a hash list. A hash is a fingerprint: change one byte and it no longer matches.

  3. 3

    Carry it across an approved route

    Use the customer's own transfer process. Don't invent a shortcut to save a day.

  4. 4

    Check before you start

    The start script compares every file with the hash list and refuses to run on any mismatch.

  5. 5

    Start with no outside access

    Run with no traffic going out to the internet and no API keys. NVIDIA's guide says to leave the keys out in that phase.

  6. 6

    Plan the next update

    Each new model or fix repeats the whole route, with a test on the isolated side. Updates are slow, so batch them.

What quietly breaks when the internet is gone?

The usual failure is a call the team forgot. A model library tries to fetch files on first start. A licence check phones a server. A dashboard loads a font from a public network. The app works on a laptop and hangs at the customer's site.

Hugging Face, the model hub many teams use, documents its own offline mode, and says:

  • “To use Transformers in an offline or firewalled environment requires the downloaded and cached files ahead of time.”

    Hugging Face, Transformers documentation

So the files must be cached before the cut, and the library must be told to stay off the network. The same guide describes a switch that stops the library making web calls when it loads a model.

Where an offline start goes wrong

With internet

Fetch weights at start

pulled from a model hub

Air-gapped

Same start, no internet

the same fetch has no route

Starts and serves

looks fine in the demo

Hangs or crashes

no weights, no answers

Ship and hash the files

loads only from local disk

  1. 1With internet, the start pulls the files and works.
  2. 2Without it, the same start has no route and fails.
  3. 3The fix is to ship the files and load them from local disk.
The same start works online and fails offline, because it still reaches for files on the internet. The fix is to ship the files and load them from local disk.

Tip

Test the build with the network cut before the customer does. Start everything once in a test machine with no route out, and read every error.

How would this work for a claims assistant at a made-up insurer?

Harbor Mutual is a made-up insurer. It wants an assistant that summarises claim files for its adjusters. Its rules are strict: no file leaves the building, nothing calls the internet at runtime, and any update waits for a two-week security review.

The team serves an open model with vLLM, an open-source model server, on a few servers in its own data centre, each with graphics chips (GPUs) that run the model. The project's own page lists an OpenAI-compatible API server among its features, so the app keeps calling a local address that speaks the same API.

The hard part is the paperwork around the model: which files arrived, whether they match, and what happens when one does not. The sketch below does that check. It is a simplified start script, not the real one.

Python
# Files copied across the air gap, and the hash list signed off on the connected side.
import hashlib

def sha(data: bytes) -> str:
    return hashlib.sha256(data).hexdigest()[:12]  # shortcut: 12 hex characters for the demo, use the full SHA-256 in a real manifest

BUNDLE = {
    "model-00001.safetensors": b"stand-in-shard-bytes",
    "config.json": b'{"model_type": "demo", "rope_theta": 1000000}',
}
MANIFEST = {name: sha(data) for name, data in BUNDLE.items()}

def preflight(received: dict[str, bytes], manifest: dict[str, str]) -> str:
    for name, expected in manifest.items():
        if name not in received:
            return f"STOP: {name} is missing"
        if sha(received[name]) != expected:
            return f"STOP: {name} changed in transit"
    return "OK: all files match the manifest"

print(preflight(BUNDLE, MANIFEST))
tampered = dict(BUNDLE, **{"config.json": b'{"model_type": "demo", "rope_theta": 10000}'})
print(preflight(tampered, MANIFEST))
partial = {"config.json": BUNDLE["config.json"]}
print(preflight(partial, MANIFEST))

Output

OK: all files match the manifest
STOP: config.json changed in transit
STOP: model-00001.safetensors is missing

Run it on a laptop with the network off and you get the same answer every time. The lesson: a start script should stop when it is unsure.

What does the interviewer want to hear?

A strong answer covers

  • A plain split: customer VPC, on-prem and air-gapped, and what each one allows.
  • The two questions that pick the setup: can it reach the internet, and who holds the keys.
  • Everything the model needs travels with the product, checked by hash.
  • A hunt for hidden outside calls, and a test with the network cut.
  • Updates follow the same route, so you plan them early.
  • Honesty about what the setup cannot do, such as features that need the vendor's cloud.

Common traps

  • Trap"Just give them the API key and call our cloud."

    BetterAn air-gapped site has no route out. The model and its runtime must live inside their walls.

  • Trap"It downloads the model on first start, so it's fine."

    BetterThat fails with no internet. Ship the files, check them, and load them from local disk.

  • Trap"One build works everywhere."

    BetterThe code can be the same, but each setup needs its own packing and transfer plan.

Can you spot the outside call?

Spot the outside call

Your team is starting an air-gapped model server. Which startup line breaks the air-gap rule?

Quick check

An air-gapped customer needs a new model version. What is the right first step?

Can you answer these from memory?

Flash cards · tap a card to flip it

1 / 6

What will they ask next?

  1. Q336Hosted API vs self-hosted open weights for an enterprise?11 min
  2. Q388How do you measure business impact and ROI?12 min
  3. Q385How do you prototype in days?11 min
  4. Q201What is prompt injection?12 min
  5. Q202Direct vs indirect prompt injection?10 min
  6. Q391After a month, how do you prove it's not just a demo?12 min

Learn it in depth

Last updated on 27 November 2026

Deploying an AI product into a customer's own network?

I design and build AI products and agents, including the setup that runs inside a customer's network. Book a short call, tell me which setup you need, and say what is allowed to reach the internet.