Skip to main content
Daytona sandboxes support FUSE, so an Archil disk mounts as a regular directory in a default sandbox, with no privileged mode or custom snapshot needed. Already running agents on Daytona? Keep their data portable. When you delete a Daytona sandbox, its files go with it. Mount an Archil disk in the sandbox and anything written there stays on the disk, where the next sandbox can mount it, your app can read it with the Archil SDK, and an Archil sandbox can boot with it attached.
Archil also runs sandboxes itself. Archil sandboxes are Firecracker microVMs whose root filesystem is an Archil disk, with an egress firewall and forks that branch the root disk at any size. This guide is for teams that already run agents on Daytona and want their workspace data on storage they can take with them.

Prerequisites

Daytona sandboxes meet the requirements for mounting: they provide /dev/fuse, and archil runs as root with sudo. If you restrict the sandbox’s outbound traffic, allow TCP 8100 and 32050. Export your Archil API key and region, and your Daytona API key, then install both SDKs:

Mount a disk

First, create a disk. You only do this once:
Run it with eval "$(npx tsx setup.ts)" (or eval "$(python setup.py)") to export the disk ID and the disk’s mount token, which grants access to this disk only. Now start a sandbox, install the archil client, mount the disk at /mnt/archil with sudo, and write a file. The token is passed only to the mount command:
The archil client buffers recent writes, so before the script deletes the sandbox, archil sync sends every buffered write to the disk and archil checkin releases the sandbox’s lock on it. Those are the two steps archil unmount takes on other machines, but Daytona doesn’t let the client detach the mount. Run npx tsx mount.ts (or python mount.py) twice. Each run starts a new sandbox, and the second one finds the line the first one wrote:
A plain mount is exclusive: one sandbox holds the disk at a time. To mount it in several sandboxes at once, add --conditional, so every sandbox can read and write without a checkout. See Sharing a disk between agents for how to hand files from one sandbox to another, and Consistency for when each one sees the others’ writes. To skip the install in every sandbox, run the same install command in a Daytona snapshot and create your sandboxes from it.

Read it from anywhere

Both sandboxes are gone, and the file is still on the disk. Read it from your own machine or app with the SDK:
If a sandbox is deleted or stopped before it releases the disk, see Troubleshooting mounts on other platforms.

Clean up

Delete the disk. The script already deleted each sandbox.

Next steps