Install
openclaw skills install minio-shareUpload files to MinIO object storage and generate shareable links with Markdown formatting. Use when users ask to send files, share files, upload files, download videos, or get a download link for files. Supports custom filenames from titles and provides formatted output with clickable links and media previews. Requires MINIO_API_URL, MINIO_CONSOLE_URL, MINIO_ACCESS_KEY, MINIO_SECRET_KEY, and MINIO_BUCKET environment variables.
openclaw skills install minio-shareUpload files to MinIO and generate shareable links for users with Markdown formatting.
Ensure these environment variables are set:
MINIO_API_URL - MinIO S3 API endpoint (e.g., https://minio-api.example.com)MINIO_CONSOLE_URL - MinIO Web Console URL (e.g., https://minio.example.com)MINIO_ACCESS_KEY - MinIO access keyMINIO_SECRET_KEY - MinIO secret keyMINIO_BUCKET - Default bucket name for uploadsInstall the minio Python package if not already available:
pip install minio
Upload a file with Markdown output:
python3 scripts/minio_upload.py /path/to/file.txt
Upload with a custom title (sanitized for safe filenames):
python3 scripts/minio_upload.py /path/to/video.mp4 --title "My Video Title"
This will save the file as My_Video_Title.mp4 (special characters replaced with underscores).
Specify a custom name for the uploaded object:
python3 scripts/minio_upload.py /path/to/file.txt --name custom-name.pdf
Change the presigned URL expiry time (default: 7 days):
python3 scripts/minio_upload.py /path/to/file.txt --expiry 30
Get structured output:
python3 scripts/minio_upload.py /path/to/file.txt --json
Get just the URL:
python3 scripts/minio_upload.py /path/to/file.txt
When a user asks to send/share/upload a file or download a video:
scripts/minio_upload.py:
--title "Video Title" to set a meaningful filenameWhen using --title, the script automatically:
< > : " / \ | ? *) with underscoresProvides rich formatting with:
📄 **文件名**: `sample.mp4`
📦 **大小**: 44.51 MB
⏱️ **链接有效期**: 7 天
🌐 **[sample.mp4](...)**
Common issues:
--insecure flag if needed (not recommended for production)