Agent Sandboxesagentsandboxes.org
Sandbox profile · Open-source project

gVisor

Answer in brief

Google's user-space application kernel for containers, with the runsc OCI runtime, GPU passthrough via nvproxy and checkpoint/restore; used by Modal, Beam, Anthropic, OpenAI and Google Cloud. The most widely adopted non-VM sandbox boundary; choose it when a VM per workload is impractical or you need sandboxed GPUs.

By the Agent Sandboxes editors · Updated

Overview

gVisor is an open-source, Apache-2.0 "application kernel for containers" that originated at Google and "leverages years of experience isolating production workloads at Google". Rather than a seccomp filter or a VM, it implements a Linux-compatible kernel in Go that runs in user space and intercepts the application's system calls, so the host kernel sees only a narrow interface; the README summarises this as "gVisor implements Linux by way of Linux". It ships as an OCI runtime called runsc that plugs into Docker, containerd and Kubernetes. The default platform is systrap, which uses seccomp traps and "replaced ptrace as the default gVisor platform in mid-2023"; a KVM platform uses hardware virtualisation and "runs best on bare-metal setups". Hosts need Linux 5.6+ on x86_64 or arm64.

The adopters file shows how widely sandbox platforms build on it: "gVisor powers Google Cloud offerings GKE Sandbox, Cloud Run, App Engine"; Modal says "Compute jobs at Modal are containerized and virtualized using gVisor"; Beam combines "stateful snapshots, gVisor isolation, GPU acceleration"; Anthropic uses it "to securely contain code execution within claude.ai"; OpenAI uses it for "some higher-risk tasks"; Northflank "uses gVisor to run GPU workloads inside sandboxed environments"; Cloudflare, DigitalOcean, Snowflake and Ant Group are also listed. Two features matter for agent sandboxes: nvproxy passes NVIDIA driver ioctls through so CUDA workloads run inside the sandbox, and checkpoint/restore saves a running container to a state file. Releases are dated tags, most recently release-20261102.0.

Notable

  • Adopters page: powers GKE Sandbox, Cloud Run and App Engine; also lists Modal, Beam, Anthropic (claude.ai), OpenAI, Northflank, Cloudflare, DigitalOcean, Snowflake and Ant Group
  • systrap became the default platform in mid-2023; ptrace is "no longer supported and is expected to eventually be removed entirely"
  • Latest release tag release-20261102.0 (2 November 2026); Apache-2.0

gVisor specifications

AttributeDetails
IsolationUser-space application kernel written in Go that intercepts the sandboxed application's system calls; default systrap platform (seccomp traps), optional KVM platform
DeploymentOpen-source project · Self-hostable
Open sourceYes (Apache-2.0)
SDKs and interfacesCLI
Cold start (vendor claim)gvisor.dev claims containers "start up in milliseconds and have minimal resource overhead"; no figure given
Max session lengthNot documented
PersistenceCheckpoint a running container to a state file and restore it into a new container (runsc checkpoint / runsc restore), with compression, background restore and workload-triggered checkpoints; GPU checkpoint/restore is x86_64 only
GPUYes - nvproxy runs "most CUDA applications on preselected versions of NVIDIA's open source driver"; T4, A100, A10G, L4 and H100 officially supported; gVisor adds no hardware-level isolation for driver bugs
NetworkingOwn user-space network stack written in Go (netstack); --network=host mode passes through host sockets
PricingFree and open source
Free tierFree to self-host
ComplianceNot documented
RegionsNot documented

Facts from gVisor’s public documentation, verified November 9, 2026. Performance numbers are vendor claims.

Strengths and trade-offs

Strengths

  • You want a kernel boundary without hardware virtualisation, so it works inside ordinary cloud VMs
  • You need GPU workloads sandboxed, as Modal, Beam and Northflank do with nvproxy
  • You run Docker or Kubernetes and want to swap in runsc as a runtime class
  • You want checkpoint/restore of running containers

Trade-offs

  • Syscall interception costs performance for syscall-heavy workloads; the KVM platform needs bare metal or nested virtualisation to perform well
  • Only a limited set of NVIDIA ioctls and driver versions are supported, and gVisor "doesn't introduce any additional hardware-level isolation" for GPU driver bugs
  • Not every Linux feature is implemented, so some applications need compatibility checks
  • Linux x86_64 and arm64 hosts only

Good fit for: Sandboxing containers on hosts where you cannot or do not want to run a VM per workload, including GPU workloads.

Use cases gVisor fits

  • GPU workloads: If you build your own: gVisor’s nvproxy runs most CUDA applications on T4, A100, A10G, L4 and H100, which is how several platforms run GPU sandboxes.

How gVisor compares

SandboxIsolationOpen sourceSelf-host / BYOCCold start (vendor)Max sessionSnapshots / pauseGPUSDKs
gVisorUser-space kernelYesYes / Noms (claim)Not documentedYes / Not documentedYesCLI
Kata ContainersVM per podYesYes / NoNot documentedNot documentedNot documented / Not documentedYesCLI
FirecrackerKVM microVMYesYes / No<125 ms (spec)Not documentedYes / YesNoREST API, CLI
nsjailNamespaces + seccompYesYes / NoNot documentedConfigurableNo / NoNot documentedCLI
Modal SandboxesgVisor or VMNoNo / Not documented<1 sUp to 24 hYes / YesYesPython, JavaScript/TypeScript, Go
Kubernetes Agent SandboxgVisor or KataYesYes / Yes<1 s (warm pool)Not documentedYes / YesYesKubernetes CRDs, Python, kubectl

See all gVisor alternatives →

Frequently asked questions

What is gVisor?
Google's user-space application kernel for containers, with the runsc OCI runtime, GPU passthrough via nvproxy and checkpoint/restore; used by Modal, Beam, Anthropic, OpenAI and Google Cloud. The most widely adopted non-VM sandbox boundary; choose it when a VM per workload is impractical or you need sandboxed GPUs.
How does gVisor isolate code?
gVisor documents its isolation as: User-space application kernel written in Go that intercepts the sandboxed application's system calls; default systrap platform (seccomp traps), optional KVM platform.
Is gVisor open source?
Yes (Apache-2.0). It can be self-hosted.
How much does gVisor cost?
Free and open source Check the official pricing page for current rates.
What are the alternatives to gVisor?
Common alternatives include Kata Containers, Firecracker, nsjail, Modal Sandboxes, Kubernetes Agent Sandbox. See gVisor alternatives for a full comparison.

Sources

  1. gvisor.dev
  2. github.com/google/gvisor
  3. github.com/google/gvisor/blob/master/ADOPTERS.md
  4. gvisor.dev/docs/architecture_guide/platforms/
  5. gvisor.dev/docs/user_guide/gpu/
  6. gvisor.dev/docs/user_guide/checkpoint_restore/
  7. github.com/google/gvisor/releases
  8. modal.com/docs/guide/security

Cite this page

Agent Sandboxes. (2026). gVisor. agentsandboxes.org. Last reviewed November 9, 2026. https://agentsandboxes.org/sandboxes/gvisor/

Found an error or a missing sandbox? Submit a correction — every entry links to the sources it relies on.