Skip to Content
kumoba

Changelog

All notable changes to kumoba are recorded here. The format follows Keep a Changelog. The four crates (kumoba, kumoba-protocol, kumoba-guest, kumobad) and the kumoba npm package share one version and are released together.

Unreleased

Added

0.18.0 - 2026-12-05

Added

  • kumoba mcp serves the daemon's commands to an MCP client such as Claude Code, Claude Desktop, Cursor, VS Code or Codex as tools over stdio, in both the native and the npm CLI (npx -y kumoba mcp): exec returns the exit code and output, screenshot returns the screen as an image, and errors carry the CLI's hint. The catalog marks commands left out with "mcp": false, and the summaries of read-file, screenshot, desktop and click no longer describe CLI output or flags. See Use kumoba as an MCP server.
  • A sandbox client for the OpenAI Agents SDK, KumobaSandboxClient in examples/openai-agents-sandbox, so a SandboxAgent runs its shell commands, file edits and image views in a kumoba VM. See Sandbox agents.

Changed

  • The docs, the write-file command summary and the SDK's files.write() description now say that a write creates missing parent directories, as the acting user or as root without one; every release has done so. The agent framework examples and desktop.type() no longer call files.mkdir() before writing.
  • The agent skill tells agents to open the screenshot path exactly as kumoba screenshot prints it instead of assuming the default ~/.kumoba/screenshots folder when KUMOBA_HOME is set.
  • The docs, the write-file command summary and the SDK's files.write() description now say that a write creates missing parent directories, with the uid and primary group of the acting user or as root without one; every release has done so. The agent framework examples and desktop.type() no longer call files.mkdir() before writing.
  • The default image has Node.js 26.14.0 LTS from the official Node.js binaries, pinned and checked by SHA-256, instead of Debian's Node.js 20, which reached end of life, so the TypeScript SDK and the npm CLI run inside a sandbox. The image no longer has Debian's Node.js at all. Rebuild or download the image again to get it. See Images.
  • The README and the kumoba.dev home page lead with agents using a sandbox's desktop and the agent skill, and the README is shorter. Getting started and the coding agents guide show the skill and the desktop commands, and the FAQ lists what you can build, in English and Japanese.
  • The TypeScript SDK's sandbox.desktop.start() starts the desktop through kumobad, like kumoba desktop, so on a Linux sandbox it returns once the desktop has drawn its first screen and a screenshot taken right after is no longer black. Its result, now typed DesktopStarted, holds the process flags plus painted: true, or after 20 s painted: false and a warning, so code that treats every value as a process flag needs to skip those two. It throws status 422 when the image's live view does not start listening, and it works on a macOS sandbox too. sandbox.desktop.screenshot({ settle: true }) waits up to 3 s for the screen to stop changing, like kumoba screenshot --settle.
  • kumoba key, POST /v1/sandboxes/{id}/desktop/key and the SDK's desktop.hotkey() and desktop.press(), which now go through kumobad, treat a letter after a modifier the same in either case, so ctrl+A presses ctrl+a rather than ctrl+shift+a, and take Enter, Escape, Tab, Backspace, Delete, Home, End, PageUp, PageDown, F1 to F12 and the arrows, also written ArrowLeft, in any case. kumobad reads the names, so this holds for sandboxes from any image. A single letter on its own still types that letter as written. Against kumobad 0.16 or earlier the SDK's hotkey(), press() and settled screenshots throw upgrade_required.
  • kumoba.dev has a page that compares kumoba with E2B, Daytona, microsandbox, Docker, Firecracker and Lume, with sources, and guides for search engines and AI assistants: a description on every page, structured data, a fuller llms.txt and a link to each page's Markdown. The installer's last line links the docs and the source.

Fixed

  • File operations run as a user (files.write(), files.upload(), files.read(), files.list(), write-file, read-file, list-files and the HTTP file endpoints with user) have the permissions a command run as that user has, supplementary groups included, on Linux and macOS sandboxes. Before, they used only the user's primary group, so a directory writable through another group refused them. Sandboxes from images built by an older release keep the old behaviour.
  • On Linux sandboxes, exec, run() and shell as a user in more than 32 groups failed with No such file or directory; they now run with all of the user's groups.

0.17.0 - 2026-12-04

Added

  • An agent skill for coding agents such as Claude Code, Codex and Cursor, in skills/kumoba: when to use kumoba run and when to keep a sandbox, files, servers, network allowlists, secrets, driving the desktop with the new desktop commands and the live view, cleanup, and reading the CLI's errors and hints. Install it with npx skills add Parassharmaa/kumoba. kumoba skill prints the copy built into the installed CLI, and kumoba skill <reference> one of its references, in both the native and the npm CLI, without a daemon. See Use kumoba from your coding agent.

  • kumoba desktop on a Linux sandbox returns once the desktop has drawn its first screen, so a screenshot taken right after shows it instead of a black screen. It waits up to 20 s, then answers with "painted": false and a warning rather than hang.

  • Agents can see and drive a sandbox's desktop from the shell. kumoba screenshot saves a PNG of the screen into ~/.kumoba/screenshots and prints its path and size, and with --settle waits up to 3 s for the screen to stop changing, never stopping on a screen of one colour. kumoba ui-tree lists the visible buttons, fields and windows, one per line as push button "Send" at 812,440, with the point to click. kumoba click, hover, drag, scroll, type and key drive the mouse and keyboard, as in kumoba click 812 440 --double or kumoba key ctrl+l. They act as the user who started the desktop, and before kumoba desktop they fail with a hint to run it. kumobad implements them once, so the native CLI, the npm CLI, kumoba commands --json and the HTTP API (/v1/sandboxes/{id}/desktop/screenshot, /click and the rest) all have them. Let an agent drive the desktop has instructions to hand an agent.

  • KUMOBA_SANDBOX names the sandbox that commands working inside one sandbox use when you leave the id out, so kumoba click 300 200 and kumoba exec -- ls work in both CLIs. It covers exec, shell, read-file, write-file, list-files, get and the desktop commands; creating, starting, stopping, changing, exporting and deleting a sandbox still need its id. The catalog marks those commands with defaultSandbox, lists body arguments such as x and y in positional, and says with render how a command line shows a reply.

  • The default image starts Chromium with --force-renderer-accessibility, so kumoba ui-tree lists Chromium's address bar, buttons and the links on the page, not only its window, also when you open it from the dock. kumoba-browse <url> opens Chromium on a page from a command, inside the running desktop session: kumoba exec <id> --user kumoba -- kumoba-browse https://example.com. Run without a desktop, or as a user other than the desktop's, it says which command to run instead. Create a new sandbox from the new image to get both.

  • Both CLIs refuse a single value given twice, as in kumoba type <id> hello --text bye (text given twice), where the last one used to win silently. -o - writes any byte output, such as read-file, to stdout.

Changed

  • The TypeScript SDK and the npm kumoba CLI need Node 22 or later. Node 20 reached end of life in April 2026. CI and releases now run on Node 26, and CI also tests the SDK on Node 22.

Fixed

  • A watch-only live view link (watchUrl, or liveView({ watchOnly: true })) no longer shows the Copy from desktop button, which could do nothing there and covered the desktop panel's clock at the top right. The button now appears once a link that takes input connects.
  • In the default image, the web browser icon in the desktop's dock opens Chromium on the first click instead of xfce's "Choose Preferred Application" dialog. The image's xfce defaults (/etc/xdg/xfce4/helpers.rc) name Chromium as the web browser, in place of Debian's sensible-browser, which the image does not install. CI's desktop check now launches the preferred web browser the way the dock does and waits for Chromium.

0.16.1 - 2026-12-04

Fixed

  • When secret values overlap in a response, no byte of any of them reaches the guest. Values that overlap become one placeholder, the one for the value that starts first (the longest, if several start at the same byte): with the secrets abcd-1234 and 1234-wxyz, abcd-1234-wxyz reaches the guest as the placeholder of abcd-1234 alone, where 0.16 sent that placeholder followed by -wxyz. Values that only touch, as in abcd-12341234-wxyz, still get a placeholder each, and a run of a repeating value, such as 900 KB of a with the secret aaaaaaaa, becomes one placeholder instead of one for every 8 bytes. The secrets page says the same.
  • Secrets that repeat themselves or each other no longer make scrubbing a response slow down with the square of its size. A short secret together with a long one that repeats it made the scrubber look ahead over the same bytes again and again: with the secrets abcdefgh and 511 copies of it followed by Z, a 4 MiB response of abcdefgh took about 3.5 s of a worker thread and now takes about 40 ms, in one piece or streamed in 16 KiB chunks.
  • Scrubbing a streamed response no longer slows down with the number of pieces the upstream splits it into. Each piece used to scan the bytes held back from the last one again, up to the longest secret's length, once for every secret. The scrubber now carries how far each secret has matched from one piece to the next, so a piece costs at most one step per secret for each new byte, plus a small fixed cost per piece. With 31 secrets of 4 KB that share a 4095-byte prefix, 64 KiB sent 1 byte at a time took about 9 s of a worker thread and now takes about 14 ms, and 1 MiB in 64-byte pieces took about 2.5 s and now takes about 50 ms.

0.16.0 - 2026-12-03

Changed

  • On a Mac, a new sandbox's disk is a copy-on-write layer over the shared copy of its image (diskMode layer), as on ext4, instead of an APFS clone. On APFS the first write into a fresh clone of the default image as unpacked until now (4.7 GB on disk, see Fixed) and freeing a clone the guest wrote to took about 0.2 s each and ran one at a time across the volume. On an M3 Pro with the default image, kumoba run -- true now takes about 0.3 s instead of 0.76 s, a delete about 50 ms instead of 280 ms, and ten kumoba run at once finish in about 1 s, as with the 5 MB test image, instead of 6.6 s. Guest disk reads and writes are as fast or faster, and the shared copy is still an APFS clone of the image, so it takes no space of its own. Sandboxes created by an earlier kumobad keep their clones and work as before, and kumobad 0.15 starts the new layer sandboxes too, so going back to it needs nothing. On a Mac whose state directory is not on APFS, auto now picks layers too instead of a full copy for every sandbox. KUMOBAD_DISK_MODE=copy still makes full copies. Linux is unchanged.
  • The README and docs are easier to scan: a short demo, a 3-step quick start, a comparison with containers and hosted sandboxes, prerequisites and expected output in Getting started, a diagram on How it works, and a new FAQ, in English and Japanese.

Fixed

  • On macOS the installer unpacks the default image into the 1.5 GB of disk it holds, where it took 4.7 GB. The image never grew: APFS turned most of the holes zstd --sparse leaves into allocated zeros, and kumobad's shared copy of the image, an APFS clone, carried them. The installer now pipes the image through kumoba-worker unpack-image, which writes it and punches its zero blocks out again; installing an older release still unpacks with zstd. Running the installer again over an image it unpacked before frees the zeros in place with kumoba-worker sparsify-image, in a few seconds and without changing a byte; existing sandboxes keep the shared copy they layer on, and kumobad makes a fresh one from the freed image for new sandboxes. CI now prints the default image's allocated and compressed size and fails when they pass 2048 MiB or 540 MiB.

0.15.0 - 2026-12-03

