Token导航 LogoToken导航TokenDH.com
效率操作浏览器clawhub未标认证来源可访问clear审计通过

http-static-serverhttp 静态服务器

Agent Skill

http-static-server 用于补充效率相关能力,适合在 OpenClaw 中需要让 Agent 承接效率相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

8,274

周安装

338

GitHub Stars

公开资料未说明

下载量

2,650
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:http-static-server(http 静态服务器)
来源仓库:https://github.com/flowerwrong/http-static-server
安装命令:
openclaw skills install http-static-server
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install http-static-server

简介

用于启动本地HTTP静态文件服务器。

  • 支持超过25种语言和工具的兼容性。
  • 自动检测R语言等特定环境配置。适用宿主包括 OpenClaw,接入前应确认版本、权限和运行环境要求。
  • 一行命令即可快速部署服务。http-static-server 属于效率类 Skill,可作为该场景下的辅助能力补充。
  • 安装前建议确认权限范围和维护状态。

SKILL.md

name
http-static-server
description
Start an ad-hoc HTTP static file server in the current directory using one-line commands across 25+ languages and tools. Auto-detects available runtimes and recommends the best option.
homepage
https://gist.github.com/willurd/5720255

HTTP Static Server One-Liners

Start an ad-hoc HTTP static file server serving the current (or specified) directory. Default: http://localhost:8000

Reference: <https://gist.github.com/willurd/5720255> Detailed per-language docs: {baseDir}/references/

When to use this skill

  • User needs to quickly serve static files (HTML/CSS/JS/images) locally
  • User asks "how do I start a local web server" or similar
  • User wants to preview a static site, share files over LAN, or test frontend assets
  • User needs a quick HTTP server for development or testing

Quick Reference Table

Language/ToolCommandDir ListingInstall Needed
Python 3python3 -m http.server 8000YesNo
Python 2python -m SimpleHTTPServer 8000YesNo
Twistedtwistd -n web -p 8000 --path .Yespip install twisted
Node.js (npx)npx http-server -p 8000YesNo
Node.js (serve)npx serve -l 8000YesNo
node-staticnpx node-static -p 8000NoNo
Denodeno run --allow-net --allow-read jsr:@std/http/file-serverYesNo
PHPphp -S 127.0.0.1:8000NoNo
Rubyruby -run -ehttpd . -p8000YesNo
Ruby (WEBrick)ruby -rwebrick -e'WEBrick::HTTPServer.new(:Port=>8000,:DocumentRoot=>Dir.pwd).start'YesNo
Ruby (adsf)adsf -p 8000Nogem install adsf
Ruby (Sinatra)ruby -rsinatra -e'set :public_folder,".";set :port,8000'Nogem install sinatra
Gogo run github.com/goware/webify@latest -port 8000 .YesNo
Java 18+jwebserver -d . -b 0.0.0.0 -p 8000YesNo
Java (module)java -m jdk.httpserver -d . -b 0.0.0.0 -p 8000YesNo
Rustminiserve -p 8000 .Yescargo install miniserve
Perl (Plack)plackup -MPlack::App::Directory -e 'Plack::App::Directory->new(root=>".");' -p 8000Yescpan Plack
Perl (Brick)perl -MHTTP::Server::Brick -e '$s=HTTP::Server::Brick->new(port=>8000);$s->mount("/"=>{path=>"."});$s->start'Yescpan HTTP::Server::Brick
Perl (Mojo)perl -MMojolicious::Lite -MCwd -e 'app->static->paths->[0]=getcwd;app->start' daemon -l http://*:8000Nocpan Mojolicious::Lite
Erlangerl -s inets -eval 'inets:start(httpd,[...]).'NoNo
Elixirelixir --no-halt -e 'Application.start(:inets);:inets.start(:httpd,...)'NoNo
BusyBoxbusybox httpd -f -p 8000YesNo
lighttpdlighttpd -Df - <<< ...Configurablebrew install lighttpd
webfswebfsd -F -p 8000Yesapt install webfs
Algernonalgernon -x . :8000Yesbrew install algernon
Docker (Nginx)docker run --rm -v "$PWD":/usr/share/nginx/html:ro -p 8000:80 nginxConfigurableDocker
Docker (PHP)docker run -it --rm -v "$PWD":/app -w /app -p 8000:8000 php:8.2-cli php -S 0.0.0.0:8000NoDocker
PowerShell (Pode)Start-PodeStaticServer -Port 8000 -FileBrowser -Address 0.0.0.0YesInstall-Module Pode
IIS Expressiisexpress.exe /path:C:\MyWeb /port:8000NoWindows

Decision guide for the agent

  1. Detect runtimes: Check which runtimes are available (python3 --version, node --version, deno --version, etc.).
  2. Default to Python 3 — pre-installed on most Linux/macOS systems.
  3. Node.js project context — prefer npx serve or npx http-server.
  4. Deno project context — use the jsr:@std/http/file-server.
  5. Minimal environment (containers, embedded) — use busybox httpd.
  6. Windows without WSL — use PowerShell (Pode) or IIS Express.
  7. Need features (upload, auth, HTTPS) — recommend miniserve (Rust) or Algernon.
  8. No runtime available — suggest Docker approach.
  9. Always confirm the desired port (default 8000) and directory (default .).
  10. For per-language details, flags, and advanced usage, see {baseDir}/references/<language>.md.

Common options

NeedSolution
Custom portReplace 8000 with desired port in any command
Serve a specific directoryAppend the path or use the tool's directory flag
Bind to all interfaces (LAN)Use 0.0.0.0 as the bind address
CORS headersnpx http-server --cors or add middleware
HTTPSminiserve --tls-cert/--tls-key, reverse proxy, or openssl s_server
Directory listingsPython, http-server, Plack, miniserve, BusyBox support by default
File uploadminiserve --upload-files
Authenticationminiserve --auth user:password
Docker (no local runtime)See {baseDir}/references/docker.md

Per-language reference docs

Detailed documentation with full flags, install instructions, and advanced usage:

  • {baseDir}/references/python.md — Python 3, Python 2, Twisted
  • {baseDir}/references/nodejs.md — http-server, serve, node-static, inline
  • {baseDir}/references/deno.md — std/http file-server
  • {baseDir}/references/php.md — Built-in dev server, Docker
  • {baseDir}/references/ruby.md — ruby -run, WEBrick, adsf, Sinatra
  • {baseDir}/references/go.md — webify, inline Go
  • {baseDir}/references/rust.md — miniserve, http
  • {baseDir}/references/java.md — jwebserver, jdk.httpserver, inline
  • {baseDir}/references/perl.md — Plack, HTTP::Server::Brick, Mojolicious
  • {baseDir}/references/erlang.md — inets
  • {baseDir}/references/elixir.md — :inets, Plug
  • {baseDir}/references/busybox.md — busybox httpd
  • {baseDir}/references/docker.md — Nginx, PHP, Python, Alpine
  • {baseDir}/references/powershell.md — Pode, .NET HttpListener, IIS Express
  • {baseDir}/references/lighttpd.md — inline config, config file
  • {baseDir}/references/webfs.md — webfsd
  • {baseDir}/references/algernon.md — static mode, Lua scripting

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

93.1%
按下载量换算2,467

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills