Agent Sandboxesagentsandboxes.org
Sandbox profile · Open-source project

Hyperlight

Answer in brief

Apache-2.0 Rust library, now a CNCF sandbox project, that embeds hypervisor-isolated micro-VMs with no guest OS in your application; sibling projects add Python, .NET and Rust sandboxes for agent-written code. An embeddable micro-VM library with no guest OS for running untrusted functions and agent-written scripts inside your own application; the agent runtimes built on it are early.

By the Agent Sandboxes editors · Updated

Overview

Hyperlight is "a lightweight VMM for running untrusted code in micro VMs with minimal overhead". It was announced in November 2024 by Microsoft's Azure Core Upstream team and is now a Cloud Native Computing Foundation sandbox project, licensed Apache-2.0. You embed it as a Rust library, hand it a guest binary and call typed functions across the VM boundary; there is no kernel or OS in the VM, guests are ELF binaries written in no_std Rust or C, and by default they can only print to the host unless you register more host functions. The README lists support for KVM and MSHV on Linux (x86-64, plus AArch64 on KVM), WHP on Windows (x86-64 and AArch64) and Hypervisor.framework on Apple Silicon macOS. It is explicitly not designed for full Linux workloads that need syscalls, networking or a filesystem.

The agent-facing pieces live in the same GitHub organisation. hyperlight-sandbox (v0.10.0) is a multi-backend framework with Python, .NET and Rust SDKs that runs Python or JavaScript in a Wasm component guest, or JavaScript on HyperlightJS, with schema-validated tool calls, capability-based file access, domain allowlisting and snapshot/restore; its README lists "Code Mode: Let an agent write a script that calls your tools directly" as a use case. HyperAgent is "a sandboxed code-acting AI agent runtime" built on the GitHub Copilot SDK that writes JavaScript handlers and runs them in Hyperlight micro-VMs; its README warns it is pre-release software, not for production use, and that it does not run on macOS. hyperlight-wasm and hyperlight-unikraft extend the guest options to WebAssembly modules and ordinary Linux programs. The core project is pre-1.0 and warns that upgrades may require code changes.

Notable

  • Announced by Microsoft's Azure Core Upstream team in November 2024; now a CNCF sandbox project with about 4,800 GitHub stars.
  • v0.19.0 released 4 November 2026; its release post reports large-snapshot creation dropping from 171 ms to about 1.7 ms (vendor benchmark).
  • HyperAgent v0.7.0 (July 2026) is labelled pre-release and requires GitHub Copilot access and hardware virtualisation.

Hyperlight specifications

AttributeDetails
IsolationHardware-virtualised micro-VM per sandbox on KVM or MSHV (Linux), WHP (Windows) or Hypervisor.framework (macOS on Apple Silicon), with no guest kernel, OS or devices; guests are purpose-built no_std Rust or C binaries that can only call host functions you register
DeploymentOpen-source project · Self-hostable
Open sourceYes (Apache-2.0)
SDKs and interfacesRust, Python, .NET
Cold start (vendor claim)hyperlight.org: micro-VMs are created in 1–2 ms because there is no guest OS to boot (vendor claim); the README says guest function calls complete in microseconds
Max session lengthNot documented
PersistenceGuest state persists across calls within a sandbox; snapshot() and restore() save and reset VM memory, and since 0.19.0 snapshots form a tree whose layers share memory copy-on-write. Core Hyperlight gives guests no filesystem; hyperlight-sandbox adds a read-only /input and a writable /output directory (by default 5 MiB per file, 20 MiB in total and 20 files)
GPUNo - hyperlight.org says each guest runs with no guest OS and no devices
NetworkingNone in core Hyperlight: guests have no network, filesystem or syscalls and reach the host only through registered functions. hyperlight-sandbox keeps network traffic off by default and allows specific domains and HTTP verbs with allow_domain()
PricingFree and open source (Apache-2.0)
Free tierFree to self-host
ComplianceNot documented
RegionsNot documented
Company headquartersNot documented

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

Strengths and trade-offs

Strengths

  • You want hypervisor isolation for small functions or agent-written scripts without booting a guest OS per sandbox.
  • You need to embed sandboxed execution as a library in a Rust, Python or .NET application.
  • You want guests that can reach only the host functions and domains you explicitly allow.
  • You want snapshot and restore to reset a sandbox to a clean state between calls.