Upgrade notes: the kumoba CLI's error output changed. A failure now prints kumoba: <message> [<code>] and a second line, hint: <next step>, instead of one line ending in (HTTP <status>), so a script that matched the old line must match the code instead, or pass --json and read the JSON object on stderr. A few exit statuses changed so that both CLIs agree: in the npm CLI, every bad connection setting exits 2 instead of 3: a bad KUMOBA_URL, http:// to another machine, a TLS variable set without an https:// URL, a TLS file that cannot be read or holds no certificate or key, and a client certificate without its key or that does not match it (a missing token still exits 3); an -o FILE that cannot be written exits 2 instead of 1; and --open when the browser opener cannot start exits 1 instead of 0. A daemon that closes or resets the connection after it took the command, over TCP, a Unix socket or TLS, now exits 1 in both CLIs with the code protocol, and the reason outcome_unknown unless the command only reads, since it may have run; in the npm CLI that was unreachable, exit 3. So does a 2xx reply that is not JSON, which the native CLI used to print as null with exit 0. Through a fleet, a call the host took but never answered is 503 host_unavailable with the reason outcome_unknown (or may_exist for a create), and the TypeScript SDK marks both reasons not retryable. In the TypeScript SDK, a call other than a GET whose connection breaks after the SDK connected (after the TLS handshake), whose reply breaks off, or whose run() stream ends before the command exits, keeps its code (unreachable or protocol) but has reason: "outcome_unknown" and retryable: false, since it may have taken effect; it used to be retryable: true. Only a call that never connected, or a TLS refusal of the client certificate, stays a plain unreachable there; a reset on a pooled connection the SDK reused counts as one that may have reached kumobad. An error from the source passed to files.write() or files.upload(), such as a missing local file, is thrown unchanged. A non-JSON answer to a call other than a GET has reason: "outcome_unknown" too. The npm CLI opens a fresh connection for every request, as the native CLI does, so the same rule holds for a connection reused from an earlier request. A fleet import the host may have taken answers 503 with may_exist, as a create does, and a fleet call whose TLS handshake with the host never finished stays a plain, retryable 503. In the native CLI, a daemon that closes a plain (non-TLS) connection before it begins to answer the request for its command list exits 3 with unreachable instead of 1, and an empty token file counts as no token (exit 3) instead of sending an empty token that kumobad refuses (exit 1).

Added

  • kumoba errors name their stable code and the next command to run, with the sandbox id or command filled in: start it with `kumoba start sbx-1`, `kumoba list` shows the sandboxes on this daemon, `kumoba images` lists them, when to retry a full host (from Retry-After), and which token source (KUMOBA_TOKEN, KUMOBA_TOKEN_FILE or $KUMOBA_HOME/token) a refused token came from. A hint never suggests what would make things worse: a draining host is left to its operator instead of undrained, a call whose outcome is unknown is checked before it is run again, and so is a create a fleet may have placed on a host whose answer was lost (host_unavailable with the reason may_exist), which points at kumoba list instead of a retry. A reply or stream that breaks off after kumobad took a command that changes something, and a connection kumobad closes after it took one, have the code protocol and the reason outcome_unknown instead of a plain retry. With --json anywhere before --, an error is one JSON object on stderr, {"error": {"code", "reason", "message", "hint", "status"}}, without the fields that have no value. A message of several lines, such as a boot failure that quotes the worker's log, keeps the code on its first line and indents the rest. kumoba help errors lists every code offline, and the CLI page has the same table. The native and the npm CLI print the same message, code, hint and exit status, down to the connection setting errors, with two exceptions: the text the operating system, the runtime or the TLS library adds after a colon can differ, such as why a socket or file could not be reached, read or written, or why TLS refused a certificate and key for a reason other than the ones kumoba checks itself (no PEM item, bad base64, an encrypted key, a key that does not match its certificate); and the npm CLI refuses a value that does not match its schema's pattern, such as kumoba list --label task, as a usage error (exit 2) before sending it, where the native CLI leaves that to kumobad (invalid_request, exit 1).
  • An unknown command or argument names the closest match: kumoba sandbox list suggests kumoba list (also as kumoba help --json sandbox list), memory=2048 suggests memory-mib=2048, --memory suggests --memory-mib, a positional value a command does not take, as in kumoba create default, suggests image=default, and a program given to exec or run without --, as in kumoba exec sbx-1 ls -la, suggests kumoba exec sbx-1 -- ls .... Errors and suggestions never repeat a value that may hold a credential: a value is repeated only when it is a plain word (letters, digits and _./:-, at most 64 characters) and not for secrets or env, however their names are spelled; anything else shows as ... or is described without its text, as in unexpected positional value. In the -- suggestion every value before the program, and the program's own arguments, show as .... JSON that does not parse is <name>: not valid JSON for every argument and --args, with no quote of it, and a bare value for a list of objects, as in secrets=... without JSON, is refused before anything is sent. A URL in a message shows only its scheme, host and port. From this version on, kumobad reports a request body it cannot read without quoting a value from it; an older kumobad, or an older host behind a fleet, still quotes serde's text, also for a JSON value given with --args, which the CLI does not check. A file path, from -o FILE or a key=@file value, is repeated only when it holds nothing but letters, digits and _./:-, a sandbox id goes into a hint only when it is a plain word, and a reply that is not JSON is reported without quoting it. Usage errors have the code usage; a bad KUMOBA_URL or TLS setting has config_invalid, and a missing token config_invalid with the reason no_token.
  • Error replies carry an additive reason where one code covers several cases: sandbox_not_found for 404 not_found, not_started and busy for 409 conflict, unknown_image and invalid_cursor for 400 invalid_request, and outcome_unknown for 500 internal when kumobad lost track of a call that may have taken effect. A fleet answers a create whose placement no host matches with 409 conflict and no_matching_host, and gives its 503 host_unavailable with "mayExist": true the reason may_exist. The messages name their subject: sandbox sbx-1 is not started, sandbox sbx-404 not found, and an unknown image lists the images there are. A 401 unauthorized has a message, and an exec or run stream's error event has the code in error and the reason in reason. A fleet relays a host's reason unchanged, and gives its own unknown image, unknown host and invalid cursor errors the same reasons. Every error code is unchanged. In the TypeScript SDK, KumobaError has reason and retryAfterSeconds, a missing token has the reason no_token, and a fleet's mayExist error has the reason may_exist, also from a fleet that sends no reason.

Changed

  • The docs moved to kumoba.dev, with a new home page and search in English and Japanese, and the installer is now curl -fsSL https://kumoba.dev/install.sh | bash. Every page is also served as Markdown at its URL plus .md, with a copy button on the page, and /llms.txt and /llms-full.txt list them for agents. Old parassharmaa.github.io/kumoba links redirect to the same page, and the GitHub URL of scripts/install.sh keeps working.
  • --json, -q, -o FILE, --output=FILE and --open work before the command name too, as in kumoba --json get <id>, which used to fail with unknown command --json. --output=FILE also works after it.
  • TypeScript SDK: when a command streamed by run() fails before it exits, the KumobaError carries the stream event's code and reason, such as guest_error, instead of always daemon_error; against a kumobad from 0.14 or earlier it is still daemon_error. Its status stays 502, as for every error reported inside the stream after kumobad answered the request with 200. An unreachable error names the URL with its scheme, host and port, such as https://host:7788, or a unix:// URL as given, such as unix:///home/me/.kumoba/kumobad.sock, instead of the bare socket path or host:port; a user name, password, path or query in the URL is left out.
  • A request body kumobad cannot read is 400 invalid_request with a message that names the field and the type it expects, or the line and column where the JSON breaks, instead of serde's text, which quoted the value it refused. unknown field `x` and missing field `x` keep their wording.
  • Native CLI: a boolean flag takes the next token as its value only when it is true, false, 1, 0, yes or no, as in the npm CLI, so kumoba create --start image=default works; a map argument read from a file, as in labels=@file, must hold JSON, as in the npm CLI. With HOME unset, the native CLI finds ~/.kumoba from the user's account record, as the npm CLI and the SDK do, instead of .kumoba in the current directory. Both CLIs read the command list up to 16 MiB.

Fixed

  • A sandbox that fails to boot now says why. The error gives the worker's exit status as exit code 125 or signal 9 instead of Ok(ExitStatus(unix_wait_status(32000))), and quotes the last non-empty lines of its worker.log (at most 20 lines from its last 4 KiB), read before a failed create with start or kumoba run deletes the sandbox; a boot that misses its deadline quotes them too. The error names the log's path only when the file is still there, as after start on an existing sandbox. The HTTP status (500) and code (internal) are unchanged. Rust crate: these two failures are now Error::BootFailed(BootFailure) instead of Error::Boot(String), with the reason, the quoted lines and the log path as methods.

0.14.0 - 2026-12-02

Upgrade notes: KUMOBAD_MAX_RUNNING=auto now also caps the limit by CPUs, at the host's CPUs divided by KUMOBAD_SANDBOX_CPUS (default 2), so a host with fewer than two CPUs per memory-sized slot runs fewer sandboxes than before: with the defaults, an 8-CPU, 64 GiB host goes from 15 to 4. To keep the old count, put a number in KUMOBAD_MAX_RUNNING; KUMOBAD_SANDBOX_CPUS=1 allows one sandbox per CPU (8 on that host). A number in KUMOBAD_MAX_RUNNING, and the default of 4, are unchanged.

Added

  • KUMOBAD_SANDBOX_CPUS (1 to 8, default 2, what a create gets without cpu) sets the vCPUs of the sandbox that KUMOBAD_MAX_RUNNING=auto sizes the limit for. Any other value stops kumobad at startup.

Changed

  • KUMOBAD_MAX_RUNNING=auto sizes the running limit from CPUs as well as memory: the smaller of the memory-based count and the CPUs kumobad may run on divided by KUMOBAD_SANDBOX_CPUS, at least 1. A 4-CPU, 64 GiB host with KUMOBAD_SANDBOX_MEMORY_MIB=8192 now runs 2 sandboxes of 2 vCPUs instead of 7. On Linux a lower cgroup CPU quota on kumobad or a parent cgroup, such as systemd CPUQuota= or a container's --cpus, counts instead, rounded down. maxRunningSource in GET /v1/capacity, kumoba.capacity() in the TypeScript SDK and the ready log line carry hostCpus, cpusFrom and sandboxCpus. CPUs are logical CPUs, and when they are fewer than one sandbox's vCPUs, kumobad logs max_running_short_of_cpus at startup.
  • The Linux release tarballs run on glibc 2.28 or later, such as RHEL 8 and Ubuntu 20.04. kumobad, the kumoba CLI, kumoba-worker and the bundled libkrun used to need glibc 2.34, and on arm64 kumobad and the CLI needed 2.39. They are now built in an AlmaLinux 8 container, and the release fails when a binary in a tarball needs a newer glibc (scripts/check-glibc.sh) or when kumobad or the CLI does not start in that container.
  • scripts/build-libkrun-closefix.sh builds into .local/libkrun-closefix/target-<mode>-glibc-<version>, one directory per glibc, so a checkout that built libkrun before rebuilds it once and can delete the old .local/libkrun-closefix/target-patched and target-stock directories.

Fixed

  • A host name in KUMOBAD_ALLOW_PRIVATE_HOSTS or KUMOBAD_NO_PROXY written with a trailing ., such as corp.example., now matches that host and its subdomains. It used to match nothing, so those hosts stayed blocked or went through the upstream proxy.

0.13.0 - 2026-12-01

Upgrade notes: a sandbox started with network blocked now has the egress proxy too, which refuses every connection. Programs in it that use the proxy, such as Chromium, interactive shells of the default image and now every command kumoba runs (which get HTTPS_PROXY and http_proxy in every mode), get 403 Forbidden from 127.0.0.1:3128 instead of a refused connection. The access log records none of these refusals, also for a sandbox switched to blocked, which used to log them as denied. Every Linux guest now listens on 127.0.0.1:3128, so a blocked workload that binds port 3128 itself gets EADDRINUSE. Such a sandbox also gets the secrets CA installed at start, like the other modes, and while it is blocked its commands get SSL_CERT_FILE, CURL_CA_BUNDLE, REQUESTS_CA_BUNDLE and NODE_EXTRA_CA_CERTS pointing at a bundle of the system CAs plus that CA, unless the command sets them itself. NO_PROXY for commands and the default image's shells now also lists ::1, 0.0.0.0 and sandbox, the guest's own name. In the Rust crate, Error::NetworkOff is gone, since a started sandbox can always change its network. Under 0.12 a network change on a sandbox whose saved settings could not be written still applied, which could leave the saved network older than the one in force; kumobad now applies the saved network when it starts and logs network_reconciled (warn, with from and to modes) when it changes one, so check for that line after upgrading. A network change now fails with nothing changed when the settings can't be written, and answers 500 with an error that says restoring them failed when kumobad can't tell which settings are saved. A kumobad from 0.12 or earlier can't read a deleted event with "reason": "disk_pressure", so after going back its GET /v1/events skips those events. Rust crate: Sandbox::set_network and Sandbox::set_network_and_secrets now return the number of connections the change closed, so code that matches Ok(()) must change. Images built with scripts/build-image.sh now keep the base image's own /etc/hosts, /etc/hostname and /etc/resolv.conf instead of the empty files Docker added, and need Docker with buildx. A create without start whose client hangs up now deletes the sandbox it made.

Added

  • scripts/build-image.sh --from <image> <name> turns an existing container image into a kumoba image: it adds kumoba-guest, kumoba-view, the kumoba-desktop helper and the default image's proxy settings for shells and Chromium on top of it and writes .local/images/<name>.raw, so a team that already maintains an image for its sandboxes needs no second Dockerfile.
  • KUMOBAD_PRUNE_STOPPED_ON_DISK_PRESSURE_MS (off by default) lets kumobad free disk by itself: a create, a create with start or /v1/run that would cut into KUMOBAD_MIN_FREE_DISK_MIB first deletes stopped sandboxes that stopped at least that long ago (an imported or moved one counts from its arrival), oldest first and with the prune's safety rules, until it fits, so clients no longer prune and retry. Each one gets a deleted event with "reason": "disk_pressure" (DeleteReason in the TypeScript SDK), and kumobad logs disk_pressure_pruned with the bytes freed. It still answers 507 disk_full when the sandboxes left could not make room by their size and by what its deletes really freed, after a delete that freed less than half its size, and for 60 seconds after a create that deleted and still did not fit, so on a filesystem with clones it deletes at most one sandbox that frees nothing. Under a fleet each host does this on its own, and a fleet create now tries hosts that report free disk above their minimum first. An imported sandbox's summary shows importedAtMs. The Rust crate's RuntimeConfig has disk_probe to measure free disk another way; RuntimeConfig::new sets it, and code that builds a RuntimeConfig with a struct literal must add it.
  • PATCH /v1/sandboxes/{id} takes "dropUnreachableSecrets": true with network (kumoba update --drop-unreachable-secrets, sandbox.update({ dropUnreachableSecrets: true })) to narrow a sandbox's network and remove the secrets the new policy no longer reaches in one call, for example when a host is taken away. It is all or nothing: either the new policy is in force and those secrets are gone when the call answers, or nothing changed. The answer lists the removed names in droppedSecrets, and a new event, secrets_dropped, records them, never the values. With blocked every secret is removed, also on a stopped sandbox. A kumobad from 0.12 or earlier refuses the field with 400 invalid_request. Rust crate: Sandbox::set_network_and_secrets, Sandbox::network_settled and SecretStore::unreachable.
  • A network change is recorded. GET /v1/events has a network_changed event with previousMode, mode and revoked, true when the change closed established connections the new policy no longer allows, stamped when the new policy took effect, and the sandbox summary has networkChangedAtMs with the same time, kept across restarts, so a client can tell whether a failure overlapped a policy change. An update with the policy the sandbox already has, or one that is refused or fails and keeps the old policy, records nothing; a stopped sandbox's change is recorded with revoked false, and so is a saved policy kumobad applies when it starts. A fleet relays both. TypeScript SDK: SandboxEvent.previousMode, mode and revoked, and SandboxInfo.networkChangedAt.
  • A fleet prunes stopped sandboxes. POST /v1/sandboxes/prune-stopped through kumobad fleet runs each host's own prune, so running, booting and busy sandboxes stay, olderThanMs and dryRun work as on one host, and the reply lists what went with fleet ids. host=HOST_ID (kumoba prune-stopped --host, kumoba.pruneStopped({ host })) prunes one host; without it every host prunes, hosts gives each host's freed bytes and failedHosts names the hosts that did not prune and why, with mayHavePruned when a host got the request but its answer was lost. The fleet answers 200 when any host pruned and 503 host_unavailable when none did.
  • A fleet's 507 disk_full on a create names the hosts short of disk in diskFullHosts, so a client can prune them through the fleet and create again. In the TypeScript SDK the KumobaError carries them as diskFullHosts, and a failed fleet prune's error carries failedHosts or mayHavePruned.

Changed

  • scripts/build-image.sh streams the built filesystem into mkfs.ext4 instead of loading the image into Docker's image store and exporting a container, so building a multi-GB image no longer grows dockerd by several GB and fits a common CI runner. The built image is not left in the store. It needs Docker with buildx. The disk no longer has what Docker added to a container: an empty /.dockerenv, /etc/hosts, /etc/resolv.conf and /etc/hostname, /dev/console, /dev/pts, /dev/shm and the /etc/mtab link. It keeps the image's own /etc/resolv.conf, /etc/hostname and /etc/hosts instead; the VM mounts /dev at boot, as for the test image.
  • Rust crate: Sandbox::set_network and Sandbox::set_network_and_secrets return how many established connections the change closed, instead of ().
  • A network change on a started sandbox now answers only after the open connections the new policy no longer allows are closed; before, the proxy closed them promptly but possibly just after the answer. A connection one change refuses is closed even when the next change, sent right after, would allow it again. A network change whose sandbox settings kumobad can't save now fails and changes nothing, instead of applying anyway, and kumobad applies a saved network a sandbox never took when it starts.
  • PATCH /v1/sandboxes/{id} (kumoba update, sandbox.update()) turns on the network of a sandbox that was started with blocked, without a stop and start, so one policy can be applied to many sandboxes whatever mode each started in. Every started sandbox now has the egress proxy, and blocked refuses every connection there before any DNS lookup, as a switch to blocked already did; a guest still has no network device. Commands started while the sandbox was blocked already carry the proxy settings, so they reach the network once it is turned on. If installing the CA certificate fails at start, as on an image without /etc/ssl/certs/ca-certificates.crt, a blocked sandbox still starts and turning its network on answers 422 guest_error; open and allowlist starts still fail. The 409 conflict for this case is gone.
  • A single kumobad refuses a prune whose host is not its own id with 400 invalid_request, so a prune meant for one host never runs on another.
  • Linux release tarballs ship libkrun 1.19.8 and libkrunfw 5.6.4 instead of 1.19.6 and 5.6.2, so guests run Linux 6.12.115 with libkrunfw's vsock fix. libkrun itself now keeps a connection to a host Unix socket open until the guest has its last bytes, which kumoba used to patch in; kumoba's remaining patch closes such a connection at once when the host side is gone and nothing is left to read, even while the guest is not reading. The Alpine test image is now 3.24.4. On macOS kumoba keeps using Homebrew's libkrun and libkrunfw.

Fixed

  • kumoba-guest adds sandbox, the guest's own name, to an /etc/hosts that already has localhost but not sandbox, keeping the image's other entries. Before, only an image without a localhost line got it, so on images such as Alpine sandbox did not resolve although NO_PROXY lists it.
  • A create without start whose client hangs up now deletes the sandbox it made, as a create with start does. Before, its disk stayed behind unlisted until kumobad restarted.
  • A stopped sandbox with secrets can't switch to blocked without dropUnreachableSecrets; kumobad refuses before it saves anything, while a started one still can as an emergency stop. Starting a blocked sandbox that kept its secrets says to open its network or remove them, naming dropUnreachableSecrets.
  • A secret with no environment variables never blocks a network change or a secret set, and dropUnreachableSecrets keeps it, as the guest can't use it anyway. Before, kumobad refused changes kumoba would have allowed.
  • PUT /v1/sandboxes/{id}/secrets refuses an environment variable listed for two secrets with 400 invalid_request naming it. Before, the later secret silently won.
  • kumobad saves a sandbox's settings before it changes them in memory when it keeps a sandbox after answering a create with start, so a failed save no longer leaves the sandbox listed as kept while the disk says it is deleted at the next start. A create or import whose settings can't be saved deletes the new sandbox instead of leaving it to appear after a restart.
  • Rust crate: if Sandbox::update_secret_bindings saved the new bindings but could not apply them, it now restores the previous manifest, so the next start no longer fails with a missing secret.
  • A network update on a stopped sandbox is refused with 400 invalid_request, and changes nothing, when the new policy reaches none of the hosts of an attached secret, as on a started one. Before, it answered 200 and the sandbox then failed to start. dropUnreachableSecrets still removes such secrets in the same call.
  • A PUT /v1/sandboxes/{id}/secrets that fails changes nothing. kumobad checks every secret first, its value, hosts, environment variable names, that the sandbox's network reaches one of its hosts and that the store has room, and refuses a name listed twice with 400 invalid_request, before it touches any secret in use. It then changes them all at once, and if attaching them still fails it restores the values and hosts of the secrets it changed and removes the ones it created. Before, a guest could briefly see a new value sent to a newly added host, an existing secret could keep a new value and wider hosts after a 400, a name listed twice left an orphaned copy, and new secrets stayed in kumobad's memory. POST /v1/secrets/delete reads a sandbox's secrets only once it holds that sandbox, so it can't put back a secret a concurrent call removed.
  • The egress proxy keeps accepting connections when the host runs out of file descriptors for a moment, instead of stopping and taking the sandbox down with it.
  • On macOS, a guest holding many egress connections can no longer use up the connections kumobad needs to reach the guest agent.
  • A prune whose client hangs up finishes instead of stopping part way, which could leave a sandbox whose disk was already deleted in the list as destroyed.

0.12.0 - 2026-11-30

Added

  • kumobad fleet add --code-file FILE and kumobad fleet repair HOST --code-file FILE read the pairing code from a file, or from stdin with -, so scripts no longer put the code's one-time token where ps and shell history show it. The code as an argument still works.

0.11.0 - 2026-11-30

Upgrade notes: an allowlist entry can now name any port, so 0.0.0.0/0:25 lets a sandbox reach port 25 on every public IPv4 address; check who may set network policies. KUMOBAD_ALLOW_PRIVATE_HOSTS entries without a port open ports 80 and 443 only, also for a name that resolves into them; add :port or :* to an entry to open more. IPv6 entries, in an allowlist and in KUMOBAD_ALLOW_PRIVATE_HOSTS, always go in brackets ([2600:1f18:abcd::10]:5432, [2600:1f18:abcd::/56]). In the Rust crate, both PrivateAllow variants changed from tuple to struct variants, Host { pattern, ports } and Cidr { network: IpAddr, prefix, ports }, with the new PrivatePorts, so every match on them and every constructor needs updating; a policy endpoint on another port no longer reaches an operator-opened host unless the entry opens that port. Before going back to 0.10.0: delete the sandboxes whose allowlist uses address entries or *.domain:port, or set their network to an allowlist of plain names, open or blocked, since 0.10.0 can't read those policies and kumobad fails to start; remove :port, :* and IPv6 entries from KUMOBAD_ALLOW_PRIVATE_HOSTS, since 0.10.0 refuses to start with them; and know that 0.10.0 has no port limit on operator ranges, so a sandbox entry such as db.corp.example:5432 that resolves into an opened range reaches that port again after the rollback. Remove such entries first if that is not acceptable. kumobad now keeps KUMOBAD_MIN_FREE_DISK_MIB (1024 by default) free in the state directory and answers a create that would cut into it with 507 disk_full; set it to 0 to refuse only a copy that cannot fit at all. The HTTP API has new error codes disk_full (507), exceeds_host_memory (422) and not_idle (409), and the access log a new decision, revoked; TypeScript code that switches over AccessDecision or KumobaErrorCode should handle them. In the Rust crate, RuntimeConfig has new public fields memory_budget_mib, min_free_disk_bytes and disk_mode, so struct literals need them, while RuntimeConfig::new sets them for you; Capacity is #[non_exhaustive]; and AccessDecision has a new variant, Revoked, so an exhaustive match on it needs a new arm. on a Linux host whose state directory can't clone files, new sandboxes use disk layers and their records say version 3. kumobad 0.10 refuses such a sandbox with incompatible sandbox manifest before it boots, so it never attaches a layer as a raw disk, and keeps sandboxes made with a full copy working; the guest protocol is unchanged, so guest images need no rebuild. Before rolling back, stop and snapshot every layer sandbox you want to keep: snapshots stay raw images, which 0.10 restores. KUMOBAD_DISK_MODE=copy makes new sandboxes full copies again. Sandboxes from before the upgrade need nothing. in the TypeScript SDK the low-level Api.stop(id, signal) is now Api.stop(id, { signal, ifIdleForMs }); sandbox.stop() is unchanged.

Added

  • A sandbox allowlist takes IPv4 and IPv6 addresses and CIDR ranges (203.0.113.7, 10.20.0.0/16, [2001:db8::/32]) and a port on any entry (git.example.com:7999, *.example.com:8443, 10.20.0.0/16:8443, [2001:db8::7]:8443); an entry without a port still means 80 and 443. Address entries match connections the guest makes to an IP address; a name is matched only by name entries, so kumobad still looks up only names the allowlist lists. Private addresses and every IPv6 address stay blocked unless KUMOBAD_ALLOW_PRIVATE_HOSTS opens them, and loopback, link-local, cloud metadata (AWS, GCP, Azure including WireServer 168.63.129.16, Alibaba 100.100.100.200), IPv6 forms that embed an IPv4 address and the host's own addresses always do, also by name and in open mode, so an entry like 0.0.0.0/0 reaches public IPv4 addresses only. A bad entry is 400 invalid_request naming it, and the access log records the address as the host for these connections. Rust crate: HttpConnectPolicy::allowlist parses these entries.
  • On Linux filesystems that can't clone files, such as ext4, a new sandbox gets a copy-on-write layer over one shared copy of its image instead of a full copy, so creating it takes milliseconds instead of minutes for a large image and it uses about the space it writes. Deleting it frees its layer, and the old shared copy too when it is the last sandbox from an image that has since changed or from a deleted snapshot. kumobad keeps one read-only copy of each image version in the state directory, where filesystems that clone (APFS, XFS, Btrfs) keep using clones, and makes it in the background for every configured image unless that would leave less than KUMOBAD_MIN_FREE_DISK_MIB plus 2 GiB free; this costs the space of one copy per image version. A sandbox whose VM was killed gets its layer checked and repaired before it boots again, snapshots of sandboxes with a layer stay raw images, and restoring a snapshot no longer copies its disk on these hosts. Sandboxes created before keep their full copies.
  • GET /v1/info reports diskMode (reflink, layer or copy) and each Linux image's baseReady, so a client can tell why a create is slow; kumoba.info() in the TypeScript SDK returns both.
  • A stopped sandbox moves between hosts: GET /v1/sandboxes/{id}/export (kumoba export, sandbox.export()) streams it as an archive holding its whole disk as the guest sees it, its labels and settings, and POST /v1/sandboxes/import (kumoba import, kumoba.import()) creates a stopped sandbox from that archive with a new id. Import checks the archive's format, sizes, records and checksum before the sandbox appears, counts its data against KUMOBAD_MIN_FREE_DISK_MIB, and keeps the sandbox's created, started and stopped times so auto-delete keeps its schedule. Secrets stay behind, and a moved sandbox takes its whole disk on the new host. kumobad fleet move SANDBOX [HOST] moves one sandbox, and kumobad fleet drain HOST --move-stopped empties a draining host of its stopped sandboxes, spread across the other hosts with room for their disks. A move deletes the original only if it is still stopped as it was when exported (DELETE /v1/sandboxes/{id}?ifStoppedAtMs=), and running it again after a lost reply finds the copy it already made (movedFrom). The kumoba CLI now streams a file or stdin passed as content, instead of reading it into memory.
  • Rust crate: Sandbox::export returns an Export stream, and Runtime::read_archive returns an Importing whose info() shows the archive's ArchiveInfo and whose finish(config) creates the sandbox.
  • KUMOBAD_DISK_MODE=copy makes a full copy for every sandbox, as before, in case layers misbehave on a host.
  • Rust crate: RuntimeConfig::disk_mode picks the disk mode (None chooses by the filesystem), and Runtime::disk_mode, Runtime::base_ready and Runtime::prepare_base report it and make an image's shared copy ahead of time. RuntimeConfig struct literals need the new field.
  • PATCH /v1/sandboxes/{id} (kumoba update, sandbox.update()) changes the network of a started sandbox without stopping it. The new policy is in force when the call answers: new connections follow it and the access log records decisions under it. Open connections it no longer allows are closed promptly, with no further bytes forwarded once the proxy sees the change, and are logged with the new decision revoked. open, allowlist and blocked can be switched while started, except that a sandbox started with blocked has no egress proxy and answers 409 conflict until it is stopped and started. A started sandbox with secrets can be switched to blocked as an emergency stop; it then can't start until its network or secrets change. Rust crate: Sandbox::set_network works on a running sandbox, a new error, Error::NetworkOff, reports that case, and AccessDecision has a new variant, Revoked.
  • POST /v1/sandboxes/{id}/stop?ifIdleForMs=n (kumoba stop <id> --if-idle-for-ms n, sandbox.stop({ ifIdleForMs }) in the TypeScript SDK) stops a sandbox only if it has no open operation and no activity for n ms when the stop takes it, the test of ?idle=true and auto-stop, and otherwise answers 409 with the new error code not_idle and leaves it running. A client freeing a slot no longer cuts off a command, transfer or preview that began after it listed the idle sandboxes.
  • KUMOBAD_ALLOW_PRIVATE_HOSTS takes IPv6 ranges and a port on an entry (10.20.0.0/16:5432, git.corp.example:7999, [2600:1f18:abcd::/56]:*).
  • Every log line kumobad and kumobad fleet write to stderr has a level: error when kumobad failed to do something, warn when it carries on but something needs a look (such as token_file_readable, max_running_short_of_memory and tls_refused), and info for routine lines such as ready, drain and auto_stop. A line with an error is never info. A supervisor can now tell a failure from routine output. See "Log lines" in the configuration guide.
  • KUMOBAD_ADMIT_BY_MEMORY=1 admits sandboxes by the memory they ask for, not only by count. A start, a create with start and /v1/run are admitted while the memory of the sandboxes that run or boot, plus the new one, stays within the host's memory (or a lower cgroup limit) less KUMOBAD_RESERVED_MEMORY_MIB; otherwise they answer 429 capacity at once, before any disk is copied. KUMOBAD_MAX_RUNNING still caps the count. Waiting requests keep their order, so a large sandbox is not passed over by smaller ones, and a sandbox larger than the whole budget is refused at once with 422 and the new error code exceeds_host_memory, which a fleet treats as a reason to try another host. A fleet also skips hosts whose budget is too small and ranks hosts by the smaller of their free slots and free memory. GET /v1/capacity and kumoba.capacity() in the TypeScript SDK report memoryMibInUse and, with the option on, memoryMibBudget; a fleet sums them.
  • Rust crate: RuntimeConfig::memory_budget_mib sets that budget, and Capacity has memory_mib_in_use and memory_mib_budget.
  • kumobad refuses a create, a create with start or /v1/run with 507 and the new error code disk_full before it copies anything when the copy would leave less free disk in the state directory than KUMOBAD_MIN_FREE_DISK_MIB (default 1024; 0 still refuses a copy that cannot fit at all). It counts the image's size unless the filesystem can clone it, and copies already in progress. Before, such a create filled the disk and failed part way with 500 No space left on device. A fleet tries the next host on 507. The TypeScript SDK marks disk_full not retryable.
  • GET /v1/capacity and GET /v1/info report disk: the state directory's free and total bytes, the bytes stopped sandboxes hold, and minFreeBytes. In the TypeScript SDK it is capacity().disk and info().disk.
  • POST /v1/sandboxes/prune-stopped?olderThanMs= (kumoba prune-stopped, kumoba.pruneStopped()) deletes stopped sandboxes that stopped at least that long ago, oldest first, and reports the blocks each one held (an upper bound on a filesystem with clones); dryRun=true only lists them. A fleet refuses it.
  • Rust crate: RuntimeConfig::min_free_disk_bytes (0 by default in RuntimeConfig::new) makes Runtime::create, restore and Sandbox::snapshot refuse with Error::DiskFull before copying. Runtime::claim_disk reserves bytes against the same check for other writers until the returned DiskClaim is dropped (DiskClaim::writing_into names the directory it fills, so only what is still to be written counts). Runtime::disk_space, Sandbox::disk_bytes and kumoba::disk_space read the space.
  • GET /metrics serves Prometheus metrics with the bearer token, on the listeners the API already has: running and maximum slots, running and stopped sandboxes, open operations and previews, drain state and free disk in the state directory; counters of creates, starts, stops by reason (crashes included), deletes, 429 capacity refusals, boot failures and boots abandoned by a client; and histograms of boot time and disk copy time. No metric names a sandbox. Under kumobad fleet, /metrics relays every reachable host's metrics with a host label, leaving out any host whose answer is not valid Prometheus text, and adds each host's state, drain, running slots and whether its metrics could be read, so one scrape of the fleet graphs every host. See "Metrics" in the HTTP API docs.

Changed

  • TypeScript SDK: Api.stop takes its signal in an options object, beside ifIdleForMs.
  • Rust crate: RuntimeConfig has a new public field, memory_budget_mib (None keeps the old behaviour), so struct literals must set it, while RuntimeConfig::new sets it for you; Capacity is now #[non_exhaustive] and has memory_mib_in_use and memory_mib_budget; Error has ExceedsHostMemory.
  • Rust crate: Sandbox::start_reserved refuses, with InvalidInput, a reservation made for the other kind of sandbox (macOS or Linux) or for less memory than the sandbox has, so the memory it holds always covers the sandbox.
  • When kumobad fleet cannot start, it logs the reason as a fatal JSON line, as kumobad does, instead of plain text. The drain line now goes through the same writer as every other line, so a closed stderr no longer makes a drain panic.

