# VolObj sandbox workspace > Instructions for an LLM or coding agent that gives its user a persistent > sandbox workspace. This file is self-contained: you need only a shell on the > user's machine. Follow it literally, top to bottom. Every command was run on > 2026-09-29 (Fedora 42, Docker Engine 29.5, Quave One CLI prerelease > v1.1.0-beta.4, VolObj 0.5.0 images, public hub), in a fresh `$HOME`, and > again on 2026-09-30 by the test suite (a laptop, a Linux server over SSH, > two coding agents). CLI v1.1.0 includes the fixes for what those runs > found (quaveone-client-utils#41–#45). > > This file targets the Quave One CLI v1.1.0, the current release: the plain > installer (step 3) installs it. It starts `quaveone/sandbox-base`, > `quaveone/volobj` and `quaveone/volobj-hub` 0.5.5 by default > (`quaveone sandbox images` prints them). The current images are 0.5.6, > identical in behaviour to 0.5.5. A sandbox created by an older CLI keeps > its images, and `quaveone sandbox doctor` warns about it. ## 1. What you are setting up - A locked-down Linux container (the *sandbox*) for the user or for you, with one directory, `/workspace/persist`, that is never lost. - `/workspace/persist` is a VolObj volume: every file is a plain object in an S3 bucket, uploaded when it is closed, and also a folder on the host (`~/quaveone-sandboxes//data`). The sandbox runs as the host user's uid and gid, so that folder belongs to the host user: they read, write and delete there like in any folder of their own. - On the host, the sandbox directory (`~/quaveone-sandboxes/`, or `--dir`) holds only two folders, both the host user's: `data/` (the workspace, `/workspace/persist` in the sandbox) and `snapshots//` (this sandbox's `pause` snapshots, `/sandbox/snapshots/` in the sandbox). The snapshots of other sandboxes on the same volume are visible neither on the host nor in the sandbox. - The rest of `/workspace` survives only through `pause`/`resume` (a snapshot stored in the volume). The sandbox has no capabilities, a read-only root and no secret: no volume key, no S3 credential, no hub credential. - Machines that share the volume see each other's writes through the public event hub `wss://hub.volobj.quave.one`, which sees paths and sizes, never file contents, the key or S3 credentials: in about 0.2 s with the local MinIO, and in 0.9–1.4 s through a remote bucket (measured ~140 ms away). - One command-line tool does everything: `quaveone sandbox …` (Quave One CLI v1.1.0 or later). Do not clone any repository; do not write compose files by hand. ## 2. Requirements The sandbox runs on **Linux with Docker Engine** only (Compose v2 plugin, `/dev/fuse`, the workspace directory on a shared mount: the default on systemd distributions). `quaveone sandbox doctor` (step 3) checks all of it. - macOS, Windows, Docker Desktop, rootless Docker, Podman: not supported as the local host by the CLI (`doctor` refuses them). Tell the user plainly: "The VolObj sandbox CLI needs Linux with Docker Engine; on macOS or Windows it runs in a Linux VM." Then follow "macOS / Windows" below, or stop if the user does not want a VM. Do not improvise another workaround. - A Linux server with Docker Engine reachable over SSH: run the sandbox there with `--remote` (step 6, "Remote server"); this machine then needs only the `docker` CLI. ### macOS / Windows: a Linux VM Written from the tools' documentation on 2026-09-30, not yet run on a real Mac or Windows machine; the `--remote ` path itself was verified with a Linux server. Ask the user before installing a VM. Full steps: https://github.com/quaveone/volobj/blob/main/docs/sandbox/linux-vm.md macOS (Lima, rootful Docker; the CLI stays on the Mac and needs the `docker` CLI with the compose v2 plugin there): ```bash brew install lima limactl start --name=qo-sandbox --cpus=2 --memory=4 --disk=40 template://docker-rootful limactl show-ssh --format=config qo-sandbox >> ~/.ssh/config quaveone sandbox doctor --remote lima-qo-sandbox quaveone sandbox up --name dev --remote lima-qo-sandbox ``` - Not Lima's rootless `template://docker` (no privileged FUSE). The workspace is `~/quaveone-sandboxes//data` inside the VM; reach it with `quaveone sandbox shell` / `exec`. Windows (WSL2 with Docker Engine inside Ubuntu, not Docker Desktop; the Linux CLI inside WSL, local mode): ```powershell wsl --install -d Ubuntu-24.04 ``` Inside Ubuntu: ```bash printf '[boot]\nsystemd=true\n' | sudo tee /etc/wsl.conf ``` Then `wsl --shutdown` from PowerShell and reopen Ubuntu. Inside Ubuntu: ```bash curl -fsSL https://get.docker.com | sudo sh sudo usermod -aG docker $USER ``` Close and reopen Ubuntu, then install the CLI as in step 3 (inside WSL) and run `quaveone sandbox doctor` and `quaveone sandbox up --name dev`. The workspace is in the WSL filesystem (`\\wsl$\Ubuntu-24.04\home\\quaveone-sandboxes\\data` from Windows). If `doctor` reports Docker Desktop, the user must turn off Docker Desktop's WSL integration for this distribution. - No Docker: tell the user to install Docker Engine (https://docs.docker.com/engine/install/) and add their user to the `docker` group; do not run `sudo` on their behalf without asking. - Outbound HTTPS to `github.com`, `raw.githubusercontent.com`, Docker Hub and `hub.volobj.quave.one`. ## 3. Install and check ```bash export PATH="$HOME/.local/bin:$PATH" # the installer uses /usr/local/bin if writable, else ~/.local/bin quaveone sandbox --help >/dev/null 2>&1 && echo "sandbox CLI present" curl -fsSL https://raw.githubusercontent.com/quaveone/cli/main/install.sh | bash quaveone sandbox doctor ``` - Skip the install (the `curl` line) when the second line prints `sandbox CLI present`. The installer needs no `sudo` unless it picks a directory you cannot write. - The installer installs the latest release (v1.1.0 or later, which has the `sandbox` command). It replaces an existing `quaveone` in the same directory (usually `~/.local/bin`): the same commands, plus `sandbox`. Remember whether it did; you tell the user in step 9. - A `quaveone` older than v1.1.0 has no `sandbox` command (`Command not found 'sandbox'`): run the `curl` line to reinstall. - `doctor` prints one line per check and a verdict; it exits non-zero when the machine cannot run a sandbox. Expected on a good host: `Verdict: can run a local sandbox on runc (install gVisor to use --runtime runsc)`. `WARN` lines are fine: gVisor is optional, and `SELinux enforcing: untested` was run through `up` and `verify` on Fedora 44 (Docker 29.8) with no change. For a `FAIL`, see the errors table (step 7). ## 4. Create and use the sandbox ```bash quaveone sandbox up # first run: creates it (about 35 s with the first image pull of ~214 MB; 10 s once pulled) quaveone sandbox status # expect "Hub: connected (event mode)" quaveone sandbox exec -- sh -c 'echo hello > /workspace/persist/hello.txt' ls ~/quaveone-sandboxes/default/data # the same file on the host ``` - `up` creates a volume key, gets an anonymous hub credential (30 days, renewed automatically by `up` and `status`), starts a local MinIO that holds the volume, and prints `Sandbox "default" is up`. - Run commands with `quaveone sandbox exec -- `. `quaveone sandbox shell` is the interactive shell for the user; you can also pipe a script into it. - Several sandboxes: add `--name ` to EVERY command. `quaveone sandbox list` shows them. - Other flags: `--runtime runsc` (gVisor, when `doctor` says it is registered), `--dir ` (host directory), `--local-hub` (no internet). `quaveone sandbox images` prints the default images; do not pass `--image`/`--volobj-image` unless the user asks. - While the sandbox is paused or down, `~/quaveone-sandboxes//data` is an empty folder, not the workspace. Resume it before starting anything that binds that folder (an agent's Docker backend, `docker run -v`). - The settings (key, credential, compose project) live in `~/.config/quaveone/sandboxes//` (mode 0700). Do not edit them. Inside the sandbox: - `/workspace/persist` (`$SANDBOX_PERSIST`) persists and may be shared with other machines. Everything else in `/workspace` survives only a `pause`; `/tmp` and `$HOME` are lost with the container. - Write each file in one go and close it (it is uploaded on close). Prefer one file per writer (`results/.json`), not one shared file everyone appends to. - Never put in `/workspace/persist`: SQLite or any single-file database, lock or PID files, sockets, `node_modules`, `.venv`, build output, continuously appended logs, secrets (API keys, the volume key, credentials). Hard links are not supported. - Agent memory across runs: `/workspace/persist/agent-memory/` with an index `MEMORY.md` and one small file per note; read it at the start, write it at the end, the index last; one writer per directory (`agent-memory//` for parallel agents). ## 5. Pause, resume, back up the key, verify ```bash quaveone sandbox pause # snapshots /workspace into the volume, stops the stack quaveone sandbox resume # starts it and restores the last snapshot quaveone sandbox key backup # writes ~/quaveone-sandbox-default.key-backup (0600), prints only its path quaveone sandbox verify # 18 checks, about 25 s ``` - `pause --exclude a,b` sets what the snapshot skips (default `node_modules,.venv,.cache`). `resume --from ` restores the last snapshot another sandbox name paused on the same volume (`volobj-node` copies it in; the sandbox itself never sees other sandboxes' snapshots). - `key backup` writes `~/quaveone-sandbox-.key-backup` (mode 0600; or `--file `) and prints only the path. Never `cat` or print the backup file, never paste its content into notes, cheat sheets or chat, and never use `key backup --stdout`. Tell the user its path: "Your volume key backup is in ``. Move it to your password manager and delete the file. Without it nobody can join or recover this workspace." This machine holds the only other copy. - `verify` must end with `OK: sandbox "default" works as documented (17 passed, 1 skipped, 0 failed; …)`. Check 15 is skipped with the public hub (the sandbox holds no hub credential). With an external bucket (step 6) it ends `16 passed, 2 skipped, 0 failed`: also green. `--output json` for parsing, `--samples n` for more propagation samples. Report the final line to the user. - `quaveone sandbox down` stops the stack and keeps the workspace; `quaveone sandbox up` starts it again. `down` without `pause` loses everything outside `/workspace/persist`. Measured here (CLI v1.1.0-beta.3, a fresh Linux user with uid 1001 and no image pulled yet): `up` 35 s, including a cold pull of about 214 MB of images (compressed); `verify` 24 s (16 passed, 1 skipped; a new file reached the other member in a median of 172–195 ms). An agent that followed this file from the `curl` of step 3 to a green `verify` took 1m44s in 6 turns. With the images already pulled: `doctor` 0.8 s, `up` 8.2 s, `status` 0.7 s, `pause` 2.0 s, `resume` 7.8 s. ## 6. The same workspace on another machine With the default local MinIO the data lives in a Docker volume on THIS machine. The key alone does not bring it anywhere: `up --volume-key-file` without `--s3-endpoint` on another machine would give an EMPTY workspace (a new volume in that machine's own MinIO), so the CLI stops with a warning unless `--yes` is passed. Never add `--yes` to get past it: it means a new, empty volume. For a workspace that outlives the machine or is shared, create it on a bucket the user controls, from the start: ```bash export QUAVEONE_SANDBOX_S3_ACCESS_KEY=… QUAVEONE_SANDBOX_S3_SECRET_KEY=… # never as flags: they show in the process list quaveone sandbox up --s3-endpoint https://s3.example.com --s3-region us-east-1 --bucket sandboxes quaveone sandbox key backup ``` - The bucket must exist. `--s3-region` is required by some providers (OCI: the bucket's region; MinIO: `us-east-1`). `--root` defaults to `workspaces/`. - The endpoint, bucket, root, hub and key identify the volume and cannot change later (`up` refuses). An existing local-MinIO sandbox cannot be moved to a bucket: create a new one with another `--name`. - With an external bucket `verify` ends with `16 passed, 2 skipped, 0 failed` (checks 14 and 15 do not apply): that is green. Its propagation medians are about 0.9–1.4 s instead of ~0.2 s: every change goes through the bucket. - For an external bucket the backup file also holds the S3 settings, the hub credential and a ready join line. On the second machine (the user copies the file there through a safe channel): ```bash set -a; . ./quaveone-sandbox-default.key-backup; set +a echo "$VOLUME_KEY" > key && chmod 600 key QUAVEONE_SANDBOX_HUB_TOKEN="$HUB_TOKEN" QUAVEONE_SANDBOX_S3_ACCESS_KEY="$S3_ACCESS_KEY" QUAVEONE_SANDBOX_S3_SECRET_KEY="$S3_SECRET_KEY" quaveone sandbox up --volume-key-file key --s3-endpoint "$S3_ENDPOINT" --s3-region "$S3_REGION" --bucket "$S3_BUCKET" --root "$S3_ROOT" --hub "$HUB_URL" rm key; unset VOLUME_KEY HUB_TOKEN S3_ACCESS_KEY S3_SECRET_KEY ``` - Use `resume` instead of `up` in that line, plus `--from `, to continue from the snapshot the first machine paused ("pause here, resume there"). - Both machines MUST use the same hub credential (`QUAVEONE_SANDBOX_HUB_TOKEN` above). A second anonymous credential is a second tenant: the files are shared but changes arrive by polling, seconds later (about 6 s observed) instead of about 1 s. - Two members never write one file at once: the second gets `EBUSY` (step 7). ### Remote server The sandbox can also run on a Linux server the user reaches over SSH, driven from this machine (settings, key and credentials stay here; nothing is copied to the server): ```bash quaveone sandbox doctor --remote my-server # checks ssh, Docker, /dev/fuse, mount propagation on my-server quaveone sandbox up --remote my-server # creates the sandbox there quaveone sandbox shell # a shell on my-server; later commands find the server in the settings ``` - `--remote` needs `ssh my-server true` to work without a prompt and, on the server, Linux with Docker Engine usable by the SSH user (its `docker` group), `/dev/fuse` and a shared mount. This machine needs only the `docker` CLI with the compose v2 plugin (it may be macOS). - Without `--s3-endpoint`, the local MinIO runs on the server: the bucket lives there, on that machine only. To share a workspace between machines, use an S3 bucket both reach (above). - `--remote` is set on a sandbox's first run and never changes. To move a paused workspace, create a new sandbox from it: `quaveone sandbox resume --name --from --remote my-server` (needs an S3 bucket; refused for a local MinIO). - `resume --name --from ` with a sandbox of THIS machine (with or without `--remote`) takes the bucket, key and hub credential from the paused one: the settings of the source win. `QUAVEONE_SANDBOX_S3_*` and `QUAVEONE_SANDBOX_HUB_TOKEN` in the environment do not stop it; a value that differs is ignored, with a warning that names the variable. Do not pass `--s3-*` or `--hub-token` flags there (refused). ### Quave One Only when the user has a Quave One account with an object storage point on their own bucket ("Use your own bucket" on Shared Storage, or the public API/MCP `create-object-storage-server`) and asks for a sandbox there. ```bash quaveone sandbox up --name online --remote quave --template