- Uploads have no fixed size limit; they are bounded by free disk space in the sandbox. They overwrite existing files and create missing parent directories. The SDK reads the whole local file into memory and times out after 300 seconds by default, so pass a larger
timeoutfor big files on slow connections. read_fileis capped at 10 MiB and raisesSandboxFileTooLargeErrorpast it; usedownload_filefor large files.- Transfers and commands use gateway tokens that expire 30 minutes after they are issued. The CLI and SDK cache them and fetch a new one before expiry; if you call the gateway directly, request a new token with
POST /api/v1/sandbox/{sandbox_id}/authbeforeexpires_at. - A token is checked only when a request starts. Transfers and command streams already in progress keep running past the token’s expiry, and fetching a new token does not interrupt them; only new requests need a valid token.
- If you rotate credentials or hit 401s, run
prime sandbox reset-cache(CLI) orclient.clear_auth_cache()(SDK).
Sandboxes
Files
Move files in and out of a sandbox
Was this page helpful?