mountable.io
By Jiří Puc · Founder, mountable.io
  • architecture
  • sandboxes
  • security
  • fuse

Keep Your Agent's Files When the Sandbox Is Gone

The next agent run often needs the files the last sandbox wrote. Mount a mountable.io filesystem in each sandbox, and keep your API key on your backend.

An agent sandbox is a short-lived Linux machine in the cloud where an AI agent runs the code it writes. It keeps that code away from your own machines, and it is destroyed when the task finishes. Hosted services such as E2B create one for each task.

One common pain point is that the next run usually needs the files from the last one. Agent A clones a repository and writes a fix, and Agent B has to review it. Or a user comes back ten minutes later and asks the agent to continue.

Teams usually solve this in one of a few ways. Some pack the workspace into a tarball at the end of each run and unpack it at the next start. A sandbox that crashes before the upload loses that run's work.

Others attach a storage volume offered by the sandbox provider. Some mount an S3 or GCS bucket with s3fs or GCS FUSE, using credentials limited to that bucket.

mountable.io is a persistent filesystem for AI agents. Each sandbox mounts it as a normal folder, so the next run finds the files the last one left.

Your mountable.io API key stays on your backend. Each sandbox gets a one-time ticket instead, which mounts one filesystem read-write or read-only. An unused ticket expires after five minutes.

Each ticket starts a mount session. Your backend can end one session at any time, and the other sandboxes keep working.

Diagram showing a trusted backend keeping the API key, passing a one-time ticket to a Linux sandbox, and the sandbox mounting a persistent mountable.io filesystem as /mnt/work.
Your backend keeps the API key and hands the sandbox a one-time ticket over stdin.

A coder and a reviewer share one workspace

Suppose two sandboxes work on the same project. The coder writes code and runs tests, so it needs read-write access. The reviewer only inspects the changes, so it gets read-only access.

First, your backend creates a filesystem with a management key, gives its API key access (MOUNTABLE_API_KEY_ID is api_key.id from GET /api/v1/me called with that key), and creates a ticket for the coder with the API key:

FS_ID=$(MOUNTABLE_API_KEY="$MOUNTABLE_MANAGEMENT_KEY" mountable fs create agent-workspace)
MOUNTABLE_API_KEY="$MOUNTABLE_MANAGEMENT_KEY" mountable grants set "$FS_ID" api_key "$MOUNTABLE_API_KEY_ID" rw
mountable ticket create "$FS_ID"

Then it passes the ticket into the coder's sandbox, which reads it on stdin so it never appears in an argument list:

mkdir -p /mnt/work
printf '%s\n' "$MOUNTABLE_TICKET" | mountable mount --ticket-stdin --json /mnt/work &

The mount command prints a JSON mounted event when it is ready. From then on, /mnt/work is a normal Linux directory where the agent can run git, pytest, npm or rg.

The agent can also rename folders, create symlinks and run chmod, which Mountpoint for S3 refuses.

When the coder is done, it unmounts:

mountable unmount /mnt/work

Now start the reviewer in a fresh sandbox. Your backend creates a read-only ticket for it with --ro:

mountable ticket create "$FS_ID" --ro

The reviewer mounts the same filesystem and sees every file the coder wrote. Any attempt to change a file is refused.

You can mount the same filesystem on your own laptop to see what the agents wrote. On an Apple Silicon Mac running macOS 26, the mountable.io CLI is all you install. On an idle filesystem, a small file written in a Linux sandbox shows up on the Mac in under a second.

Cut off one agent at any time

Sometimes an agent gets stuck in a bad loop while its job is still running. You don't have to rotate keys or stop every other sandbox on that filesystem. Your backend finds that sandbox's mount session and revokes it:

mountable sessions list "$FS_ID"
mountable sessions revoke "$SESSION_ID"

That sandbox loses its mount within 15 seconds, and every other sandbox keeps working. In our tests on E2B sandboxes, the mount stopped 2 to 4 seconds after we ended the session.

Try it