首页龙虾技能列表 › LAN Media Server — 技能工具

LAN Media Server — 技能工具

v1.0.0

[自动翻译] Share images, screenshots, and files from the AI workspace to users on the local network via HTTP. Use when the agent needs to show images, browser sc...

0· 1,000·3 当前·4 累计
by @nagellack5c (nagellack5C)·MIT-0
下载技能包
License
MIT-0
最后更新
2026/2/28
安全扫描
VirusTotal
无害
查看报告
OpenClaw
安全
high confidence
The skill is internally consistent: it implements a simple Node.js static file server and a systemd user installer which align with the stated purpose of sharing media over a LAN; nothing requested or installed is disproportionate to that purpose.
评估建议
This skill appears to do what it claims, but take these precautions before installing: - Be careful what you put in the shared directory — there is no authentication. Do not store sensitive files there. - The server binds to 0.0.0.0 by default (all interfaces). If the host has a public-facing interface or is on an untrusted network, restrict access with a firewall or change MEDIA_ROOT/port and network rules. Consider binding to 127.0.0.1 and using an SSH tunnel for remote access if you need s...
详细分析 ▾
用途与能力
Name/description match the included files and instructions. The server and setup script only require Node.js and user-level systemd control, which are appropriate for a LAN file server.
指令范围
SKILL.md instructs the agent to run scripts/setup.sh to create a user systemd service and to drop files into the shared directory. The instructions do not attempt to read unrelated files or exfiltrate data, but they do advise enabling systemd lingering (optional) and will create/enable a user service which gives persistent background execution (expected for this purpose).
安装机制
No remote downloads or package installs are performed by the provided setup script; it only writes a systemd user unit and relies on an existing local Node.js binary. This is a low-risk, local-only install mechanism.
凭证需求
No credentials or sensitive environment variables are requested. MEDIA_PORT and MEDIA_ROOT can be overridden by the user (as expected). There are no unexplained secrets or unrelated env requirements.
持久化与权限
The skill installs a systemd user service and enables it so the server restarts automatically; this is appropriate for a persistent file server but does grant ongoing background execution under the user account. It does not request system-wide (root) privileges, though the script suggests enabling lingering (which requires sudo) if the user wants the service to survive reboots/logouts.
安全有层次,运行前请审查代码。

License

MIT-0

可自由使用、修改和再分发,无需署名。

运行时依赖

无特殊依赖

版本

latestv1.0.02026/2/9

lan-media-server 1.0.0 - Initial release of a lightweight HTTP server to share agent-generated images, screenshots, and files over local network. - Includes setup script for installation and automatic systemd user service management. - Default configuration serves files from `$HOME/projects/shared-media` on port `18801`; customizable via environment variables. - Simple usage instructions: drop files in the shared directory, send a network-accessible link to users. - Focus on ease-of-use for channels that can’t display media inline, with built-in security features (LAN-only, path traversal prevention, no directory listing).

● 无害

安装命令 点击复制

官方npx clawhub@latest install lan-media-server
镜像加速npx clawhub@latest install lan-media-server --registry https://cn.clawhub-mirror.com

技能文档

Lightweight HTTP file server for sharing agent-generated media (screenshots, images, documents) with users on the local network.

Why

Many AI assistant channels (webchat, CLI, SSH) can't display inline images. This skill solves that by serving files over HTTP on your LAN — drop a file, send a link.

Quick Start

bash scripts/setup.sh

This creates the shared directory, installs the server script, creates a systemd user service, and starts it.

Default config:

  • Port: 18801
  • Serve directory: $HOME/projects/shared-media
  • Accessible at: http://:18801/

Override with environment variables:

MEDIA_PORT=9090 MEDIA_ROOT=/tmp/media bash scripts/setup.sh

Usage Pattern

When you need to show an image or file to the user:

  • Save/copy the file to the shared media directory
  • Send the user a link: http://:/

Example for browser screenshots:

cp /path/to/screenshot.jpg ~/projects/shared-media/my-screenshot.jpg
# Then send: http://192.168.1.91:18801/my-screenshot.jpg

Use descriptive filenames — the directory is flat and user-visible.

Management

# Check status
systemctl --user status media-server

# Restart systemctl --user restart media-server

# View logs journalctl --user -u media-server -f

# Stop and disable systemctl --user stop media-server systemctl --user disable media-server

Security Notes

  • Serves files only on LAN (0.0.0.0 but typically behind NAT)
  • No authentication — don't put sensitive files in the shared directory
  • Path traversal is blocked (files must be under MEDIA_ROOT)
  • No directory listing — must know the exact filename
数据来源:ClawHub ↗ · 中文优化:龙虾技能库
OpenClaw 技能定制 / 插件定制 / 私有工作流定制

免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制

了解定制服务