# kumoba > Fast sandboxes for AI agents. Each sandbox is a real VM with its own kernel. Linux sandboxes run on libkrun and boot in under a second on an Apple silicon Mac or a Linux machine with KVM; on an Apple silicon Mac a sandbox can also run macOS, through Apple's Virtualization framework. It is self-hosted: one daemon on your laptop, your servers or your cloud, with no account and no hosted service. The default image comes with a Linux desktop and Chromium that an agent can see and use. Version 0.18.0, alpha, Apache-2.0. Source: https://github.com/Parassharmaa/kumoba - Install: `curl -fsSL https://kumoba.dev/install.sh | bash`, start the daemon with `kumobad`, then `kumoba run -- python3 -c 'print(1)'` runs code in a fresh VM that is deleted afterwards. - Interfaces: the `kumoba` CLI (`kumoba commands --json` lists every command with its JSON Schema), the TypeScript SDK (npm package `kumoba`), the Rust crate `kumoba` and the kumobad HTTP API. - MCP server: `kumoba mcp`, or `npx -y kumoba mcp`, serves the daemon's commands as tools to Claude Code, Claude Desktop, Cursor, VS Code, Codex and other MCP clients over stdio, with screenshots returned as images. Setup: https://kumoba.dev/guide/mcp - Agent skill: `npx skills add Parassharmaa/kumoba`, or have the agent run `kumoba skill`. It teaches Claude Code, Codex, Cursor and other coding agents to use sandboxes, network rules, secrets and the desktop. - Computer use: `kumoba screenshot`, `kumoba ui-tree`, `kumoba click`, `kumoba type` and `kumoba key` drive the sandbox desktop from any agent with a shell, while a person watches it live in the browser. - Safety: per-sandbox egress allowlists, secrets the guest never sees (the host swaps a placeholder for the real value on the way out) and a log of every connection. - Platforms: Apple silicon Macs with macOS 14 or later, and Linux on x86_64 or arm64 with /dev/kvm. macOS sandboxes need an Apple silicon Mac with macOS 27 or later. - Every docs page below is plain Markdown at its URL. The whole documentation as one file: https://kumoba.dev/llms-full.txt ## Start here - [Getting started](https://kumoba.dev/getting-started.md): Install kumoba on an Apple silicon Mac or Linux with KVM, run code in a fresh VM sandbox, open its desktop in a browser and hand it to your coding agent. - [Install options](https://kumoba.dev/install.md): Every way to install kumoba: the install script, a pinned version, release tarballs, cargo or npm for the CLI and TypeScript SDK, and host requirements. - [How it works](https://kumoba.dev/architecture.md): How kumoba runs each sandbox as a VM with its own kernel: the kumobad daemon, a libkrun worker per VM, the guest agent, disks, network proxy and live view. - [FAQ](https://kumoba.dev/faq.md): Answers about kumoba: what to build with VM sandboxes for AI agents, how it differs from containers, Firecracker and hosted services, platforms and cost. - [kumoba vs E2B, Docker, Firecracker and other sandboxes](https://kumoba.dev/compare.md): How kumoba compares with E2B, Daytona, microsandbox, Docker, Firecracker and Lume on isolation, hosting, macOS, desktop, network and secrets. ## How-to guides - [Run code once](https://kumoba.dev/guide/run-code.md): Run one command in a fresh VM sandbox with kumoba run and get its output and exit status, with optional network limits, timeouts and CPU or memory caps. - [Work in a sandbox](https://kumoba.dev/guide/sandboxes.md): Keep a VM sandbox between commands: create and start it, run commands, copy files in and out, stop or delete it, and export it to another host. - [Use kumoba from your coding agent](https://kumoba.dev/guide/coding-agents.md): Install the kumoba agent skill so coding agents like Claude Code, Codex and Cursor can run sandboxes, limit the network, use secrets and drive the desktop. - [Use kumoba as an MCP server](https://kumoba.dev/guide/mcp.md): Give Claude Code, Claude Desktop, Cursor, VS Code or Codex kumoba sandboxes as MCP tools with kumoba mcp, so an agent can run code and drive a desktop in a VM. - [Use kumoba as a sandbox tool in the AI SDK, OpenAI Agents SDK and Claude Agent SDK](https://kumoba.dev/guide/agent-frameworks.md): Give an agent built with the Vercel AI SDK, OpenAI Agents SDK, Claude Agent SDK or LangChain.js a code execution tool that runs in a kumoba VM sandbox. - [Open a shell in a sandbox](https://kumoba.dev/guide/shell.md): Open an interactive terminal inside a kumoba sandbox with kumoba shell, like docker exec -it, and choose the user, working directory or program to run. - [Open the desktop live view](https://kumoba.dev/guide/desktop.md): Open a sandbox's Linux desktop with Chromium in your browser, share a watch-only link, and let an AI agent drive it with screenshots, clicks and typing. - [Use the live view in any container](https://kumoba.dev/guide/live-view-anywhere.md): Use kumoba's live view engine as a VNC replacement in any Linux container or VM with an X display, and embed the desktop stream in your own web page. - [Run macOS in a sandbox](https://kumoba.dev/guide/macos.md): Run macOS in a VM sandbox on an Apple silicon Mac: build the macOS image, build and test with Apple's compilers, see the screen live, and know the limits. - [Open a web app from a sandbox](https://kumoba.dev/guide/expose.md): Open a web app running inside a kumoba sandbox from your browser with kumoba expose, which gives the sandbox port a signed link that expires. - [Control network access](https://kumoba.dev/guide/network.md): Control what a sandbox can reach with open, allowlist or blocked network modes, change the policy while it runs, read the access log, and reach intranets. - [Give a sandbox a token without revealing it](https://kumoba.dev/guide/secrets.md): Give code in a sandbox an API token it can use but never see: the guest gets a placeholder, and kumobad sends the real value only to the hosts you allow. - [Run kumobad as a service](https://kumoba.dev/service.md): Run kumobad as a systemd service on a Linux server: explicit paths, clean shutdown, reverse proxy for preview links, TLS, intranets and corporate proxies. - [Run sandboxes on another machine](https://kumoba.dev/guide/remote-daemon.md): Run kumobad on a separate machine with KVM or Apple silicon and reach it over TLS: certificates, client certificates, token rotation and fleet pairing. - [Run a fleet of hosts](https://kumoba.dev/guide/fleet.md): Spread sandboxes across hosts with kumobad fleet: pair hosts with a one-time code, place sandboxes by capacity, drain hosts, move sandboxes, read metrics. - [Upgrade or uninstall](https://kumoba.dev/guide/upgrade.md): Upgrade kumoba with the installer while your sandboxes stay, drain a shared host first, install a specific version, or uninstall kumoba completely. - [Troubleshooting](https://kumoba.dev/troubleshooting.md): Fixes for common kumoba errors: libkrun or /dev/kvm at install, cannot reach kumobad, TLS failures, capacity and disk full errors, macOS sandbox issues. ## Reference - [CLI](https://kumoba.dev/cli.md): Reference for the kumoba CLI: connecting to kumobad, finding commands, arguments, output formats, exit statuses and error codes, for people and AI agents. - [TypeScript SDK](https://kumoba.dev/typescript.md): Use the kumoba TypeScript SDK in Node to run code in VM sandboxes, expose ports, set secrets, drive the desktop, follow events and handle errors. - [Rust](https://kumoba.dev/rust.md): Use the kumoba Rust crate to boot VM sandboxes directly from Rust without the daemon, with an example that boots an image, runs a command and exits. - [kumobad HTTP API](https://kumoba.dev/http-api.md): Reference for the kumobad HTTP API: sandboxes, exec, shell, files, secrets, previews, desktop input, access log, events, metrics and fleet routes. - [Configuration](https://kumoba.dev/configuration.md): Every environment variable for kumoba: kumobad daemon settings and log lines, CLI and SDK client settings, and installer options that override defaults. - [Images](https://kumoba.dev/images.md): What kumoba's default Debian image with desktop and Chromium contains, how to build your own VM image or convert a container image, and disk use. - [Changelog](https://kumoba.dev/changelog.md): Release notes for every kumoba version: new features, changes and fixes to the sandbox daemon, CLI, TypeScript SDK, Rust crates and VM images. ## Explanation - [How secrets work](https://kumoba.dev/secrets.md): How kumoba keeps API keys out of sandboxes: the guest holds only a placeholder, the proxy adds the real value to HTTPS headers, and responses are scrubbed. - [Security model](https://kumoba.dev/security.md): kumoba's security model for untrusted code: hardware VM isolation, network blocks, secrets, signed preview links, daemon access and vulnerability reports. ## Optional - [Contributing](https://kumoba.dev/contributing.md): Build kumoba from source on a Mac or Linux with KVM, learn the repository layout, run the tests and proofs locally, and prepare a pull request. - [Releasing](https://kumoba.dev/releasing.md): How kumoba releases ship: one version for the crates, npm package and GitHub release, cut from a release pull request, with versioning rules and recovery.