Install
openclaw skills install 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.
openclaw skills install alicloud-storage-oss-ossutilCategory: tool
python skills/storage/oss/alicloud-storage-oss-ossutil/scripts/check_ossutil.py --output output/alicloud-storage-oss-ossutil/validate.txt
Pass criteria: command exits 0 and output/alicloud-storage-oss-ossutil/validate.txt is generated.
output/alicloud-storage-oss-ossutil/.ossutil config or config file).ossutil ls to list buckets, then list objects using the bucket region.references/install.md for platform-specific install steps.ossutil config
~/.ossutilconfigC:\Users\issuser\.ossutilconfigMain configuration fields include:
AccessKey IDAccessKey SecretRegion(example default cn-hangzhou; ask the user if the best region is unclear)Endpoint(optional; auto-derived from region if omitted)Use RAM users/roles with least privilege and avoid passing AK in plain text on command line.
Recommended method (environment variables):
export ALICLOUD_ACCESS_KEY_ID="<your-ak>"
export ALICLOUD_ACCESS_KEY_SECRET="<your-sk>"
export ALICLOUD_REGION_ID="cn-beijing"
ALICLOUD_REGION_ID can be used as default region; if unset choose the most reasonable region, ask user if unclear.
Or use the standard shared credentials file:
~/.alibabacloud/credentials
[default]
type = access_key
access_key_id = <your-ak>
access_key_secret = <your-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
ossutil ls
Get target bucket region from output (e.g. oss-cn-shanghai) and convert it to --region format (cn-shanghai).
When listing objects, explicitly set --region and -e to avoid cross-region signature/endpoint errors.
ossutil ls oss://your-bucket \
-r --short-format \
--region cn-shanghai \
-e https://oss-cn-shanghai.aliyuncs.com
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 in config file, or pass --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 and -e; both must match bucket region.OSSUTIL 2.0 overview and install/config:
Official source list:references/sources.md
ALICLOUD_ACCESS_KEY_ID, ALICLOUD_ACCESS_KEY_SECRET, optional ALICLOUD_REGION_ID.