CLI for Agents

Share Files

Generate public download URLs for local files or directories. Spins up a minimal local HTTP server and tunnels it. Costs $0.01 (same as a foreground tunnel). Supports single files, multiple files, and entire directories.

bash
# Share a single file
npx otterkit share ./report.pdf

# Share multiple files (auto-generates index page)
npx otterkit share ./file1.pdf ./file2.zip

# Share an entire directory
npx otterkit share ./dist/

# Background share for 4 hours
npx otterkit share ./dist/ --daemon --ttl 4h

Files are served with correct Content-Type and Content-Disposition headers for browser downloads. Multiple files get an auto-generated index page listing all available downloads. Supports daemon mode with --daemon and --ttl flags for background sharing.