What is v86?
v86 emulates a 32-bit x86 PC in JavaScript and WebAssembly. The CPU sits at roughly Pentium 4 level with SSE3, and the emulated machine includes a VGA card with SVGA, an IDE controller, a floppy controller, an NE2000 network card, virtio devices, a SoundBlaster 16 and even a dial-up modem. Guest machine code is compiled to WebAssembly modules at runtime, which is how it reaches usable speed.
The public demo at copy.sh/v86 boots more than 20 systems, among them Windows 95, 98 and 2000, MS-DOS 6.22, FreeDOS, Haiku, ReactOS, FreeBSD and Arch Linux. Developers embed it through libv86.js or the official v86 npm package, with TypeScript definitions and an API for the serial console, saving and restoring machine state and networking between tabs.
The code is BSD-2-Clause, maintained by the developer known as copy, and written in JavaScript and Rust. It has no AI features of its own, though in 2026 several agent projects started using it as a disposable Linux sandbox.
Is v86 worth it?
v86 is the most complete x86 emulator that runs entirely inside a browser, and its limits are written plainly in the README. It has 23,773 GitHub stars, there is no single version number, and the npm package is published from master on every push (0.5.494 on 27 November 2026, with 29,056 downloads in the week to 1 December). Commits were still landing in late November 2026.
The README is honest about what is missing: no 64-bit extensions, no multicore, no task gates and incomplete floating-point exceptions. That rules out any modern 64-bit operating system. Linux works with 32-bit kernels, Ubuntu up to the last i386 releases (16.04 or 18.04 LTS), and Alpine and Arch Linux 32 from build scripts in the repository. Windows 1.01 through 2000 work "reasonably well", Windows XP, Vista and 8 only under certain conditions, and Plan 9 and OS/2 do not boot at all. FPU maths runs through Berkeley SoftFloat, which the project calls precise but slow.
In 2026 v86 also found a use as a sandbox for coding agents. Prime Radiant's external-sandbox-v86, described in a 16 November 2026 post, runs Alpine Linux inside v86 under Node.js 22.19 or later and lets Claude Code, Codex and the Pi agent send shell commands to it on port 8686, with no network access by default and an allow-list proxy that injects API keys on the host side. Its authors call it an experimental prototype that has not been audited. Simon Willison noted on Hacker News that driving shell commands in v86 from code is not easy, because the emulator was built for an interactive screen.
Networking needs care. A guest reaches the outside world only through a backend: an in-browser network, a WebSocket or Wisp proxy, or a fetch-based backend through a CORS proxy. The docs recommend a local private proxy over the public relays, which have limited bandwidth, and warn against running a proxy openly on the internet. The project also refuses pull requests and issues written partly or wholly by generative AI tools, case-by-case exceptions aside.
Where it earns its place
A computing museum or retro-gaming site
Let visitors run Windows 98 or MS-DOS software in the browser
The site embeds libv86.js with a disk image it is licensed to share, and a saved machine state lets visitors skip the boot. Hosting is static files; the cost is bandwidth for the images.
A university lecturer teaching operating systems
Give 200 students a Linux shell without provisioning servers
A Buildroot or Alpine image built with the repository's scripts boots in each student's tab, so a broken kernel module breaks one browser tab and nothing else. No VMs to pay for.
A developer experimenting with coding agents
Run an agent's shell commands somewhere that cannot touch the host
external-sandbox-v86 starts with npx, boots Alpine in v86 and receives Claude Code's Bash calls; outbound traffic is blocked unless an allow-list permits it. Its authors call it an unaudited prototype, so keep it away from sensitive work.
Before you commit
- Setup
- Try it at copy.sh/v86 with nothing installed. To embed, npm install v86 or download libv86.js, then point the V86 constructor at a BIOS and a disk image. Building from source needs make, Rust with the wasm32 target, clang and Node.js.
- Integrations
- JavaScript API with TypeScript definitions, serial console access, 9p filesystem sharing, state save and restore, and network backends through WebSocket, Wisp or fetch proxies.
- Data and privacy
- Everything runs in the browser or Node.js process. Disk images and saved states stay where you host them; network traffic only leaves through the proxy you configure.
- Cost at scale
- No licence fee. Costs are hosting and bandwidth for disk images, plus a proxy server if guests need network access.
- Limits
- 32-bit only, single core, Pentium 4 level CPU. Windows XP and later boot only under certain conditions; Plan 9 and OS/2 do not work. 121 issues and pull requests were open on 2 December 2026.
What’s good
- Boots DOS, Windows 95 to 2000, Haiku, ReactOS, FreeBSD and 32-bit Linux in a browser with no install
- Embeddable through libv86.js or the v86 npm package, with TypeScript types and a state save and restore API
- Guest code compiled to WebAssembly at runtime for usable speed
- Permissive BSD-2-Clause licence
What’s not
- No 64-bit support and no multicore, so no modern operating system
- No tagged stable releases; the npm package tracks master
- Networking needs a proxy server, and public relays are bandwidth-limited
- Programmatic shell control is awkward, so agent sandboxes built on it remain prototypes
Best for
Developers who want a real 32-bit PC or Linux shell inside a web page, for retro software, teaching, demos or an isolated scratch machine.
v86 alternatives
v86: common questions
- Is v86 worth it?
- A remarkable piece of engineering that puts a whole 32-bit PC inside a web page, as long as 32-bit is all you need. We rate it 4.2 out of 5.
- How much does v86 cost?
- Free and open source under the Simplified BSD (BSD-2-Clause) licence. No paid tier or hosted service.
- What are the downsides of v86?
- No 64-bit support and no multicore, so no modern operating system; no tagged stable releases; the npm package tracks master; networking needs a proxy server, and public relays are bandwidth-limited; programmatic shell control is awkward, so agent sandboxes built on it remain prototypes.
- Who is v86 best for?
- Developers who want a real 32-bit PC or Linux shell inside a web page, for retro software, teaching, demos or an isolated scratch machine.
- How much does v86 cost for a team or in production?
- No licence fee. Costs are hosting and bandwidth for disk images, plus a proxy server if guests need network access.
- Is v86 safe for company data?
- Everything runs in the browser or Node.js process. Disk images and saved states stay where you host them; network traffic only leaves through the proxy you configure.
- What are the best v86 alternatives?
- The closest alternatives we have reviewed are OpenSandbox and Anthropic Sandbox Runtime (srt).
Answers checked Dec 2, 2026.