kosa8 / Best sandboxes

Best sandbox · Air-gapped

The best sandbox for air-gapped AI agents

Updated

An air-gapped network has no route to the internet, so the sandbox has to install, license, update and run without phoning home, and everything it needs (the guest image, container images, models) has to cross the gap on approved media. kosa8 runs offline with KOSA8_OFFLINE=1 and a site licence that needs no activation, moves images as OCI archives and models through your internal registry, carries sandbox state across in encrypted bundles, and serves local models so agents need no cloud API.

01What an air-gapped site needs from a sandbox

Most sandbox products are hosted services and cannot run without their control plane. Those that install locally often check a licence server, pull images from a public registry or fetch updates on start, any of which fails, or worse, tries to leave, on an isolated network.

An air-gapped site needs every one of those paths replaced by something that works from files, plus a way to bring state across a one-way transfer and evidence that nothing was altered on the way.

02Checklist for choosing one

  • Installs from packages and files. No network installer.
  • Offline licensing. A signed file, no activation or check-in.
  • Nothing fetched at runtime. A switch that forbids it.
  • Images and models moved as files. Through your registry and media process.
  • Encrypted, verifiable state transfer. Including incremental bundles for a data diode.
  • Local models. So agents need no hosted API.
  • Audit that works offline. Verifiable on the site.

03How kosa8 meets it

On the connected side, collect the package for the target, the guest image, the container images and the model. On the air-gapped side:

terminal
export KOSA8_OFFLINE=1
kosa8 license install site-licence-file
kosa8 daemon start
kosa8 doctor
kosa8 load -i alpine.tar
kosa8 model pull-oci registry.internal/models/qwen:v1 --name qwen
kosa8 model serve qwen
kosa8 sandbox create build --egress deny

kosa8 save and kosa8 load move container images as OCI archives; kosa8 model push publishes a GGUF model as an OCI artifact and kosa8 model pull-oci installs it, checking its digest. kosa8 snapshot export writes a sandbox snapshot as an AES-256-GCM bundle, and --incremental writes only the chunks the receiver lacks, signed, for removable media or a data diode; kosa8 snapshot import checks every part. The air-gapped guide has the full sequence.

Site licences and air-gap bundles are part of Enterprise; local models need a plan (see pricing).

04When another option fits better

  • A plain offline VM. An offline workstation VM in your existing hypervisor, with the agent and model inside, is simple and familiar. You give up per-task sandboxes, rewind and fork.
  • Containers with no network. docker run --network none works offline for running agent-proposed code; containers share the host kernel.
  • Agents that cannot change their API address. Some agents only call their vendor's endpoint; no sandbox makes those work air-gapped.

05FAQ

Does kosa8 need the internet to start?

No. With KOSA8_OFFLINE=1 it fetches nothing, and a site licence is verified against a key built into kosa8 with no activation or check-in.

How do models get into the air-gapped network?

Publish them to an OCI registry with kosa8 model push, move them with your existing process for images, and install them with kosa8 model pull-oci, which checks the digest. Pull by digest so the model cannot change under you.

Can I move a prepared sandbox across the gap?

Yes. kosa8 snapshot export writes an encrypted bundle that opens only where your key has been imported, and --incremental sends only the chunks the receiver lacks.

Which coding agents work fully offline?

Ones that accept a custom base URL for their model API, pointed at kosa8 model serve on 127.0.0.1:7434. Local models are not a drop-in replacement for the largest hosted models on hard tasks.

06Get started

Install kosa8 on a Mac, Linux or Windows (WSL2) machine, or make an account and run the same sandboxes on kosa8 Cloud.

07Sources

Related

Updated 2026-11-14