Fixed

  • A host name made of hexadecimal labels with nothing after 0x, such as 0x5d.0x.0x.0x1, is refused like other numeric addresses instead of being looked up, in allowlists, KUMOBAD_ALLOW_PRIVATE_HOSTS and open mode.
  • Azure's WireServer address 168.63.129.16 is blocked in every mode, open included, like the other cloud metadata addresses, and so is Alibaba Cloud's 100.100.100.200 even inside a range KUMOBAD_ALLOW_PRIVATE_HOSTS opens.

0.10.0 - 2026-11-30

Upgrade notes: kumobad now refuses to start when KUMOBAD_MAX_RUNNING is neither a whole number from 1 to 1024 nor auto (it used to fall back to 4); SIGHUP reloads TLS files and tokens instead of stopping kumobad, sandbox VMs run in their own process group, so Ctrl-C stops them cleanly and closing the terminal of a foreground kumobad leaves it and its sandboxes running; add KillMode=mixed and TimeoutStopSec=90 to a systemd unit so systemctl stop records shutdown rather than crash (see the service guide); while shutting down, kumobad answers create and start with 503 unavailable; and in the Rust crate RuntimeConfig has a new public field, exit_sink, so struct literals need ..Default::default() or the field.

Added

  • kumobad fleet serves one kumobad API in front of many kumobad hosts, so a client that needs more sandboxes than one machine runs, or has no /dev/kvm, changes only its URL. It places each new sandbox on a healthy, undrained host that serves the image and matches optional placement labels, with the most free slots, and moves to the next host on a 429 within the same request. Sandbox ids become <hostId>.<sandboxId> and preview paths /v1/preview/<hostId>/<token>/...; every call and preview, WebSockets included, goes to the sandbox's host, and an unreachable host answers 503 with the new error code host_unavailable. Capacity, sandbox lists, the event feed and the access log merge all hosts, the last two with one cursor that holds every host's position. Hosts are checked every 2 s and refused when their version is not the fleet's or the one before. kumobad fleet add <code> pairs with a host by the code kumobad host init printed on it (pinned certificate, one-time token, a client certificate the host signs), fleet repair <host> <code> rotates those credentials, and list, check, drain, undrain and remove manage the hosts file, whose credentials are encrypted at rest with a key kept apart from it. GET /v1/info gains each image's kind (linux or macos), so the fleet places macOS sandboxes on hosts with a free macOS slot. It runs beside a local kumobad on fleet.sock and ports 7798 and 7799, with KUMOBA_FLEET_* settings. See "Run a fleet of hosts" in the docs.
  • GET /v1/info (kumoba info, kumoba.info() in the TypeScript SDK) describes the host for a client that manages several: a stable hostId kept in KUMOBAD_STATE_DIR, the hostname, the kumoba version and guest protocol version, every image with a sha256: digest of its content, the platform (OS, architecture, whether KVM or Hypervisor.framework is usable, CPUs, memory), the running limits, the create defaults and maximums, and the host's labels. kumobad hashes images in the background and keeps the digests across restarts, so a digest reads null only until its image is first hashed.
  • KUMOBAD_HOST_LABELS=zone=a,proxy=corp sets the labels /v1/info reports. A key follows the sandbox label rules; a malformed value stops kumobad at startup.
  • Drain: POST /v1/drain (kumoba drain, kumoba.drain()) takes a host out of service for every client. Creates, with or without start, and /v1/run answer 409 with the new error code draining and create nothing, including those already waiting for a slot; running sandboxes and everything in them carry on. Starting a stopped sandbox still works unless the drain was ?strict=true (--strict, { strict: true }). DELETE /v1/drain (kumoba undrain, kumoba.undrain()) ends it, and /v1/capacity and /v1/info report draining and drainStrict. Each change is logged as a drain event. A drain is not kept across a restart; KUMOBAD_DRAIN_ON_START=1 (or strict) starts kumobad draining.
  • Rust crates: kumoba::MACHINE_FILES names the files a macOS image boots from, and kumoba::SANDBOX_VCPUS the vCPUs a sandbox may have, beside SANDBOX_MEMORY_MIB.
  • KUMOBAD_MAX_RUNNING=auto sizes the running limit from memory: the host's memory, less KUMOBAD_RESERVED_MEMORY_MIB (default 2048), divided by KUMOBAD_SANDBOX_MEMORY_MIB (default 4096), at least 1. On Linux a lower cgroup memory limit on kumobad, such as systemd MemoryMax=, counts instead. GET /v1/capacity and kumoba.capacity() in the TypeScript SDK report how the limit was derived in maxRunningSource, and the ready log line carries both.
  • Rust crate: MAX_RUNNING_LIMIT (1024) and SANDBOX_MEMORY_MIB (256..=16384) export the bounds RuntimeConfig::max_running and SandboxConfig::memory_mib are checked against.
  • GET /v1/events (kumoba events, kumoba.events() in the TypeScript SDK) is a feed of every sandbox being created, started, stopped and deleted, oldest first, each with its exact time, sandbox id and labels. A stop says why: api, auto_stop, guest_exit, crash or shutdown. Pass nextCursor back as cursor to read on; it stays valid across restarts, a page with nothing new returns the cursor you sent, and a cursor from another host's log says reset, and a page says gap once when events after the cursor were removed by the retention. Events come in the order kumobad recorded them, which is not always atMs order. kumobad keeps 72 hours of events, those of deleted sandboxes included, so a sandbox removed by autoDeleteMinutes: 0 keeps its times. On SIGTERM every running sandbox gets a stopped event with reason shutdown, and one that was running when kumobad died gets crash when it starts again.
  • The sandbox summary has startedAtMs and, while it is stopped, stoppedAtMs. kumobad saves both with the sandbox, so a restart keeps the real stop time. In the TypeScript SDK they are info.startedAt and info.stoppedAt.
  • Rust crate: RuntimeConfig::exit_sink is called the moment a sandbox's VM process exits, and Sandbox::take_exit returns that exit's time and status (VmExit); a new start clears it.
  • kumobad re-reads its TLS certificate, key and client CA and its token file on SIGHUP (systemctl reload with ExecReload=/bin/kill -HUP $MAINPID), so certificates and tokens can be replaced without stopping sandboxes. New handshakes and requests use the new files while open connections, shells and live views carry on. A file that fails to load keeps the old value, and each reload logs tls_reloaded and token_reloaded with ok and, on failure, the reason, never the values.
  • KUMOBAD_TOKEN_FILE_NEXT names a second token kumobad accepts beside the current one, so clients can move to a new token with no moment when they are refused. A missing file means no second token.
  • kumobad logs token_file_readable with the path and mode, at startup and after each reload, when a token file is readable by its group or others.
  • kumobad host init [--address ...] prepares a host for a fleet: it writes a self-signed server certificate for every address it knows plus --address, and a client CA, to $KUMOBA_HOME/tls/, and prints a pairing code. Without the KUMOBAD_TLS_* variables kumobad then serves those files over TLS on 0.0.0.0:7788 and 0.0.0.0:7789 with client certificates required. kumobad host pair-code prints another code.
  • POST /v1/pair takes a pairing code's one-time token and a CSR and returns a client certificate the host's CA signed, that CA and the bearer token. A TLS connection without a client certificate may make only this request; every other request on it is refused with 403. A token works once, expires after an hour and is stored hashed; an address that sends 5 wrong tokens within a minute gets 429 for the rest of it, while a valid token always pairs. Until kumobad loads a client CA that host init --force replaced, pairing answers 503 and leaves the token unused. --force swaps the whole tls directory, so an interrupted run never leaves a key beside the wrong certificate.
  • Rust crate: kumoba::local_ipv4_addresses lists this machine's IPv4 addresses, the set egress checks treat as the host's own.
  • POST /v1/sandboxes and POST /v1/run take a placement object, such as {"zone": "a"}, for a fleet of kumobad hosts to pick a host by. A single kumobad accepts and ignores it, so one request works against both.
  • The sandbox summary reports activeOperations, the commands, shells, file transfers and preview or live view connections open in it now, and openPreviews, how many of those are preview or live view connections. A live view watched quietly for an hour counts the whole hour, where lastActivityAtMs only moves when it opens and closes. In the TypeScript SDK they are info.activeOperations and info.openPreviews, absent against older daemons.
  • GET /v1/sandboxes?idle=true&idleForMs=<n> (kumoba list --idle --idle-for-ms <n>, kumoba.list({ idle: true, idleForMs })) lists only started sandboxes with no open operation and no activity for n milliseconds, the same test auto-stop uses, so a client can pick a sandbox to stop without reaching into it.

Changed

  • kumobad refuses to start when KUMOBAD_MAX_RUNNING is neither a whole number from 1 to 1024 nor auto, or when KUMOBAD_RESERVED_MEMORY_MIB is not a whole number of MiB or KUMOBAD_SANDBOX_MEMORY_MIB is not one from 256 to 16384, instead of silently running 4 sandboxes.
  • A sandbox whose guest shuts down or crashes on its own is recorded as stopped at the moment its VM exits, where kumobad noticed it up to 30 seconds later.
  • A stop or delete call keeps going when the client disconnects or gives up, so the guest still shuts down cleanly instead of being killed halfway.
  • While shutting down, kumobad answers create and start with 503 unavailable, stops running sandboxes up to 16 at a time and gives up on the rest after 60 seconds; a VM that exits meanwhile is recorded as shutdown. The systemd unit in the docs now sets KillMode=mixed and TimeoutStopSec=90, so systemctl stop lets kumobad shut its guests down instead of signalling every VM process; add both to an existing unit.
  • A sandbox left running by a kumobad that died is stamped no earlier than kumobad's last heartbeat, a file under <state> it touches every 30 seconds, so a power loss no longer reads as a run of a few seconds.
  • Rust crate: RuntimeConfig has a new public field, exit_sink, so code that builds it with a struct literal must set it (or start from RuntimeConfig::new). Sandbox::worker_log_modified reads when the VM process last wrote its log.
  • SIGHUP no longer stops kumobad. It used to end it at once without stopping its sandboxes cleanly.
  • Sandbox VM processes and the macOS live view engine run in a process group of their own, so a signal sent to kumobad's terminal reaches only kumobad. Ctrl-C now stops every sandbox cleanly, as SIGTERM does, where it used to kill each VM process at once. Closing the terminal of a kumobad started in the foreground, or logging out of one started with nohup, leaves kumobad and its sandboxes running; stop it with Ctrl-C or SIGTERM first.
  • A token file shorter than 32 bytes is reported with its path.

Fixed

  • kumobad keeps working when its log output goes away, such as a closed terminal or a pipe whose reader exited. A log line it could not write used to end the task that wrote it, such as the one that answers a later SIGHUP.

0.9.0 - 2026-11-30

Added

  • HTTP API: POST /v1/sandboxes takes "start": true to create and boot in one call. kumobad holds a running slot before it copies the image's disk, so at KUMOBAD_MAX_RUNNING it answers 429 capacity at once and creates nothing, where a create followed by a start copied the whole disk first (about 110 s for a 9.8 GB image on ext4) only to fail and leave it to delete. If the boot fails or the client disconnects first, kumobad deletes the sandbox; a client that leaves during the copy gives its slot back at once, and a sandbox whose answer was never handed to the client is deleted when kumobad restarts. waitMs (at most 600000) waits that long for a free slot first, in the order requests asked; POST /v1/run takes it too. In the CLI: kumoba create --start [--wait-ms N].
  • GET /v1/capacity (kumoba capacity, kumoba.capacity() in the TypeScript SDK) returns the running slots in use and the limit, {"running": 3, "maxRunning": 4}, plus macosRunning and macosMaxRunning on a Mac, so a client can wait or queue without listing every sandbox.
  • Rust crate: Runtime::reserve holds a running slot, waiting up to a given time for one, and Sandbox::start_reserved boots with it; dropping the Reservation frees the slot. Runtime::capacity reads the slots in use.

