Skip to main content
Learn how to run ZeroClaw agents in production with proper supervision and reliability.

Runtime Modes

ZeroClaw supports multiple runtime modes depending on your use case:
Long-running supervised process with automatic recovery.
Features:
  • Gateway server
  • Channel listeners
  • Cron scheduler
  • Health monitoring
  • Auto-restart on failure

Production Deployment

1

Install as system service

2

Configure for production

Edit ~/.zeroclaw/config.toml:
3

Start the service

4

Verify health

Health Checks

System Status

Shows:
  • Active provider and model
  • Configured channels
  • Gateway status
  • Memory backend

Diagnostics

Checks:
  • Configuration validity
  • Provider credentials
  • File permissions
  • Network connectivity
  • Resource availability

Channel Health

Verifies:
  • Channel credentials
  • API connectivity
  • Webhook configuration
  • Allowlist validation

Monitoring

Log Files

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:
Metrics endpoint: http://localhost:9090/metrics Key metrics:
  • zeroclaw_requests_total - Total requests
  • zeroclaw_tool_calls_total - Tool execution count
  • zeroclaw_errors_total - Error count
  • zeroclaw_token_usage_total - Token consumption
  • zeroclaw_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

Resource Limits

Configure resource constraints:

Rate Limiting

Protect against abuse:

Updates

Check for updates

Update to latest

Rollback

If an update causes issues:

Multi-instance

Run multiple agents with different configurations: