A unified, CDN-powered, serverless web interface to browse, preview, share, and delete files stored in ImpossibleCloud, Wasabi, Cloudflare R2, and Oracle Cloud (OCI) S3-compatible storage. Powered by Cloudflare Workers with advanced caching, optimization, and autonomous AI agent capabilities for intelligent file management.
๐ NEW v6.8: Autonomous AI Agent with 11 tools, WebDAV authentication, advanced duplicate detection, and intelligent link generation!
- ๐ Unified Browser: Browse folders and files from ImpossibleCloud, Wasabi, Cloudflare R2, and Oracle Cloud under a single interface.
- ๐ Automatic Routing: Routes to the correct provider based on URL path prefixes (e.g.,
/r2/,/oci/,/wasabi/). - โฌ๏ธ Download & Stream: Securely download or stream files, with support for browser-based video/audio playback.
- ๐๏ธ Media Previews: In-browser previews for images, videos (including enhanced MKV support), audio, and PDFs.
- ๐ Dual Share Links:
- ๐ CDN Link: Worker URL with global CDN caching (perfect for small-medium files)
- ๐ Direct S3 Link: Presigned or public URLs (best for large files or compatibility)
- ๐ Global Search: Search for files across all configured cloud providers simultaneously.
- ๐ฆ Bulk Operations: Select multiple files with checkboxes and perform bulk actions:
- Export Links: Export CDN, Direct, or Download links in multiple formats (TXT, JSON, Markdown)
- Bulk Delete: Delete multiple files at once with confirmation
- ๐๏ธ Delete Files: Remove files directly from your buckets via the web interface (single or bulk).
- ๐ WebDAV Authentication: Secure username and password login (WebDAV-compatible Basic Auth).
- ๐จ Beautiful Themes: 6 themes (Dark, Light, Blue, Purple, Sunset, Forest) with responsive mobile design.
- ๐ Edge Deployment: Deploy globally on the Cloudflare edge network for ultra-low latency.
- ๐ Secure Signing: Uses AWS Signature V4 for all S3 API requests.
Transform your storage management with an autonomous AI agent powered by Cloudflare Workers AI. The agent can understand natural language requests, reason through complex tasks, and autonomously execute operations across your multi-cloud storage.
1. ๐ง Autonomous Intelligence
- Natural Language Processing: Ask questions in plain English
- Multi-Step Reasoning: Agent plans and executes complex workflows automatically
- Tool Selection: Intelligently chooses the right tools for each task
- Context Awareness: Remembers conversation history (last 10 messages)
- Iterative Refinement: Adapts based on results (up to 8 iterations)
2. ๐ง 11 Powerful Agent Tools:
| Tool | Function | Status |
|---|---|---|
| search_files | Search across all providers with filters | โ Fully Working |
| analyze_storage | Complete storage analysis and statistics | โ Fully Working |
| list_directory | List files and folders in any path | โ Fully Working |
| get_file_info | Detailed metadata for specific files | โ Fully Working |
| delete_files | Safe deletion with confirmation | โ Fully Working |
| generate_insights | Data-driven recommendations | โ Fully Working |
| generate_links | All link types (4 formats) for files | โ Fully Working |
| find_duplicates | Find and delete duplicate files | โ Fully Working |
| organize_files | File organization suggestions | โณ Partial |
| move_files | Move/copy across providers | โณ Framework Ready |
| batch_operations | Complex batch workflows | โณ Framework Ready |
3. ๐ Tool Details:
๐ search_files
- Search across all providers or specific provider
- Filter by file type (mp4, pdf, jpg, etc.)
- Up to 3 directory levels deep
- Returns up to 50 results with metadata
๐ analyze_storage
- Total file count and storage size
- Per-provider breakdown
- Top 10 largest files
- File type distribution
- Formatted summary reports
๐ generate_links
- Download Links: Force download URLs
- Share Links: Temporary presigned URLs (customizable expiry)
- Direct Links: 7-day presigned or permanent public URLs
- Streaming Links: CDN-accelerated with range request support
- Generates all 4 types in one command!
๐ find_duplicates
- Scans all providers (up to 5 levels deep)
- Groups by filename + size
- Identifies which copies to keep/delete
- Calculates potential space savings
- Returns ready-to-delete list with safety checks
๐ก generate_insights
- Large Files: Find files over specified size
- Optimization: Storage improvement suggestions
- Duplicates: Duplicate file detection
- Old Files: Identify rarely accessed files
๐๏ธ delete_files
- Batch deletion with confirmation
- Detailed success/failure reporting
- Safety checks (requires confirm:true)
- Works across all providers
4. ๐ฌ Example Commands:
"Find all MP4 files in Wasabi"
"Analyze my storage usage across all providers"
"Generate all links for video.mp4"
"Find and delete duplicate files"
"What are my largest files?"
"Search for PDFs larger than 10MB"
"Give me a 24-hour share link for document.pdf"
"Find duplicates and show how much space I can save"
"List everything in the videos folder"
"How can I optimize my storage?"
5. ๐ฏ Multi-Step Workflow Examples:
Storage Audit:
You: "Audit my storage and find duplicates"
Agent automatically:
1. Analyzes storage across all providers
2. Finds duplicate file groups
3. Generates insights
4. Reports: "128.5 GB total, 1,247 files, 8 duplicate groups (2.3 GB savings)"
Find & Delete Duplicates:
You: "Find and delete duplicate files"
Agent:
1. Scans all providers
2. Shows: "Found 12 duplicates, can save 2.3 GB"
3. You: "yes"
4. Deletes files with confirmation
5. Reports: "Deleted 12 files, freed 2.3 GB"
Bulk Link Generation:
You: "Find all my videos and generate streaming links"
Agent:
1. Searches for video files (mp4, mkv, avi)
2. Finds 45 videos across providers
3. Generates streaming URLs for all
4. Returns ready-to-use links
6. โก Agent Features:
- Autonomous Execution: Takes action automatically (with safety checks)
- Tool Chaining: Combines multiple tools for complex tasks
- Smart Recommendations: Data-driven insights with actionable advice
- Visual Feedback: Shows tool usage: "๐ง Agent used 3 tool(s) in 2 step(s)"
- Conversation Memory: Understands context and follow-up questions
- Error Handling: Graceful degradation with helpful error messages
7. ๐ก๏ธ Safety Features:
- Confirmation required for destructive operations
- Auto-execution can be disabled (
enableAutoExecution: false) - Iteration limits prevent runaway processes (max 8)
- Detailed logging for transparency
- Tool-level safety checks
8. โ๏ธ AI Configuration:
enableAIChat: true,
aiModel: "@cf/meta/llama-3.3-70b-instruct-fp8-fast",
enableAgenticAI: true,
agentConfig: {
maxIterations: 8,
enableAutoExecution: true,
requireConfirmation: false, // Set true for manual approval
tools: [/* 11 tools enabled */]
}Secure your storage with WebDAV-compatible username and password authentication.
Features:
- ๐ HTTP Basic Authentication - Industry standard WebDAV protocol
- ๐ค Username + Password - Dual credential authentication
- ๐จ Beautiful Login Page - Modern, responsive design with gradient background
- ๐พ Session Persistence - Credentials stored in session for convenience
- ๐ WebDAV Client Compatible - Works with rclone, Cyberduck, Windows Explorer
โ ๏ธ Failed Login Feedback - Clear error messages for invalid credentials
Configuration:
passwordProtected: true,
authMode: "username", // "username" (WebDAV) or "password" (legacy)
username: "your-username",
password: "your-password"Compatible with:
- rclone - WebDAV backend with Basic Auth
- Cyberduck / Transmit - WebDAV connections
- Windows Explorer - Map network drive
- macOS Finder - Connect to Server
- Linux davfs2 - Mount as filesystem
- Mobile Apps - FolderSync, WebDAV Navigator
Login Experience:
- Elegant card-based design
- Smooth animations
- Real-time validation
- Mobile responsive
- Auto-focus and keyboard shortcuts
- Security badge display
- โก Range Request Caching: Seeks/scrubbing in MX Player/VLC are 10x faster after first view
- ๐ฏ Smart Link Recommendations: Visual indicators (โจ sparkle) show which button to use based on file size
- ๐ Intelligent Caching: Small files cached for 2 hours, large files for 30 minutes
- ๐ฌ HLS Segment Prefetching: Automatically prefetches next video segment for buffer-free playback
- ๐ Performance Headers: See response times and cache status in browser DevTools
- ๐ User-Friendly Errors: Clear, actionable error messages instead of technical jargon
- ๐ฑ Mobile Optimization: Detects mobile devices and provides helpful guidance
- ๐๏ธ Auto Compression: Cloudflare automatically compresses text/JSON responses
- A Cloudflare account with Workers enabled (Dashboard)
- Cloudflare AI binding for agentic features (free tier available)
- An ImpossibleCloud account and storage bucket (optional)
- A Wasabi account and storage bucket (optional)
- A Cloudflare R2 bucket and S3 credentials (optional)
- An Oracle Cloud (OCI) account, bucket, and S3 credentials (optional)
For each provider you want to use, gather the following credentials:
- Create a bucket and generate S3 access keys.
- Note your: Access Key ID, Secret Access Key, Bucket Name, and Region.
- Create a bucket and generate S3 access keys.
- Note your: Access Key ID, Secret Access Key, Bucket Name, and Region.
- Create a bucket in the R2 dashboard.
- Create an "R2 API Token" with Read & Write permissions.
- Note your: Access Key ID, Secret Access Key, Bucket Name, and your Account ID (found on the main R2 page).
- Create a bucket (set it to Public if you want to use the public share link feature).
- Go to your User settings โ Customer Secret Keys and generate a new key.
- Note your: Access Key ID, Secret Access Key, and Bucket Name.
- Find your tenancy's unique Namespace (Go to Object Storage โ click any bucket โ see "Namespace" in the details).
- Note your Region (e.g.,
ap-hyderabad-1).
- Log in to the Cloudflare Dashboard โ Workers & Pages โ Create Worker.
- Copy and paste the complete worker code (
multiclouds3 v6.8.js). - Save and deploy.
Go to the Worker's settings โ Variables and add the following. You only need to add variables for the providers you are using.
| Variable Name | Example Value | Description |
|---|---|---|
IMPOSSIBLE_ACCESS_KEY_ID |
E66C5D15FDEAA3EE... |
ImpossibleCloud Access Key |
IMPOSSIBLE_SECRET_ACCESS_KEY |
ad8fb4f17ce235c69... |
ImpossibleCloud Secret Key |
IMPOSSIBLE_BUCKET_NAME |
my-impossible-bucket |
ImpossibleCloud Bucket Name |
IMPOSSIBLE_REGION |
eu-central-2 |
ImpossibleCloud Region |
WASABI_ACCESS_KEY_ID |
B75P0FDJF41RI... |
Wasabi Access Key |
WASABI_SECRET_ACCESS_KEY |
3z7ZCpDwQ0nMdbB... |
Wasabi Secret Key |
WASABI_BUCKET_NAME |
my-wasabi-bucket |
Wasabi Bucket Name |
WASABI_REGION |
ap-northeast-1 |
Wasabi Region |
R2_ACCESS_KEY_ID |
a0b1c2d3e4f5... |
Cloudflare R2 Access Key |
R2_SECRET_ACCESS_KEY |
g6h7j8k9l0m1... |
Cloudflare R2 Secret Key |
R2_BUCKET_NAME |
my-r2-bucket |
Cloudflare R2 Bucket Name |
R2_ACCOUNT_ID |
f9e8d7c6b5a4... |
Required. Your Cloudflare Account ID |
OCI_ACCESS_KEY_ID |
OCI... |
Oracle Cloud Access Key |
OCI_SECRET_ACCESS_KEY |
zYxWvU... |
Oracle Cloud Secret Key |
OCI_BUCKET_NAME |
my-oci-bucket |
Oracle Cloud Bucket Name |
OCI_NAMESPACE |
axbycz... |
Required. Your OCI Tenancy Namespace |
OCI_REGION |
ap-hyderabad-1 |
Oracle Cloud Region |
Important: Encrypt all Secret Access Keys for best security.
In wrangler.toml or Worker settings:
[ai]
binding = "AI"This enables the autonomous AI agent features (free tier: 10,000 requests/day).
In the worker code, set your login credentials:
passwordProtected: true,
authMode: "username",
username: "your-username",
password: "your-secure-password"- Visit your Worker URL (e.g.,
https://multi-cloud.my-worker.workers.dev/). - Log in with your credentials.
- The interface will show buttons to navigate to each provider's root:
/impossible/โ Browses ImpossibleCloud/wasabi/โ Browses Wasabi/r2/โ Browses Cloudflare R2/oci/โ Browses Oracle Cloud
- Click the ๐ค AI Agent โก button to access the autonomous assistant.
- Click the "๐ค AI Agent โก" button in the interface
- Type your request in natural language
- Watch the agent autonomously execute tools
- Get intelligent results with actionable insights
Simple Queries:
"Find all MP4 files"
"What's my largest file?"
"How much storage am I using?"
Complex Analysis:
"Analyze storage and suggest optimizations"
"Find files older than 6 months over 1GB"
"Compare usage across all providers"
Multi-Step Tasks:
"Find duplicate files and calculate space savings"
โ Agent uses find_duplicates tool
โ Shows: "Found 8 duplicate groups, can save 2.3 GB"
"Delete them"
โ Agent uses delete_files with confirmation
โ Executes deletion
โ Reports: "Deleted 12 files, freed 2.3 GB"
Link Generation:
"Generate all links for video.mp4 in Wasabi"
โ Agent uses generate_links tool
โ Returns:
โข Download Link
โข Share Link (1 hour expiry)
โข Direct Link (7 days)
โข Streaming Link (CDN)
Follow-Up Conversations:
You: "Find MP4 files"
Agent: "Found 48 files..."
You: "Show me the largest ones"
Agent: [remembers context, filters by size]
You: "Delete files over 2GB"
Agent: [asks confirmation, executes]
The agent shows what it's doing:
๐ง Agent used 3 tool(s) in 2 step(s)
See detailed logs in browser console:
[Agent] Processing request: Find duplicates
[Agent] Executing tool: find_duplicates
[Agent] Found 127 total files
[Agent] Found 8 duplicate groups
Each file now has TWO share buttons with smart recommendations:
- What it does: Copies a Worker URL that goes through Cloudflare's CDN
- Best for:
- Files under 1 GB
- Videos you'll watch multiple times
- Sharing with multiple people
- Benefits:
- โก 10x faster after first load (cached globally)
- Perfect for MX Player, VLC, Kodi
- Instant seeking after initial cache
- Visual indicator: โจ Sparkles and glows for recommended files
- What it does: Copies a direct S3 URL (presigned or public)
- Best for:
- Files over 1 GB
- One-time downloads
- Maximum compatibility
- Benefits:
- No proxy overhead
- Works for any file size
- 7-day expiration (or permanent for public OCI buckets)
- Visual indicator: โจ Sparkles and glows for large files (>1GB)
File Size < 1 GB: Use ๐ CDN (it will glow โจ)
File Size โฅ 1 GB: Use ๐ Direct (it will glow โจ)
Repeated viewing: Use ๐ CDN
One-time download: Use ๐ Direct
MX Player (small): Use ๐ CDN
MX Player (large): Use ๐ Direct
Or just ask the AI Agent:
"Generate all links for this file"
โ Returns all 4 link types with recommendations
Search for files across all your configured cloud providers simultaneously!
- Use the search box at the top of the interface
- Enter your search term (minimum 2 characters)
- Results show files from ImpossibleCloud, Wasabi, R2, and OCI together
- Each result displays:
- File name, size, and last modified date
- Provider icon and name
- Direct actions (Preview, Download, Share, Delete)
"Search for all PDF files"
"Find videos larger than 1GB"
"Look for files with 'backup' in the name"
The agent uses the search_files tool automatically!
Select multiple files and perform batch operations with ease!
Export file links in 6 formats: CDN, Direct, Download, All, JSON, Markdown
Or use AI Agent:
"Generate download links for all PDFs"
"Create streaming links for all videos in Wasabi"
Delete multiple files at once with confirmation
Or use AI Agent:
"Delete all files older than 1 year"
"Find and delete duplicates"
"Remove backup files from last month"
The agent handles safety checks and confirmation automatically!
Edit the CONFIG object at the top of the Worker code to customize your deployment.
const CONFIG = {
siteName: "Multi-Cloud S3 Index",
siteIcon: "๐ค๏ธ",
theme: "dark", // "dark", "light", "blue", "purple", "sunset", "forest"
// Authentication
passwordProtected: true,
authMode: "username", // "username" (WebDAV) or "password" (legacy)
username: "your-username",
password: "your-password",
// AI Agent
enableAIChat: true,
aiModel: "@cf/meta/llama-3.3-70b-instruct-fp8-fast",
enableAgenticAI: true,
agentConfig: {
maxIterations: 8,
enableAutoExecution: true, // Allow agent to execute operations
requireConfirmation: false, // Set true for manual approval
tools: [/* 11 tools */]
},
// Storage
experimentalMkvSupport: true,
routingStrategy: "path-based",
pathRouting: {
"impossible/": "impossiblecloud",
"wasabi/": "wasabi",
"r2/": "cloudflarer2",
"oci/": "oraclecloud",
default: "impossiblecloud"
},
providerPriority: ["impossiblecloud", "wasabi", "cloudflarer2", "oraclecloud"],
// Search
enableGlobalSearch: true,
searchCacheTime: 300, // 5 minutes
// Sorting
defaultSort: { field: "name", direction: "asc" }
};Complete autonomous agent implementation:
11 Agent Tools:
- โ search_files - Cross-provider search with filters
- โ analyze_storage - Complete storage analysis
- โ list_directory - Directory listing
- โ get_file_info - File metadata
- โ delete_files - Safe deletion
- โ generate_insights - Data-driven recommendations
- โ generate_links - All link types (4 formats)
- โ find_duplicates - Duplicate detection & deletion
- โณ organize_files - Organization suggestions
- โณ move_files - Cross-provider moves
- โณ batch_operations - Complex workflows
Agent Capabilities:
- ๐ง Natural language understanding
- ๐ Multi-step reasoning (up to 8 iterations)
- ๐ฏ Autonomous tool selection
- ๐ฌ Conversation memory
- โก Automatic execution with safety checks
- ๐ Transparent operation logging
Example Agent Tasks:
โ Find and delete duplicates โ Saves 2.3 GB
โ Analyze storage and optimize โ 3 actionable recommendations
โ Generate all links for file โ 4 link types in one command
โ Search across providers โ Results from all clouds
โ Complex multi-step workflows โ Fully automated
Professional username + password login:
- ๐จ Beautiful login page with gradient design
- ๐ค Username and password fields
- ๐ HTTP Basic Authentication (WebDAV standard)
- ๐พ Session persistence
- ๐ Compatible with rclone, Cyberduck, Windows Explorer
โ ๏ธ Real-time error feedback- ๐ฑ Mobile responsive
Powered by AI agent's find_duplicates tool:
- Scans up to 5 directory levels
- Groups by filename + size
- Calculates space savings
- Smart keep/delete selection
- Cross-provider duplicate detection
- Detailed reporting
AI agent's generate_links tool provides:
- Download Links - Force download
- Share Links - Temporary presigned (customizable expiry)
- Direct Links - 7-day or permanent
- Streaming Links - CDN-accelerated
All 4 types in one command!
| Task | Manual | With AI Agent |
|---|---|---|
| Find duplicates | Search โ Compare โ List โ Delete | "Find and delete duplicates" โ Done |
| Generate links | Click each file โ Copy 4 links | "Generate all links" โ All 4 types ready |
| Storage analysis | Browse โ Calculate โ Organize | "Analyze my storage" โ Complete report |
| Complex search | Multiple searches โ Filter โ Sort | "Find MP4s over 1GB in Wasabi" โ Results |
| Bulk operations | Select โ Export โ Format โ Copy | "Export links for all videos" โ Done |
| Optimization | Manual review โ Research โ Plan | "Optimize my storage" โ Actionable plan |
Time Saved: Up to 90% faster for complex tasks!
- Agent not responding: Check AI binding is configured (
[ai]in wrangler.toml) - Tools not executing: Verify
enableAgenticAI: truein CONFIG - Hitting iteration limit: Increase
maxIterationsor break into smaller tasks - Delete not working: Check
enableAutoExecution: truein CONFIG - No duplicates found: Agent scans up to 5 levels - files may be deeper
- Login fails: Check username and password in CONFIG match exactly
- Session expires: Credentials stored in sessionStorage (cleared on browser close)
- rclone can't connect: Ensure
authMode: "username"is set - Still prompts for password: Clear browser cache and session storage
- Authentication Errors: Double-check your keys, regions, and bucket names. For R2, ensure
R2_ACCOUNT_IDis set. For OCI, ensureOCI_NAMESPACEis set. - OCI Public Links Not Working: Direct links for OCI require public bucket. For private buckets, use CDN links.
- Delete Failed: S3 keys need
s3:DeleteObjectpermissions.
- CDN Link Not Fast: First access fetches from S3. Subsequent accesses are cached and instant.
- Large Files Slow with CDN: Use ๐ Direct button for files over 1 GB.
- Cache Not Working: Check DevTools โ Network โ Headers for
CF-Cache-Status: HIT
- Search Not Working: Ensure
enableGlobalSearch: truein CONFIG - Bulk Export Fails: Check provider credentials and permissions
- Presigned URLs Invalid: Direct links expire after 7 days
- โ AI-Powered Automation - Natural language commands
- โ 90% Time Savings - Complex tasks automated
- โ Intelligent Insights - Data-driven recommendations
- โ Multi-Provider - Single interface for all clouds
- โ No Manual Work - Agent handles repetitive tasks
- โ 100% FREE (Cloudflare Workers + AI free tier)
- โ Global edge network (250+ locations)
- โ No bandwidth fees
- โ AI agent included
- โ No lock-in
- โ Modern UI - Beautiful web interface
- โ AI Assistant - Intelligent file management
- โ CDN Acceleration - 10x faster streaming
- โ Multi-Cloud - All providers in one place
- โ WebDAV Compatible - Works with all clients
- ๐ฌ Media Libraries - AI-powered organization and streaming
- ๐ฆ File Sharing - Intelligent link generation
- ๐๏ธ Backup Management - Duplicate detection and cleanup
- ๐ฑ Mobile Streaming - Optimized links for MX Player/VLC
- ๐ข Team Collaboration - Multi-cloud access with AI assistant
- ๐ฎ Game Assets - Fast CDN delivery with intelligent caching
- ๐ Document Archives - Smart search and organization
Home Media Server:
"Find duplicate movies and TV shows"
"Generate streaming links for all episodes"
"What's taking up the most space?"
"Organize media files by type"
Backup Management:
"Find backups older than 6 months"
"Delete duplicate backup files"
"Analyze backup storage usage"
"Generate download links for recent backups"
Content Distribution:
"Find all videos over 100MB"
"Generate CDN links for distribution"
"What's my most accessed file?"
"Create share links that expire in 24 hours"
| Feature | v6.2 | v6.8 |
|---|---|---|
| Multi-cloud browse | โ | โ |
| Global search | โ | โ |
| Bulk operations | โ | โ |
| Authentication | No | WebDAV (Username + Password) |
| AI Assistant | โ | โ 11 Autonomous Tools |
| Duplicate detection | Manual | โ AI-Powered |
| Link generation | Manual (1 at a time) | โ All 4 types in 1 command |
| Storage analysis | Basic stats | โ AI Insights |
| Natural language | โ | โ Full support |
| Multi-step workflows | Manual | โ Autonomous |
MIT License - Free to use, modify, and distribute.
- Cloudflare Workers - Serverless edge computing
- Cloudflare Workers AI - Autonomous AI agent
- Cloudflare CDN - Global content delivery network
- ImpossibleCloud - European S3-compatible storage
- Wasabi Hot Cloud Storage - Global hot cloud storage
- Cloudflare R2 - Zero-egress S3-compatible storage
- Oracle Cloud Infrastructure - OCI Object Storage
If you find this useful, please consider starring the repository! It helps others discover this tool.
Made with โค๏ธ and ๐ค AI for the self-hosting community
Enjoy your blazing-fast, CDN-powered, AI-enhanced, multi-cloud file browser! ๐
Version 6.8 - Now with Autonomous AI Agent and WebDAV Authentication