Lifo vs unkernel
unkernel compiles the real Linux kernel to WebAssembly and runs unmodified arm64 programs in a browser tab or Node.js. Lifo has no kernel and no emulator: the operating system is TypeScript on the JavaScript engine you already have. One runs any Linux binary; the other starts in milliseconds wherever JavaScript runs, which is what an agent's shell spends most of its life doing.
At a glance
unkernel is "Linux 7.x" compiled to a single WebAssembly module with a real MMU. User programs are unmodified aarch64 Linux binaries, run by an emulator written in Zig (kwemu) that interprets them and JIT-compiles hot blocks to WebAssembly. Devices are paravirtual drivers that talk to the JavaScript host. It boots Alpine 3.24 by default and Debian 13 as an option, and you embed it with the unkernel npm package.
A small Linux-like operating system written in TypeScript. It boots in milliseconds inside the user's browser tab or a Node.js process: a filesystem, a bash-like shell, processes, ports and a Node.js runtime, with no VM or emulator underneath. Open source under MIT, with Lifo Cloud for apps that must keep running.
Lifo and unkernel side by side
| Feature | Lifo | unkernel |
|---|---|---|
| Where code runs | The user's browser tab (in the page or a Web Worker), or your Node.js process. Lifo Cloud, in preview, keeps a box running on Lifo's servers. | A browser tab (in a Web Worker by default) or a Node.js process, as a Linux guest compiled to WebAssembly. |
| Isolation | Boxes are kept apart from each other, not from the page or process that runs them. Untrusted code needs a Web Worker on a separate origin. Security docs | A real Linux guest with its own memory management, inside the browser's sandbox. Programs see only the guest; the page reaches them through the SDK (exec, mounts over 9p, vsock, vm.fetch). |
| What runs | A Node.js compatibility layer with npm, Vite, Express, Expo previews, git, a bash-like shell, Python (Pyodide), Postgres (PGlite) and a Supabase-compatible backend. No Linux binaries or native addons. | Unmodified aarch64 Linux programs: anything packaged for arm64 Alpine (apk) or Debian (apt), Python included. GUI programs over Wayland and X11, GL through WebGL2 and Vulkan through WebGPU. |
| Cold start | About 27 ms in a browser tab, under 1 ms in Node.js (measured with the repo's bench/). | The kernel reaches /init about 70 ms after it starts; the Alpine prompt appears 0.3 s after node launches. The web page downloads about 10 MB before its desktop appears (the Alpine image is about 4 MB). |
| Cost model | $0 in the browser: the user's device does the work. Lifo Cloud bills by usage: a Lite box is $0.005 an hour while awake. | Free. It runs on the user's device or your server; no hosted service is described. |
| Open source | Yes. @lifo-sh/core, @lifo-sh/ui and the CLI are MIT licensed. Lifo Cloud's servers are closed source. | Yes. The kernel side is GPL-2.0-or-later, the JavaScript SDK and page are MIT, and the npm package is "MIT AND GPL-2.0-only". |
| In your product | An npm package (@lifo-sh/core) plus terminal, file explorer and preview components (@lifo-sh/ui), or an iframe of the playground. | npm i unkernel: createKernel(), fetchDistro(), exec() with stdout, stderr and exit code, spawn() with a pty, mounts served over 9p, and vm.fetch() for HTTP into the guest. |
| Offline | Yes, once loaded, apart from what needs the network (npm installs, git push). | Not stated. The kernel and a distro image download first, and packages come from the network (through a Wisp proxy in browsers). |
| Browser requirements | Any current browser. The core box needs no special APIs or headers. | JSPI (WebAssembly.Suspending): Chrome and Edge 137+, Firefox 153+, Safari 27+. More than one CPU needs a cross-origin isolated page. |
| Size | About 0.3 MB gzipped for the whole runtime. | About 10 MB before the web desktop appears; the Alpine CLI image is about 4 MB and Debian about 57 MB. |
| Boxes per page or process | As many as memory allows: a box is objects in the JavaScript heap. | One kernel per thread, per the SDK's stated limits. |
| Network | The browser's fetch and WebSocket (CORS applies). Real TCP in Lifo Cloud. | Linux's own TCP/IP stack, carried to the internet by host sockets in Node.js or a Wisp proxy in browsers. No inbound connections, no IPv6. |
unkernel's column comes from its official docs and pricing pages, checked on 29 November 2026; prices change, so follow the unkernel pricing page for current numbers.
Two opposite bets
unkernel brings the real thing to the browser: the Linux kernel, compiled to WebAssembly, running real arm64 programs on an emulated CPU. Anything packaged for Alpine or Debian can run, with Linux's own syscalls, processes, filesystems and network stack. Its benchmarks put syscalls close to native (a getppid in about 170 ns against 110 ns native) and a fork in about 60 µs.
Lifo bets the other way: no kernel and no emulator at all. The filesystem, the shell, processes, ports and the Node.js APIs are TypeScript objects on the host's JavaScript engine. JavaScript programs, which is most of what web developers and coding agents run, execute as JavaScript at the engine's own speed, with nothing to download or boot first. WebAssembly appears only where a specific tool needs it (esbuild, SWC, Python, ffmpeg), loaded when that tool first runs.
Why no WebAssembly kernel suits agents
An agent's sandbox spends most of its life starting, running one short command, and being thrown away or snapshotted. Lifo starts in about 27 ms in a tab and under 1 ms in Node.js, from a 0.3 MB runtime, so a box per task, per tool call or per user is cheap, and a page or a server process can hold many at once. A Linux guest has to download its kernel and image and boot them first, and unkernel's SDK runs one kernel per thread.
The agent's harness and the box speak the same language. In Lifo, a tool is a JavaScript function registered as a shell command, the filesystem is readable and writable from the host without a mount protocol, and fetch, files and processes can be inspected or intercepted directly. A guest kernel is reached across a boundary instead: commands through exec, files over 9p, everything else over vsock.
It runs wherever JavaScript runs. The same box works in any current browser without JSPI or special headers, in Node.js, and in edge runtimes; Lifo Cloud runs boxes as V8 isolates. When the box needs to move, a snapshot of its files, environment and working directory carries it between the tab, Node.js and the cloud.
And when something breaks, it breaks in JavaScript: stack traces, breakpoints and the browser's devtools see the box's own code, not an emulated CPU.
Where unkernel is the better fit
Lifo doesn't run Linux binaries. If your agent needs apt install, a C compiler, a language runtime that isn't JavaScript or Python, or a program that only ships as an ELF binary, a real kernel is the way to get it in a tab, and unkernel runs them unmodified.
unkernel is also a stronger boundary around untrusted code: guest programs live behind an emulated MMU and only reach the page through the SDK. A Lifo Sandbox shares the JavaScript realm of the page that created it; for untrusted code Lifo's answer is a WorkerSandbox on a separate origin (security docs).
Which one to choose
Choose unkernel when
- You need unmodified Linux binaries in the tab: packages from Alpine or Debian, compilers, non-JavaScript runtimes.
- You want Linux's own semantics: real processes on several CPUs, ptys, signals, its TCP/IP stack and filesystems.
- You want a hard boundary around untrusted code without running it on a server.
- You need GUI programs, GL or Vulkan inside the guest.
Choose Lifo when
- Your agent or app runs JavaScript and Node.js tooling (npm, Vite, Express, Next.js) and wants it to start in milliseconds.
- You want many boxes per page or per server process: one per task, tool call or user.
- You need it in every current browser, without JSPI or cross-origin isolation headers, and on edge runtimes.
- Your harness is JavaScript and you want tools, files and network calls as plain JavaScript, not across a VM boundary.
- You want the same box in the tab, in Node.js and in a cloud that keeps it running.
Using both. They can work together. A Lifo box can stay kernel-free for the JavaScript work and hand the occasional native program to a Linux guest. We're building an opt-in nix command for Lifo along those lines: real nixpkgs binaries in a WebAssembly Linux guest in the browser, and natively in Lifo Cloud's containers.
Questions
- What is unkernel?
- An open-source project that compiles the Linux kernel to WebAssembly and runs unmodified arm64 Linux programs in a browser tab or Node.js. It boots Alpine by default and Debian as an option, and you embed it with the
unkernelnpm package. - Does Lifo use WebAssembly?
- Not for its core. The filesystem, shell, processes and Node.js APIs are TypeScript running on the JavaScript engine, with no kernel or CPU emulator. WebAssembly is loaded only for specific tools when they first run: esbuild, SWC, Python (Pyodide) and ffmpeg.
- Which browsers does unkernel need?
- Browsers with JSPI: Chrome and Edge 137 and later, Firefox 153 and later, and Safari 27 and later. Running more than one CPU in the page also needs cross-origin isolation. Lifo's core box needs neither.
- Can Lifo run Linux binaries?
- No. Lifo runs JavaScript programs through its Node.js compatibility layer, plus tools compiled to WebAssembly. For native binaries in the browser, a WebAssembly Linux guest like unkernel is the route; on a server, Lifo Cloud can run a box in a real container.
Related comparisons
Sources
Facts about unkernel come only from its own website, docs and pricing pages. If something here is out of date, open an issue and we'll fix it.
See it run in your browser
A shell, Node.js, npm and a dev server, booted in the tab. No account and no server.