A comprehensive guide to all common OpenClaw CLI commands, covering installation, configuration, running, and debugging operations.
OpenClaw CLI is the core tool for managing Agents, providing commands from initialization to runtime.
# Check version
openclaw --version
# Show help
openclaw --help
# Initialize new project
openclaw init
# Check configuration
openclaw doctor
# Start interactive mode
openclaw run <agent-name>
# Start web server
openclaw serve
# Check Agent status
openclaw status
# Start Gateway
openclaw gateway start
# Stop Gateway
openclaw gateway stop
# Restart Gateway
openclaw gateway restart
# View logs
openclaw logs
# Test configuration
openclaw config validate
Use the `openclaw init` command to initialize a new project.
Use the `openclaw run <agent-name>` command, replacing `<agent-name>` with the actual Agent name.
Use `openclaw gateway start` to start the service, or `openclaw gateway restart` to restart it.
Use `openclaw logs` to view logs, `openclaw config validate` to test configuration, or `openclaw doctor` to check configuration.
人类专家验证
官方机器人验证