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.
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
| Attribute | Details |
|---|---|
| Isolation | 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 |
| Deployment | Open-source project · Self-hostable |
| Open source | Yes (Apache-2.0) |
| SDKs and interfaces | Rust, 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 length | Not documented |
| Persistence | 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) |
| GPU | No - hyperlight.org says each guest runs with no guest OS and no devices |
| Networking | None 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() |
| Pricing | Free and open source (Apache-2.0) |
| Free tier | Free to self-host |
| Compliance | Not documented |
| Regions | Not documented |
| Company headquarters | Not 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
| Sandbox | Company HQ | Isolation | Open source | Self-host / BYOC | Cold start (vendor) | Max session | Snapshots / pause | GPU | SDKs |
|---|---|---|---|---|---|---|---|---|---|
| Hyperlight | Not documented | Micro-VM, no guest OS | Yes | Yes / No | 1–2 ms (claim) | Not documented | Yes / Not documented | No | Rust, Python, .NET |
| Firecracker | United States | KVM microVM | Yes | Yes / No | <125 ms (spec) | Not documented | Yes / Yes | Not documented | REST API, CLI |
| Wasmtime | Not documented | Wasm sandbox | Yes | Yes / No | Not documented | Embedder-set | Not documented / Not documented | Not documented | CLI, Rust, C, C++, Python, .NET, Go, Ruby |
| gVisor | United States | User-space kernel | Yes | Yes / No | ms (claim) | Not documented | Yes / Not documented | Yes | CLI |
| libkrun | Not documented | In-process microVM | Yes | Yes / No | Not documented | Not documented | Not documented / Not documented | Yes | Rust, C |
| Wasmer | United States | Wasm sandbox | Yes | Yes / Not documented | Not documented | Not documented | Not documented / Not documented | Not documented | CLI, JavaScript/TypeScript, Python, Rust, Swift |
| Extism | Not documented | Wasm plug-in sandbox | Yes | Yes / No | Not documented | Host-set | No / No | Not documented | Rust, JavaScript/TypeScript, Go, Python, Ruby, .NET, Java, PHP, Elixir, Haskell, OCaml, Perl, Zig, C, C++ |
Head-to-head: Firecracker vs Hyperlight
Frequently asked questions
What is Hyperlight?
How does Hyperlight isolate code?
Is Hyperlight open source?
How much does Hyperlight cost?
Does Hyperlight support GPUs?
Does Hyperlight support snapshots or pause and resume?
What are the alternatives to Hyperlight?
Sources
- hyperlight.org
- hyperlight.org/blog/introducing-hyperlight/
- hyperlight.org/blog/hyperlight-0190/
- github.com/hyperlight-dev/hyperlight
- github.com/hyperlight-dev/hyperlight/blob/main/docs/README.md
- github.com/hyperlight-dev/hyperlight/releases
- github.com/hyperlight-dev/hyperlight-sandbox
- 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/