r2
Cloudflare R2 Storage management — setup, upload, download, sync via rclone
- License 许可
- MIT
- 最近更新
- 2026-08-23
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- r2
- metadata
- { "clawdbot": { "env": [ "R2_CONFIG" ], "emoji": "☁️", "install": [ { "id": "rclone", "kind": "shell", "label": "Install rclone", "command": "curl -fsSL https://rclone.org/install.sh | sudo bash" } ], "requires": { "bins": [ "rclone" ] } } }
- description
- Cloudflare R2 Storage management — setup, upload, download, sync via rclone
02 资源文件 8
- 参考文档_meta.json273 B
- 脚本scripts/delete.sh962 B
- 脚本scripts/download.sh723 B
- 脚本scripts/list.sh524 B
- 脚本scripts/setup.sh2.7 KB
- 脚本scripts/show-creds.sh1.4 KB
- 脚本scripts/sync.sh783 B
- 脚本scripts/upload.sh566 B
03 SKILL.md 正文
r2 ☁️
Cloudflare R2 Storage management using rclone.
Install
curl -fsSL https://rclone.org/install.sh | sudo bash
Credentials Required
Set R2_CONFIG in dashboard with this JSON format:
{
"access_key_id": "YOUR_ACCESS_KEY_ID",
"secret_access_key": "YOUR_SECRET_ACCESS_KEY",
"endpoint": "https://YOUR_ACCOUNT_ID.r2.cloudflarestorage.com",
"bucket": "your-bucket-name"
}
Get credentials from Cloudflare:
- Go to https://dash.cloudflare.com → R2
- Create API token with Object Read/Write/List permissions
- Copy Account ID (from R2 dashboard URL)
- Endpoint format:
https://<account_id>.r2.cloudflarestorage.com
Setup
# Quick setup
r2-setup --config '{"access_key_id":"...","secret_access_key":"...","endpoint":"...","bucket":"..."}'
Or run interactively:
./skills/r2/scripts/setup.sh
Commands
Upload
r2-upload /path/to/file.txt # Upload single file
r2-upload /path/to/folder/ # Upload folder contents
r2-upload /path/to/file.txt --bucket other-bucket # Upload to specific bucket
Download
r2-download file.txt /local/path/ # Download single file
r2-download folder/ /local/ # Download folder
r2-download file.txt # Download to current dir
List
r2-ls # List bucket contents
r2-ls my-bucket # List specific bucket
r2-ls --long # Long format with sizes
Sync (One-way)
r2-sync /local/folder/ r2:bucket/ # Local → R2
r2-sync r2:bucket/ /local/folder/ # R2 → Local
r2-sync /local/ r2:bucket/ --delete # Mirror (delete extra files on dest)
Delete
r2-rm file.txt # Delete single file
r2-rm folder/ # Delete folder contents
r2-purge my-bucket # Delete all files in bucket
Show Credentials
./skills/r2/scripts/show-creds.sh # Human-readable
./skills/r2/scripts/show-creds.sh --raw # JSON format for UI
Direct rclone Commands
# Copy files
rclone copy /local/file.txt r2:bucket/
# Sync with progress
rclone sync /local/ r2:bucket/ -P
# Check disk usage
rclone size r2:bucket
Config Location
- Env config:
~/.config/r2/config.json(or dashboardR2_CONFIG) - rclone config:
~/.config/rclone/rclone.conf - Named remote:
r2
Troubleshooting
403 Access Denied
Token lacks permissions. Update API token in Cloudflare with:
- Object Read ✅
- Object Write ✅
- Object List ✅
Bucket Not Found
Create the bucket first:
rclone mkdir r2:bucket-name
04 同仓库更多 Skills
crowd-prompting
A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.
dilemm-ai
Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
git-summary
Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.
agent-constitution
Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.