Tools
File Upload
OpenClaw plugin to upload files and get shareable download URLs — upload any file type (PDF, images, documents) to cloud storage, list uploaded files, delete files with ownership verification, and 30-day auto-cleanup. Powered by PDFAPIHub API. Free API key at pdfapihub.com
Install
openclaw plugins install clawhub:file-upload-url
Configuration Example
{
"plugins": {
"entries": {
"file-upload-url": {
"enabled": true,
"env": {
"PDFAPIHUB_API_KEY": "your-api-key-here"
}
}
}
}
}
README
# File Upload & Share — OpenClaw Plugin
Upload files and get shareable download URLs using the [PDFAPIHub](https://pdfapihub.com) API. This OpenClaw plugin gives your AI agent the ability to upload any file type, list uploads, and manage stored files.
## What It Does
Upload any file to cloud storage and get a public download URL — perfect for sharing files, creating temporary links, and managing uploads in automated workflows.
### Features
- **Any File Type** — Upload PDFs, images, documents, spreadsheets, and more
- **Shareable URLs** — Get a public download URL for any uploaded file
- **Custom Filenames** — Set custom names for uploaded files (max 120 chars)
- **File Listing** — List all uploads with timestamps, ordered newest first
- **Ownership Verification** — Only you can delete your own files
- **30-Day Auto-Cleanup** — Files automatically deleted after 30 days
- **Pagination** — List up to 500 files at once
- **PDF Metadata** — Check page count, size, and encryption of PDF uploads
- **Tier-Based Limits** — File size limits based on your plan (20 MB free tier)
## Tools
| Tool | Description |
|------|-------------|
| `upload_file` | Upload a file and get a public download URL |
| `list_uploaded_files` | List all files you've uploaded |
| `delete_uploaded_file` | Delete an uploaded file by URL |
| `check_pdf_info` | Check PDF metadata (page count, size, encryption) |
## Installation
```bash
openclaw plugins install clawhub:file-upload-url
```
## Configuration
Add your API key in `~/.openclaw/openclaw.json`:
```json
{
"plugins": {
"entries": {
"file-upload-url": {
"enabled": true,
"env": {
"PDFAPIHUB_API_KEY": "your-api-key-here"
}
}
}
}
}
```
Get your **free API key** at [https://pdfapihub.com](https://pdfapihub.com).
## Usage Examples
Just ask your OpenClaw agent:
- *"Upload this file and give me a shareable link"*
- *"Show me all my uploaded files"*
- *"Delete this file from storage"*
- *"How big is this PDF?"*
## Use Cases
- **File Sharing** — Upload files and share download URLs
- **Temporary Hosting** — Host files for 30 days without a server
- **Pipeline Input** — Upload source files for multi-step workflows (upload → merge → watermark)
- **Client Deliverables** — Upload generated files for client download
- **Privacy Compliance** — Delete files immediately after use for GDPR compliance
- **Storage Cleanup** — List and delete files you no longer need
- **Workflow Automation** — Upload, process, and clean up in automated pipelines
## API Documentation
Full API docs: [https://pdfapihub.com/docs](https://pdfapihub.com/docs)
## License
MIT
tools
Comments
Sign in to leave a comment