Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

expiring-local-fileshare

bởi tradmangh

Web & Frontend Development
556Lượt tải do clawskills.sh công bố
0Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

Lets OpenClaw safely share single files from its local workspace via expiring, tokenized HTTP links.

Mô tả

Kỹ năng này làm gì

Starts a temporary Node.js HTTP server to serve a single file via a tokenized URL, accessible only on local network or VPN. Tokens expire after a configurable duration (default 1 hour, max 24 hours) and can optionally be invalidated after the first successful download.

Avoids cloud uploads or persistent file server setup by spinning up a temporary, token-protected link that self-expires.

Khi nào nên dùng

  • Sharing a local PDF with a colleague on the same office network
  • Sending a preview image to a teammate over VPN
  • Giving one-time access to a config file during a pairing session
  • Sharing a markdown report without uploading to cloud storage
  • Serving a log file to a remote coworker connected via VPN

Quy trình ví dụ

ĐẦU VÀO

User asks: Share report.md with my colleague for the next 2 hours

AGENT
  1. 1

    Locate the absolute path of report.md in the workspace

  2. 2

    Run share.sh with the file path and a 2-hour validity argument

  3. 3

    Node.js HTTP server starts on an auto-assigned port

  4. 4

    Generate a 32-character hex token and build the access URL

  5. 5

    Return the clickable link to the user

ĐẦU RA

http://192.168.0.219:8888/?token=<hex_token>, valid for 2 hours

Cài đặt

clawhub install tradmangh/expiring-local-fileshare

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết