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.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install bot-status-api-test或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install bot-status-api-test⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/bot-status-api-test/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- 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." ---
A configurable HTTP service that exposes your OpenClaw bot's operational status as JSON. Designed for dashboard integration, monitoring, and transparency.
cron/jobs.json/procCopy server.js, collectors/, and package.json to your desired location.
Copy config.example.json to config.json and customize:
{
"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" }
]
}
| 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 |
node server.js
# ~/.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
systemctl --user daemon-reload
systemctl --user enable --now bot-status
loginctl enable-linger $USER # survive logout
The bot should periodically write vitals to heartbeat-state.json in its workspace:
{
"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.
| Endpoint | Description | |----------|-------------| | GET /status | Full status JSON (cached) | | GET /health | Simple {"status":"ok"} |
http, fs, child_process)exec, never execSyncconfig.json, no hardcoded values安装 Test 后,可以对 AI 说这些话来触发它
Help me get started with Test
Explains what Test does, walks through the setup, and runs a quick demo based on your current project
Use Test to deploy a lightweight status API that exposes your OpenClaw bot's ru...
Invokes Test with the right parameters and returns the result directly in the conversation
What can I do with Test in my developer & devops workflow?
Lists the top use cases for Test, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/bot-status-api-test/ 目录(个人级,所有项目可用),或 .claude/skills/bot-status-api-test/(项目级)。重启 AI 客户端后,用 /bot-status-api-test 主动调用,或让 AI 根据上下文自动发现并使用。
Test 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Test 可免费安装使用。请查阅仓库了解许可证信息。
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.
Test 属于「Developer & DevOps」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my developer & devops tasks using Test
Identifies repetitive steps in your workflow and sets up Test to handle them automatically