Skip to content

OpenClaw

Prerequisites

  1. Node.js 18+
  2. OpenClaw installed and configured

Install & Run

bash
# Install daemon
npm install -g @cmdctrl/openclaw

# Register
cmdctrl-openclaw register -s https://api.cmd-ctrl.ai

# Start
cmdctrl-openclaw start

How It Works

The daemon spawns openclaw agent --agent main --message "..." --json for each task. OpenClaw routes all messages to a single persistent session per agent (agent:main:main by default). The daemon reads message history from OpenClaw's native JSONL transcripts at ~/.openclaw/agents/.

Messages sent from other channels (WhatsApp, Telegram, the OpenClaw TUI) and from Cmd+Ctrl all share the same session context – this is by design in OpenClaw's personal assistant model.

Configuration

Custom agent – set OPENCLAW_AGENT_ID to route tasks to a different OpenClaw agent (default: main):

bash
OPENCLAW_AGENT_ID=research cmdctrl-openclaw start

Custom CLI path – if openclaw isn't in your PATH:

bash
OPENCLAW_CLI_PATH=/path/to/openclaw cmdctrl-openclaw start

Troubleshooting

"openclaw not found" – Ensure openclaw is in your PATH: which openclaw. Or set OPENCLAW_CLI_PATH.