Changed

  • POST /v1/run holds its running slot before it copies the disk, so at the limit it answers 429 at once instead of after the copy.
  • Every 429 capacity reply carries Retry-After: 5.
  • TypeScript SDK: kumoba.create() asks kumobad to create and start in one request, so at the limit it throws a retryable capacity error before any disk is copied and leaves the cleanup of a cancelled create to kumobad. It takes waitMs, as does kumoba.run(). Against kumobad 0.8 or earlier it falls back to creating, then starting, as before, and remembers that for ten minutes or until capacity() answers; waitMs is refused there.
  • CLI: a boolean flag such as --start takes the next argument as its value only when it is true, false, yes, no, 1 or 0, so --start -q works.

0.8.0 - 2026-11-30

Upgrade notes: the HTTP API now answers 400 invalid_request for a query parameter a route does not take and for a label key that is empty or contains :; preview failures carry forbidden, bad_gateway or gateway_timeout instead of internal; kumobad closes connections that send no request headers for 30 s and caps each listener's open connections; a preview connection or Sandbox::connect tunnel with no data either way for 1 hour is closed; the CLI and SDK refuse http:// to any host but this machine; and in the TypeScript SDK desktop.liveView() now starts the desktop through kumobad on Linux too and returns the noVNC page itself for viewer: "vnc", and viewer.typeText() throws for more than 262,144 characters in one call.

Added

  • Live view: the desktop link comes with a watch-only one. kumoba desktop and POST /v1/sandboxes/{id}/desktop return watchUrl and watchPath next to url, and in the TypeScript SDK desktop.liveView({ watchOnly: true }) returns that link. It shows the desktop and the engine ignores its keyboard, mouse and clipboard, so changing the link or the page doesn't give control: the access is signed into the link, and kumobad opens the stream with a watch token the browser never sees. There is no watch link for the noVNC viewer, or for an image whose desktop helper is from 0.7.1 or earlier; the response then leaves watchUrl out, and the SDK throws upgrade_required instead of returning a link that controls the desktop. An older kumobad refuses a watch link instead of reading it as a full one. A watch link asks only for the viewer's page, scripts and stream, with GET, and kumobad passes an answer on only when the engine says it granted watching (x-kumoba-access: watch), so an engine started without the watch token, for example by desktop.restart("view"), or another app on its port, answers the link with 409 instead of giving control. Port 6090 of a Linux sandbox is the live view's: a link to it from expose(6090) reaches the engine with its control token, as the desktop link does.
  • Live view: every answer kumoba-view gives past its token check names the access the request's token grants in an x-kumoba-access header (control or watch), on the viewer's page and scripts as well as the WebSocket upgrade.
  • kumobad can serve the API, previews and the live view to other machines over TLS, so your application can run on a host without /dev/kvm and drive sandboxes on one that has it. Set KUMOBAD_TLS_CERT and KUMOBAD_TLS_KEY (PEM files) and both TCP listeners speak TLS; KUMOBAD_LISTEN and KUMOBAD_PREVIEW_LISTEN then take any address, such as 0.0.0.0:7788. Without TLS an address other than loopback still fails at startup, and the error now names the variables to set. KUMOBAD_TLS_CLIENT_CA turns on mutual TLS for the API: a client without a certificate one of those CAs signed is refused during the handshake. The bearer token stays required either way, preview links ask for no client certificate, and the default preview URL becomes https:// with TLS. A preview listener on 0.0.0.0 or [::] needs KUMOBAD_PREVIEW_URL. Refused handshakes are logged as tls_refused, at most once every 10 s, with suppressed counting the ones left out. Without the TLS settings the Unix socket and the loopback listeners speak plain HTTP as before. See "Run sandboxes on another machine" in the docs.
  • CLI and TypeScript SDK: KUMOBA_URL (or url) takes https://host:port. KUMOBA_CA_FILE (or ca) trusts a private CA instead of the public ones, and KUMOBA_CERT_FILE with KUMOBA_KEY_FILE (or cert and key) presents a client certificate. Api takes these as an optional third argument, and the type is exported as TlsOptions. They apply only to an https:// URL: with a socket or http:// URL the client stops with an error instead of sending the token without TLS. http:// is accepted only to 127.0.0.1, [::1] or localhost, since kumobad never serves plain HTTP to other machines.

Changed

  • TypeScript SDK: desktop.liveView() asks kumobad for the link on a Linux sandbox too, as it already did on macOS, so it starts the desktop when it isn't running, as the sandbox's user, and the link reaches the live view engine with its token. A vnc link is now the noVNC page itself, vnc.html?autoconnect=1&resize=remote&path=..., as kumoba desktop prints it, instead of the preview root to add vnc.html to.
  • kumobad: each listener, the Unix socket included, serves at most an eighth of the daemon's open-file limit in connections at once (at least 8, at most 1024). kumobad raises its own soft open-file limit to the hard limit at startup, so on most hosts that is 1024 per listener. A shell, live view or WebSocket counts until it closes. Further connections wait until one closes, and kumobad logs connections_full with the listener's name, at most once every 10 s. The reply to /healthz, a 401, a refused preview link and the preview listener's 404 close the connection, so a client without a token or a valid link cannot keep a slot by repeating requests. A client now has 30 s to send a request's headers, a connection with no request in progress is closed after 30 s, and a TLS handshake must finish within 10 s. Before, idle or half-sent connections were kept open for good, so enough of them on any TCP listener used up the daemon's open files: the Unix socket then answered nothing and sandboxes could not open theirs. Running commands, file transfers, shells and live views are not cut off by these limits. TCP connections send keepalive probes after 60 s of silence, so one whose client vanished without closing it, as when a laptop sleeps or a NAT drops it, is closed within about two minutes and frees its slot.
  • HTTP API: preview replies carry their own error codes: forbidden (403, the preview token is invalid or expired), bad_gateway (502, the port or live view in the sandbox could not be reached or sent a reply kumobad cannot read) and gateway_timeout (504, no response headers within 30 s). They carried internal before, which read as a daemon failure. The TypeScript SDK's KumobaErrorCode lists the new codes.

Fixed

  • Live view: the engine no longer closes a view whose browser sends more than 1 MiB at once, such as long text made mostly of emoji typed with typeText. It reads up to 1 MiB, handles those messages, then reads the rest, so a fast sender waits instead of being cut off. Each message is parsed without moving the rest of the buffer, and a burst of pings gets one pong for the latest, so a flood of tiny frames costs little and queues nothing.
  • Port previews and Sandbox::connect tunnels in the Rust crate: a connection to an app in the sandbox no longer stays open for good when the app goes quiet. Once one side has closed its end, the connection ends after 30 s in which nothing more arrives, and any connection, a WebSocket included, ends after 1 hour with no data in either direction. Before, an app that ignored the closed end and sent nothing kept the connection, and one of the guest agent's 64 connection slots, until the sandbox stopped; enough of them blocked commands and file transfers in that sandbox. A WebSocket or a pooled Sandbox::connect connection that sends anything, such as a heartbeat, at least once an hour is not affected.
  • Default image: the desktop starts the accessibility bus and waits for it before starting its apps, so they all register with it and accessibilityTree() right after the desktop starts no longer fails now and then with "Couldn't connect to accessibility bus". If the bus does not come up within 15 s the desktop still starts and says so on stderr.
  • Live view: viewer.typeText() in kumoba/view types text over 200,000 bytes in full. It used to send only the first 200,000 bytes and drop the rest without a word. Long text now goes out in several messages, cut between characters, and the engine types them in order. Up to 262,144 characters can wait to be typed, as before. A single call with more than that now throws an Error and sends nothing, instead of closing the view; split the text or write it to a file instead. Text sent while earlier text is still being typed counts toward the same limit, and a view that goes over it still closes with "the viewer sent more text than the desktop can type". An engine older than 0.7.0 still types only part of it.
  • Previews read the request body before connecting to the app in the sandbox. A slow upload used to hold a connection to the app for up to 30 s, and a request over the 10 MiB cap still opened one.
  • Guest agent: file reads, writes and uploads check what the path is before opening it, so a device such as /dev/watchdog or a tape drive, a FIFO or a socket is refused without being opened, and a terminal can no longer become the agent's controlling terminal. A socket on a macOS guest is refused with only regular files are supported instead of Operation not supported on socket.
  • HTTP API: creating, updating or running a sandbox with a label key that is empty or contains : is answered with 400 invalid_request. Such a label could never be matched by a label filter, and the SDK refuses those keys in list(). Sandboxes that already have such a label keep it.
  • HTTP API: a query parameter a route does not take, such as GET /v1/sandboxes?labels=task:x, is answered with 400 invalid_request instead of being ignored, so a misspelled filter no longer lists every sandbox and a misspelled user on a file call no longer acts as the default user. A list limit that is not a whole number of 0 or more, such as limit=abc, is refused instead of becoming 1000. The CLIs and SDKs only send parameters the routes take.

0.7.1 - 2026-11-26

Changed

  • Dependencies: vitest 5.1.1 for the TypeScript SDK tests.

0.7.0 - 2026-11-25

Upgrade notes: GET /v1/sandboxes now lists the newest sandboxes first and refuses a label filter that is not key:value; the access log has a new failed decision, which TypeScript SDKs before this release reject; and the TypeScript SDK needs Node 20.3 or later.

Added

  • Live view: kumoba-view takes a second token for watching only, from KUMOBA_VIEW_WATCH_TOKEN or --watch-token-file. A stream opened with it shows the screen, and the engine ignores everything but its frame acknowledgements and pauses, so a watch link can't be turned into control by changing the page or connecting by hand. The token still gives control. The viewer page shows "Watching only", and in the browser client watchOnly() reports it and keeps the viewer view-only. An older browser client still shows its controls on a watch stream, but the engine drops what it sends.
  • Live view: a Copy from desktop button at the top right of the viewer page puts the text on the sandbox's clipboard on your clipboard, for text copied with an app's menu, such as right-click, Copy in a browser or Edit, Copy in a terminal. Before, text came back only within two seconds of a copy shortcut pressed in the live view. The browser client has the same as viewer.copyFromDesktop(), whose answer arrives through onClipboard. Text still leaves the sandbox only when you ask for it. An engine older than this release ignores the request.
  • TypeScript SDK: every call that talks to kumobad, not only run(), takes signal and timeoutMs: create, start, stop, delete, get, find, list, listPage, refresh, update, images, accessLog, deleteSecrets, expose, setSecrets, every files method and every desktop method. A cancelled call fails with code aborted, and one that runs past timeoutMs fails with the new code timeout (retryable: true). The time limit covers every request the call makes, so create({ timeoutMs }) counts the boot too, and a create() cancelled while the sandbox boots deletes it. A stuck boot or a hung file read used to block the caller for good. There is no default time limit. The SDK now needs Node 20.3 or later.
  • TypeScript SDK: kumoba.listPage({ labels, limit }) returns at most limit sandboxes, newest first, and truncated, which is true when more matched.

