# Send Expiring Local Fileshare to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "expiring-local-fileshare",
    "name": "Expiring Local Fileshare",
    "source": "tencent",
    "type": "skill",
    "category": "效率提升",
    "sourceUrl": "https://clawhub.ai/tradmangh/expiring-local-fileshare",
    "canonicalUrl": "https://clawhub.ai/tradmangh/expiring-local-fileshare",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/expiring-local-fileshare",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=expiring-local-fileshare",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "METADATA.json",
      "SKILL.md",
      "scripts/share-file.js",
      "scripts/share.sh"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "expiring-local-fileshare",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-29T21:30:03.057Z",
      "expiresAt": "2026-05-06T21:30:03.057Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=expiring-local-fileshare",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=expiring-local-fileshare",
        "contentDisposition": "attachment; filename=\"expiring-local-fileshare-1.0.2.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "expiring-local-fileshare"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/expiring-local-fileshare"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/expiring-local-fileshare",
    "downloadUrl": "https://openagent3.xyz/downloads/expiring-local-fileshare",
    "agentUrl": "https://openagent3.xyz/skills/expiring-local-fileshare/agent",
    "manifestUrl": "https://openagent3.xyz/skills/expiring-local-fileshare/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/expiring-local-fileshare/agent.md"
  }
}
```
## Documentation

### Internal Fileshare

Share single workspace files via expiring HTTP links (tokenized, local-network only).

### Features

✅ Single-file sharing (no directory browsing)
✅ Time-limited tokens (default 1h, configurable; max 24h)
✅ Optional one-time access (token invalid after first successful download)
✅ Local/VPN-only (RFC1918 private ranges + localhost)
✅ UTF-8 encoding (proper display of German umlauts, etc.)
✅ No-cache headers (always fresh content)
✅ Auto-cleanup (servers can be killed when done)

### Install / Update (ClawHub)

Install:

clawhub install expiring-local-fileshare

Update:

clawhub update expiring-local-fileshare

### Share a single file

{baseDir}/scripts/share.sh /path/to/file.md [port] [hours] [once]

Parameters:

file-path (required): Absolute path to file
port (optional): Port number (default: auto-assigned 8888+)
hours (optional): Validity in hours (default: 1, max: 24)
once (optional): Set to once or 1 for one-time access

Output:
Returns clickable HTTP link with token, valid for specified duration.

### Example

# Share a markdown file (1h, auto-port)
{baseDir}/scripts/share.sh ~/.openclaw/workspace/projects/my-project/README.md

# Share an image (12h, port 9000)
{baseDir}/scripts/share.sh ~/image.png 9000 12

# Share a file (one-time access, 1h)
{baseDir}/scripts/share.sh ~/secrets.txt 9001 1 once

### How It Works

Starts a lightweight Node.js HTTP server on specified port
Generates random 32-char hex token
Returns URL: http://192.168.0.219:PORT/?token=XXXXX
Validates:

Source IP (must be LAN or VPN)
Token match
Expiry time


Serves file with correct MIME type and UTF-8 encoding
Logs all access attempts

### Security

Workspace-only by default: refuses to share files outside ~/.openclaw/workspace (override via FILESHARE_ALLOW_ANY_PATH=1, not recommended)
Local-only: Only serves to private IP ranges (RFC1918) + localhost (VPN counts).
Token-based: 128-bit random tokens (computationally infeasible to guess)
Time-limited: Hard expiry after N hours (default 1h, max 24h)
Optional one-time: Token invalid after first successful download
No listing: Only serves the specified file, no directory browsing
No caching: Forces fresh content load

### Supported File Types

Auto-detected MIME types:

.png → image/png
.jpg, .jpeg → image/jpeg
.md → text/markdown; charset=utf-8
.txt → text/plain; charset=utf-8
Others → application/octet-stream

### Disable / Uninstall

There is no background service by default.

### Stop active shares

# Kill a specific port
kill $(lsof -t -i:8888)

# Kill all fileshare servers started via this skill
pkill -f "share-file.js"

### Uninstall (ClawHub)

If installed into ~/.openclaw/skills:

rm -rf ~/.openclaw/skills/expiring-local-fileshare

### Stopping Shares

# Kill a specific port
kill $(lsof -t -i:8888)

# Kill all fileshare servers started via this skill
pkill -f "share-file.js"

### Policy / Defaults

Single files only (no folder shares)
Default validity: 1h
Max validity: 24h
Local/VPN only (RFC1918 + localhost)
No public "anyone with link"

### Troubleshooting

Wrong encoding (umlauts broken)?
→ Fixed in latest version (UTF-8 charset in headers)

Old version served?
→ Kill old server + restart (no-cache headers prevent browser caching)

Can't access from outside?
→ VPN required (home network topology uses NAT/masquerade, see docs/internal-fileshare.md)

Port already in use?
→ Use different port or kill existing server
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: tradmangh
- Version: 1.0.2
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-04-29T21:30:03.057Z
- Expires at: 2026-05-06T21:30:03.057Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/expiring-local-fileshare)
- [Send to Agent page](https://openagent3.xyz/skills/expiring-local-fileshare/agent)
- [JSON manifest](https://openagent3.xyz/skills/expiring-local-fileshare/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/expiring-local-fileshare/agent.md)
- [Download page](https://openagent3.xyz/downloads/expiring-local-fileshare)