Token导航 LogoToken导航TokenDH.com
效率敏感数据clawhub未标认证来源可访问clear审计提醒

share-onetime-link分享一次性链接

Agent Skill

share-onetime-link 用于辅助部署、云资源、容器和基础设施运维,适合在 OpenClaw 中需要检查配置、整理部署步骤或排查环境问题时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

4,260

周安装

174

GitHub Stars

公开资料未说明

下载量

1,364
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:share-onetime-link(分享一次性链接)
来源仓库:https://github.com/hitman86r/share-onetime-link
安装命令:
openclaw skills install share-onetime-link
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install share-onetime-link

简介

Share-onetime-link 用于生成一次性或限时下载链接,便于文件共享。

  • 适合部署检查、云资源配置和基础设施运维场景。
  • 通过 Cloudflare Tunnel 公开本地 Express 服务器实现链接生成。
  • 安装命令为 openclaw skills install share-onetime-link。
  • 需注意链接自动过期机制及权限边界,防止未授权访问。

SKILL.md

name
share-onetime-link
description
Generate public one-shot or time-limited download links for files using a local Express server exposed via Cloudflare Tunnel. Links are tokenized, expire automatically, and files are deleted after download or expiry. Use when you need to share a file publicly (no VPN required) with a self-destructing link.
read_when
metadata
openclaw
emoji
🔗
requires
bins
["node", "cloudflared"]
env_vars
required
description
Public base URL for generated links (e.g. https://share.yourdomain.com)
description
Secret key to protect /generate and /status endpoints
optional
description
Local server port (default: 5050)
description
Directory for shared files (default: workspace/shared/)

Share One-Time Link

Generate public, tokenized, self-destructing download links for files. Files are served via a local Express server exposed to the internet through a Cloudflare Tunnel.

Features

  • Public access — no VPN required, works from anywhere
  • One-shot links — token invalidated after first download
  • Configurable TTL — link expires after N minutes (default: 60)
  • Auto-cleanup — file deleted from shared/ after download or expiry
  • Protected endpoints/generate and /status require SHARE_SECRET
  • Isolated directory — only files in shared/ are served, never the full workspace
  • No login required for download — anyone with the link can download once

Requirements

  • Node.js
  • cloudflared installed and a Cloudflare Tunnel configured pointing to localhost:5050
  • Set SHARE_PUBLIC_URL to your public tunnel URL (e.g. https://share.yourdomain.com)
  • Set SHARE_SECRET to a strong random string (recommended)

Setup

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

Usage

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

Environment variables

VariableRequiredDefaultDescription
SHARE_PUBLIC_URLYeshttp://localhost:5050Public base URL for generated links
SHARE_SECRETYes*(none)*Secret key for /generate and /status endpoints
SHARE_PORTNo5050Local server port
SHARED_DIRNoworkspace/shared/Directory for shared files

Security notes

  • /dl/:token is public by design — anyone with the link can download once
  • /generate and /status are protected by SHARE_SECRET — required, server refuses to start without it
  • If SHARE_SECRET is not set the server exits immediately with an error
  • Files outside shared/ are never accessible
  • Tokens are cryptographically random (32 bytes / 64 hex chars)
  • TTL is enforced server-side regardless of client behavior
  • Never put sensitive files in SHARED_DIR unless you intend to share them

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

93.83%
按下载量换算1,280

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills