Air-gapped installs
Install twins on a network with no internet, from one bundle that carries every image across.
Install twins on a network with no internet, from one bundle that carries every image across.
Runs on
Docker Compose · Kubernetes · private networks on AWS, Google Cloud and Azure
You need
A machine with internet to make the bundle, and Docker 28 or later there
Bundle
Every image, the Compose file, its settings example and the chart, with a SHA-256 checksum
Watch out
A bundle carries one platform. Pick it with PLATFORM (default linux/amd64).
deploy/airgap.sh carries everything across in one file: every image the Compose file and the Helm chart run, the Compose file and its settings example, and the chart.
Prerequisites
A machine with internet, to make the bundle.
Docker 28 or later on it, for
docker save --platform. An older Docker saves the platform it pulled.For Kubernetes: a private registry.
craneorskopeo, where installed, reads each image's digest back.
What leaves your network
Nothing in twins calls out. The only traffic that leaves the network is your agent's own model calls.
Make the bundle
On a machine with internet:
This writes twins-airgap.tar.gz and its SHA-256 checksum beside it (twins-airgap.tar.gz.sha256). Inside is a manifest naming each image and the digest its registry served.
PLATFORMpicks the architecture saved. The default islinux/amd64.TWINS_IMAGEnames the twins image to bundle, if not the chart's own version.A bundle carries one platform.
Carry both files across.
Install it
On the machine without internet, the script refuses a bundle that does not match its checksum, and one missing an image its manifest names.
Start twins
The bundle holds a deploy folder with the Compose file, its settings example and the chart. Take it out of the bundle:
The bundle's copy of deploy/selfhost.env.example names the images it holds (TWINS_IMAGE, TWINS_POSTGRES_IMAGE, TWINS_CACHE_IMAGE). A deploy/.env made from it runs those. Then follow Docker Compose as usual:
Nothing is pulled.
Install from airgap-values.yaml
push writes airgap-values.yaml. It holds:
global.imageRegistry: your registry.Each image pinned to the digest your registry now holds. The script reads it back with
craneorskopeowhere either is installed.
Set global.imagePullSecrets to name your registry's credentials.
Check it
helm test and the startup wait use the twins image itself, so there is nothing else to mirror. Then make the first key as in Kubernetes.
Private networks in the cloud
The cloud modules can also run without a way out to the internet:
AWS: with VPC endpoints instead of a NAT gateway, the tasks pull images from ECR. An image on GHCR needs a NAT gateway. A model or an identity provider outside the VPC needs one too. See the endpoint list in AWS, Google Cloud and Azure.
Google Cloud: with
cloud_nat = false, the nodes reach Google's APIs and Artifact Registry alone.Azure:
acr_idlets the nodes pull a private copy of the twins image from Azure Container Registry.
Next
Docker Compose: settings, ports and the first key.
Kubernetes (Helm): production values for the chart.
Upgrades: move to a new version, and roll back.
Last updated: 27 October 2026
Was this helpful?