返回顶部
l

lan-media-server局域网媒体服务器

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 screenshots, or any files to the user and the current channel doesn't support inline media (e.g., webchat, CLI). Starts a lightweight Node.js static file server on LAN, managed by systemd. Drop files in the shared directory and send the user a clickable URL.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
1,063
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

lan-media-server

LAN媒体服务器

轻量级HTTP文件服务器,用于与本地网络上的用户共享AI助手生成的媒体文件(截图、图片、文档)。

为什么需要

许多AI助手渠道(网页聊天、命令行、SSH)无法显示内嵌图片。本技能通过在局域网内通过HTTP提供文件服务来解决这一问题——放入文件,发送链接即可。

快速开始

bash
bash scripts/setup.sh

该命令将创建共享目录、安装服务器脚本、创建systemd用户服务并启动。

默认配置:

  • - 端口:18801
  • 服务目录:$HOME/projects/shared-media
  • 访问地址:http://<局域网IP>:18801/<文件名>

通过环境变量覆盖:
bash
MEDIAPORT=9090 MEDIAROOT=/tmp/media bash scripts/setup.sh

使用模式

当需要向用户展示图片或文件时:

  1. 1. 将文件保存/复制到共享媒体目录
  2. 向用户发送链接:http://<服务器局域网IP>:<端口>/<文件名>

浏览器截图示例:
bash
cp /path/to/screenshot.jpg ~/projects/shared-media/my-screenshot.jpg

然后发送:http://192.168.1.91:18801/my-screenshot.jpg

使用描述性文件名——目录为扁平结构且用户可见。

管理

bash

查看状态


systemctl --user status media-server

重启

systemctl --user restart media-server

查看日志

journalctl --user -u media-server -f

停止并禁用

systemctl --user stop media-server systemctl --user disable media-server

安全说明

  • - 仅在局域网提供服务(监听0.0.0.0,但通常位于NAT之后)
  • 无身份验证——请勿在共享目录中存放敏感文件
  • 已阻止路径遍历(文件必须位于MEDIA_ROOT目录下)
  • 无目录列表功能——必须知道确切的文件名

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 lan-media-server-1776332972 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 lan-media-server-1776332972 技能

通过命令行安装

skillhub install lan-media-server-1776332972

下载

⬇ 下载 lan-media-server v1.0.0(免费)

文件大小: 3.92 KB | 发布时间: 2026-4-17 14:44

v1.0.0 最新 2026-4-17 14:44
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).

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部