The R2 resource exposes a Cloudflare R2 bucket as a virtual filesystem. It uses the S3-compatible API internally. For credential setup, see R2 Setup.Documentation Index
Fetch the complete documentation index at: https://docs.mirage.strukto.ai/llms.txt
Use this file to discover all available pages before exploring further.
Config
| Field | Required | Default | Description |
|---|---|---|---|
bucket | yes | R2 bucket name | |
account_id | no* | Cloudflare account ID | |
endpoint_url | no* | Custom endpoint URL | |
access_key_id | no | R2 API token access key | |
secret_access_key | no | R2 API token secret key | |
aws_profile | no | AWS profile name (alternative auth) | |
region | no | auto | Region (R2 defaults to auto) |
timeout | no | 30 | Request timeout in seconds |
proxy | no | HTTP proxy URL |
account_id or endpoint_url is required. If account_id is
provided, the endpoint is auto-built as
https://{account_id}.r2.cloudflarestorage.com.
Filesystem Layout
.parquet, .orc, .feather) return formatted tables
when read via cat.
Cache
UsesIndexCacheStore for directory listings with configurable TTL.
File content caching is handled by the workspace.
Example
Shell Commands
| Command | Notes |
|---|---|
ls | List objects and prefixes |
cat | Read object content (tables for columnar) |
head / tail | First/last N lines |
grep / rg | Pattern search |
jq | Query JSON objects |
wc | Line/word/byte counts |
stat | Object metadata (size, modified time) |
find | Recursive search with -name, -maxdepth |
tree | Directory tree view |