Referensi CLI

openclaw-cli gateway start|stop|restart

Start, stop, or restart the OpenClaw gateway process.

# Start the gateway
$ openclaw-cli gateway start

# Restart after a config change
$ openclaw-cli gateway restart
openclaw-cli monitor [--port n]

Launch the local monitoring dashboard. Defaults to port 18790.

# Start monitor on default port
$ openclaw-cli monitor

# Use a custom port
$ openclaw-cli monitor --port 9090
openclaw-cli watch [--daemon]

Watch the gateway and auto-restart on crash. Use --daemon (or -d) to run in the background.

# Run as a background daemon
$ openclaw-cli watch -d
✓ Background daemon started (PID 48291)
openclaw-cli doctor [--fix]

Diagnose common issues with your OpenClaw setup. Pass --fix to auto-repair what it can.

# Check for issues
$ openclaw-cli doctor

# Auto-fix detected issues
$ openclaw-cli doctor --fix
openclaw-cli status

Show the current status of the gateway, connected channels, and daemon.

$ openclaw-cli status
Gateway ● online :18789
Channels ✓ feishu ✓ telegram
openclaw-cli logs [--lines n]

Show recent gateway logs. Defaults to the last 50 lines.

# Show last 100 lines
$ openclaw-cli logs --lines 100
openclaw-cli memory [--compact]

Display memory usage of the gateway process. Use --compact for a single-line summary.

$ openclaw-cli memory
Heap: 42 MB / RSS: 68 MB
openclaw-cli telemetry on|off|status

Enable, disable, or check anonymous usage telemetry.

# Disable telemetry
$ openclaw-cli telemetry off
✓ Telemetry disabled
openclaw-cli remote login

Authenticate with the Remote Monitor service using your Google account.

$ openclaw-cli remote login
✓ Logged in as [email protected]
openclaw-cli remote enable|disable

Enable or disable remote monitoring for this machine. When enabled, health reports are sent periodically.

# Start reporting to the dashboard
$ openclaw-cli remote enable
✓ Remote monitoring enabled
openclaw-cli remote status

Show the current remote monitoring status including registration and reporting state.

$ openclaw-cli remote status
Remote: enabled · Last report: 12s ago