LAN Media Server
/install lan-media-server
LAN Media Server
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://\x3CLAN_IP>:18801/\x3Cfilename>
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://\x3Cserver-LAN-IP>:\x3Cport>/\x3Cfilename>
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
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install lan-media-server - 安装完成后,直接呼叫该 Skill 的名称或使用
/lan-media-server触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
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. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1121 次。
如何安装 LAN Media Server?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install lan-media-server」即可一键安装,无需额外配置。
LAN Media Server 是免费的吗?
是的,LAN Media Server 完全免费(开源免费),可自由下载、安装和使用。
LAN Media Server 支持哪些平台?
LAN Media Server 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 LAN Media Server?
由 nagellack5C(@nagellack5c)开发并维护,当前版本 v1.0.0。