Skip to main content
Volumes provide persistent storage that you can attach to a sandbox at a mount path. You can mount volumes when creating the sandbox, or mount and unmount them at runtime on a running sandbox.

Mount at creation

Pass volumeMounts (JS) / volume_mounts (Python) to novita.sandbox.create — a mapping from mount path inside the sandbox to a Volume instance or a volume name.

Mount at runtime

sandbox.mountVolume(name, path) / sandbox.mount_volume(name, path) attaches a volume by name to a mount path on a running sandbox and returns the updated sandbox information.

Unmount

sandbox.unmountVolume(path) / sandbox.unmount_volume(path) detaches the volume mounted at the given path. Pass force to force the unmount.
Last modified on September 4, 2026