Changed

  • Docs: the HTTP API page lists every error code the daemon returns, the CLI page lists shell and commands, the Japanese troubleshooting page has the sections it lacked, and install examples show the current release instead of 0.2.2.
  • Access log: a connection that was allowed but could not be set up, because its DNS lookup failed or got no answer in time, or the connection or upstream proxy failed, is now logged with decision failed instead of allowed, and gets its own 10000 per hour cap. Update the TypeScript SDK with the daemon: SDKs older than this release refuse an access log page that contains failed. From this release the SDK passes through decisions it does not know as plain strings (AccessDecision), so a later new value does not break it. In the Rust crate, AccessRecord.allowed is replaced by decision: AccessDecision (Allowed, Denied, Failed).
  • Releases are built with pinned tools: every GitHub Action is pinned to a commit, the publish job installs npm 11.21.3 instead of the newest npm, and the default image is built from a Debian base pinned by digest. A new upstream release of these no longer changes what a release tag builds or publishes.

Fixed

  • kumobad: a request body that arrives too slowly is answered 408 with code request_timeout, and one over its size limit 413 with request_too_large. Both used to carry internal, which read as a daemon failure. The TypeScript SDK's KumobaErrorCode now names these and conflict, upgrade_required and internal.
  • Live view: when kumoba-view cannot show a desktop, the browser now hears why. A display that is not at depth 24, an X server without one of the extensions it needs, a sandbox screen that does not answer, or a desktop more than 4096 pixels wide or tall, such as a multi-monitor Xorg, ends the stream with a WebSocket close (code 1011) that carries the reason. Before, the engine dropped the connection without a word, or, for a desktop over 4096 pixels, started the stream and left the browser to fail with "The desktop size is not supported". The viewer page shows the reason while it retries, and when it gives up it says to reload the page instead of to run kumoba desktop again, which was wrong for standalone kumoba-view. The browser client in kumoba/view passes the reason to onClose as error.
  • TypeScript SDK: failures from the daemon, the connection and the SDK's own checks are now all KumobaError, as documented. A run cancelled through its signal fails with the new code aborted (retryable: false, cause is signal.reason); it used to look like an unreachable daemon with retryable: true, or a plain Error when cancelled mid-output, so a harness that retries on retryable ran the command again. A connection that breaks during a run, as when kumobad restarts, is unreachable instead of a plain ECONNRESET error; a daemon error event is daemon_error; a failed files.mkdir() or files.remove() is command_failed with the result; unexpected desktop helper output is protocol; and output that ends without an exit status is a protocol error instead of { exitCode: null, ok: false }.
  • Egress: a plain http:// request in a sandbox with open network, such as an apt-get download from the default Debian mirrors or curl http://... of a large file, is no longer cut off after 2 minutes. It now ends only after 2 minutes with no data in either direction, or after 1 hour in total, the same limits as https:// connections. A server still has 30 seconds to answer once the request has been sent in full, and a request body is now passed on as it arrives instead of being held in memory, so uploads over 4 MiB no longer fail with 413.
  • Access log: an allowed plain http:// request is now logged when it ends, as other connections are, so its bytesIn and bytesOut count the response and request bodies. It used to be logged as soon as the connection to the server opened, with about 0 bytes in.
  • Egress: a host name with several addresses now connects through any address that answers. A new address is tried every 250 ms, or at once when the previous one refuses, and the first connection to succeed is used, all within the 5 second setup timeout. Addresses are tried in the order the host resolver returns them, so DNS round robin and the system's address preference apply; they used to be tried in numeric order. Before, the addresses were tried one at a time, so a first address that dropped packets used up the whole timeout and the sandbox got 502 even though another address worked.
  • kumobad: kumoba run and POST /v1/run no longer leave a stopped sandbox behind when the client disconnects while the VM boots, as with Ctrl-C or an SDK timeout. The sandbox is now deleted as soon as the client goes away. A run sandbox that is still there when kumobad starts again, because the daemon stopped mid-run, is deleted then; its summary shows "ephemeral": true.
  • kumobad: port preview responses stream to the browser as the app sends them. Responses over 1 MiB, such as a large script or image, used to fail with 502; Server-Sent Events and long polls arrived only after 30 s, all at once; and a slow or broken response could reach the browser as a complete 200 with part of its body missing. Now there is no size limit, a response that stops before its content-length or stays silent for 120 s is cut off with a connection error, and the app has 30 s to send its response headers.
  • kumobad: port previews forward the request body. A form post, a JSON fetch or a GraphQL mutation through a preview used to reach the app in the sandbox with no body, so it answered 400 or acted on empty input. The body reaches the guest with its content-length, a chunked body included, and a body over 10 MiB is refused with 413.
  • Egress: one sandbox can no longer use up DNS lookups for every sandbox. Each sandbox now has its own 8 lookups at a time, and a connection that finds them busy waits for one within the 5 second setup timeout instead of failing at once with 502. Before, 8 lookups of names whose nameserver never answers, from any one sandbox, made every sandbox's new connections fail for as long as the host resolver kept trying, and a page that opened more than 8 new domains at once could get random 502s.
  • kumobad: GET /v1/sandboxes, kumoba list and kumoba.list() return the newest sandboxes first, as documented. They used to return the oldest first, so with more matches than limit the sandboxes created most recently were the ones left out.
  • kumobad: a label filter on GET /v1/sandboxes that is not key:value, such as task=fix-tests, is now refused with 400 invalid_request. It used to be ignored, so kumoba list --label task=fix-tests listed every sandbox. Both CLIs fail on it instead of listing (the Node.js CLI before it asks the daemon), and on an empty --label, --label '[]' or --args '{"label":[]}', which used to send no filter at all. In the TypeScript SDK, kumoba.list({ labels }) refuses an empty key or a key with :, which a filter cannot express.
  • TypeScript SDK: kumoba.list() without limit returns every matching sandbox. It used to stop at 100 without saying so, so a cleanup loop such as for (const s of await kumoba.list({ labels })) await s.delete() left everything past the 100th running. If the daemon still cuts the list, list() throws a KumobaError with code list_truncated instead of returning part of it. list({ limit }) still returns at most limit; a limit that is not a whole number of 0 or more is refused with invalid_request instead of being sent. With -q, both CLIs now say on stderr when a reply was cut short, such as kumoba list -q with more matches than --limit (1000 by default), which used to print the first ids as if they were all of them.
  • A file download cut short, for example by the sandbox stopping mid-transfer, now fails instead of reporting success with a short file. kumobad sends Content-Length and closes the connection when a read fails partway; files.read(), files.stream(), files.download() and both CLIs' read-file compare the bytes received with x-file-size and fail (in the SDK, a retryable KumobaError with code protocol). read-file -o FILE now writes the file as it arrives instead of holding it all in memory, and removes the partial file on failure.
  • Live view: long text from typeText is typed in full. Text over 4,096 characters used to lose the rest without a word, and a key, click or pointer move sent right after it, or during a long run of characters the desktop's keyboard layout lacks, closed the view with "the viewer sent input faster than the desktop takes it". Input sent after the text now waits for it, so it lands in the order it was sent. Up to 262,144 characters can wait to be typed; a view that sends more closes with "the viewer sent more text than the desktop can type". On macOS sandboxes, text too long for one paste is pasted in pieces instead of being cut.
  • Live view: a viewer that disappears without closing its connection, such as a hidden tab on a laptop that went to sleep or a phone browser that dropped the tab, no longer keeps one of the 16 places for live views for good. kumoba-view now pings each viewer every 15 seconds, also while its tab is hidden, and closes a view that sends nothing back for 45 seconds. Before, 16 such viewers made every new one get 503 too many live views are open. The pings also keep a view of a still desktop open behind a reverse proxy that closes idle WebSockets, and the engine now answers a client's ping with a pong. Browsers answer the pings on their own; a client of your own has to answer them too.
  • Live view: a client that connects to kumoba-view and goes quiet, or asks for the viewer script and never reads it, gives up its place sooner. A connection is let go once it has sent nothing for 2 seconds, whether it sent part of its request or nothing at all, and a client that keeps sending a byte at a time still has to finish its request within 5 seconds, as before. The reply has to be read within 10 seconds, which had no limit before. One address can hold at most 8 of the 64 connections that are still loading the page, so a few addresses cannot keep clients from other addresses out, and when no place is free the engine answers 503 Service Unavailable instead of closing the connection without a reply.
  • TypeScript SDK: sandbox.expose() and desktop.liveView() return the link kumobad sends, on its preview listener. With the default new Kumoba() their url used to be null although the daemon sent a working link, and with an http:// API URL it pointed at the API listener, where the browser downloads the page instead of showing it. publicUrl (KUMOBA_PUBLIC_URL) still takes precedence. With neither a daemon link nor publicUrl, url is now null instead of a link on the API address.
  • Writing a file to a path that is a named pipe (FIFO) fails at once with guest operation failed: only regular files are supported (HTTP 422, guest_error) instead of hanging. Each such write used to leave a guest connection stuck for good, and after 64 of them commands, file transfers, previews and the desktop on that sandbox stopped responding.
  • A command that leaves a background process holding its output open, as in sh -c 'build; server &', reports truncated: true when output over the limit was dropped. It used to report truncated: false in that case, so the cut output looked complete. Output that was already waiting to be read when exec stopped listening is now returned instead of being dropped.
  • kumobad: autoDeleteMinutes now also deletes a sandbox whose VM stopped on its own, for example after poweroff, a kernel panic, running out of memory or a crashed worker. The clock starts when kumobad first sees it stopped. Such a sandbox used to show stopped forever and keep its disk.
  • Uploading a file (PUT /v1/sandboxes/{id}/files, sandbox.files.write and upload, kumoba write-file, Agent::write_all) no longer destroys the file it replaces when the upload is cut off, the reply deadline passes or the disk fills. The data is written to a hidden file beside the target and moved over it only when complete and synced to disk, so programs in the sandbox never read a half-written file and a force stop right after a reported success keeps it. Only its owner can read the hidden file until it takes the target's place, and the replaced file keeps its mode and owner. Files with several hard links, files in a directory the user cannot write to or list, files whose owner the user cannot keep, and files on images from an older release are still written in place. An upload whose body sends nothing for 60 seconds is now answered 408, and each sandbox runs at most 8 uploads at a time while the rest wait, so uploads never take the connections that commands, previews and the desktop need. Rust: Agent::upload returns an Upload for writing a file chunk by chunk and committing it. It refuses further writes after an error, and the guest drops an upload that sends nothing for 120 seconds.
  • kumobad: listing files, opening a preview link and every preview request now count as activity for auto-stop, as the HTTP API guide says. A sandbox could be stopped while someone was only browsing its preview or file list, and a preview request that was still being answered could be cut off.
  • Rust crate: Sandbox::exec of a command that cannot start, such as a missing program, an unknown user or a bad working directory, returns Error::Guest and leaves the sandbox running, so its servers and desktop keep going and the next exec works. It used to stop the whole VM. A broken connection to the guest, a protocol error and a timeout still stop it. The daemon was not affected.
  • kumobad: GET /v1/sandboxes, GET /v1/sandboxes/{id}, kumoba list, kumoba get and kumoba.list() answer at once while a sandbox is booting, which takes up to 5 minutes for macOS. They used to wait for the boot to finish, and auto-stop and auto-delete for every other sandbox waited as long. A booting sandbox is listed as stopped until its boot completes, and auto-stop and auto-delete leave it alone until then.

0.6.6 - 2026-11-25

