PM2 Process Manager for Openclaw

A production-grade process manager for Node.js applications with built-in load balancing and auto-restart capabilities.

asteinberger
v1.0.0
Jan 26, 2026
3
3.8k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install pm2

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install pm2 using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is PM2 Process Manager?

The PM2 skill enables developers to manage Node.js applications in production environments using Openclaw Skills. It provides a robust set of tools for starting, monitoring, and maintaining high availability for web servers and background tasks. By integrating this skill, users can ensure their services remain operational through crashes, server reboots, and high-traffic scenarios using cluster mode, providing a seamless operational layer for modern web development.

PM2 Process Manager Use Cases

  • Using Openclaw Skills to deploy production Node.js or Next.js applications.
  • Automating application restarts after server reboots using saved process lists.
  • Monitoring real-time resource usage and application logs across multiple services.
  • Managing environment variables and ports for different deployment stages.
  • Scaling applications across multiple CPU cores without downtime.

How PM2 Process Manager Works

  1. Install the PM2 daemon globally using the package manager within your environment.
  2. Initialize an application using the start command or a structured ecosystem configuration file.
  3. Monitor process status and application logs using the integrated CLI dashboard.
  4. Configure persistent startup scripts to ensure Openclaw Skills apps persist after system restarts.
  5. Execute zero-downtime reloads to update application code without interrupting user traffic.

PM2 Process Manager Setup

Essential installation and configuration steps for this Openclaw Skills resource:

# Install PM2 globally
npm install -g pm2

# Start your application with a specific name
pm2 start app.js --name "my-app"

# Start a Next.js production build
pm2 start npm --name "next-app" -- start

# Configure auto-start on boot
pm2 startup
pm2 save

PM2 Process Manager Data Schema & Taxonomy

PM2 manages process state and metadata via internal databases and optional configuration files. Openclaw Skills users typically define applications using an ecosystem file:

Property Type Description
name String The unique identifier for the process
script String The script path or command to execute (e.g., 'npm')
args String Arguments passed to the execution script
env Object Environment variables for production or development
watch Boolean Enables automatic restart on file changes

PM2 Process Manager Advanced Features

  • Cluster Mode: Automatically scale applications across all available CPU cores to maximize performance.
  • Watch & Restart: Real-time monitoring of file changes to trigger automatic process updates.
  • Memory Thresholds: Configure automatic restarts when a process exceeds a defined memory limit (e.g., --max-memory-restart 300M).
  • Cron Scheduling: Schedule restarts or maintenance tasks using standard cron syntax via Openclaw Skills.
  • Real-time Monitoring: Access an interactive dashboard with the monit command to visualize resource consumption.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*