Overview
Objects provide a way to store and manage files, data, and other resources that can be shared across Devboxes or made publicly available. The Objects API supports uploading, downloading, listing, and managing access to stored content.Key Features
- File Storage: Upload and store files of various types and sizes
- Public/Private Access: Control whether objects are publicly accessible or private
- Download URLs: Generate secure, time-limited download URLs for objects
- Cross-Devbox Sharing: Access objects from multiple Devboxes within your account
Creating Objects
Upload a new object to store files or data that can be accessed by your Devboxes.Mounting Objects to Devboxes
Objects can be mounted directly to a Devbox filesystem when creating the Devbox using themounts parameter. This allows you to pre-populate files or data in your Devbox without needing to upload them after creation.
Mounting via Devbox Create
When creating a Devbox, you can specify object mounts that will be written to the filesystem during initialization:Mounting Multiple Objects
You can mount multiple objects to different paths on the same Devbox:Object paths must be absolute paths (e.g., 
/home/user/file.txt). If the object is an archive, specify the directory where it should be extracted (e.g., /home/user/archive_dir).Mount Use Cases
Object mounts are particularly useful for a variety of larger files, including:- Pre-loading datasets: Mount training data or test datasets before running experiments
- Configuration files: Inject configuration files or environment-specific settings
- Model weights: Load pre-trained model weights or checkpoints
- Static assets: Include images, templates, or other static resources
- Shared data: Use the same data across multiple Devboxes by mounting the same object
Retrieving Objects
Get details about a specific object, including its metadata and access information.Listing Objects
Retrieve a list of all objects in your account with optional filtering and pagination.Listing Public Objects
Browse objects that have been made publicly accessible.Generating Download URLs
Create secure, time-limited URLs for downloading object content.Completing Object Upload
Finalize an object upload after the content has been uploaded to the provided URL.Deleting Objects
Remove an object permanently from your account storage.Deleting an object is permanent and cannot be undone. Any Devboxes or applications relying on this object will no longer be able to access it.
Best Practices
Storage Guidelines
- 
Use descriptive names: Choose clear, meaningful names for your objects
- ✅ training-data-2024.csv
- ❌ data1.csv
 
- ✅ 
- 
Set appropriate access levels: Use public objects only when necessary
- Private: Sensitive data, internal files
- Public: Shared resources, documentation
 
- Manage object lifecycle: Regularly review and clean up unused objects
- 
Optimize content types: Set accurate content types for proper handling
- text/csvfor CSV files
- application/jsonfor JSON data
- image/pngfor PNG images
 
Common Use Cases
- 
Training Data: Store datasets for AI model training
- 
Configuration Files: Share config files across Devboxes
- 
Assets and Resources: Store images, documents, and other files
- 
Backup and Snapshots: Store backup data and snapshots
