Skip to main content
A sandbox’s own record doesn’t list the drives it has mounted. List its mounts to see them. Set up your SDK or the CLI before running these examples. They use a running sandbox named hello-world.
Drives are in pre-release in the Baseten CLI (baseten drive and baseten sandbox drive) and in the Python, TypeScript, and Go SDKs (baseten, @basetenlabs/client, @basetenlabs/sandbox, and baseten-go). Commands, methods, and responses can change. The Management API drive operations are experimental.

List drive mounts

Each mount shows the drive’s name, the folder of the drive that’s mounted (/ for the whole drive), the mount path in the sandbox, and whether it’s read-only. To list the drives mounted in hello-world:
Run the following code:

Next steps

Unmount a drive

Detach a drive from a sandbox and keep its files.

Mount a drive

Mount another drive or folder.