Using AI coding tools on an air-gapped network
Updated
Most AI coding tools send your code to a cloud model and wait for a response, so they stop working the moment the network is air-gapped. Defense contractors, government research institutes, and public agencies with network separation often ask the same question: can we use AI coding tools without opening a connection to the internet? This guide covers what breaks, what still works, and how we actually verified it.
What breaks on an air-gapped network
- Cloud AI services. Claude, ChatGPT, GitHub Copilot, and similar services that send requests to a server over the internet stop working the moment the connection is cut.
- Login-based license checks. Any licensing scheme that calls home over the internet every time the app runs also breaks without a connection.
- Auto-update and remote sync. Anything that reaches outside the network, including update checks and cloud sync, stops as well.
What still works
There are two ways to use AI for coding without internet access.
- An in-house inference server. Run an inference engine such as vLLM, SGLang, or Ollama on an internal GPU server, and load an open-weight model (Qwen, Devstral, etc.) on top. Code and requests never leave the internal network.
- A local model on each PC. On a PC with enough memory, Ollama or LM Studio can run a small model directly. This suits lighter work like small edits or writing commit messages.
Licensing can also work without any internet check. A single signed license file (.moalicense) is registered locally: only its signature and expiry are checked on the spot, with no server call. MoaEditor signs licenses with ECDSA P-256, which is on Korea’s KCMVP list of verified cryptographic algorithms.
What we actually verified
Saying something “works” and verifying it are different things. We tested the following in a physically air-gapped environment (network actually cut, using two separate network namespaces):
- Setup through to assembling the AI organization (lead, manager, staff, intern) completes end to end with no internet.
- A single in-house server (vLLM or Ollama) is enough to assemble the whole organization.
- A real coding task (fixing a bug and adding a test) completes end to end with no internet. Even a smaller model (around 9B, a 12GB-class GPU) finished a simple task from start to finish.
- Registering a signed license file updates the organization name and seat count on screen, and that persists after restarting the app. A tampered file with a mismatched signature is rejected with a clear error and leaves the existing state unchanged.
Small local models can occasionally misfire on tool calls when acting as the lead or manager role, which plans and splits work. For complex tasks we recommend a larger model (24B–27B class) or whatever large model you already run in-house. See Building an in-house AI coding server with Ollama for which model fits which GPU.
What to prepare before adopting it
- An in-house GPU server (the customer installs the GPU driver)
- A choice of inference engine: Ollama installs with nothing more than a GPU driver, while vLLM needs the CUDA toolkit and python3-dev
- Windows 10/11 (64-bit) or Linux (x64) PCs for staff; 16GB of memory or more if local models will also run on those PCs
We help with both air-gapped installation and building the in-house AI server. See Enterprise, schools, and public institutions for what’s included and pricing.