openclaw-skill-r2-storage_skill

This skill helps manage Cloudflare R2 object storage via a boto3-compatible API, enabling upload, download, list, delete, and presigned URL generation.
  • Python

2.5k

GitHub Stars

2

Bundled Files

2 months ago

Catalog Refreshed

3 months ago

First Indexed

Readme & install

Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.

Installation

Preview and clipboard use veilstrat where the catalogue uses aiagentskills.

npx veilstrat add skill openclaw/skills --skill openclaw-skill-r2-storage

  • _meta.json287 B
  • SKILL.md2.2 KB

Overview

This skill manages Cloudflare R2 object storage using the S3-compatible boto3 API. It provides upload, download, list, delete, and pre-signed URL operations accessible via a CLI or as an importable Python module. It is designed for backups, asset hosting, and automated storage workflows.

How this skill works

The skill wraps boto3 S3 client calls configured for R2 (region_name="auto" and a custom endpoint). It reads credentials and endpoint from environment variables, constructs requests for put/get/list/delete operations, and can generate temporary GET pre-signed URLs. CLI entrypoints mirror the Python functions for easy scripting and ad-hoc use.

When to use it

  • Upload backups, media, or static assets to Cloudflare R2
  • Download stored objects for restore or local processing
  • List bucket contents to inventory or iterate objects
  • Remove obsolete or test objects to reclaim space
  • Generate temporary public download links for sharing

Best practices

  • Set credentials via environment variables and avoid hard-coding keys
  • Use prefixes to scope list and delete operations to specific folders
  • Limit pre-signed URL expiry to the minimum needed for security
  • Use multipart uploads for very large files (handled via boto3 patterns)
  • Validate uploaded object integrity by checking size or checksums

Example use cases

  • Automated nightly backup upload to an R2 bucket via the CLI or a cron job
  • Fetch and process media files from R2 in a Python ETL script using download()
  • List files under a prefix to build a static site manifest or sync tool
  • Create a one-hour pre-signed URL to share a private asset with a client
  • Delete build artifacts from a bucket after a CI job completes

FAQ

Set R2_ACCESS_KEY_ID, R2_SECRET_ACCESS_KEY, R2_ENDPOINT, and R2_ACCOUNT_ID. The code expects region_name="auto" for R2 compatibility.

Do pre-signed URLs allow uploads?

No. Pre-signed URLs generated by this skill are for GET requests only (temporary download links).

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational