rclone by everyinc/compound-engineering-plugin
npx skills add https://github.com/everyinc/compound-engineering-plugin --skill rclone在任何 rclone 操作之前,请验证安装和配置:
# 检查 rclone 是否已安装
command -v rclone >/dev/null 2>&1 && echo "rclone installed: $(rclone version | head -1)" || echo "NOT INSTALLED"
# 列出已配置的远程存储
rclone listremotes 2>/dev/null || echo "NO REMOTES CONFIGURED"
引导用户进行安装:
# macOS
brew install rclone
# Linux(脚本安装)
curl https://rclone.org/install.sh | sudo bash
# 或通过包管理器
sudo apt install rclone # Debian/Ubuntu
sudo dnf install rclone # Fedora
引导用户完成交互式配置:
rclone config
常见服务提供商快速参考:
| 提供商 | 类型 | 关键设置 |
|---|---|---|
| AWS S3 |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
s3| access_key_id, secret_access_key, region |
| Cloudflare R2 | s3 | access_key_id, secret_access_key, endpoint (account_id.r2.cloudflarestorage.com) |
| Backblaze B2 | b2 | account (keyID), key (applicationKey) |
| DigitalOcean Spaces | s3 | access_key_id, secret_access_key, endpoint (region.digitaloceanspaces.com) |
| Google Drive | drive | OAuth 流程(打开浏览器) |
| Dropbox | dropbox | OAuth 流程(打开浏览器) |
示例:配置 Cloudflare R2
rclone config create r2 s3 \
provider=Cloudflare \
access_key_id=YOUR_ACCESS_KEY \
secret_access_key=YOUR_SECRET_KEY \
endpoint=ACCOUNT_ID.r2.cloudflarestorage.com \
acl=private
示例:配置 AWS S3
rclone config create aws s3 \
provider=AWS \
access_key_id=YOUR_ACCESS_KEY \
secret_access_key=YOUR_SECRET_KEY \
region=us-east-1
rclone copy /path/to/file.mp4 remote:bucket/path/ --progress
rclone copy /path/to/folder remote:bucket/folder/ --progress
rclone sync /local/path remote:bucket/path/ --progress
rclone ls remote:bucket/
rclone lsd remote:bucket/ # 仅目录
rclone copy /path remote:bucket/ --dry-run
| 标志 | 用途 |
|---|---|
--progress | 显示传输进度 |
--dry-run | 预览而不实际传输 |
-v | 详细输出 |
--transfers=N | 并行传输数(默认 4) |
--bwlimit=RATE | 带宽限制(例如 10M) |
--checksum | 通过校验和而非大小/时间进行比较 |
--exclude="*.tmp" | 排除匹配模式的文件 |
--include="*.mp4" | 仅包含匹配的文件 |
--min-size=SIZE | 跳过小于 SIZE 的文件 |
--max-size=SIZE | 跳过大于 SIZE 的文件 |
对于视频和大文件,使用分块上传:
# S3 多部分上传(大于 200MB 时自动启用)
rclone copy large_video.mp4 remote:bucket/ --s3-chunk-size=64M --progress
# 恢复中断的传输
rclone copy /path remote:bucket/ --progress --retries=5
# 检查文件是否存在且匹配
rclone check /local/file remote:bucket/file
# 获取文件信息
rclone lsl remote:bucket/path/to/file
# 测试连接
rclone lsd remote:
# 调试连接问题
rclone lsd remote: -vv
# 检查配置
rclone config show remote
每周安装量
245
仓库
GitHub 星标数
10.9K
首次出现时间
2026 年 1 月 21 日
安全审计
安装于
gemini-cli214
opencode213
codex211
github-copilot197
cursor196
claude-code190
Before any rclone operation, verify installation and configuration:
# Check if rclone is installed
command -v rclone >/dev/null 2>&1 && echo "rclone installed: $(rclone version | head -1)" || echo "NOT INSTALLED"
# List configured remotes
rclone listremotes 2>/dev/null || echo "NO REMOTES CONFIGURED"
Guide the user to install:
# macOS
brew install rclone
# Linux (script install)
curl https://rclone.org/install.sh | sudo bash
# Or via package manager
sudo apt install rclone # Debian/Ubuntu
sudo dnf install rclone # Fedora
Walk the user through interactive configuration:
rclone config
Common provider setup quick reference:
| Provider | Type | Key Settings |
|---|---|---|
| AWS S3 | s3 | access_key_id, secret_access_key, region |
| Cloudflare R2 | s3 | access_key_id, secret_access_key, endpoint (account_id.r2.cloudflarestorage.com) |
| Backblaze B2 | b2 | account (keyID), key (applicationKey) |
| DigitalOcean Spaces | s3 | access_key_id, secret_access_key, endpoint (region.digitaloceanspaces.com) |
| Google Drive | drive | OAuth flow (opens browser) |
| Dropbox | dropbox |
Example: Configure Cloudflare R2
rclone config create r2 s3 \
provider=Cloudflare \
access_key_id=YOUR_ACCESS_KEY \
secret_access_key=YOUR_SECRET_KEY \
endpoint=ACCOUNT_ID.r2.cloudflarestorage.com \
acl=private
Example: Configure AWS S3
rclone config create aws s3 \
provider=AWS \
access_key_id=YOUR_ACCESS_KEY \
secret_access_key=YOUR_SECRET_KEY \
region=us-east-1
rclone copy /path/to/file.mp4 remote:bucket/path/ --progress
rclone copy /path/to/folder remote:bucket/folder/ --progress
rclone sync /local/path remote:bucket/path/ --progress
rclone ls remote:bucket/
rclone lsd remote:bucket/ # directories only
rclone copy /path remote:bucket/ --dry-run
| Flag | Purpose |
|---|---|
--progress | Show transfer progress |
--dry-run | Preview without transferring |
-v | Verbose output |
--transfers=N | Parallel transfers (default 4) |
--bwlimit=RATE | Bandwidth limit (e.g., 10M) |
--checksum |
For videos and large files, use chunked uploads:
# S3 multipart upload (automatic for >200MB)
rclone copy large_video.mp4 remote:bucket/ --s3-chunk-size=64M --progress
# Resume interrupted transfers
rclone copy /path remote:bucket/ --progress --retries=5
# Check file exists and matches
rclone check /local/file remote:bucket/file
# Get file info
rclone lsl remote:bucket/path/to/file
# Test connection
rclone lsd remote:
# Debug connection issues
rclone lsd remote: -vv
# Check config
rclone config show remote
Weekly Installs
245
Repository
GitHub Stars
10.9K
First Seen
Jan 21, 2026
Security Audits
Gen Agent Trust HubFailSocketPassSnykFail
Installed on
gemini-cli214
opencode213
codex211
github-copilot197
cursor196
claude-code190
Supabase Postgres 最佳实践指南 - 8大类别性能优化规则与SQL示例
57,300 周安装
| OAuth flow (opens browser) |
| Compare by checksum, not size/time |
--exclude="*.tmp" | Exclude patterns |
--include="*.mp4" | Include only matching |
--min-size=SIZE | Skip files smaller than SIZE |
--max-size=SIZE | Skip files larger than SIZE |