A real Linux kernel compiled to WebAssembly that boots to a shell in under a second
open sourceMIT AND GPL-2.0-onlyfree
unkernel is the Linux kernel built as a single WebAssembly module with a real MMU: syscalls, scheduler, memory management, ext4 and TCP/IP run as compiled code, while unmodified arm64 Linux programs run on a built-in emulator with a JIT, so Alpine and Debian packages work as they are. It boots to a shell in under a second, in a browser page with a persistent disk, internet access, a screen and sound, or from the terminal with npx unkernel, and a zero-dependency TypeScript SDK embeds it in web pages and Node.js. Everything runs on your device with no server.
Problems it solves
- give an AI agent a Linux shell without containers
- run Linux in the browser with no server
- sandboxed Linux environment inside a Node.js process
Features
- Linux kernel compiled to WebAssembly with a real MMU
- runs unmodified arm64 Alpine and Debian binaries
- boots in under a second
- persistent disk, networking, display and sound
- npx unkernel CLI
- TypeScript SDK for browsers and Node.js
Limitations
- CPU-heavy programs run well behind native speed, since user programs are emulated aarch64 code (apk add python3 takes about 3.4 s).1
Alternatives
The same job
These do what unkernel does.
- WebVM A Linux virtual machine that runs entirely in your browser
