Skip to content
UN

unkernel

BetaOpen SourceGPL-2.05,276 stars

A real Linux kernel compiled to WebAssembly with a real MMU: unmodified aarch64 Alpine or Debian runs in a browser tab or Node, with a persistent disk, networking through the host or a Wisp proxy, and a TypeScript SDK and CLI.

Visit website
CategoriesBrowser SandboxCode ExecutionSelf-hostedTypeRuntime engineContainmentUserspace runtimeRating4.0 / 5
DocsGitHub
Boot rank
#42 / 119
65% of published starts are slower
Idle billing
Zero cost while idle
347 listings stay free while idle
State kept on pause
Memory + processes retained
Resume: The SDK saves the machine with snapshot() and resumes it with createKernel({ restore }); the project publishes no resume latency

Overview

unkernel takes a different route through the browser-Linux problem than the Wasm POSIX runtimes in this catalog: instead of reimplementing syscalls in JavaScript, it compiles the Linux kernel itself to WebAssembly and keeps the real MMU, ext4, overlayfs, cgroups, namespaces and TCP/IP stack. Only user programs are emulated, by kwemu, an aarch64 CPU written in Zig and linked into the kernel, so unmodified Alpine and Debian aarch64 packages run as they are. The payoff is fidelity at native-wasm speed: the vendor measures getppid at about 170 ns, fork plus exit plus wait near 57 µs, and a boot to /init in about 70 ms, while admitting that CPU-heavy work stays well behind native. The packaging is the practical part. A zero-dependency TypeScript SDK runs the same kernel file in Node and in Chrome, Edge, Firefox and Safari, and npx unkernel gives a terminal with Alpine or Debian, host sockets, host directories mounted at a guest path, port forwarding over vsock and scripted input. A three-line program boots a distro, writes a command and waits for the exit code, and snapshot() saves the whole machine for a later createKernel({ restore }). The design limits are stated plainly: it needs JSPI, so Node 24+ or a 2026 browser; the guest is aarch64 only; there is no IPv6 or UDP beyond DHCP and DNS; networking depends on the host or a Wisp proxy rather than a policy layer; and the containment is the WebAssembly engine and the browser's origin model, which is a userspace boundary even though the guest kernel inside it is real. The project is young, MIT for the SDK and GPL-2.0 for the kernel, and sponsored by Vercel.

Key capabilities

  • Linux 7.x compiled to WebAssembly, with a real MMU and real page tables
  • Unmodified aarch64 Alpine and Debian packages and binaries
  • Boot to /init in about 70 ms; Alpine prompt about 0.3 s after node starts
  • Runs in Chrome, Edge, Firefox and Safari, and in Node 24 and later
  • Zero-dependency MIT TypeScript SDK for Node and the browser
  • npx unkernel CLI with distro selection, data disk, host mounts and port forwarding
  • Persistent ext4 data disk; in the browser, writes go to IndexedDB
  • snapshot() saves the machine and createKernel({ restore }) resumes it
  • Real ext4, overlayfs, cgroups, namespaces, vsock and 9p host mounts
  • Guest GL and Vulkan through the page's WebGL2 and WebGPU
  • No server to provision; every layer is open source
  • Known limits: aarch64 only, JSPI required, no IPv6, no UDP beyond DHCP and DNS

unkernel-boot.mjs

import { createKernel, fetchDistro } from "unkernel";

const vm = await createKernel({ distro: await fetchDistro("alpine") }); // Alpine, no network
vm.onOutput((bytes) => process.stdout.write(bytes));
vm.write("uname -a; poweroff\n");

const { code, kind } = await vm.exited; // 0, "halt"
console.log(code, kind);

// Save the machine and resume it later
const snap = await vm.snapshot({ stop: true });
const again = await createKernel({ restore: snap });

Products built on this

These listings run their agents inside this runtime, so they are dependencies rather than alternatives. Their isolation is this product's isolation.

Similar alternatives

Technical specifications

Runtime architecture
Linux 7.x compiled to a single WebAssembly module with real page tables; syscalls, the scheduler, ext4, overlayfs and TCP/IP are Linux's own code, not emulated
Runtime notes
  • User programs run on kwemu, an aarch64 CPU written in Zig and linked into the kernel, with hot code compiled to WebAssembly at run time
  • Filesystems, cgroups, namespaces, userfaultfd and TUN are the kernel's, enough for systemd to reach multi-user.target on Ubuntu
  • Paravirtual devices (block, network, framebuffer, input, sound, vsock, shared memory) talk to the JavaScript host, and guest GL and Vulkan map to the page's WebGL2 and WebGPU
  • The isolation boundary is the host's WebAssembly engine plus the browser's origin model; the guest kernel is real but runs in-process
Cold-start boot time
The kernel reaches /init about 70 ms after it starts, and the Alpine prompt appears about 0.3 s after node launches (project benchmarks, 2026-11-14)
Max vCPU
One CPU by default in the SDK and CLI; the browser page boots several where the platform allows it (?cpus=, up to 4 on desktops and 2 elsewhere)
Max memory
Guest memory is a boot option (memoryMiB, ?mem=), with Alpine booting in 48 MiB; the project publishes no maximum
Storage model
A data disk is an ext4 image you supply, created from the kernel's template; in the browser the root is an overlay and writes go to IndexedDB
Network isolation
Networking is off unless a backend is passed: directBackend() opens host sockets on Node, and wispBackend() goes through a Wisp proxy in the browser. The guest runs Linux's own TCP/IP stack with DHCP and DNS, but the boundary is the host's: the SDK does not enforce egress policy, there is no IPv6, no UDP beyond DHCP and DNS, and no inbound connection except through the vsock helpers.

Lifecycle & capabilities

Filesystem persistence
Supported
Memory / disk snapshot
Supported
Instant forking
Unknown
GPU acceleration
Unknown
GUI desktop / VNC
Supported
Mobile / cloud phone
Unknown
Browser automation
Unknown
Network egress control
Unknown
Pause / auto-sleep
Unknown
MCP protocol server
Unknown
REST API & SDKs
Not supported
Idle billing
Zero cost while idle
State kept on pause
Memory + processes retained
Resume latency
The SDK saves the machine with snapshot() and resumes it with createKernel({ restore }); the project publishes no resume latency
SDKs
TypeScript

Pricing model

Official Verified

Rate read 27 Nov 2026.

Pricing tiers
Free TierOpen Source
Summary

No vendor meter: the kernel and the CLI are free to download and the runtime runs entirely on the user's device or server, so compute costs nothing beyond the machine it already runs on. The JavaScript SDK is MIT and the kernel is GPL-2.0, and there is no hosted tier, account or rate card.

Billing unityour own machine or your users' browsers
View official pricing page

Related architecture guides