DocsOpenClaw CLICLI Commands

CLI Commands

The OpenClaw CLI (openclaw) is your interface for managing your local agent.

Installation

npm install -g openclaw@latest

Configuration

# Set a config value
openclaw config set model_primary anthropic/claude-sonnet-4-6

# View current config
openclaw config list

Hub connection details are configured automatically during provisioning.

Skills

# Install a skill from ClawHub
openclaw skill install customer-lookup

# List installed skills
openclaw skill list

# Remove a skill
openclaw skill remove customer-lookup

Daemon Management

# Install and start the background daemon (systemd on Linux, launchd on macOS)
openclaw onboard --install-daemon

# Check daemon status
openclaw status

# Restart the agent
openclaw restart

Config Directory

All configuration lives in ~/.openclaw/:

FilePurpose
`openclaw.json`Main config — name, model, channel credentials
`.env`AI provider API keys (Anthropic, OpenAI, Google)
`workspace/SOUL.md`Agent personality and identity
`workspace/AGENTS.md`Behavior instructions and rules