通过可选身份验证在子域上托管静态文件。当您需要在专用子域上提供 HTML、图像、CSS、JS 或任何静态内容时使用。支持文件上传、基本身份验证、配额管理和通过 Caddy 的自动 SSL。命令包括 sf 站点(创建/列出/删除)、sf 上传(
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install kleo-static-files或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install kleo-static-files⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/kleo-static-files/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: static-files description: > Host static files on subdomains with optional authentication. Use when you need to serve HTML, images, CSS, JS, or any static content on a dedicated subdomain. Supports file upload, basic auth, quota management, and automatic SSL via Caddy. Commands include sf sites (create/list/delete), sf upload (files/directories), sf files (list/delete). ---
Host static content on *.{domain} subdomains with automatic SSL.
# Create site
sf sites create mysite
# → https://mysite.498as.com
# Upload file
sf upload ./index.html mysite
# Upload directory
sf upload ./dist mysite
# Add authentication
sf sites auth mysite admin:secretpass123
# List files
sf files mysite
# Delete file
sf files mysite delete path/to/file.txt
# Delete site
sf sites delete mysite
export SF_API_URL=http://localhost:3000 # API endpoint
export SF_API_KEY=sk_xxxxx # Your API key
# 1. Create the site
sf sites create docs
# 2. Upload the build directory
sf upload ./build docs
# 3. Verify
curl -I https://docs.498as.com
# 1. Create site with auth
sf sites create private
sf sites auth private user:strongpassword
# 2. Upload sensitive files
sf upload ./reports private
# 3. Share URL + credentials
# https://private.498as.com (user / strongpassword)
# Overwrite existing file
sf upload ./new-version.pdf mysite --overwrite
# Or delete and re-upload
sf files mysite delete old-file.pdf
sf upload ./new-file.pdf mysite
| Command | Description | |---------|-------------| | sf sites list | List all sites | | sf sites create | Create new site | | sf sites delete | Delete site and all files | | sf sites auth | Set basic auth | | sf sites auth | Remove auth |
sf upload <path> <site> [subdir] [--overwrite] [--json]
path: File or directory to uploadsite: Target site namesubdir: Optional subdirectory--overwrite: Replace existing files--json: Output JSON| Command | Description | |---------|-------------| | sf files | List all files | | sf files | Delete specific file |
sf stats # Global stats
sf stats <site> # Site-specific stats
Base: $SF_API_URL with Authorization: Bearer $SF_API_KEY
| Method | Path | Description | |--------|------|-------------| | GET | /sites | List sites | | POST | /sites | Create site | | DELETE | /sites/{name} | Delete site | | PATCH | /sites/{name} | Update auth | | GET | /sites/{name}/files | List files | | POST | /sites/{name}/files | Upload file | | DELETE | /sites/{name}/files/{path} | Delete file | | GET | /stats | Global stats | | GET | /stats/{name} | Site stats | | GET | /health | Health check |
# Check service status
systemctl status kleo-static-files
# Check if port is listening
curl http://localhost:3000/health
# Verify key is set
echo $SF_API_KEY
# Create new key if needed
bun run /opt/kleo-static-files/scripts/create-key.ts "new-key"
# Check current usage
sf stats mysite
# Delete unused files
sf files mysite delete large-file.zip
# Verify DNS points to server
dig mysite.498as.com
# Check Caddy config
cat /etc/caddy/sites.d/static-files.caddy
# Resync Caddy
bun run /opt/kleo-static-files/scripts/sync-caddy.ts --reload
curl -fsSL https://raw.githubusercontent.com/498AS/kleo-static-files/main/install.sh | sudo bash
The installer outputs JSON with connection details between KLEO_SF_CONFIG_BEGIN and KLEO_SF_CONFIG_END markers. Parse this to get api_url and api_key.
export SF_API_URL=http://localhost:3000
export SF_API_KEY=sk_xxxxx # from installer output
sudo /opt/kleo-static-files/install.sh --status
See references/install.md for manual installation.
安装 Kleo 静态文件 后,可以对 AI 说这些话来触发它
Help me get started with Kleo Static files
Explains what Kleo Static files does, walks through the setup, and runs a quick demo based on your current project
Use Kleo Static files to host static files on subdomains with optional authentication
Invokes Kleo Static files with the right parameters and returns the result directly in the conversation
What can I do with Kleo Static files in my documents & notes workflow?
Lists the top use cases for Kleo Static files, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/kleo-static-files/ 目录(个人级,所有项目可用),或 .claude/skills/kleo-static-files/(项目级)。重启 AI 客户端后,用 /kleo-static-files 主动调用,或让 AI 根据上下文自动发现并使用。
Kleo 静态文件 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Kleo 静态文件 可免费安装使用。请查阅仓库了解许可证信息。
通过可选身份验证在子域上托管静态文件。当您需要在专用子域上提供 HTML、图像、CSS、JS 或任何静态内容时使用。支持文件上传、基本身份验证、配额管理和通过 Caddy 的自动 SSL。命令包括 sf 站点(创建/列出/删除)、sf 上传(
Kleo 静态文件 属于「Documents & Notes」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my documents & notes tasks using Kleo Static files
Identifies repetitive steps in your workflow and sets up Kleo Static files to handle them automatically