openclaw gateway
Manage the OpenClaw gateway process.
Usage
bash
openclaw gateway <action> [options]Actions
| Action | Description |
|---|---|
start | Start the gateway |
stop | Stop the gateway |
restart | Restart the gateway |
status | Show gateway status |
Options
| Option | Description |
|---|---|
--port, -p | Specify port (default: 3000) |
--foreground, -f | Run in foreground |
--debug | Enable debug mode |
Examples
bash
# Start gateway
openclaw gateway start
# Start on specific port
openclaw gateway start --port 8080
# Run in foreground
openclaw gateway start --foreground
# Stop gateway
openclaw gateway stop
# Restart gateway
openclaw gateway restart
# Check status
openclaw gateway statusRunning as a Service
macOS (launchd)
bash
# Install as service
openclaw gateway install-service
# Uninstall service
openclaw gateway uninstall-serviceLinux (systemd)
bash
# Install as service
sudo openclaw gateway install-service
# Enable on boot
sudo systemctl enable openclaw-gateway