Trade-offs

  • Guests must be purpose-built against the Hyperlight guest library or run through a sibling runtime (Wasm, JavaScript, Unikraft); unmodified Linux programs do not run on core Hyperlight.
  • Pre-1.0: the API may change between releases.
  • Lifecycle, networking and scheduling around the sandbox are yours to build; it is a library, not a service.
  • HyperAgent is pre-release, not for production and not supported on macOS.

Good fit for: Embedding hardware-isolated execution of small functions or agent-written scripts inside your own application, with millisecond sandbox creation.

How Hyperlight compares

SandboxCompany HQIsolationOpen sourceSelf-host / BYOCCold start (vendor)Max sessionSnapshots / pauseGPUSDKs
HyperlightNot documentedMicro-VM, no guest OSYesYes / No1–2 ms (claim)Not documentedYes / Not documentedNoRust, Python, .NET
FirecrackerUnited StatesKVM microVMYesYes / No<125 ms (spec)Not documentedYes / YesNot documentedREST API, CLI
WasmtimeNot documentedWasm sandboxYesYes / NoNot documentedEmbedder-setNot documented / Not documentedNot documentedCLI, Rust, C, C++, Python, .NET, Go, Ruby
gVisorUnited StatesUser-space kernelYesYes / Noms (claim)Not documentedYes / Not documentedYesCLI
libkrunNot documentedIn-process microVMYesYes / NoNot documentedNot documentedNot documented / Not documentedYesRust, C
WasmerUnited StatesWasm sandboxYesYes / Not documentedNot documentedNot documentedNot documented / Not documentedNot documentedCLI, JavaScript/TypeScript, Python, Rust, Swift
ExtismNot documentedWasm plug-in sandboxYesYes / NoNot documentedHost-setNo / NoNot documentedRust, JavaScript/TypeScript, Go, Python, Ruby, .NET, Java, PHP, Elixir, Haskell, OCaml, Perl, Zig, C, C++

Head-to-head: Firecracker vs Hyperlight

See all Hyperlight alternatives →

Frequently asked questions

What is Hyperlight?
Apache-2.0 Rust library, now a CNCF sandbox project, that embeds hypervisor-isolated micro-VMs with no guest OS in your application; sibling projects add Python, .NET and Rust sandboxes for agent-written code. An embeddable micro-VM library with no guest OS for running untrusted functions and agent-written scripts inside your own application; the agent runtimes built on it are early.
How does Hyperlight isolate code?
Hyperlight documents its isolation as: Hardware-virtualised micro-VM per sandbox on KVM or MSHV (Linux), WHP (Windows) or Hypervisor.framework (macOS on Apple Silicon), with no guest kernel, OS or devices; guests are purpose-built no_std Rust or C binaries that can only call host functions you register.
Is Hyperlight open source?
Yes (Apache-2.0). It can be self-hosted.
How much does Hyperlight cost?
Free and open source (Apache-2.0) Check the official pricing page for current rates.
Does Hyperlight support GPUs?
No - hyperlight.org says each guest runs with no guest OS and no devices.
Does Hyperlight support snapshots or pause and resume?
Snapshots: yes. Pause and resume: not documented. Guest state persists across calls within a sandbox; snapshot() and restore() save and reset VM memory, and since 0.19.0 snapshots form a tree whose layers share memory copy-on-write. Core Hyperlight gives guests no filesystem; hyperlight-sandbox adds a read-only /input and a writable /output directory (by default 5 MiB per file, 20 MiB in total and 20 files).
What are the alternatives to Hyperlight?
Common alternatives include Firecracker, Wasmtime, gVisor, libkrun, Wasmer, Extism. See Hyperlight alternatives for a full comparison.

Sources

  1. hyperlight.org
  2. hyperlight.org/blog/introducing-hyperlight/
  3. hyperlight.org/blog/hyperlight-0190/
  4. github.com/hyperlight-dev/hyperlight
  5. github.com/hyperlight-dev/hyperlight/blob/main/docs/README.md
  6. github.com/hyperlight-dev/hyperlight/releases
  7. github.com/hyperlight-dev/hyperlight-sandbox
  8. github.com/hyperlight-dev/hyperagent

Check before you rely on it. Products change quickly, and this page reflects public documentation as of November 18, 2026. Confirm anything that matters in the provider’s own documentation.

Cite this page

Agent Sandboxes. (2026). Hyperlight. agentsandboxes.org. Last reviewed November 18, 2026. https://agentsandboxes.org/sandboxes/hyperlight/