Static WebHost for Openclaw

A high-performance deployment skill that automates static site hosting using auto-detected Caddy or Nginx servers.

serein-213
v1.2.0
Apr 10, 2026
0
772
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install static-webhost

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install static-webhost using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Static WebHost?

Static WebHost is a specialized utility within the Openclaw Skills ecosystem designed to automate the deployment of HTML, CSS, and JavaScript files. It removes the friction of manual server configuration by automatically detecting whether Caddy or Nginx is installed on the host system and routing files to the appropriate web root.

This skill is particularly valuable for developers using AI agents to build quick demos, landing pages, or documentation sites. It handles the complexities of system paths and service reloading, ensuring that web content is accessible over HTTP immediately after generation.

Static WebHost Use Cases

  • Deploying a new web page or demo site created by an AI agent.
  • Hosting static assets like documentation, reports, or frontend prototypes.
  • Automating the setup of a web-accessible directory for shared files.
  • Transitioning local development files to a production-ready web server environment.

How Static WebHost Works

  1. The skill initiates a check to detect the presence and status of Caddy or Nginx using system commands.
  2. It prioritizes Caddy if both servers are active, falling back to Nginx or prompting for installation if neither is found.
  3. Upon user confirmation, it ensures the necessary server configuration blocks (location or handle_path) exist to serve files from the web root.
  4. It creates a specific project subdirectory within /var/www/html/.
  5. Source files are copied to the target directory, making them instantly accessible via a standardized URL pattern.

Static WebHost Setup

To use this skill within Openclaw Skills, ensure your environment has a web server installed. You can install a supported server using your package manager:

# For Debian/Ubuntu systems
sudo apt update && sudo apt install caddy
# OR
sudo apt update && sudo apt install nginx

# For Arch Linux
sudo pacman -S caddy

Note: This skill requires sudo/root privileges to write to system directories and manage services.

Static WebHost Data Schema & Taxonomy

Static WebHost follows a standardized directory and URL structure to maintain consistency across different server environments:

Property Value / Pattern
Web Root /var/www/html/
Project Path /var/www/html/<project-name>/
Access URL http://<ip>/r/<project-name>/index.html
Config Backup /etc/nginx.backup.[timestamp] or /etc/caddy/Caddyfile.backup.[timestamp]

Static WebHost Advanced Features

  • Auto-detection logic that prioritizes modern servers like Caddy over Nginx.
  • Automatic IP discovery using Tailscale or local hostname tools to provide immediate access URLs.
  • Safety-first workflow including automated backup of existing server configurations before modification.
  • Support for project-based isolation within a shared web root directory.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*