Skip to content
BU

bunshin

BetaOpen SourceApache-2.016 stars

Self-hosted fleet of Linux agent desktops on one KVM host, powered by a purpose-built virtual machine engine in C: each desktop is a live fork of a running Firefox template created in about 0.1 s, driven through 15 MCP computer-use tools and watched from a local console.

Visit website
CategoriesDesktop SandboxAI Agent SandboxSelf-hostedTypeOpen-source toolContainmentHardware VMRating3.6 / 5
Built onKVM
DocsGitHub
Boot rank
#69 / 119
42% of published starts are slower
Idle billing
Zero cost while idle
347 listings stay free while idle
State kept on pause
Memory + processes retained
Resume: Pausing, waking and running a command measured at 137 ms including three command-line starts; a desktop stopped to disk comes back in 0.4 s with its windows where they were.

Overview

bunshin takes the local-desktop-fleet idea and writes its own isolation layer for it: instead of borrowing smolvm or a container runtime, it ships bunshin-vmm, a KVM monitor in about 2,000 lines of C, and forks a running template with fork() so a new desktop inherits memory and a live Firefox session in 60 to 110 ms. The disk is mapped as virtio-pmem with DAX so program files are read from the host page cache once for the whole fleet, and copies pay only for the pages they write. There is no virtual NIC at all: guests use an HTTP proxy on loopback, which makes policy name-based and keeps the host and private networks closed by default. Around the engine the project ships fifteen MCP tools (create, list, delete, start and pause desktops, fleet status, screenshot, click, mouse move, drag, scroll, type, press key, cursor position and run command), a local console that shows every desktop live with human takeover, agent connection helpers for Claude Code, Codex, pi, OpenCode and others, and a Cua computer-server-compatible API. The honesty is unusual and should be read literally: version 0.1 has run end to end on exactly one computer (Intel x86-64, WSL2, kernel 6.18), AMD CPUs and bare-metal Linux are untested, macOS and arm64 are unsupported, only HTTP-proxied traffic can leave a desktop, the first image build downloads Debian and takes about ten minutes, and the engine has been fuzzed but not reviewed by anyone outside the project. Treat it as a promising local boundary for agents rather than a hardened multi-tenant service.

Key capabilities

  • A desktop is a live fork of a running template, created in 60 to 110 ms
  • Purpose-built KVM VMM in plain C with no runtime dependencies
  • Fifteen MCP tools for lifecycle and computer use, actions returning screenshots
  • Local console showing every desktop live, with human takeover for logins and payments
  • Idle desktops pause after 10 minutes and wake on the next action
  • Stop to disk keeps every window across a host reboot, optionally encrypted
  • Network policy by site name, with optional approval in the console
  • Freed guest memory is returned to the host, and admission refuses overcommit
  • Images build without root, Docker or loop devices
  • One-click agent connection for Claude Code, Codex, pi, OpenCode and others
  • Cua computer-server-compatible API for existing Cua clients
  • Apache-2.0 with no account or hosted tier
  • Known limits: v0.1, tested on one host, x86-64 only, HTTP-proxied traffic only

bunshin-quickstart.sh

# Build the engine and CLI, then create the template desktop once
git clone https://github.com/JustVugg/bunshin && cd bunshin
make && make install
bunshin doctor
bunshin init

# Two desktops, driven from the CLI or by an agent over MCP
bunshin create a b
bunshin key a ctrl+l && bunshin type a "example.com" && bunshin key a Return
bunshin screenshot a
bunshin console

Similar alternatives

Technical specifications

Runtime architecture
bunshin-vmm, a KVM monitor of about 2,000 lines of C, one process per desktop, x86-64 only
Runtime notes
  • A new desktop is a live fork() of a running template, sharing memory copy-on-write; the origin is stopped for 2 to 3 ms during the copy
  • The disk image is mapped into the guest as virtio-pmem and mounted with DAX, shared read-only across the fleet and written per desktop
  • No virtual NIC: guest programs reach the outside through an HTTP proxy on the desktop's loopback, so policy is enforced by host name
  • The engine confines itself with seccomp and Landlock before the guest starts
Cold-start boot time
60 to 110 ms to create a desktop as seen by the caller, and up to 330 ms each when several are created in a row; the template itself boots once in 17 s (vendor benchmarks on an Intel i7-1355U, 25 GB, WSL2 host).
Max vCPU
Not published as a ceiling: each desktop is a whole hardware virtual machine, and the default Firefox template is configured with 2 CPUs.
Max memory
Not published as a ceiling. BUNSHIN_RESERVE_MB keeps 2 GB free for the host, BUNSHIN_DESKTOP_MB budgets 512 MB per desktop, and the default Firefox template is sized at 2 GB.
Storage model
The desktop image is an ext4 file mapped as virtio-pmem; a desktop stopped to disk is saved as a 530 to 620 MB file, and a running copy pays only for the pages it changes.
Network isolation
Desktops have no virtual NIC. Programs use an HTTP proxy on the desktop's loopback, and the host daemon serves each connection after checking the destination name and the address it resolves to against per-site allow and deny lists. The host and private networks are closed unless BUNSHIN_PRIVATE is set, only the permitted web ports are tunneled, and BUNSHIN_NET=ask holds an unapproved site for approval in the console. The console binds to 127.0.0.1 and its links carry a one-time token.

Lifecycle & capabilities

Filesystem persistence
Supported
Memory / disk snapshot
Supported
Instant forking
Supported
GPU acceleration
Unknown
GUI desktop / VNC
Supported
Mobile / cloud phone
Not supported
Browser automation
Supported
Network egress control
Supported
Pause / auto-sleep
Supported
MCP protocol server
Supported
REST API & SDKs
Not supported
Idle billing
Zero cost while idle
State kept on pause
Memory + processes retained
Resume latency
Pausing, waking and running a command measured at 137 ms including three command-line starts; a desktop stopped to disk comes back in 0.4 s with its windows where they were.
Session limit
Desktops idle for 10 minutes are paused by default (BUNSHIN_IDLE_PAUSE) and the next action wakes them; BUNSHIN_IDLE_STOP can save them to disk, BUNSHIN_MAX_DESKTOPS caps running desktops, and admission refuses a new desktop that would leave the host short of memory.

Pricing model

Pending Audit

Rate read 29 Nov 2026.

Pricing tiers
Free TierOpen Source
Summary

Apache-2.0 with no account, subscription or hosted tier: the engine, CLI and console are built from source or unpacked from the v0.1.0 release and run on a KVM host you own, so a fleet costs the hardware it uses. No plan, rate card or paid edition is published, so the absence of a vendor charge is Pending audit rather than a published commitment.

Billing unityour own x86-64 Linux host with KVM
View official pricing page

Related architecture guides