Skip to main content

Overview

OpenReward provides cloud storage integration for both environments and sandboxes.
Key Concept: The same storage is accessible in both environments and sandboxes.

Automatic Setup

Each environment automatically includes isolated cloud storage:
  • Created automatically with your environment
  • Isolated from other environments
  • Accessible in both environment server and sandboxes

Using Storage in Environments

Accessing Data

Inside your environment server code, access storage at /orwd_data/:

Common Use Cases

1. Large Datasets:
2. Configuration Files:

Using Storage in Sandboxes

Configuration

Configure storage access via bucket_config in SandboxSettings:

SandboxBucketConfig Parameters

Accessing Data

Inside the sandbox, access files at the configured mount path:

Mounting Subdirectories

Mount only a specific subdirectory with only_dir:
This is useful if you want to mount only a specific subdirectory of the bucket, for example if you want to mount only the training data of a dataset.

Implicit Directories

Control how directory listings work:

Next Steps

Sandboxes

Learn how to use storage in sandboxes

Environments

Understand storage access in environments

Workspaces

Learn about automatic workspace storage

Sandbox API Reference

Complete SandboxBucketConfig API documentation