据 AlphaMoat 统计,截至 2026-09,Bot Status API 累计下载 3,388 次、获 0 个星标,在全部 5,078 个 AI 技能中排名第 3,309 位,在「运维安全」分类(264 个)中排名第 212 位。
| 平台 | 累计安装 | 累计下载 | 星标 | 评论 |
|---|---|---|---|---|
| ClawHub ↗ | 106 | 3,388 | - | - |
| SkillHub ↗ | 106 | 3,382 | - | — |
各平台的计数口径不同,统计时间不一致。
主文描述可配置的 HTTP 服务,提供 bot 状态、服务健康检查、定时任务、skills 清单和系统指标,供监控面板或状态页使用。随附卡片警告,状态输出可能暴露服务、端口、任务时间、邮件元数据及主机信息;服务还可能运行 shell 检查并关闭 TLS 校验。部署前应增加认证、限制到本机或受保护网络,并移除或收窄 TLS 绕过和命令检查。
资料发布于 2026-10-29
以下是根据技能文档生成的示例,不代表实际运行结果。
2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。
| 月份 | 累计下载 | 环比 | 星标 |
|---|---|---|---|
| 2026-09 | 3,388 | — | - |
| 2026-08 | 3,249 | +4.9% | - |
| 2026-07 | 3,096 | +10.2% | - |
| 2026-06 | 2,809 | +6.4% | - |
| 2026-05 | 2,640 | — | - |
| 2026-03 | 2,031 | — | - |
以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。
--- name: bot-status-api description: "Deploy a lightweight status API that exposes your OpenClaw bot's runtime health, service connectivity, cron jobs, skills, system metrics, and more. Use when setting up a monitoring dashboard, health endpoint, or status page for an OpenClaw agent. Supports any services via config (HTTP checks, CLI commands, file checks). Zero dependencies — Node.js only." --- # Bot Status API A configurable HTTP service that exposes your OpenClaw bot's operational status as JSON. Designed for dashboard integration, monitoring, and transparency. ## What It Provides
- **Bot Core:** Online status, model, context usage, uptime, heartbeat timing
- **Services:** Health checks for any HTTP endpoint, CLI tool, or file path
- **Email:** Unread counts from any email provider (himalaya, gog, etc.)
- **Cron Jobs:** Reads directly from OpenClaw's `cron/jobs.json`
- **Docker:** Container health via Portainer API
- **Dev Servers:** Auto-detects running dev servers by process grep
- **Skills:** Lists installed and available OpenClaw skills
- **System:** CPU, RAM, Disk metrics from `/proc`
## Setup
### 1. Copy the service files
Copy `server.js`, `collectors/`, and `package.json` to your desired location.
### 2. Create config.json
Copy `config.example.json` to `config.json` and customize:
```json
{
"port": 3200,
"name": "MyBot",
"workspace": "/path/to/.openclaw/workspace",
"openclawHome": "/path/to/.openclaw",
"cache": { "ttlMs": 10000 },
"model": "claude-sonnet-4-20250514",
"skillDirs": ["/path/to/openclaw/skills"],
"services": [
{ "name": "myservice", "type": "http", "url": "http://...", "healthPath": "/health" }
]
}
```
### Service Check Types
| Type | Description | Config |
|------|-------------|--------|
| `http` | Fetch URL, check HTTP 200 | `url`, `healthPath`, `method`, `headers`, `body` |
| `command` | Run shell command, check exit 0 | `command`, `timeout` |
| `file-exists` | Check path exists | `path` |
### 3. Run
```bash
node server.js
```
### 4. Persist (systemd user service)
```ini
# ~/.config/systemd/user/bot-status.service
[Unit]
Description=Bot Status API
After=network.target
[Service]
Type=simple
WorkingDirectory=/path/to/bot-status
ExecStart=/usr/bin/node server.js
Restart=always
RestartSec=5
Environment=PORT=3200
Environment=HOME=/home/youruser
Environment=PATH=/usr/local/bin:/usr/bin:/bin
[Install]
WantedBy=default.target
```
```bash
systemctl --user daemon-reload
systemctl --user enable --now bot-status
loginctl enable-linger $USER # survive logout
```
### 5. Context/Vitals from OpenClaw
The bot should periodically write vitals to `heartbeat-state.json` in its workspace:
```json
{
"vitals": {
"contextPercent": 62,
"contextUsed": 124000,
"contextMax": 200000,
"model": "claude-opus-4-5",
"updatedAt": 1770304500000
}
}
```
Add this to your HEARTBEAT.md so the bot updates it each heartbeat cycle.
## Endpoints
| Endpoint | Description |
|----------|-------------|
| `GET /status` | Full status JSON (cached) |
| `GET /health` | Simple `{"status":"ok"}` |
## Architecture
- **Zero dependencies** — Node.js built-ins only (`http`, `fs`, `child_process`)
- **Non-blocking** — All shell commands use async `exec`, never `execSync`
- **Background refresh** — Cache refreshes on interval, requests always served from cache instantly (~10ms)
- **Config-driven** — Everything in `config.json`, no hardcoded values
在使用技能包之前做安全扫描,并按结论决定放行或拦截的技能。
为 OpenClaw 配置 OpenRouter 免费模型与回退链的工具。
备份与恢复 OpenClaw 配置、凭据与工作区的技能。
配置并使用 1Password CLI 处理密钥。
一款被描述为可检测提示注入与危险命令的 OpenClaw 安全插件。
远程控制 tmux 会话,向交互式命令行发送按键并抓取输出。
以应用安全工程师视角做代码与架构的安全审计。
管理腾讯云对象存储与数据万象的技能。
数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。