The airgap-check tool audits AI repositories for downloads that fail offline
airgap-check flags library downloads and telemetry that break AI apps on networks without internet access.
Pointing your model URL at a local vLLM or Ollama server doesn't make an AI app ready for a network with no internet. According to the airgap-check README, many libraries fetch something on first use, such as tokenizer files, ONNX embedding weights, corpora and price maps, or send telemetry. Offline, those calls either fail or stall on retries.
The tool is published by humanethq under the MIT license, built on the Go standard library alone, and was shared on Hacker News on November 9. It works on three fronts:
- Static scan: reads manifests and lockfiles and looks for calls like
nltk.download(),from_pretrained()andtiktoken.get_encoding(). --run: starts the app in a Docker container with--network noneand logs the hosts it tries to reach.--fix: prints Dockerfile environment variables (ENV) and commands that pre-warm caches at build time.
For .env files, it classifies key names only; secret values are never read.
# static scan
airgap-check /path/to/repo
# static scan plus a Dockerfile snippet
airgap-check --fix /path/to/repo
# run in a container with no network
airgap-check --run /path/to/repo
Verdict: a good fit for teams shipping AI apps into air-gapped VPCs or hospital and defense networks. The deciding constraint is that --run needs Docker and only covers the code paths you actually exercise, so the README suggests passing a smoke test through --run-cmd.