openclaw health
Health check endpoint for monitoring.
Usage
bash
openclaw health [options]Description
Returns a simple health status, useful for:
- Monitoring systems
- Load balancers
- Container orchestration
- Automated health checks
Options
| Option | Description |
|---|---|
--json | Output as JSON |
--port | Check specific port |
Examples
bash
# Basic health check
openclaw health
# JSON output
openclaw health --jsonOutput
bash
# Healthy
$ openclaw health
OK
# JSON format
$ openclaw health --json
{"status": "healthy", "timestamp": "2024-01-15T10:30:00Z"}Exit Codes
| Code | Meaning |
|---|---|
| 0 | Healthy |
| 1 | Unhealthy |