
kumoba
io.github.Parassharmaa/kumoba
Sandboxes for AI agents: run code, move files and drive a desktop in local microVMs
Documentation
kumoba
Fast sandboxes for AI agents.
Each sandbox is a real VM that boots in under a second, and the default image comes with a desktop your agent can see and use. Run it on your laptop, your servers or your cloud.
Documentation · 日本語 · Quick start · Changelog
Why kumoba
- Your agent gets a computer. Plain CLI commands take a screenshot, list the buttons on screen, click and type, so any coding agent with a shell can use a Linux desktop with Chromium. You watch every step live in your browser.
- Real VMs that start fast. Each sandbox is a hardware-isolated VM with its own kernel. It boots and runs its first command in about half a second on an Apple silicon Mac.
- Runs where you are. One daemon on your laptop, your servers or your cloud, with no account and no hosted service. On an Apple silicon Mac, a sandbox can run macOS too.
- Safe by default. Egress allowlists, secrets that never enter the VM, and a log of every connection.
- Built for agents. Every CLI command has a JSON Schema and returns the guest's exit code, and a failed one prints the next command to run.
Quick start
You need an Apple silicon Mac with macOS 14 or later, or a Linux machine (x86_64 or arm64) with /dev/kvm and zstd. On macOS, install libkrun first with brew tap slp/krun && brew install slp/krun/libkrun slp/krun/libkrunfw zstd. See all requirements.
curl -fsSL https://kumoba.dev/install.sh | bash # kumobad, the kumoba CLI and the default image
export PATH="$HOME/.kumoba/bin:$PATH" # add this to your shell profile
kumobad # the daemon; leave it running
In another terminal, run code in a fresh VM, which is deleted afterwards:
kumoba run -- python3 -c 'import platform; print(platform.platform())'
Give your agent a computer
Install the kumoba agent skill so Claude Code, Codex, Cursor and other agents know how to use sandboxes, the network rules, secrets and the desktop:
npx skills add Parassharmaa/kumoba # or have the agent run: kumoba skill
Then give your agent a sandbox's desktop. You start it with the first two commands, and the agent works with the rest, one command at a time. The desktop guide has instructions to paste into its CLAUDE.md or AGENTS.md:
export KUMOBA_SANDBOX=$(kumoba create --image default --start -q)
kumoba desktop --user kumoba --open # starts the desktop and opens the live view
kumoba exec --user kumoba -- kumoba-browse https://kumoba.dev
kumoba screenshot --settle # saves a PNG and prints its path
kumoba ui-tree # push button "Send" at 812,440
kumoba click 812 440 && kumoba type "hello" && kumoba key Return
Use it from code
import { Kumoba } from "kumoba"; // npm install kumoba
const kumoba = new Kumoba();
const once = await kumoba.run("python3 --version"); // fresh VM, deleted afterwards
console.log(once.stdout);
const sandbox = await kumoba.create({ user: "kumoba" });
await sandbox.files.write("/workspace/a.txt", "hello");
console.log((await sandbox.run("cat /workspace/a.txt")).stdout);
await sandbox.delete();
new Kumoba() finds the daemon by itself. There is also a Rust library and an HTTP API.
How it compares
| kumoba | Containers (Docker) | Hosted sandboxes (such as E2B) | |
|---|---|---|---|
| Isolation | A VM with its own kernel | One shared kernel | Varies; E2B uses Firecracker VMs |
| Where it runs | Your laptop, servers or cloud | Anywhere Docker runs | The provider's cloud; E2B can also be self-hosted |
| Desktop an agent can use | Built in, with a live view | Not built in | Some offer one, such as E2B Desktop |
| macOS sandboxes | Yes, on Apple silicon | No | Not on E2B |
Learn more
Getting started · Coding agents · Live desktop · Network access · Secrets · macOS sandboxes · CLI · How it works · FAQ
kumoba is alpha: every release is tested on real VMs, but the API, CLI and image format may change between 0.x releases, so pin a version with KUMOBA_VERSION. Bug reports and pull requests are welcome; see CONTRIBUTING.md, and report security problems as SECURITY.md describes.
Apache-2.0. libkrun is Apache-2.0; libkrunfw ships a GPL-2.0 Linux kernel. See NOTICE.
If kumoba is useful to you, a star helps others find it.
kumobanpm install kumoba