A browser agent that clicks through an account or edits a document needs a real desktop, but giving it an ordinary logged-in workstation can expose far more than the task requires. Bunshin is a new open-source project that tries a different shape: create a Linux virtual machine for each agent session, give that machine a desktop and browser, and let the agent control it through the Model Context Protocol (MCP). Its repository describes version 0.1 and a system developed and tested on one computer, so the early performance and isolation claims still need broader validation.
What does Bunshin provide to an agent?
Bunshin is infrastructure, not a hosted agent or a browser assistant. The project’s default image is Debian with a virtual X server, a lightweight window manager and Firefox ESR at 1280 by 800 pixels. A compatible agent can ask Bunshin to create or list desktops, take screenshots, click, type, press keys, scroll, drag, run commands, pause or delete a machine. Each action can return a screenshot, giving the model a visual feedback loop instead of a page-specific browser API.
The project lists 15 MCP tools and provides a connector for several local agent clients. A person can also watch the desktops in a local console, see which one an agent is using and take control. When a person takes control, the agent’s input is refused. That makes handoff for a login, CAPTCHA or payment part of the intended workflow, rather than an assumption that an agent should complete every consequential step unattended.
Why copy a running virtual machine?
The performance idea is to boot a prepared desktop once, then make each new desktop a live copy of that running template. Bunshin’s author says the small C virtual-machine monitor pauses a machine’s virtual CPUs for two or three milliseconds, forks the process and resumes the copy from the same guest state. The copies initially share memory pages and disk-backed program data; each gets private pages as it changes them. In this model, making a new desktop avoids repeating the full operating-system and browser startup.
That is different from launching a fresh container image for every task. Bunshin uses KVM virtual machines and a small host-side engine; the README says the monitor is about 2,000 lines of C, with the rest of the project in Go. A desktop can also be paused when idle or saved to disk and restored with its windows in place. A restored desktop no longer shares memory with the original template, however, and the project estimates a saved Firefox desktop uses about 600 MB when running again.
What do the speed and memory figures actually show?
The repository’s measurements use an Intel Core i7-1355U laptop with 12 threads and 25 GB of memory, running WSL2 and kernel 6.18. For the default Firefox image, Bunshin reports 60–110 milliseconds for a caller-visible desktop creation, rising to as much as 330 milliseconds per desktop when several are created in a row. A new copy initially owns 16–38 MB of memory, but an idle Firefox desktop grows to 110–150 MB after a minute; each desktop also shares about 220 MB of common memory with the fleet. The project reports 137 milliseconds to pause, wake and run a command, and 0.4 seconds to restore a desktop from disk and run a command.
The author also reports 32–39 milliseconds to copy a stripped-down test machine with an X server and one window, including roughly 1 MB of private memory for a fresh copy. Those numbers measure Bunshin’s own implementation under a particular configuration. They are not an independent comparison against other virtual-machine systems, a guarantee for another computer, or evidence that the whole agent task completes in that time. Browser work, page loading, model latency and the task itself remain outside the copy measurement.
How many desktops fit on a computer?
There is no single desktop count in the README, and its zero hard-cap default does not mean memory is unlimited. Bunshin estimates capacity using a per-desktop memory budget, a reserved amount for the host and how much each running machine could still grow. The documented defaults budget 512 MB per desktop and keep 2 GB free for the computer. The project says it refuses a creation or wake request when that would leave too little room. Firefox can still hold 110–150 MB while idle, and a desktop restored from disk uses its full working memory instead of sharing the template’s pages.
In practice the useful number depends on the host’s RAM, the applications inside each desktop and how much those applications change their memory. Many mostly idle, freshly copied desktops may share more efficiently than the same number of busy browsers or restored machines. The project gives operators a status command and exposes fleet capacity to agents, but its current public benchmark is one laptop rather than a multi-machine scaling study.
What isolation does it claim, and what remains unproven?
Bunshin routes guest web traffic through a host-side HTTP proxy instead of giving each desktop a conventional network card. Its policy can allow or deny destination site names, and the project says it checks the resolved address as well; access to the host and private network is disabled unless explicitly enabled. The console is intended to bind to the local computer. These are design and implementation claims in the project’s own documentation, not the result of an outside security review.
There is also an important boundary: the project says only programs using the HTTP proxy can reach outside sites, so raw TCP and UDP traffic is not covered by that route. A virtual machine does not prevent an agent from reading hostile instructions on a web page, and network restrictions do not decide whether a person authorized an action. Bunshin recommends limiting allowed sites and taking over for logins or payments. Its author says the new engine has not yet been reviewed by an external security researcher.
Who can try Bunshin now?
The current requirements are Linux on x86-64 with KVM, including bare metal, a cloud host with nested virtualization or WSL2 on Windows 11. The user must be able to access `/dev/kvm`, and setup also needs GCC, Make, Go 1.24 or newer, `mke2fs` and a guest kernel. The first image build downloads a Debian base and desktop packages, which the project estimates at a few hundred megabytes and about ten minutes. The engine itself has only been run on one Intel x86-64 WSL2 machine; the README names other CPUs, kernels and bare-metal Linux as untested, and says macOS and ARM64 are not supported.
That makes Bunshin most relevant today to developers who already have a compatible Linux/KVM environment and want a locally observable desktop for agent experiments. It is not a drop-in service for every laptop, nor a mature multi-host fleet manager. Makers evaluating it can start by reproducing the integration test on their target host, measuring memory under their own browser workload and checking the network policy before connecting any agent to real accounts.
Bunshin approaches desktop automation from the infrastructure layer: give each task a machine that can be copied, watched, paused and reclaimed. For teams building agent products, that is a concrete design to test against their own threat model and hardware, with the current single-machine evidence and early-stage limitations kept in view.
How does Chrome test browser agents without the live web?
