qiniu-kodo

七牛云 KODO 对象存储技能。支持文件上传、下载、列出、删除、获取 URL 等操作。 三层架构:MCP 工具(优先)→ Node.js SDK → qshell CLI。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "qiniu-kodo" with this command: npx skills add aohoyo/qiniu-kodo

☁️ 七牛云 KODO 技能

通过 MCP 工具 / Node.js SDK / qshell CLI 管理七牛云对象存储。


🎯 执行策略(三层降级)

优先级工具使用场景
1qiniu-mcp-server功能最全,优先使用
2Node.js SDKMCP 不可用时降级
3qshell CLI最后备选

🚀 快速开始

1. 安装依赖

# 进入技能目录
cd ~/.openclaw/workspace/skills/qiniu-kodo

# 运行自动安装
bash scripts/setup.sh

2. 配置凭证

bash scripts/setup.sh \
  --access-key "YOUR_ACCESS_KEY" \
  --secret-key "YOUR_SECRET_KEY" \
  --region "z0" \
  --bucket "mybucket"

3. 测试连接

node scripts/qiniu_node.mjs test-connection

📋 使用示例

上传文件

node scripts/qiniu_node.mjs upload \
  --local "/path/to/file.txt" \
  --key "uploads/file.txt"

列出文件

node scripts/qiniu_node.mjs list --prefix "uploads/" --limit 100

下载文件

node scripts/qiniu_node.mjs download \
  --key "uploads/file.txt" \
  --local "/path/to/save.txt"

删除文件

node scripts/qiniu_node.mjs delete --key "uploads/file.txt" --force

获取文件 URL

# 公开空间
node scripts/qiniu_node.mjs url --key "uploads/file.txt"

# 私有空间(1小时有效)
node scripts/qiniu_node.mjs url --key "uploads/file.txt" --private --expires 3600

🔧 Node.js SDK API

命令说明
upload --local <path> --key <key>上传文件
download --key <key> --local <path>下载文件
list [--prefix <p>] [--limit <n>]列出文件
delete --key <key> [--force]删除文件
url --key <key> [--private] [--expires <s>]获取 URL
stat --key <key>文件信息
move --src-key <a> --dest-key <b>移动文件
copy --src-key <a> --dest-key <b>复制文件
test-connection测试连接

⚙️ 配置文件

config/qiniu-config.json

{
  "accessKey": "YOUR_ACCESS_KEY",
  "secretKey": "YOUR_SECRET_KEY",
  "bucket": "mybucket",
  "region": "z0",
  "domain": "https://cdn.example.com"
}

区域代码

  • z0 - 华东(杭州)
  • z1 - 华北(河北)
  • z2 - 华南(广州)
  • na0 - 北美(洛杉矶)
  • as0 - 东南亚(新加坡)

🐛 故障排查

问题解决
Cannot find module 'qiniu'npm install qiniu
401 Unauthorized检查 AccessKey/SecretKey
连接超时检查区域代码和网络

📚 相关链接


📄 许可证

MIT License

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

aliyun-oss

阿里云 OSS 对象存储技能。支持文件上传、下载、列出、删除、获取 URL 等操作。 两层架构:Node.js SDK(优先)→ ossutil CLI。

Registry SourceRecently Updated
2140Profile unavailable
General

OpenClaw Sync

OpenClaw 数据轻量同步技能。基于 rclone + cron,支持 70+ 云存储后端, 定时备份 workspace 数据,资源占用极低。

Registry SourceRecently Updated
2340Profile unavailable
General

baidunetdisk

支持百度网盘文件查看、搜索、分享链接提取、一键转存及目录创建的综合管理功能。

Registry SourceRecently Updated
5602Profile unavailable
Coding

Vultr Cloud Infrastructure

Manage Vultr cloud infrastructure including VPS instances, bare metal, Kubernetes clusters, databases, DNS, firewalls, VPCs, object storage, and more. Use wh...

Registry SourceRecently Updated
750Profile unavailable