Install
openclaw skills install file-upload-cliUpload files to the litterbox.catbox.moe file sharing service and get shareable URLs (72h expiry). Use when the user wants to share a file temporarily or needs a quick file hosting solution.
openclaw skills install file-upload-cliA Node.js command-line tool for uploading files to the litterbox.catbox.moe file sharing service using curl.
Upload a file and receive a shareable URL:
node file-upload-cli.js <filePath>
Example:
node file-upload-cli.js document.pdf
Output:
Uploading...
File uploaded successfully!
URL: https://litter.catbox.moe/abc123.pdf
Note: File will be available for 72 hours.
Ensure Node.js v14+ and curl are installed:
Requirements:
cd file-upload-cli
npm install # No external dependencies required
Run the CLI tool with a file path:
node file-upload-cli.js <filePath>
Path Types:
node file-upload-cli.js ./file.txtnode file-upload-cli.js /home/user/file.txt (Unix) or node file-upload-cli.js C:\Users\user\file.txt (Windows)node file-upload-cli.js "my file.txt"The tool outputs a shareable URL that can be:
URL Format: https://0x0.st/<random-id>
Text file:
node file-upload-cli.js notes.txt
Image:
node file-upload-cli.js photo.jpg
PDF document:
node file-upload-cli.js report.pdf
Archive:
node file-upload-cli.js backup.zip
For files larger than 1MB, the tool displays upload progress:
node file-upload-cli.js large-video.mp4
Output:
Uploading...
File uploaded successfully!
URL: https://litter.catbox.moe/xyz789.mp4
Note: File will be available for 72 hours.
Windows:
node file-upload-cli.js C:\Users\user\Documents\file.pdf
node file-upload-cli.js .\file.txt
macOS/Linux:
node file-upload-cli.js /home/user/documents/file.pdf
node file-upload-cli.js ./file.txt
The tool provides clear error messages for common issues:
No file path provided:
Error: No file path provided
Usage: node file-upload-cli.js <filePath>
File not found:
Error: File not found - /path/to/file.txt
Please check the file path and try again.
Path is a directory:
Error: Path is a directory - /path/to/folder
Please provide a file path, not a directory.
File too large:
Error: File too large - 1.5 GB (limit: 1 GB)
The file exceeds the litterbox.catbox.moe service limit.
Empty file:
Error: File is empty - /path/to/file.txt
Cannot upload an empty file.
Connection failure:
Error: Network error - Cannot connect to litterbox.catbox.moe
Please check your internet connection and try again.
Timeout:
Error: Connection timeout
The upload request timed out. Please try again.
File too large (service rejection):
Error: Service error - File too large (413)
The litterbox.catbox.moe service rejected the file. Maximum size is 1 GB.
Server error:
Error: Service error - Internal server error (500)
The litterbox.catbox.moe service encountered an error. Please try again later.
Service unavailable:
Error: Service unavailable (503)
The litterbox.catbox.moe service is temporarily unavailable. Please try again later.
https://litterbox.catbox.moe (HTTPS encrypted)⚠️ Important: Files are uploaded to a public file sharing service:
The tool uses:
child_process, fs, path, utilImplementation: file-upload-cli.js (Node.js script)
Exit Codes:
0: Success1: General error2: Network error3: Service error4: Validation errorRequirements:
"curl command not found"
"Permission denied"
chmod +r file.txt (Unix)"Connection timeout"
"Service error"