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
- A Japanese guide for upgrading and uninstalling kumoba.
0.18.0 - 2026-12-05
Added
kumoba mcpserves 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):execreturns the exit code and output,screenshotreturns the screen as an image, and errors carry the CLI's hint. The catalog marks commands left out with"mcp": false, and the summaries ofread-file,screenshot,desktopandclickno longer describe CLI output or flags. See Use kumoba as an MCP server.- A sandbox client for the OpenAI Agents SDK,
KumobaSandboxClientinexamples/openai-agents-sandbox, so aSandboxAgentruns its shell commands, file edits and image views in a kumoba VM. See Sandbox agents.
Changed
- The docs, the
write-filecommand summary and the SDK'sfiles.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 anddesktop.type()no longer callfiles.mkdir()before writing. - The agent skill tells agents to open the screenshot path exactly as
kumoba screenshotprints it instead of assuming the default~/.kumoba/screenshotsfolder whenKUMOBA_HOMEis set. - The docs, the
write-filecommand summary and the SDK'sfiles.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 anddesktop.type()no longer callfiles.mkdir()before writing. - The
defaultimage 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, likekumoba 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 typedDesktopStarted, holds the process flags pluspainted: true, or after 20 spainted: falseand awarning, 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, likekumoba screenshot --settle. kumoba key,POST /v1/sandboxes/{id}/desktop/keyand the SDK'sdesktop.hotkey()anddesktop.press(), which now go through kumobad, treat a letter after a modifier the same in either case, soctrl+Apresses ctrl+a rather than ctrl+shift+a, and takeEnter,Escape,Tab,Backspace,Delete,Home,End,PageUp,PageDown,F1toF12and the arrows, also writtenArrowLeft, 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'shotkey(),press()and settled screenshots throwupgrade_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-filesand the HTTP file endpoints withuser) 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()andshellas a user in more than 32 groups failed withNo 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 usekumoba runand 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 withnpx skills add Parassharmaa/kumoba.kumoba skillprints the copy built into the installed CLI, andkumoba 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 desktopon 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": falseand awarningrather than hang. -
Agents can see and drive a sandbox's desktop from the shell.
kumoba screenshotsaves a PNG of the screen into~/.kumoba/screenshotsand prints its path and size, and with--settlewaits up to 3 s for the screen to stop changing, never stopping on a screen of one colour.kumoba ui-treelists the visible buttons, fields and windows, one per line aspush button "Send" at 812,440, with the point to click.kumoba click,hover,drag,scroll,typeandkeydrive the mouse and keyboard, as inkumoba click 812 440 --doubleorkumoba key ctrl+l. They act as the user who started the desktop, and beforekumoba desktopthey fail with a hint to run it. kumobad implements them once, so the native CLI, the npm CLI,kumoba commands --jsonand the HTTP API (/v1/sandboxes/{id}/desktop/screenshot,/clickand the rest) all have them. Let an agent drive the desktop has instructions to hand an agent. -
KUMOBA_SANDBOXnames the sandbox that commands working inside one sandbox use when you leave the id out, sokumoba click 300 200andkumoba exec -- lswork in both CLIs. It coversexec,shell,read-file,write-file,list-files,getand the desktop commands; creating, starting, stopping, changing, exporting and deleting a sandbox still need its id. The catalog marks those commands withdefaultSandbox, lists body arguments such asxandyinpositional, and says withrenderhow a command line shows a reply. -
The
defaultimage starts Chromium with--force-renderer-accessibility, sokumoba ui-treelists 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 asread-file, to stdout.
Changed
- The TypeScript SDK and the npm
kumobaCLI 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, orliveView({ 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
defaultimage, 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'ssensible-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-1234and1234-wxyz,abcd-1234-wxyzreaches the guest as the placeholder ofabcd-1234alone, where 0.16 sent that placeholder followed by-wxyz. Values that only touch, as inabcd-12341234-wxyz, still get a placeholder each, and a run of a repeating value, such as 900 KB ofawith the secretaaaaaaaa, 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
abcdefghand 511 copies of it followed byZ, a 4 MiB response ofabcdefghtook 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 (
diskModelayer), as on ext4, instead of an APFS clone. On APFS the first write into a fresh clone of thedefaultimage 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 thedefaultimage,kumoba run -- truenow takes about 0.3 s instead of 0.76 s, a delete about 50 ms instead of 280 ms, and tenkumoba runat once finish in about 1 s, as with the 5 MBtestimage, 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,autonow picks layers too instead of a full copy for every sandbox.KUMOBAD_DISK_MODE=copystill 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
defaultimage into the 1.5 GB of disk it holds, where it took 4.7 GB. The image never grew: APFS turned most of the holeszstd --sparseleaves into allocated zeros, and kumobad's shared copy of the image, an APFS clone, carried them. The installer now pipes the image throughkumoba-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 withkumoba-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
kumobaerrors 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 (fromRetry-After), and which token source (KUMOBA_TOKEN,KUMOBA_TOKEN_FILEor$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_unavailablewith the reasonmay_exist), which points atkumoba listinstead 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 codeprotocoland the reasonoutcome_unknowninstead of a plain retry. With--jsonanywhere 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 errorslists 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'spattern, such askumoba list --label task, as ausageerror (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 listsuggestskumoba list(also askumoba help --json sandbox list),memory=2048suggestsmemory-mib=2048,--memorysuggests--memory-mib, a positional value a command does not take, as inkumoba create default, suggestsimage=default, and a program given toexecorrunwithout--, as inkumoba exec sbx-1 ls -la, suggestskumoba 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 forsecretsorenv, however their names are spelled; anything else shows as...or is described without its text, as inunexpected 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 JSONfor every argument and--args, with no quote of it, and a bare value for a list of objects, as insecrets=...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 FILEor akey=@filevalue, 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 codeusage; a badKUMOBA_URLor TLS setting hasconfig_invalid, and a missing tokenconfig_invalidwith the reasonno_token. - Error replies carry an additive
reasonwhere one code covers several cases:sandbox_not_foundfor 404not_found,not_startedandbusyfor 409conflict,unknown_imageandinvalid_cursorfor 400invalid_request, andoutcome_unknownfor 500internalwhen kumobad lost track of a call that may have taken effect. A fleet answers a create whoseplacementno host matches with 409conflictandno_matching_host, and gives its 503host_unavailablewith"mayExist": truethe reasonmay_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 401unauthorizedhas amessage, and anexecorrunstream'serrorevent has the code inerrorand the reason inreason. A fleet relays a host'sreasonunchanged, and gives its own unknown image, unknown host and invalid cursor errors the same reasons. Everyerrorcode is unchanged. In the TypeScript SDK,KumobaErrorhasreasonandretryAfterSeconds, a missing token has the reasonno_token, and a fleet'smayExisterror has the reasonmay_exist, also from a fleet that sends noreason.
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.txtand/llms-full.txtlist them for agents. Oldparassharmaa.github.io/kumobalinks redirect to the same page, and the GitHub URL ofscripts/install.shkeeps working. --json,-q,-o FILE,--output=FILEand--openwork before the command name too, as inkumoba --json get <id>, which used to fail withunknown command --json.--output=FILEalso works after it.- TypeScript SDK: when a command streamed by
run()fails before it exits, theKumobaErrorcarries the stream event's code andreason, such asguest_error, instead of alwaysdaemon_error; against a kumobad from 0.14 or earlier it is stilldaemon_error. Itsstatusstays 502, as for every error reported inside the stream after kumobad answered the request with 200. Anunreachableerror names the URL with its scheme, host and port, such ashttps://host:7788, or aunix://URL as given, such asunix:///home/me/.kumoba/kumobad.sock, instead of the bare socket path orhost:port; a user name, password, path or query in the URL is left out. - A request body kumobad cannot read is 400
invalid_requestwith 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`andmissing 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,yesorno, as in the npm CLI, sokumoba create --start image=defaultworks; a map argument read from a file, as inlabels=@file, must hold JSON, as in the npm CLI. WithHOMEunset, the native CLI finds~/.kumobafrom the user's account record, as the npm CLI and the SDK do, instead of.kumobain 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 125orsignal 9instead ofOk(ExitStatus(unix_wait_status(32000))), and quotes the last non-empty lines of itsworker.log(at most 20 lines from its last 4 KiB), read before a failedcreatewithstartorkumoba rundeletes 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 afterstarton an existing sandbox. The HTTP status (500) and code (internal) are unchanged. Rust crate: these two failures are nowError::BootFailed(BootFailure)instead ofError::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 withoutcpu) sets the vCPUs of the sandbox thatKUMOBAD_MAX_RUNNING=autosizes the limit for. Any other value stops kumobad at startup.
Changed
KUMOBAD_MAX_RUNNING=autosizes the running limit from CPUs as well as memory: the smaller of the memory-based count and the CPUs kumobad may run on divided byKUMOBAD_SANDBOX_CPUS, at least 1. A 4-CPU, 64 GiB host withKUMOBAD_SANDBOX_MEMORY_MIB=8192now runs 2 sandboxes of 2 vCPUs instead of 7. On Linux a lower cgroup CPU quota on kumobad or a parent cgroup, such as systemdCPUQuota=or a container's--cpus, counts instead, rounded down.maxRunningSourceinGET /v1/capacity,kumoba.capacity()in the TypeScript SDK and thereadylog line carryhostCpus,cpusFromandsandboxCpus. CPUs are logical CPUs, and when they are fewer than one sandbox's vCPUs, kumobad logsmax_running_short_of_cpusat startup.- The Linux release tarballs run on glibc 2.28 or later, such as RHEL 8 and Ubuntu 20.04.
kumobad, thekumobaCLI,kumoba-workerand the bundled libkrun used to need glibc 2.34, and on arm64kumobadand 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 whenkumobador the CLI does not start in that container. scripts/build-libkrun-closefix.shbuilds 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-patchedandtarget-stockdirectories.
Fixed
- A host name in
KUMOBAD_ALLOW_PRIVATE_HOSTSorKUMOBAD_NO_PROXYwritten with a trailing., such ascorp.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 addskumoba-guest,kumoba-view, thekumoba-desktophelper 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 withstartor/v1/runthat would cut intoKUMOBAD_MIN_FREE_DISK_MIBfirst 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 adeletedevent with"reason": "disk_pressure"(DeleteReasonin the TypeScript SDK), and kumobad logsdisk_pressure_prunedwith the bytes freed. It still answers 507disk_fullwhen 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 showsimportedAtMs. The Rust crate'sRuntimeConfighasdisk_probeto measure free disk another way;RuntimeConfig::newsets it, and code that builds aRuntimeConfigwith a struct literal must add it.PATCH /v1/sandboxes/{id}takes"dropUnreachableSecrets": truewithnetwork(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 indroppedSecrets, and a new event,secrets_dropped, records them, never the values. Withblockedevery secret is removed, also on a stopped sandbox. A kumobad from 0.12 or earlier refuses the field with 400invalid_request. Rust crate:Sandbox::set_network_and_secrets,Sandbox::network_settledandSecretStore::unreachable.- A network change is recorded.
GET /v1/eventshas anetwork_changedevent withpreviousMode,modeandrevoked, true when the change closed established connections the new policy no longer allows, stamped when the new policy took effect, and the sandbox summary hasnetworkChangedAtMswith 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 withrevokedfalse, and so is a saved policy kumobad applies when it starts. A fleet relays both. TypeScript SDK:SandboxEvent.previousMode,modeandrevoked, andSandboxInfo.networkChangedAt. - A fleet prunes stopped sandboxes.
POST /v1/sandboxes/prune-stoppedthroughkumobad fleetruns each host's own prune, so running, booting and busy sandboxes stay,olderThanMsanddryRunwork 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,hostsgives each host's freed bytes andfailedHostsnames the hosts that did not prune and why, withmayHavePrunedwhen a host got the request but its answer was lost. The fleet answers 200 when any host pruned and 503host_unavailablewhen none did. - A fleet's 507
disk_fullon a create names the hosts short of disk indiskFullHosts, so a client can prune them through the fleet and create again. In the TypeScript SDK theKumobaErrorcarries them asdiskFullHosts, and a failed fleet prune's error carriesfailedHostsormayHavePruned.
Changed
scripts/build-image.shstreams the built filesystem intomkfs.ext4instead 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.confand/etc/hostname,/dev/console,/dev/pts,/dev/shmand the/etc/mtablink. It keeps the image's own/etc/resolv.conf,/etc/hostnameand/etc/hostsinstead; the VM mounts/devat boot, as for the test image.- Rust crate:
Sandbox::set_networkandSandbox::set_network_and_secretsreturn 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 withblocked, 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, andblockedrefuses every connection there before any DNS lookup, as a switch toblockedalready did; a guest still has no network device. Commands started while the sandbox wasblockedalready 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, ablockedsandbox still starts and turning its network on answers 422guest_error;openandallowliststarts still fail. The 409conflictfor this case is gone.- A single kumobad refuses a prune whose
hostis not its own id with 400invalid_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
testimage is now 3.24.4. On macOS kumoba keeps using Homebrew's libkrun and libkrunfw.
Fixed
kumoba-guestaddssandbox, the guest's own name, to an/etc/hoststhat already haslocalhostbut notsandbox, keeping the image's other entries. Before, only an image without alocalhostline got it, so on images such as Alpinesandboxdid not resolve althoughNO_PROXYlists it.- A create without
startwhose client hangs up now deletes the sandbox it made, as a create withstartdoes. Before, its disk stayed behind unlisted until kumobad restarted. - A stopped sandbox with secrets can't switch to
blockedwithoutdropUnreachableSecrets; kumobad refuses before it saves anything, while a started one still can as an emergency stop. Starting ablockedsandbox that kept its secrets says to open its network or remove them, namingdropUnreachableSecrets. - A secret with no environment variables never blocks a network change or a secret set, and
dropUnreachableSecretskeeps it, as the guest can't use it anyway. Before, kumobad refused changes kumoba would have allowed. PUT /v1/sandboxes/{id}/secretsrefuses an environment variable listed for two secrets with 400invalid_requestnaming 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_bindingssaved 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.dropUnreachableSecretsstill removes such secrets in the same call. - A
PUT /v1/sandboxes/{id}/secretsthat 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 400invalid_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/deletereads 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 FILEandkumobad fleet repair HOST --code-file FILEread the pairing code from a file, or from stdin with-, so scripts no longer put the code's one-time token wherepsand 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 unlessKUMOBAD_ALLOW_PRIVATE_HOSTSopens them, and loopback, link-local, cloud metadata (AWS, GCP, Azure including WireServer168.63.129.16, Alibaba100.100.100.200), IPv6 forms that embed an IPv4 address and the host's own addresses always do, also by name and inopenmode, so an entry like0.0.0.0/0reaches public IPv4 addresses only. A bad entry is 400invalid_requestnaming it, and the access log records the address as the host for these connections. Rust crate:HttpConnectPolicy::allowlistparses 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_MIBplus 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/inforeportsdiskMode(reflink,layerorcopy) and each Linux image'sbaseReady, 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, andPOST /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 againstKUMOBAD_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, andkumobad fleet drain HOST --move-stoppedempties 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). ThekumobaCLI now streams a file or stdin passed ascontent, instead of reading it into memory. - Rust crate:
Sandbox::exportreturns anExportstream, andRuntime::read_archivereturns anImportingwhoseinfo()shows the archive'sArchiveInfoand whosefinish(config)creates the sandbox. KUMOBAD_DISK_MODE=copymakes a full copy for every sandbox, as before, in case layers misbehave on a host.- Rust crate:
RuntimeConfig::disk_modepicks the disk mode (Nonechooses by the filesystem), andRuntime::disk_mode,Runtime::base_readyandRuntime::prepare_basereport it and make an image's shared copy ahead of time.RuntimeConfigstruct 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 decisionrevoked.open,allowlistandblockedcan be switched while started, except that a sandbox started withblockedhas no egress proxy and answers 409conflictuntil it is stopped and started. A started sandbox with secrets can be switched toblockedas an emergency stop; it then can't start until its network or secrets change. Rust crate:Sandbox::set_networkworks on a running sandbox, a new error,Error::NetworkOff, reports that case, andAccessDecisionhas 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 fornms when the stop takes it, the test of?idle=trueand auto-stop, and otherwise answers 409 with the new error codenot_idleand 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_HOSTStakes 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 fleetwrite to stderr has alevel:errorwhen kumobad failed to do something,warnwhen it carries on but something needs a look (such astoken_file_readable,max_running_short_of_memoryandtls_refused), andinfofor routine lines such asready,drainandauto_stop. A line with anerroris neverinfo. A supervisor can now tell a failure from routine output. See "Log lines" in the configuration guide. KUMOBAD_ADMIT_BY_MEMORY=1admits sandboxes by the memory they ask for, not only by count. A start, a create withstartand/v1/runare 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) lessKUMOBAD_RESERVED_MEMORY_MIB; otherwise they answer 429capacityat once, before any disk is copied.KUMOBAD_MAX_RUNNINGstill 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 codeexceeds_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/capacityandkumoba.capacity()in the TypeScript SDK reportmemoryMibInUseand, with the option on,memoryMibBudget; a fleet sums them.- Rust crate:
RuntimeConfig::memory_budget_mibsets that budget, andCapacityhasmemory_mib_in_useandmemory_mib_budget. - kumobad refuses a create, a create with
startor/v1/runwith 507 and the new error codedisk_fullbefore it copies anything when the copy would leave less free disk in the state directory thanKUMOBAD_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 500No space left on device. A fleet tries the next host on 507. The TypeScript SDK marksdisk_fullnot retryable. GET /v1/capacityandGET /v1/inforeportdisk: the state directory's free and total bytes, the bytes stopped sandboxes hold, andminFreeBytes. In the TypeScript SDK it iscapacity().diskandinfo().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=trueonly lists them. A fleet refuses it.- Rust crate:
RuntimeConfig::min_free_disk_bytes(0 by default inRuntimeConfig::new) makesRuntime::create,restoreandSandbox::snapshotrefuse withError::DiskFullbefore copying.Runtime::claim_diskreserves bytes against the same check for other writers until the returnedDiskClaimis dropped (DiskClaim::writing_intonames the directory it fills, so only what is still to be written counts).Runtime::disk_space,Sandbox::disk_bytesandkumoba::disk_spaceread the space. GET /metricsserves 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, 429capacityrefusals, boot failures and boots abandoned by a client; and histograms of boot time and disk copy time. No metric names a sandbox. Underkumobad fleet,/metricsrelays every reachable host's metrics with ahostlabel, 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.stoptakes itssignalin an options object, besideifIdleForMs. - Rust crate:
RuntimeConfighas a new public field,memory_budget_mib(Nonekeeps the old behaviour), so struct literals must set it, whileRuntimeConfig::newsets it for you;Capacityis now#[non_exhaustive]and hasmemory_mib_in_useandmemory_mib_budget;ErrorhasExceedsHostMemory. - Rust crate:
Sandbox::start_reservedrefuses, withInvalidInput, 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 fleetcannot start, it logs the reason as afatalJSON line, as kumobad does, instead of plain text. Thedrainline 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 as0x5d.0x.0x.0x1, is refused like other numeric addresses instead of being looked up, in allowlists,KUMOBAD_ALLOW_PRIVATE_HOSTSandopenmode. - Azure's WireServer address
168.63.129.16is blocked in every mode,openincluded, like the other cloud metadata addresses, and so is Alibaba Cloud's100.100.100.200even inside a rangeKUMOBAD_ALLOW_PRIVATE_HOSTSopens.
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 fleetserves 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 optionalplacementlabels, 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 codehost_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 codekumobad host initprinted on it (pinned certificate, one-time token, a client certificate the host signs),fleet repair <host> <code>rotates those credentials, andlist,check,drain,undrainandremovemanage the hosts file, whose credentials are encrypted at rest with a key kept apart from it.GET /v1/infogains each image'skind(linuxormacos), so the fleet places macOS sandboxes on hosts with a free macOS slot. It runs beside a local kumobad onfleet.sockand ports 7798 and 7799, withKUMOBA_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 stablehostIdkept inKUMOBAD_STATE_DIR, the hostname, the kumoba version and guest protocol version, every image with asha256: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 readsnullonly until its image is first hashed.KUMOBAD_HOST_LABELS=zone=a,proxy=corpsets the labels/v1/inforeports. 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 withoutstart, and/v1/runanswer 409 with the new error codedrainingand 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/capacityand/v1/inforeportdraininganddrainStrict. Each change is logged as adrainevent. A drain is not kept across a restart;KUMOBAD_DRAIN_ON_START=1(orstrict) starts kumobad draining. - Rust crates:
kumoba::MACHINE_FILESnames the files a macOS image boots from, andkumoba::SANDBOX_VCPUSthe vCPUs a sandbox may have, besideSANDBOX_MEMORY_MIB. KUMOBAD_MAX_RUNNING=autosizes the running limit from memory: the host's memory, lessKUMOBAD_RESERVED_MEMORY_MIB(default 2048), divided byKUMOBAD_SANDBOX_MEMORY_MIB(default 4096), at least 1. On Linux a lower cgroup memory limit on kumobad, such as systemdMemoryMax=, counts instead.GET /v1/capacityandkumoba.capacity()in the TypeScript SDK report how the limit was derived inmaxRunningSource, and thereadylog line carries both.- Rust crate:
MAX_RUNNING_LIMIT(1024) andSANDBOX_MEMORY_MIB(256..=16384) export the boundsRuntimeConfig::max_runningandSandboxConfig::memory_mibare 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,crashorshutdown. PassnextCursorback ascursorto 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 saysreset, and a page saysgaponce when events after the cursor were removed by the retention. Events come in the order kumobad recorded them, which is not alwaysatMsorder. kumobad keeps 72 hours of events, those of deleted sandboxes included, so a sandbox removed byautoDeleteMinutes: 0keeps its times. On SIGTERM every running sandbox gets astoppedevent with reasonshutdown, and one that was running when kumobad died getscrashwhen it starts again.- The sandbox summary has
startedAtMsand, while it is stopped,stoppedAtMs. kumobad saves both with the sandbox, so a restart keeps the real stop time. In the TypeScript SDK they areinfo.startedAtandinfo.stoppedAt. - Rust crate:
RuntimeConfig::exit_sinkis called the moment a sandbox's VM process exits, andSandbox::take_exitreturns 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 reloadwithExecReload=/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 logstls_reloadedandtoken_reloadedwithokand, on failure, the reason, never the values. KUMOBAD_TOKEN_FILE_NEXTnames 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_readablewith 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 theKUMOBAD_TLS_*variables kumobad then serves those files over TLS on0.0.0.0:7788and0.0.0.0:7789with client certificates required.kumobad host pair-codeprints another code.POST /v1/pairtakes 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 thathost init --forcereplaced, pairing answers 503 and leaves the token unused.--forceswaps the wholetlsdirectory, so an interrupted run never leaves a key beside the wrong certificate.- Rust crate:
kumoba::local_ipv4_addresseslists this machine's IPv4 addresses, the set egress checks treat as the host's own. POST /v1/sandboxesandPOST /v1/runtake aplacementobject, 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, andopenPreviews, how many of those are preview or live view connections. A live view watched quietly for an hour counts the whole hour, wherelastActivityAtMsonly moves when it opens and closes. In the TypeScript SDK they areinfo.activeOperationsandinfo.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 fornmilliseconds, 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_RUNNINGis neither a whole number from 1 to 1024 norauto, or whenKUMOBAD_RESERVED_MEMORY_MIBis not a whole number of MiB orKUMOBAD_SANDBOX_MEMORY_MIBis 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 asshutdown. The systemd unit in the docs now setsKillMode=mixedandTimeoutStopSec=90, sosystemctl stoplets 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:
RuntimeConfighas a new public field,exit_sink, so code that builds it with a struct literal must set it (or start fromRuntimeConfig::new).Sandbox::worker_log_modifiedreads when the VM process last wrote its log. SIGHUPno 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
SIGTERMdoes, 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 withnohup, leaves kumobad and its sandboxes running; stop it with Ctrl-C orSIGTERMfirst. - 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/sandboxestakes"start": trueto create and boot in one call. kumobad holds a running slot before it copies the image's disk, so atKUMOBAD_MAX_RUNNINGit answers 429capacityat 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/runtakes 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}, plusmacosRunningandmacosMaxRunningon a Mac, so a client can wait or queue without listing every sandbox.- Rust crate:
Runtime::reserveholds a running slot, waiting up to a given time for one, andSandbox::start_reservedboots with it; dropping theReservationfrees the slot.Runtime::capacityreads the slots in use.
Changed
POST /v1/runholds its running slot before it copies the disk, so at the limit it answers 429 at once instead of after the copy.- Every 429
capacityreply carriesRetry-After: 5. - TypeScript SDK:
kumoba.create()asks kumobad to create and start in one request, so at the limit it throws a retryablecapacityerror before any disk is copied and leaves the cleanup of a cancelled create to kumobad. It takeswaitMs, as doeskumoba.run(). Against kumobad 0.8 or earlier it falls back to creating, then starting, as before, and remembers that for ten minutes or untilcapacity()answers;waitMsis refused there. - CLI: a boolean flag such as
--starttakes the next argument as its value only when it istrue,false,yes,no,1or0, so--start -qworks.
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 desktopandPOST /v1/sandboxes/{id}/desktopreturnwatchUrlandwatchPathnext tourl, and in the TypeScript SDKdesktop.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 leaveswatchUrlout, and the SDK throwsupgrade_requiredinstead 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, withGET, 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 bydesktop.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 fromexpose(6090)reaches the engine with its control token, as the desktop link does. - Live view: every answer
kumoba-viewgives past its token check names the access the request's token grants in anx-kumoba-accessheader (controlorwatch), on the viewer's page and scripts as well as the WebSocket upgrade. kumobadcan serve the API, previews and the live view to other machines over TLS, so your application can run on a host without/dev/kvmand drive sandboxes on one that has it. SetKUMOBAD_TLS_CERTandKUMOBAD_TLS_KEY(PEM files) and both TCP listeners speak TLS;KUMOBAD_LISTENandKUMOBAD_PREVIEW_LISTENthen take any address, such as0.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_CAturns 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 becomeshttps://with TLS. A preview listener on0.0.0.0or[::]needsKUMOBAD_PREVIEW_URL. Refused handshakes are logged astls_refused, at most once every 10 s, withsuppressedcounting 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(orurl) takeshttps://host:port.KUMOBA_CA_FILE(orca) trusts a private CA instead of the public ones, andKUMOBA_CERT_FILEwithKUMOBA_KEY_FILE(orcertandkey) presents a client certificate.Apitakes these as an optional third argument, and the type is exported asTlsOptions. They apply only to anhttps://URL: with a socket orhttp://URL the client stops with an error instead of sending the token without TLS.http://is accepted only to127.0.0.1,[::1]orlocalhost, 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. Avnclink is now the noVNC page itself,vnc.html?autoconnect=1&resize=remote&path=..., askumoba desktopprints it, instead of the preview root to addvnc.htmlto. 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 logsconnections_fullwith 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) andgateway_timeout(504, no response headers within 30 s). They carriedinternalbefore, which read as a daemon failure. The TypeScript SDK'sKumobaErrorCodelists 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::connecttunnels 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 pooledSandbox::connectconnection 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()inkumoba/viewtypes 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 anErrorand 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/watchdogor 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 withonly regular files are supportedinstead ofOperation not supported on socket. - HTTP API: creating, updating or running a sandbox with a label key that is empty or contains
:is answered with 400invalid_request. Such a label could never be matched by alabelfilter, and the SDK refuses those keys inlist(). 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 400invalid_requestinstead of being ignored, so a misspelled filter no longer lists every sandbox and a misspelleduseron a file call no longer acts as the default user. A listlimitthat is not a whole number of 0 or more, such aslimit=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-viewtakes a second token for watching only, fromKUMOBA_VIEW_WATCH_TOKENor--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 clientwatchOnly()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 throughonClipboard. 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(), takessignalandtimeoutMs:create,start,stop,delete,get,find,list,listPage,refresh,update,images,accessLog,deleteSecrets,expose,setSecrets, everyfilesmethod and everydesktopmethod. A cancelled call fails with codeaborted, and one that runs pasttimeoutMsfails with the new codetimeout(retryable: true). The time limit covers every request the call makes, socreate({ timeoutMs })counts the boot too, and acreate()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 mostlimitsandboxes, newest first, andtruncated, which is true when more matched.
Changed
- Docs: the HTTP API page lists every error code the daemon returns, the CLI page lists
shellandcommands, 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
decisionfailedinstead ofallowed, 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 containsfailed. 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.allowedis replaced bydecision: 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
defaultimage 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 coderequest_timeout, and one over its size limit 413 withrequest_too_large. Both used to carryinternal, which read as a daemon failure. The TypeScript SDK'sKumobaErrorCodenow names these andconflict,upgrade_requiredandinternal.- Live view: when
kumoba-viewcannot 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 runkumoba desktopagain, which was wrong for standalonekumoba-view. The browser client inkumoba/viewpasses the reason toonCloseaserror. - TypeScript SDK: failures from the daemon, the connection and the SDK's own checks are now all
KumobaError, as documented. A run cancelled through itssignalfails with the new codeaborted(retryable: false,causeissignal.reason); it used to look like an unreachable daemon withretryable: true, or a plainErrorwhen cancelled mid-output, so a harness that retries onretryableran the command again. A connection that breaks during a run, as when kumobad restarts, isunreachableinstead of a plainECONNRESETerror; a daemonerrorevent isdaemon_error; a failedfiles.mkdir()orfiles.remove()iscommand_failedwith theresult; unexpected desktop helper output isprotocol; and output that ends without an exit status is aprotocolerror instead of{ exitCode: null, ok: false }. - Egress: a plain
http://request in a sandbox with open network, such as anapt-getdownload from the default Debian mirrors orcurl 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 ashttps://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 itsbytesInandbytesOutcount 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 runandPOST /v1/runno 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 itscontent-lengthor 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 JSONfetchor 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 itscontent-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 listandkumoba.list()return the newest sandboxes first, as documented. They used to return the oldest first, so with more matches thanlimitthe sandboxes created most recently were the ones left out.kumobad: alabelfilter onGET /v1/sandboxesthat is notkey:value, such astask=fix-tests, is now refused with 400invalid_request. It used to be ignored, sokumoba list --label task=fix-testslisted 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()withoutlimitreturns every matching sandbox. It used to stop at 100 without saying so, so a cleanup loop such asfor (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 aKumobaErrorwith codelist_truncatedinstead of returning part of it.list({ limit })still returns at mostlimit; alimitthat is not a whole number of 0 or more is refused withinvalid_requestinstead of being sent. With-q, both CLIs now say on stderr when a reply was cut short, such askumoba list -qwith 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.
kumobadsendsContent-Lengthand closes the connection when a read fails partway;files.read(),files.stream(),files.download()and both CLIs'read-filecompare the bytes received withx-file-sizeand fail (in the SDK, a retryableKumobaErrorwith codeprotocol).read-file -o FILEnow 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
typeTextis 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-viewnow 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 get503 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-viewand 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 answers503 Service Unavailableinstead of closing the connection without a reply. - TypeScript SDK:
sandbox.expose()anddesktop.liveView()return the linkkumobadsends, on its preview listener. With the defaultnew Kumoba()theirurlused to benullalthough the daemon sent a working link, and with anhttp://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 norpublicUrl,urlis nownullinstead 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 &', reportstruncated: truewhen output over the limit was dropped. It used to reporttruncated: falsein that case, so the cut output looked complete. Output that was already waiting to be read whenexecstopped listening is now returned instead of being dropped. kumobad:autoDeleteMinutesnow also deletes a sandbox whose VM stopped on its own, for example afterpoweroff, 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 showstoppedforever and keep its disk.- Uploading a file (
PUT /v1/sandboxes/{id}/files,sandbox.files.writeandupload,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 answered408, 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::uploadreturns anUploadfor 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::execof a command that cannot start, such as a missing program, an unknown user or a bad working directory, returnsError::Guestand leaves the sandbox running, so its servers and desktop keep going and the nextexecworks. 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 getandkumoba.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 asstoppeduntil 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 owntouch-actioncomes 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 thekumobanpm package:connectViewer(canvas, url)shows the stream of akumoba-viewengine 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-viewfor 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.--listenon an address other than loopback protects the stream with a token, fromKUMOBA_VIEW_TOKENor--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:
uuid1.29.3,libloading0.9.1,zeroize1.9.2,bytes1.12.2 andurl2.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 desktopon 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 desktopnow 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 thedefaultimage to get it; older images keep noVNC. kumoba desktop --viewer vnc, andviewerinPOST /v1/sandboxes/{id}/desktop, open noVNC on an image that has both viewers. The response'sviewerfield 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 asviewer. With the new viewer the link is the page itself, so code that appendsvnc.htmlshould checkviewerfirst.DESKTOP_STREAM_PORTis the viewer's port in the guest.
Changed
- The
defaultimage and the release tarballs includekumoba-view, andscripts/build.shbuilds it. Building kumoba from source now needs thewasm32-unknown-unknownRust target, whichrust-toolchain.tomlinstalls.
0.4.0 - 2026-11-19
Added
- macOS sandboxes on Apple silicon Macs running macOS 27 or later.
kumobad macos-imagedownloads Apple's restore image, installs macOS with akumobauser, Apple's Command Line Tools and the guest agent, and adds amacosimage; run it again after upgrading kumoba to update the agent in that image.kumoba create --image macosthen 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.virtualizationentitlement as well ascom.apple.security.hypervisoron macOS. Release builds are signed with both; re-sign acargo 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'shttp.clientsends before Python 3.12.pip installwith such a Python, including the one Apple's Command Line Tools ship, failed with400 Bad Requestand 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 installwrite 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.shsays 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
kumobaCLI no longer panics when its output is piped into a command that exits early, such askumoba | head. Help and JSON output stop quietly with status 0, and a streamedexecorrunthat 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
kumobaCLI, 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).execandrunexit 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/runandKumoba.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, default127.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 fullurl.
Changed
- With no configuration
kumobadalso listens on127.0.0.1:7788, and on127.0.0.1:7789for previews; either is skipped if its port is taken. - A bare program name in
execorrun(python3) is looked up on the guest'sPATHinstead of being rejected. - The SDK reports an unreachable daemon with the error code
unreachable. - Dependencies:
sha20.11 withhmac0.13,base640.23,libloading0.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
locationis 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. kumobaddaemon: 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 (
kumobaon npm):Kumoba,Sandbox,Files,Desktop,accessLog()async iterator andawait usingdisposal. - 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
kumobaduses~/.kumoba(orKUMOBA_HOME) for images, state, a generated token and its socket, findskumoba-workernext to itself and libkrun in../lib, andnew Kumoba()connects to it with no options. scripts/install.sh: one-line install of the daemon, worker and a prebuiltdefaultortestimage, 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
Images
What kumoba's default Debian image with desktop and Chromium contains, how to build your own VM image or convert a container image, and disk use.
How secrets work
How kumoba keeps API keys out of sandboxes: the guest holds only a placeholder, the proxy adds the real value to HTTPS headers, and responses are scrubbed.