Lightweight HTTP file server for sharing agent-generated media (screenshots, images, documents) with users on the local network.
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.
bash scripts/setup.sh
This creates the shared directory, installs the server script, creates a systemd user service, and starts it.
Default config:
18801$HOME/projects/shared-mediahttp://:18801/ Override with environment variables:
MEDIA_PORT=9090 MEDIA_ROOT=/tmp/media bash scripts/setup.sh
When you need to show an image or file to the user:
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.
# 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
共 1 个版本