Skip to main content
ZeroClaw can be deployed in multiple ways depending on your needs — from single-binary deployments to containerized production setups. This guide covers best practices for each deployment strategy.

Deployment Options

Docker

Recommended for most users. Isolated, reproducible, easy to manage.

Binary

Direct installation. Fast, minimal overhead, full system integration.

Systemd Service

Run as a system service. Auto-start, logging, process management.

Kubernetes

For large-scale deployments. Orchestration, scaling, high availability.

Docker Deployment

Docker Run (Single Command)

Custom Configuration

Mount a custom config file:

Multi-Stage Build

Build from source with optimizations (from Dockerfile):

Binary Deployment

Build from Source

Download Pre-built Binary

Initialize Configuration

Systemd Service

Run ZeroClaw as a system service for auto-start and process management.

Kubernetes Deployment

For production-scale deployments with orchestration.

Deployment Manifest

Deploy

Reverse Proxy Setup

Nginx with SSL

Enable in ZeroClaw:

Caddy (Auto-HTTPS)

Production Checklist

  • Enable pairing (require_pairing = true)
  • Use HTTPS (reverse proxy or tunnel)
  • Set webhook secrets for all channels
  • Configure rate limits appropriately
  • Never expose gateway on 0.0.0.0 without protection
  • Use environment variables for secrets (not config files)
  • Enable audit logging
  • Configure auto-restart (systemd or Docker restart policy)
  • Set up health checks
  • Configure resource limits (memory, CPU)
  • Use persistent storage for config and workspace
  • Enable backup for workspace data
  • Set up monitoring (Prometheus + Grafana)
  • Configure log rotation
  • Use appropriate memory backend (SQLite for production)
  • Configure connection pooling
  • Set reasonable rate limits
  • Enable caching where appropriate
  • Monitor resource usage
  • Optimize tool execution timeouts
  • Document deployment procedure
  • Set up log aggregation
  • Configure alerts for errors/downtime
  • Test backup/restore procedure
  • Plan update/rollback strategy
  • Monitor costs (LLM API usage)

Monitoring

Prometheus + Grafana

Prometheus scrape config:
Key metrics:
  • zeroclaw_requests_total - Total HTTP requests
  • zeroclaw_llm_latency_seconds - LLM API latency
  • zeroclaw_tool_executions_total - Tool execution count
  • zeroclaw_memory_entries - Memory entry count
  • zeroclaw_rate_limit_exceeded_total - Rate limit hits

Health Checks

Backup and Recovery

Backup Workspace

Restore Workspace

Troubleshooting

This is intentional security protection. Options:
  1. Use a tunnel:
  2. Explicit opt-in (use with caution):
Check logs:
Common issues:
  • Missing API_KEY environment variable
  • Invalid configuration
  • Port already in use
Configure memory limits:
Or use Docker limits:
  • Check for infinite loops in agent reasoning
  • Reduce max_tool_iterations
  • Monitor with zeroclaw doctor
  • Check for inefficient tool implementations

Next Steps

Gateway Setup

Configure and secure the HTTP gateway

Creating Providers

Add custom LLM providers