Welcome to unkernel =================== This is a Linux 7.3 kernel compiled to WebAssembly, running in a web page or in Node.js on your machine; nothing runs on a server. The kernel is native wasm, and the programs are unmodified aarch64 Linux binaries, run by kwemu, an aarch64 CPU that is linked into the kernel. User space is Debian (glibc, GNU coreutils, bash). You are "user", and this is your home directory. sudo works without a password: "sudo -i" gives a root shell. Things to try ------------- apt install htop Install packages from Debian's mirrors. Typed in a shell it runs through sudo for you. htop Or just type the command: if it is missing, the package that provides it is installed for you (KW_AUTO_APT=0 turns that off). claude, opencode, fx, node, bun, uv Installed into ~/.local/bin the first time you run one (claude and opencode are 250-360 MB, so they need the data disk or plenty of memory). docker run --rm -it alpine Docker is installed and started the first time you run docker. Containers use the guest's network. glimmer A tiny game, with graphics and sound. kmscube A spinning cube drawn by your GPU: on the web page the guest has /dev/dri, and Mesa renders through the browser's WebGL2. Any key stops it. X with glamor: Xorg :0 -config kw-kms.conf python3 -m http.server 8000 A guest web server (on the web page it opens in the preview, Ctrl-A p). x86_64 and i386 binaries also run, through box64 (installed the first time one starts, which takes about a minute). Your changes ------------ The root file system is an overlay over the read-only Debian image. With a data disk (the web page keeps one in your browser; the CLI takes --data FILE) your changes are kept on it and survive a reload or a reboot; without one they live in memory until power-off. If a change stops the system from booting, that boot runs in safe mode instead: your changes stay on the data disk in /data/distros/debian/upper, where you can fix them, and every boot tries them again ("kw-overlay status" says more, "sudo kw-overlay discard" sets them aside and starts over from the image). On the web page --------------- Ctrl-A ? All the keyboard shortcuts (on a Mac, Cmd-A works as well as Ctrl-A). Ctrl-A n Another terminal, up to 9: a tab of the Terminal window (Ctrl-A N opens one in a new window). Ctrl-A 1-9 switches between them. Ctrl-Shift-O The app launcher (Cmd-K on a Mac, or the first tile of the Dock). foot Wayland apps started in a terminal show as windows on the page. Ctrl-A w switches between them and the other windows. Settings (Ctrl-A ,) has the machine's options and export, import or reset of the disk kept in your browser (IndexedDB); System (Ctrl-A s) has the kernel log and diagnostics. Open the page with ?data=0 for a fresh system every time. Limits ------ - Programs run on an emulated CPU: system calls are fast, but heavy computation is several times slower than native. - No IPv6, and no inbound connections from the internet. On the web page the network reaches out through a Wisp proxy. - No strace or gdb (no ptrace register sets), no seccomp. Source, docs and the JavaScript SDK: https://github.com/pithings/unkernel