r2
Cloudflare R2 Storage management — setup, upload, download, sync via rclone
- License 许可
- MIT
- 最近更新
- 2026-04-05
- Stars
- ★ 7
- Forks
- 1
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
zyfai
Earn yield on any Ethereum wallet on Base, Arbitrum, and Plasma. Use when a user wants passive DeFi yield on their funds. Deploys a non-custodial subaccount (Safe) linked to their EOA, enables automated yield optimization, and lets them deposit/withdraw anytime.
zerion-api
暂无简介
zerion-api-skill
暂无简介
zerion-api-mcp
暂无简介
yahoo-finance-forex
Fetches real-time FOREX news and market data from Yahoo Finance for major currency pairs (EUR/USD, GBP/USD, USD/JPY, etc.). Analyzes sentiment and provides trading context.
yahoo-finance
This skill should be used when the user asks to "get stock prices", "check stock quotes", "look up earnings", "get financial data", "find trending stocks", or needs stock market data from Yahoo Finance.