openagentry

STORAGE · Adapter

storage-r2

via Cloudflare R2

S3-compatible object storage. Public/private buckets.

@openagentry/adapter-storage-r2 npm →

— · Install

Use it

# Install
$ npm install @openagentry/adapter-storage-r2

# Or in a workspace registered with the CLI
$ npx agentry init @openagentry/adapter-storage-r2

— · Default export

Pattern: lazy

The default export is always a frozen STORAGEAdapter with static category + id. Methods read env on first call and cache the underlying instance. Missing config produces an AgentryError at the use-site, not at import.

import default_ from '@openagentry/adapter-storage-r2';
// → storageAdapter — category: 'storage', id: 'storage-r2'

— · Environment

Configuration

Variable Notes
R2_ACCESS_KEY_ID Required.
R2_SECRET_ACCESS_KEY Optional.
R2_ACCOUNT_ID Optional.

— · Reported capabilities

What the manifest says

agentry capabilities --json reports these flags from the package's openagentry.capabilities manifest block.

transport
s3
publicAccess
true