skills$openclaw/aliyun-oss-upload
chengjiaxiongkf126

by chengjiaxiongkf

aliyun-oss-upload – OpenClaw Skill

aliyun-oss-upload is an OpenClaw Skills integration for security workflows. 阿里云 OSS 文件上传工具,支持上传文件到阿里云对象存储并生成临时访问链接。使用场景:将本地文件上传到 OSS 并获得可分享的临时 URL。需要配置 ALIYUN_OSS_ACCESS_KEY_ID、ALIYUN_OSS_ACCESS_KEY_SECRET、ALIYUN_OSS_ENDPOINT、ALIYUN_OSS_BUCKET 环境变量。

126 stars4.7k forksSecurity L1
Updated Feb 7, 2026Created Feb 7, 2026security

Skill Snapshot

namealiyun-oss-upload
description阿里云 OSS 文件上传工具,支持上传文件到阿里云对象存储并生成临时访问链接。使用场景:将本地文件上传到 OSS 并获得可分享的临时 URL。需要配置 ALIYUN_OSS_ACCESS_KEY_ID、ALIYUN_OSS_ACCESS_KEY_SECRET、ALIYUN_OSS_ENDPOINT、ALIYUN_OSS_BUCKET 环境变量。 OpenClaw Skills integration.
ownerchengjiaxiongkf
repositorychengjiaxiongkf/aliyun-oss-upload
languageMarkdown
licenseMIT
topics
securityL1
installopenclaw add @chengjiaxiongkf/aliyun-oss-upload
last updatedFeb 7, 2026

Maintainer

chengjiaxiongkf

chengjiaxiongkf

Maintains aliyun-oss-upload in the OpenClaw Skills directory.

View GitHub profile
File Explorer
6 files
.
references
config.md
2.1 KB
scripts
oss-upload.py
4.5 KB
_meta.json
295 B
SKILL.md
1.9 KB
SKILL.md

name: aliyun-oss-upload description: 阿里云 OSS 文件上传工具,支持上传文件到阿里云对象存储并生成临时访问链接。使用场景:将本地文件上传到 OSS 并获得可分享的临时 URL。需要配置 ALIYUN_OSS_ACCESS_KEY_ID、ALIYUN_OSS_ACCESS_KEY_SECRET、ALIYUN_OSS_ENDPOINT、ALIYUN_OSS_BUCKET 环境变量。

阿里云 OSS 文件上传

这个技能提供阿里云 OSS(对象存储服务)的文件上传功能,支持生成带签名的临时访问链接。

快速开始

1. 配置环境变量

使用前必须配置以下环境变量(详见 references/config.md):

export ALIYUN_OSS_ACCESS_KEY_ID="your-access-key-id"
export ALIYUN_OSS_ACCESS_KEY_SECRET="your-access-key-secret"
export ALIYUN_OSS_ENDPOINT="https://oss-cn-hangzhou.aliyuncs.com"
export ALIYUN_OSS_BUCKET="your-bucket-name"

2. 安装依赖

pip install oss2

使用方法

上传文件

python scripts/oss-upload.py upload --file /path/to/local/file.txt

可选参数:

  • --key:指定 OSS 中的文件名(默认使用本地文件名)
  • --expire:链接有效期(秒,默认 3600)

示例:

# 上传到指定路径
python scripts/oss-upload.py upload --file photo.jpg --key images/photo.jpg --expire 7200

生成临时访问链接

python scripts/oss-upload.py url --key images/photo.jpg --expire 3600

工作流程

  1. 用户请求上传文件时:

    • 确认本地文件路径
    • 运行上传脚本
    • 返回上传结果和临时访问链接
  2. 用户已有 OSS 文件需要访问链接时:

    • 运行 url 命令生成签名链接
    • 返回临时访问 URL

注意事项

  • 临时链接有效期默认 1 小时,可根据需求调整
  • Bucket 建议设置为私有,通过签名链接安全访问
  • 上传大文件时脚本会自动处理,无需额外配置
README.md

No README available.

Permissions & Security

Security level L1: Low-risk skills with minimal permissions. Review inputs and outputs before running in production.

Requirements

  • OpenClaw CLI installed and configured.
  • Language: Markdown
  • License: MIT
  • Topics:

FAQ

How do I install aliyun-oss-upload?

Run openclaw add @chengjiaxiongkf/aliyun-oss-upload in your terminal. This installs aliyun-oss-upload into your OpenClaw Skills catalog.

Does this skill run locally or in the cloud?

OpenClaw Skills execute locally by default. Review the SKILL.md and permissions before running any skill.

Where can I verify the source code?

The source repository is available at https://github.com/openclaw/skills/tree/main/skills/chengjiaxiongkf/aliyun-oss-upload. Review commits and README documentation before installing.