alicloud-storage-oss-ossutilAlibaba Cloud OSS CLI (ossutil 2.0) skill. Install, configure, and operate OSS from the command line based on the official ossutil overview.
Install via ClawdBot CLI:
clawdbot install cinience/alicloud-storage-oss-ossutilCategory: tool
ossutil config 或配置文件)。ossutil ls 列 bucket,再按 bucket 所在 region 列 object。references/install.md。ossutil config
~/.ossutilconfigC:\Users\issuser\.ossutilconfig配置项主要包括:
AccessKey IDAccessKey SecretRegion(示例默认 cn-hangzhou;未确定最合理 Region 时需询问)Endpoint(可选;未指定时按 Region 自动推导)建议使用 RAM 用户/角色并遵循最小权限原则,避免在命令行中明文传入 AK。
推荐方式(环境变量):
export ALICLOUD_ACCESS_KEY_ID="你的AK"
export ALICLOUD_ACCESS_KEY_SECRET="你的SK"
export ALICLOUD_REGION_ID="cn-beijing"
ALICLOUD_REGION_ID 可作为默认 Region;未设置时可选择最合理 Region,无法判断则询问用户。
或使用标准共享凭证文件:
~/.alibabacloud/credentials
[default]
type = access_key
access_key_id = 你的AK
access_key_secret = 你的SK
ossutil configossutil api put-bucket-aclossutil ls
ossutil ls oss://your-bucket -r --short-format --region cn-shanghai -e https://oss-cn-shanghai.aliyuncs.com
ossutil cp ./local.txt oss://your-bucket/path/local.txt
ossutil cp oss://your-bucket/path/remote.txt ./remote.txt
ossutil sync ./local-dir oss://your-bucket/path/ --delete
1) 列出所有 bucket
ossutil ls
2) 从输出中拿到目标 bucket 的 region(例如 oss-cn-shanghai),转换成 --region 所需格式(cn-shanghai)
3) 列对象时显式指定 --region 与 -e(避免跨地域签名/endpoint 错误)
ossutil ls oss://your-bucket \
-r --short-format \
--region cn-shanghai \
-e https://oss-cn-shanghai.aliyuncs.com
4) 对超大 bucket,优先限制输出规模
ossutil ls oss://your-bucket --limited-num 100
ossutil ls oss://your-bucket/some-prefix/ -r --short-format --region cn-shanghai -e https://oss-cn-shanghai.aliyuncs.com
Error: region must be set in sign version 4.region,或命令行加 --region cn-xxx。The bucket you are attempting to access must be addressed using the specified endpoint-e https://oss-cn-hongkong.aliyuncs.com。Invalid signing region in Authorization header--region 与 -e,两者必须与 bucket 所在地域一致。references/sources.mdGenerated Mar 1, 2026
Businesses migrating on-premises data to Alibaba Cloud OSS for scalable storage and disaster recovery. This skill automates bulk uploads and syncs, ensuring data integrity and efficient transfer.
Media companies storing and distributing large video or image files globally via OSS. The skill enables fast downloads and uploads with region-specific endpoint configuration for optimized performance.
Organizations processing big data by uploading raw datasets to OSS for analysis with tools like MaxCompute. The skill manages file transfers and bucket organization, supporting data workflows.
Developers hosting static websites on OSS for cost-effective, high-availability solutions. The skill facilitates uploading HTML, CSS, and JavaScript files and syncing updates seamlessly.
Enterprises managing sensitive data with strict access controls and lifecycle policies. The skill helps configure permissions and list objects for auditing purposes across regions.
SaaS providers use this skill to integrate OSS for customer data storage, enabling scalable file management and backup features within their applications.
MSPs offer OSS management services to clients, using this skill for automated deployments, monitoring, and maintenance of cloud storage infrastructure.
Consultants provide expertise in cloud migration and OSS optimization, leveraging this skill for hands-on training and implementation support to improve client workflows.
💬 Integration Tip
Integrate with CI/CD pipelines for automated file uploads and use environment variables for secure credential management to avoid hardcoding keys.
Advanced filesystem operations - listing, searching, batch processing, and directory analysis for Clawdbot
Perform advanced filesystem tasks including listing, recursive searching by name or content, batch copying/moving/deleting files, and analyzing directory siz...
Essential SSH commands for secure remote access, key management, tunneling, and file transfers.
Extract text from PDF files for LLM processing
The directory for AI agent services. Discover tools, platforms, and infrastructure built for agents.
Advanced filesystem operations - listing, searching, batch processing, and directory analysis for Clawdbot