← Back to Articles

OpenClaw + PM2 + Nginx Production Guide

Deploy OpenClaw for production with process management, reverse proxy, and HTTPS best practices.

2026-03-1010 min read

Process Management With PM2

Use PM2 to run the Next.js app with restart resilience and startup persistence. Always save your PM2 process list after changes.

Nginx Reverse Proxy Rules

  • Proxy pass to 127.0.0.1:3001
  • Pass X-Real-IP and X-Forwarded-For headers
  • Use HTTPS redirect from 80 to 443

SSL With Certbot

Issue certificates with certbot --nginx and verify auto-renewal with a dry run. Keep 80 and 443 open at firewall level.

Ready to Deploy OpenClaw?

Apply this guide and launch your OpenClaw environment with one click.

Deploy OpenClaw