CLI Commands
The OpenClaw CLI (openclaw) is your interface for managing your local agent.
Installation
npm install -g openclaw@latestConfiguration
# Set a config value
openclaw config set model_primary anthropic/claude-sonnet-4-6
# View current config
openclaw config listHub 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-lookupDaemon 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 restartConfig Directory
All configuration lives in ~/.openclaw/:
| File | Purpose |
|---|---|
| `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 |