跳到正文
TakoAPI
返回技能列表

expiring-local-fileshare

由 tradmangh 提供

Web & Frontend Development
556下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

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

描述

该技能的功能

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.

何时使用

  • 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

示例工作流

输入

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

智能体
  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

输出

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

安装

clawhub install tradmangh/expiring-local-fileshare

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接