- Share a common dataset, model, or cache across a fleet of sandboxes.
- Keep working state (skills, checkpoints, outputs) around after a sandbox is gone.
- Hand data between sandboxes without copying it through your machine.
A file system is distinct from a sandbox’s local ephemeral disk (see File Operations) and from Snapshots, which capture a point-in-time copy of one sandbox.
How it works
Create
Create a file system in your project. You get back an id of the form
file_system_....Mount
Mount it into a sandbox at an absolute, unique path — either at boot when you create the sandbox, or on a running sandbox.
Share and persist
Reads and writes under the mount path go to the file system. Mount the same file system into other sandboxes to share its contents; the data remains after each sandbox is terminated.
Create a File System
- CLI
- Python
- TypeScript
List File Systems
- CLI
- Python
- TypeScript
Delete a File System
- CLI
- Python
- TypeScript
Mount at Boot
Mount one or more file systems when you create a sandbox. Each mount needs the file system id and an absolute, unique path inside the sandbox.- CLI
- Python
- TypeScript
- HTTP
Attach and Detach on a Running Sandbox
Mount or unmount a file system on a sandbox that is already running. The mount/unmount completes asynchronously; the returned sandbox info reflects the updated mounts.- CLI
- Python
- TypeScript
- HTTP
List Mounts on a Sandbox
- CLI
- Python
- TypeScript
- HTTP
Share Data Across Sandboxes
Because a file system is independent of any single sandbox, mounting the same one into multiple sandboxes gives them a common, persistent workspace.Best Practices
- Use absolute, unique mount paths (for example
/mnt/skills,/data); two mounts on the same sandbox cannot share a path. - Keep large, reusable assets (datasets, model weights, caches) on a file system instead of rebaking them into every Sandbox Image.
- Treat the file system id (
file_system_...) as the stable handle; mount paths are per-sandbox.
Learn More
File Operations
Read, write, and copy files on a sandbox’s local filesystem.
Snapshots
Capture and restore a single sandbox’s filesystem, memory, and processes.
Skills in Sandboxes
Pre-load skill files so coding agents discover them at startup.