Fixed

  • kumoba/view: a press in the empty bars around the desktop image no longer clicks the nearest edge of the desktop. Moves over the bars are ignored unless a button is held, a click lands on the pixel under the pointer instead of half a pixel off, a touch drag on the view drags on the desktop instead of scrolling the page while in control, and the page's own touch-action comes back afterwards. No button stays held on the desktop any more when the browser cancels a press, when a second button is pressed and released during a drag, or when the page switches to watching only mid-drag.

0.6.5 - 2026-11-23

The first release with these changes; the v0.6.4 tag was never published.

Added

  • kumoba/view, a browser client for the live view in the kumoba npm package: connectViewer(canvas, url) shows the stream of a kumoba-view engine in your own page, with the decoder built in. The engine's viewer page now runs the same client. See Show it in your own page.

Changed

  • Live view: the engine uses about half as much CPU while a page scrolls and about a third less on animation. Static Linux builds compared pixels through musl's byte-by-byte memcmp; the codec now compares them itself. During a steady scroll it also checks last frame's shift before hashing rows to find a new one.
  • Live view: a wheel notch scrolls one step for mice that report lines, instead of three, and characters typed with AltGr or Option reach the desktop without the held modifiers.

0.6.3 - 2026-11-23

Added

  • The live view engine on its own: from this release on, every release has kumoba-view for Linux on x86_64 and arm64, a static binary that shows any X display in the browser, as a replacement for VNC in Docker containers and other sandboxes. --listen on an address other than loopback protects the stream with a token, from KUMOBA_VIEW_TOKEN or --token-file, or made up and printed on a terminal or written to ~/.kumoba-view-token-PORT. See Use the live view in any container.

Changed

  • Dependency updates: uuid 1.29.3, libloading 0.9.1, zeroize 1.9.2, bytes 1.12.2 and url 2.5.9, which fixes RUSTSEC-2026-0592 (a stack overflow on some URLs).

0.6.2 - 2026-11-22

Added

  • Live view of macOS sandboxes: your clipboard and the sandbox's are shared. Paste with Cmd+V, or Ctrl+V from Windows or Linux, and copy with Cmd+C or Ctrl+C. Copied text reaches your clipboard only in the two seconds after a copy shortcut, as on Linux.
  • Live view of macOS sandboxes: characters outside the US keyboard layout and text from an input method editor, such as Japanese, are typed. They go in through the sandbox's clipboard, whose earlier text is put back a second later.
  • Live view of macOS sandboxes: the pointer takes the shape macOS sets, such as the text cursor over a text field.

0.6.1 - 2026-11-21

Fixed

  • TypeScript SDK: desktop.liveView() returns a working link for a macOS sandbox. It used to link to a port inside the sandbox, where macOS has no viewer. For an image without a desktop it now fails with kumobad's reason instead of returning a link that opens nothing.

0.6.0 - 2026-11-21

Added

  • A live view for macOS sandboxes. kumoba desktop on a macOS sandbox opens the same viewer Linux sandboxes have, with keyboard and mouse. The screen is read on your Mac from the VM's display, so nothing is installed or granted inside macOS. Not in it yet: a shared clipboard, characters outside the US keyboard layout, and the pointer shape macOS sets.
  • Live view: paste with Ctrl+V or Cmd+V sends your clipboard's text to the sandbox and pastes it, with the terminal's own shortcut when a terminal has the focus. A copy shortcut pressed in the live view brings the sandbox's copied text to your clipboard; text leaves the sandbox only in the two seconds after that shortcut. On a Mac, Cmd+C and Cmd+X copy and cut in the sandbox.
  • Live view: text from an input method editor, such as Japanese, is typed into the sandbox when you confirm it.
  • Live view: the picture follows when the desktop changes size.

Changed

  • Live view: dragging a window is sent as a move, like scrolling. A scripted window drag took 2 to 4 Mbps where it took 18 Mbps before.
  • Live view: video and other busy regions need about a third fewer bits for the same picture, from motion search at half-pixel steps and a tighter code for the compressed blocks.

Fixed

  • Live view: a character that the sandbox's keyboard layout lacks could be dropped the first time it was typed.
  • Live view: a click could reach the sandbox before keys pressed just before it. Keyboard and pointer input now arrive in the order you made them.
  • Live view: the keyboard follows a layout change made in the sandbox, such as setxkbmap.

0.5.0 - 2026-11-21

Added

  • A new desktop live view for Linux sandboxes. kumoba desktop now opens kumoba's own viewer instead of noVNC. It shows text and windows pixel for pixel, sends a scroll as a move plus the newly shown part, compresses regions that keep changing such as video, and returns them to exact pixels when they stop. It adapts to slow connections, shows the remote pointer, types the characters of any keyboard layout, and sends nothing while the screen is still or the tab is in the background. Text from an input method editor and pasted text aren't sent yet. Rebuild or update the default image to get it; older images keep noVNC.
  • kumoba desktop --viewer vnc, and viewer in POST /v1/sandboxes/{id}/desktop, open noVNC on an image that has both viewers. The response's viewer field says which one the link opens.
  • TypeScript SDK: desktop.liveView() links to the new viewer when the image has it, takes { viewer: "vnc" } for the noVNC bridge, and returns which one it linked to as viewer. With the new viewer the link is the page itself, so code that appends vnc.html should check viewer first. DESKTOP_STREAM_PORT is the viewer's port in the guest.

Changed

  • The default image and the release tarballs include kumoba-view, and scripts/build.sh builds it. Building kumoba from source now needs the wasm32-unknown-unknown Rust target, which rust-toolchain.toml installs.

0.4.0 - 2026-11-19

Added

  • macOS sandboxes on Apple silicon Macs running macOS 27 or later. kumobad macos-image downloads Apple's restore image, installs macOS with a kumoba user, Apple's Command Line Tools and the guest agent, and adds a macos image; run it again after upgrading kumoba to update the agent in that image. kumoba create --image macos then works like any other image, including exec, files, shell, network rules and secrets. Sandboxes are copy-on-write clones with their own machine identity, and they take commands about 10 to 25 seconds after start. Apple allows two macOS VMs per Mac at once, so a third start reports capacity exhausted. The desktop live view, host mounts and snapshots don't support macOS yet.
  • scripts/macos-smoke.sh: the local check for macOS sandboxes, since CI runners can't boot macOS guests.

Changed

  • The worker needs the com.apple.security.virtualization entitlement as well as com.apple.security.hypervisor on macOS. Release builds are signed with both; re-sign a cargo installed worker as the install guide shows.
  • The guest agent reports its operating system, and a sandbox's recorded CPU and memory are the ones it actually runs with.

Fixed

  • The egress proxy accepts CONNECT ... HTTP/1.0, which Python's http.client sends before Python 3.12. pip install with such a Python, including the one Apple's Command Line Tools ship, failed with 400 Bad Request and the access log showed the allowed host as denied.

0.3.0 - 2026-11-13

Added

  • kumoba shell <id>: an interactive terminal inside a sandbox, with arrow keys, tab completion, Ctrl-C, full-screen programs and window resizing. Both the native and the npm CLI support it, and it exits with the shell's status. Piped input works too.
  • POST /v1/sandboxes/{id}/shell: the HTTP route behind it, an upgrade to a small framed protocol documented in the HTTP API reference.

Changed

  • The guest agent reports whether it supports shells. Images from earlier releases keep working for everything else and answer a shell request with a clear error.

0.2.2 - 2026-11-13

Changed

  • The default image lets pip install write to the system Python (/etc/pip.conf), as the README shows. A sandbox is a disposable VM, so Debian's protection against mixing pip and apt packages only got in the way; non-root users fall back to a user install.

Fixed

  • scripts/install.sh says why an image could not be unpacked, with the free space it found, instead of exiting silently, and removes the partial image.

0.2.1 - 2026-11-13

Fixed

  • The kumoba CLI no longer panics when its output is piped into a command that exits early, such as kumoba | head. Help and JSON output stop quietly with status 0, and a streamed exec or run that is cut off exits 141, like a Unix process ended by a closed pipe. The npm CLI behaves the same.

Added

  • A README walkthrough (scripts/walkthrough.sh) runs on a fresh runner after every release, installing from the public installer and npm the way a new user does.

0.2.0 - 2026-11-13

Added

  • kumoba CLI, built for people and for agents. It has no commands of its own: it reads the daemon's catalog and builds every command, argument check and help page from it. Ships natively with the daemon (install.sh, release tarballs, cargo install kumobad) and through npm (npx kumoba). exec and run exit with the guest command's status.
  • GET /v1/commands: every route with a JSON Schema for its input, so clients and agents can discover the API.
  • POST /v1/run and Kumoba.run(): one command in a fresh sandbox that is deleted when it ends.
  • POST /v1/sandboxes/{id}/desktop: starts the desktop and returns a link to a live noVNC view.
  • Browser previews on a separate loopback listener (KUMOBAD_PREVIEW_LISTEN, default 127.0.0.1:7789), so exposed web apps and the desktop render in a browser while staying off the API's origin. Preview and desktop responses carry a full url.

Changed

  • With no configuration kumobad also listens on 127.0.0.1:7788, and on 127.0.0.1:7789 for previews; either is skipped if its port is taken.
  • A bare program name in exec or run (python3) is looked up on the guest's PATH instead of being rejected.
  • The SDK reports an unreachable daemon with the error code unreachable.
  • Dependencies: sha2 0.11 with hmac 0.13, base64 0.23, libloading 0.9, TypeScript 7, vitest 5, and newer GitHub Actions.

Fixed

  • Previews no longer wait on a guest server that keeps its connection open: responses are read to their declared length, and plain requests reach the guest as one-shot HTTP/1.0. Page loads through a preview dropped from about 5 s per file to milliseconds.
  • Redirects from a preview stay inside that preview: the guest's location is resolved with a URL parser and anything leaving the guest origin is dropped.
  • The desktop's accessibility tree retries while the AT-SPI bus is still starting, instead of failing right after desktop.start().

0.1.0 - 2026-11-13

Added

  • libkrun microVM runtime (kumoba): boot, exec with streaming output, files, host mounts, snapshot images, secrets that stay on the host, egress allowlists with wildcard domains, intranet allowlists, corporate upstream proxies and an access log of every proxied connection.
  • kumobad daemon: HTTP API over a Unix socket or loopback TCP with bearer auth, concurrency limit, auto-stop, restart reconciliation, signed preview links, network updates on stopped sandboxes and a paged access-log feed.
  • kumoba-guest: PID 1 agent for guest images with command execution, files, port forwarding and an optional xfce desktop with screenshots, input and a VNC live view.
  • TypeScript SDK (kumoba on npm): Kumoba, Sandbox, Files, Desktop, accessLog() async iterator and await using disposal.
  • Default Debian guest image with Python, Node, Chromium and the desktop, plus an Alpine test image that needs no Docker.
  • Sparse disk copies with reflinks where the filesystem supports them.
  • Zero-config start: with no environment kumobad uses ~/.kumoba (or KUMOBA_HOME) for images, state, a generated token and its socket, finds kumoba-worker next to itself and libkrun in ../lib, and new Kumoba() connects to it with no options.
  • scripts/install.sh: one-line install of the daemon, worker and a prebuilt default or test image, verified against the release checksums.
  • Releases ship the four crates, the npm package, host tarballs for Linux x86_64, Linux arm64 and macOS arm64, and prebuilt guest images for both architectures. Every release is installed and booted before it is published.

Last updated on

On this page