Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Routes sandbox calls to a libkrun microVM adapter for running untrusted code in isolated, ephemeral sandboxes.
15% 56%+41 ptsof test cases passed
Passed 15 of 27 test cases with the skill, and 4 of 27 without it.
This test ran on v2. v3 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Not used yet
The iii-sandbox worker is the engine's sandbox router: it serves the sandbox::* functions and forwards each call to a bound sandbox adapter worker (sandbox-libkrun by default), which boots ephemeral libkrun microVMs and runs code inside them, isolated from the host. Each sandbox boots in a few hundred milliseconds, runs commands or file operations scoped to the engine it lives on, and is reaped when idle; the overlay filesystem is discarded on stop. The sandbox::* functions are called like any other iii function.
There are two ways in. sandbox::run is the fast path: it boots a VM, runs a code snippet, captures stdout/stderr, and tears the VM down in a single call. For multi-step work — several commands, multiple files, or inspecting a VM between steps — use the sandbox::create → sandbox::exec / sandbox::fs::* → sandbox::stop lifecycle and carry the returned sandbox id across calls.
Prerequisites: a bound sandbox adapter that is running. The router is always on; it does nothing without the adapter.
S301 means the bound adapter is not connected. Its message names the fix: in the namespace's Compose project, compose::up container=<key> starts an adapter it declares but is not running (<key> is the key of the container that runs the adapter, which need not be its name), and compose::add worker=iii-sandbox installs one it does not declare; with no project there, declare a container with worker: package://<adapter> (package://sandbox-libkrun by default) in a worker-compose.yaml for that namespace.S303 means the engine is not managed by a Compose file and has no sandbox: binding in its engine config. Ask the operator to set one./dev/kvm on Linux) is a requirement of sandbox-libkrun, not of the router. Intel Macs and Windows cannot boot its sandboxes.This page tells you WHEN and HOW to use the sandbox; the engine is the source of truth for every function's exact arguments and responses. Before you call any sandbox::* function, fetch its contract and build your payload from that — do not guess field names, types, or formats from memory:
engine::functions::info { function_id: "sandbox::<fn>" }
(e.g. { function_id: "sandbox::fs::write" }). The returned schema is authoritative; this skill never restates it.
To author an iii worker (read the iii skill first), you write the worker code into the sandbox, install its deps, and run it as a process there — but the worker must still join the HOST engine bus to be useful.
sandbox::create contract — fetch it), AND set the worker's engine-URL env (III_ENGINE_URL, e.g. ws://localhost:49134) IN THE sandbox::create env — NOT later at exec/run time. The localhost→host rewrite happens ONLY for the create-time env: a localhost / 127.0.0.1 engine URL set there is rewritten to the per-sandbox gateway so the worker reaches the host bus. The same localhost URL passed at sandbox::exec time is NOT rewritten — it points at the sandbox's own loopback, the worker silently fails to connect, and you will waste turns debugging TCP. So: put the engine URL in the create env; the worker process inherits it already rewritten.exec: starting the worker with sandbox::exec "node index.mjs" blocks and times out (S200 exec timed out), because the process never returns. Launch it detached (… &, nohup, or sandbox::run shell mode) so the exec call returns while the worker keeps running — see the serialized-exec boundary below.engine::functions::list and any route it adds by observing http::on-request is served by the Compose http worker; verify endpoints with web::fetch, not curl.container instead of hosting it in a sandbox.sandbox::run.Next to this one in the catalogue, plus more from the same author.