# Lifo > Lifo is a small Linux-like operating system written in TypeScript. It boots in a few milliseconds inside a browser tab or a Node.js process: a kernel, a filesystem, a bash-like shell, processes, ports and a Node.js runtime, with no VM or emulator underneath. Packages: @lifo-sh/core (the box), @lifo-sh/ui (terminal and preview UI), lifo-sh (CLI). Agent skill: https://lifo.sh/skill.md ## Run Lifo - [Where Lifo runs](https://lifo.sh/docs/run.md): the four ways to use it and how to pick one - [In the browser](https://lifo.sh/docs/run/browser.md): @lifo-sh/core in a web page, headless or with a terminal - [In Node.js](https://lifo.sh/docs/run/node.md): the same box in a script, a test or a server - [In your terminal](https://lifo.sh/docs/run/terminal.md): npx lifo-sh, an interactive shell on your machine ## Understand it - [Why Lifo](https://lifo.sh/docs/understand/why.md): what it's for, what it isn't, how it compares - [Architecture](https://lifo.sh/docs/understand/architecture.md): kernel, filesystem, shell, processes, the Node.js layer, networking - [One box, in the tab and in the cloud](https://lifo.sh/docs/understand/tab-and-cloud.md): where a box runs, what swaps for a service in the cloud, how Lifo Cloud is put together - [Security and isolation](https://lifo.sh/docs/understand/security.md): what a box does and doesn't protect - [Limitations](https://lifo.sh/docs/understand/limitations.md): what doesn't run, and where it differs from Linux and Node.js - [Performance](https://lifo.sh/docs/understand/performance.md): boot time and size, measured in your browser ## Build with it - [Files, persistence and snapshots](https://lifo.sh/docs/build/files.md): the filesystem, keeping files, moving a box - [Servers and previews](https://lifo.sh/docs/build/previews.md): servers in a box, and showing them in your page - [Packages](https://lifo.sh/docs/build/packages.md): npm, lifo install, writing a Lifo package - [Python](https://lifo.sh/docs/build/python.md): python3 and pip in a box (CPython on WebAssembly) - [Linux packages](https://lifo.sh/docs/build/linux.md): Alpine with apk and Debian with apt in a box (preview) - [Nix packages](https://lifo.sh/docs/build/nix.md): real nixpkgs binaries with nix run and nix shell (preview) - [An AI agent in the tab](https://lifo.sh/docs/build/agents.md): agent (WebLLM on WebGPU) and browser, a text web browser - [Embedding](https://lifo.sh/docs/build/embedding.md): a terminal, file explorer and preview in your app, or the playground - [Lifo Desktop](https://lifo.sh/docs/build/desktop.md): its API for windows and apps (window.lifo.desktop), the desktop command, Firefox - [Lifo Desktop apps](https://lifo.sh/docs/build/desktop-apps.md): what an app is, how the desktop loads it, the manifest, building, installing and publishing one - [Recipes](https://lifo.sh/docs/build/recipes.md): a Vite app, an Expo app, a database, an agent loop ## lifo.sh - [Accounts and login](https://lifo.sh/docs/cloud/accounts.md): lifo login, sites, API keys - [Tunnels](https://lifo.sh/docs/cloud/tunnels.md): a public URL for a port with lifo tunnel - [Cloud boxes](https://lifo.sh/docs/cloud/boxes.md): move a box to Lifo Cloud and keep it running (preview) - [Services](https://lifo.sh/docs/cloud/services.md): tools that run on Lifo's servers, like native ffmpeg (preview) ## Reference - [Sandbox API](https://lifo.sh/docs/reference/sandbox.md): @lifo-sh/core - [UI components](https://lifo.sh/docs/reference/ui.md): @lifo-sh/ui - [The lifo-sh CLI](https://lifo.sh/docs/reference/cli.md) - [The lifo command](https://lifo.sh/docs/reference/lifo-command.md): inside a box - [Shell and commands](https://lifo.sh/docs/reference/shell.md) - [Environment variables](https://lifo.sh/docs/reference/environment.md) ## For agents - [Lifo for coding agents](https://lifo.sh/docs/agents.md): the agent skill, the docs as Markdown, prompts to copy ## Comparisons - [How Lifo compares](https://lifo.sh/compare): browser and cloud sandboxes, side by side - [Lifo vs WebContainers](https://lifo.sh/compare/lifo-vs-webcontainers): StackBlitz's in-browser Node.js runtime. Closer to real Node, needs COOP and COEP headers, and production commercial use needs a license. - [Lifo vs E2B](https://lifo.sh/compare/lifo-vs-e2b): Open-source Firecracker microVMs for AI agents, in E2B's cloud or self-hosted. Billed per vCPU-second and GiB-second. - [Lifo vs Vercel Sandbox](https://lifo.sh/compare/lifo-vs-vercel-sandbox): Firecracker microVMs on Vercel with real Linux, up to 24-hour sessions on Pro, billed by active CPU and memory. - [Lifo vs Daytona](https://lifo.sh/compare/lifo-vs-daytona): Containers, VMs, desktops and GPUs for AI-generated code in Daytona's cloud, billed per second. Closed source since June 2026. - [Lifo vs Cloudflare Sandbox](https://lifo.sh/compare/lifo-vs-cloudflare-sandbox): Linux microVMs on Cloudflare Containers, driven from a Worker. Needs Workers Paid; bills active vCPU, memory and disk. - [Lifo vs Modal Sandboxes](https://lifo.sh/compare/lifo-vs-modal): Containers isolated with gVisor or VMs on Modal's cloud, with GPUs and huge fleets. Billed per second at 3x list rates. - [Lifo vs CodeSandbox SDK](https://lifo.sh/compare/lifo-vs-codesandbox): CodeSandbox's VM sandboxes, now Together Sandbox on Together AI. Docker images, snapshots, billed per vCPU and GiB-hour. - [Lifo vs BrowserPod](https://lifo.sh/compare/lifo-vs-browserpod): Leaning Technologies' Linux-like VM in WebAssembly. Free to run with attribution, paid networking, needs COOP and COEP headers. - [Lifo vs unkernel](https://lifo.sh/compare/lifo-vs-unkernel): The Linux kernel compiled to WebAssembly, running unmodified arm64 binaries in a tab or Node.js. Open source, needs JSPI in browsers. ## Links - [Try it in the browser](https://lifo.sh/demo) - [GitHub](https://github.com/lifo-sh/lifo): MIT licensed - [npm: @lifo-sh/core](https://www.npmjs.com/package/@lifo-sh/core)