Skip to main content
Host mounts let a sandbox read files from your local machine without copying them. This is useful when an agent needs to explore a codebase or process data that already lives on your host. By default, the host folder is read-only — the sandbox can read every file, but changes stay inside the sandbox and never touch the originals. If you need the sandbox to write back to the host, see writable mounts below.

CLI

Mount a directory when creating a sandbox:
Mount multiple directories at custom paths:

Python SDK

You can also specify custom mount paths:

Writable mounts

By default, mounts are read-only. Add --writable-mounts to let the sandbox write back to your host directories.

CLI

Any file the sandbox creates or modifies inside the mount point appears on your host immediately.

Python SDK

Writable mounts give the sandbox full write access to the mounted host directories. Make sure you trust the code running inside the sandbox before enabling this flag.
Last modified on June 24, 2026