mount_config in Python or mountConfig in TypeScript. The SDK sends the mount specs to LangSmith and composes the required auth proxy rules for provider credentials.
Sandbox mounts require
langsmith[sandbox]>=0.8.16 for Python or langsmith>=0.7.10 for TypeScript.Configure mount paths
Each mount has anid, a type, and a mount_path / mountPath. Mount paths must be absolute paths under /mnt/mounts.
Use stable paths that describe the mounted source:
| Source | Example path |
|---|---|
| S3 bucket prefix | /mnt/mounts/customer-data |
| GCS bucket prefix | /mnt/mounts/eval-datasets |
| Git repository | /mnt/mounts/repo |
Mount an S3 bucket
S3 mounts require AWS auth. The SDK creates an AWS auth proxy rule fromaws_auth / awsAuth, so the sandbox can access the bucket without seeing the real access keys.
Mount a GCS bucket
GCS mounts require GCP auth. Read/write mounts require thehttps://www.googleapis.com/auth/devstorage.read_write or https://www.googleapis.com/auth/cloud-platform OAuth scope. Read-only mounts can use https://www.googleapis.com/auth/devstorage.read_only.
Mount a public Git repository
Public Git mounts do not require AWS or GCP auth. Use an HTTPS remote URL and optionally pin a branch or tag.proxy_config / proxyConfig rules when the remote requires proxy-managed auth. There is not yet a high-level private Git auth helper.
Combine mounts
A sandbox can mount multiple sources. Build onemount_config / mountConfig with all mount specs, and include provider auth for every bucket provider used by those specs.
Cache bucket mounts
S3 and GCS mounts support optional cache settings. Cache settings tune the local VFS cache used by the bucket mount; the bucket remains the source of truth. Use cache settings to control local disk usage and writeback timing, not as a separate persistence layer. Cache settings do not apply to Git mounts.| Field | Description |
|---|---|
max_size_bytes | Optional maximum size, in bytes, for the local mount cache. Set a positive value to add an explicit cap; omit it to leave the runtime default. |
writeback_seconds | Optional delay, in seconds, before cached writes are written back to the bucket. The default is 0. Lower values make writes visible to the bucket sooner; higher values can reduce write traffic for workloads that rewrite the same files. |
max_size_bytes only when you need a
specific local cache cap. For writable mounts, keep writeback_seconds low when
another process needs to read the objects from S3 or GCS soon after the sandbox
writes them.
Limits
- Mounts are attached when the sandbox is created. Create a new sandbox to change mounts.
- Configure each cloud provider’s credentials in one auth surface per sandbox. If mount auth supplies AWS or GCP credentials, do not also add an auth proxy rule for the same provider.
- Git refs can be omitted or set to a branch or tag. Commit refs are not supported.
- Git mounts do not support
read_only/readOnlyor cache settings.
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

