bot-status-apiDeploy 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.
Install via ClawdBot CLI:
clawdbot install suspect80/bot-status-apiA 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 valuesGenerated Mar 1, 2026
IT teams can deploy this API to monitor the health of their OpenClaw bot in real-time, checking service connectivity, cron job status, and system metrics. It helps ensure high availability and quick issue detection for automated workflows.
Companies using OpenClaw for customer support or services can expose this API to provide transparency on bot uptime and performance. This builds trust by allowing users to check if the bot is operational and view metrics like context usage.
Organizations with complex infrastructures can configure the API to check HTTP endpoints, CLI commands, and file paths across various services. This centralizes health monitoring for both the bot and external dependencies in one dashboard.
Developers working on OpenClaw skills can use this API to track running dev servers, skill installations, and resource usage during testing. It aids in debugging and optimizing bot performance in development setups.
Teams relying on OpenClaw for email handling can monitor unread counts from providers like himalaya or gog. This helps prioritize responses and ensure email integrations are functioning correctly in real-time.
Offer a hosted version of this API as a subscription service, providing dashboards, alerts, and analytics for OpenClaw bot health. Revenue comes from monthly fees based on the number of bots or checks monitored.
Provide consulting services to set up and customize the API for specific client needs, such as integrating with proprietary systems or adding advanced metrics. Revenue is generated through project-based fees and ongoing support contracts.
Monetize by offering premium support, training, or extensions like enhanced security features or integrations with third-party tools. Revenue streams include support packages and paid add-ons for the open-source skill.
š¬ Integration Tip
Ensure the OpenClaw bot writes vitals to heartbeat-state.json as described in the setup, and use the config.json to define all service checks for seamless monitoring.
Automatically update Clawdbot and all installed skills once daily. Runs via cron, checks for updates, applies them, and messages the user with a summary of what changed.
Full desktop computer use for headless Linux servers. Xvfb + XFCE virtual desktop with xdotool automation. 17 actions (click, type, scroll, screenshot, drag,...
Essential Docker commands and workflows for container management, image operations, and debugging.
Tool discovery and shell one-liner reference for sysadmin, DevOps, and security tasks. AUTO-CONSULT this skill when the user is: troubleshooting network issues, debugging processes, analyzing logs, working with SSL/TLS, managing DNS, testing HTTP endpoints, auditing security, working with containers, writing shell scripts, or asks 'what tool should I use for X'. Source: github.com/trimstray/the-book-of-secret-knowledge
Deploy applications and manage projects with complete CLI reference. Commands for deployments, projects, domains, environment variables, and live documentation access.
Monitor topics of interest and proactively alert when important developments occur. Use when user wants automated monitoring of specific subjects (e.g., product releases, price changes, news topics, technology updates). Supports scheduled web searches, AI-powered importance scoring, smart alerts vs weekly digests, and memory-aware contextual summaries.