Run Linux programs in a browser tab
The OxVM SDK runs unmodified x86-64 Linux programs, such as shells, Node.js, Bun and Python, inside the browser tab of your own web app. No server runs your users’ code: the programs, their files and their processes live in your users’ browsers.
You choose one of two modes. Userspace runs Linux programs directly, without booting a kernel, so a shell is ready almost at once. System boots an unmodified Linux kernel on the same engine. Your app always names the mode, and the SDK never switches to the other one on its own.
Start with a working app
Section titled “Start with a working app”Use Node.js 24 or newer. Choose a new directory, then run one command:
npx @oxvm/cli@latest init my-app --startbunx --package @oxvm/cli@latest oxvm init my-app --use-bun --startCreates the app, installs dependencies and starts a local server. Open the local URL printed in your terminal. Edit Python, upload a CSV and inspect a DataFrame, with real Linux Python and pandas running in your browser.
No image build or local engine setup is needed. The quickstart walks through the starter and shows how to add the SDK to an existing app.
Try it on this page
Section titled “Try it on this page”This is a real Linux shell running in this page. Nothing downloads until you press the button.
oxvm:~$ uname -m && node --versionx86_64v24.18.1oxvm:~$
Once it’s running, try ls / to explore the filesystem or cat /etc/hosts to read its hostname mappings.
Your first VM
Section titled “Your first VM”Create a VM, write a file into its workspace and read it back with a Linux program:
import { createVM } from "@oxvm/sdk";
const vm = await createVM({ mode: "userspace", runtime: { hosting: "frame" } });try { await vm.workspace.writeText("hello.txt", "Hello from Linux\n"); const result = await vm.exec({ command: "cat", args: ["hello.txt"] }); console.log(new TextDecoder().decode(result.stdout)); // Hello from Linux} finally { await vm.dispose();}runtime: { hosting: "frame" } runs the engine in a hidden frame from https://run.oxvm.dev, so your site serves only your own app. createVM resolves when the VM is ready, so files and processes work right away. The quickstart sets this up in an app from the first install.
Two modes
Section titled “Two modes”| Userspace | System | |
|---|---|---|
mode |
"userspace" |
"system" |
| What runs | Linux x86-64 programs, without a kernel | An unmodified Linux kernel and its programs |
| Start | A shell is ready almost at once | Boots Linux first |
| Files, processes, terminals | Yes | Yes |
| Restore points | Yes | Yes |
Choosing a mode explains when to use which.
Next steps
Section titled “Next steps”- Quickstart: create the starter app, or add the SDK to an existing app.
- Run commands: short commands with
exec, long-running ones withspawn. - Starter example: an editable Python + pandas app built on the SDK.