All guidesSecurity deep dives

Docker vs. remote microVMs

Why local Docker containers are not a security boundary for AI coding agents, and how disposable remote microVMs with their own kernel differ.

Docker vs. remote microVMs

Why not just use local Docker? Containers are an operational packaging boundary, not a security isolation boundary for untrusted AI-generated code. Local Docker containers share the host Linux kernel (or a single shared desktop VM kernel on macOS/Windows), frequently mount host project directories and environment variables, and expose the Docker daemon socket (/var/run/docker.sock), which grants immediate root-equivalent control over the host.

airgap runs every submitted command inside a single-use, disposable Linux microVM on GMI Cloud AgentBox v2. Each microVM boots with its own dedicated kernel, isolated memory space, and ephemeral root disk, completely separated from your workstation. When the command exits or times out, the entire microVM is permanently destroyed.

Side-by-side security comparison

Security dimensionLocal Dockerairgap remote microVM
Kernel isolationShared host kernel (container escape risk)Dedicated isolated microVM kernel per run
Local daemon requiredYes (Docker Desktop / dockerd running locally)None — single Rust binary or npx -y airgap-mcp
Host filesystem accessBind mounts expose repo, .git, and .env filesZero host mounts; only explicitly passed files leave host
Credential exposureEasy to leak ~/.ssh, ~/.aws, or shell env varsHost env and keys stay on your machine; output is scrubbed
Lifecycle & cleanupStopped containers and volumes linger until prunedAutomatically destroyed on exit, error, timeout, or cancel
Cross-OS parityDiffers across macOS, Windows, and Linux hostsIdentical Linux Bookworm microVM from any OS

What stays on your machine vs. what crosses the boundary

Only the explicit files and command in the MCP tool call leave your workstation. Your ~/.ssh keys, cloud CLI profiles, browser sessions, and sibling repositories are never mounted or visible to the sandbox. Deployment templates (airgap-{image}-{instance_type}) cache only the public base image and start command — never your uploaded files.

Honest boundaries: what airgap is not

airgap is not a physically air-gapped or offline environment. GMI sandboxes have outbound internet access (needed for npm, pip, cargo, and cloning GitHub PRs), and the files you explicitly pass leave your machine. Provider isolation, network egress policy, account authorization, and base image trust remain part of the security boundary. Pin container image digests when you need bit-for-bit repeatability, and never pass production secrets inside sandbox file snapshots.

Keep reading

All 12 guides