🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

Share One-Time Link

by @hitman86r

Generate public one-shot or time-limited download links for files using a local Express server exposed via Cloudflare Tunnel. Links are tokenized, expire aut...

Versionv1.2.0
πŸ’‘ Examples

Generate a link (via script)

SHARE_SECRET="your-secret" \
node skills/share-onetime-link/scripts/share-file.js /path/to/file.pdf 30

Returns a public link valid for 30 minutes

Generate a link (via agent)

Just ask naturally: > "Share report.pdf for 20 minutes" > "Generate a download link for photo.jpg, valid 1 hour"

Check active links

curl -H "x-share-secret: your-secret" http://localhost:5050/status

βš™οΈ Configuration

1. Install dependencies

cd skills/share-onetime-link/scripts
npm install

2. Configure Cloudflare Tunnel

Create a tunnel in the Cloudflare Zero Trust dashboard:

  • Service: http://localhost:5050
  • Public hostname: e.g. share.yourdomain.com
  • Run the tunnel:

    cloudflared tunnel run --token YOUR_TUNNEL_TOKEN
    

    3. Start the server

    SHARE_PUBLIC_URL="https://share.yourdomain.com" \
    SHARE_SECRET="your-strong-random-secret" \
    node skills/share-onetime-link/scripts/server.js
    

    Or use start.sh (edit variables first):

    bash skills/share-onetime-link/scripts/start.sh
    

    View on ClawHub
    TERMINAL
    clawhub install share-onetime-link

    πŸ§ͺ Use this skill with your agent

    Most visitors already have an agent. Pick your environment, install or copy the workflow, then run the smoke-test prompt above.

    πŸ” Can't find the right skill?

    Search 60,000+ AI agent skills β€” free, no login needed.

    Search Skills β†’