Runtime Modes
ZeroClaw supports multiple runtime modes depending on your use case:- Daemon Mode
- Service Mode
- Interactive Chat
- Gateway Only
Long-running supervised process with automatic recovery.Features:
- Gateway server
- Channel listeners
- Cron scheduler
- Health monitoring
- Auto-restart on failure
Production Deployment
Health Checks
System Status
- Active provider and model
- Configured channels
- Gateway status
- Memory backend
Diagnostics
- Configuration validity
- Provider credentials
- File permissions
- Network connectivity
- Resource availability
Channel Health
- Channel credentials
- API connectivity
- Webhook configuration
- Allowlist validation
Monitoring
Log Files
- Linux (systemd)
- macOS (launchd)
- Docker
State Files
-
Daemon State:
~/.zeroclaw/daemon_state.json- Updated every 30 seconds
- Contains runtime statistics
- Used for health monitoring
-
Memory:
~/.zeroclaw/memory/- Markdown or SQLite database
- Conversation history
- Agent knowledge
Metrics
Enable Prometheus metrics:http://localhost:9090/metrics
Key metrics:
zeroclaw_requests_total- Total requestszeroclaw_tool_calls_total- Tool execution countzeroclaw_errors_total- Error countzeroclaw_token_usage_total- Token consumptionzeroclaw_latency_seconds- Response latency
Supervision
Auto-restart
The daemon automatically restarts failed components:- Gateway: Restart on crash
- Channels: Reconnect on disconnect
- Scheduler: Resume after failure