Skip to content
BotServBotServ
OpenClawCommandsCLIProxmoxAI Agent

Essential OpenClaw Commands

OpenClaw CLI quick reference. Onboarding, configuration, models, gateway, doctor, security and tools.

S

schutzgeist

3 min read
Essential OpenClaw Commands

Essential OpenClaw Commands

What This Article Covers

  • Core commands for getting started with OpenClaw.
  • Setup, onboarding, and basic configuration.
  • Models, gateway, agents, and sessions.
  • Security, diagnostics, and maintenance.
  • Practical examples for daily use.

Introduction: Essential OpenClaw Commands

OpenClaw is controlled from the command line. Knowing the core commands lets you set up the tool faster, narrow down errors, and work more efficiently in production. This article lists the commands you’ll reach for most often during installation, configuration, and day-to-day operation.

All commands follow the pattern openclaw <command>. To see all available options, run openclaw --help or openclaw <command> --help.

Key Terms

  • CLI: Command Line Interface, the command line.
  • Gateway: Network interface for OpenClaw.
  • Agent: Executable instance that performs tasks.
  • Channel: Connection to a messenger or service.
  • Skill: Pre-built capability for agents.
  • Plugin: Extension for OpenClaw.
  • Session: Active conversation or task.

Setup and Onboarding

CommandPurpose
openclaw or openclaw setupStart the setup wizard.
openclaw onboardInteractive onboarding.
openclaw onboard --classicClassic onboarding mode.
openclaw onboard --non-interactiveAutomated onboarding.
openclaw configureChange configuration.
openclaw configOpen configuration UI.
openclaw config fileShow path to active configuration.

Configuration

CommandPurpose
openclaw config get <path>Read value from configuration.
openclaw config set <path> <value>Set a value.
openclaw config unset <path>Remove a value.
openclaw config schemaShow JSON schema for configuration.
openclaw config validateValidate configuration.

Example:

openclaw config set models.default.primary "anthropic/claude-opus-4-8"
openclaw config set models.default.fallbacks '["ollama/llama3.1:8b"]'

Models

CommandPurpose
openclaw models listShow available models.
openclaw models list --provider anthropicFilter models by provider.
openclaw models list --provider ollamaShow Ollama models.
openclaw models statusCheck model status.
openclaw models set <name>Set default model.
openclaw models fallbacks listShow fallbacks.
openclaw models fallbacks add <name>Add a fallback.

Gateway

CommandPurpose
openclaw gateway installInstall gateway as a service.
openclaw gateway startStart the gateway.
openclaw gateway stopStop the gateway.
openclaw gateway restartRestart the gateway.
openclaw gateway statusCheck gateway status.
openclaw gateway healthPerform health check.
openclaw gateway call <action>Invoke a gateway action.

Agents and Sessions

CommandPurpose
openclaw agentStart an agent.
openclaw agents listList agents.
openclaw agents add <name>Add an agent.
openclaw agents delete <name>Remove an agent.
openclaw sessionsShow active sessions.
openclaw messageSend message to agent.

Security

CommandPurpose
openclaw security auditRun security audit.
openclaw security audit --deepRun in-depth security audit.
openclaw security audit --fixFix issues found.
openclaw security audit --jsonOutput audit as JSON.
openclaw secrets reloadReload secrets.
openclaw secrets auditAudit secrets.

Diagnostics and Maintenance

CommandPurpose
openclaw doctorRun health check.
openclaw doctor --fixApply automatic repairs.
openclaw doctor --lintStructured validation.
openclaw doctor --lint --jsonOutput lint as JSON.
openclaw doctor --deepRun deep checks.
openclaw statusGeneral status.
openclaw healthHealth check.

Backup and Updates

CommandPurpose
openclaw backup createCreate a backup.
openclaw backup verifyVerify backup.
openclaw updateUpdate OpenClaw.
openclaw update statusCheck update status.
openclaw update repairRepair installation.

Plugins and Skills

CommandPurpose
openclaw plugins listShow installed plugins.
openclaw plugins install <name>Install a plugin.
openclaw plugins uninstall <name>Uninstall a plugin.
openclaw skills listShow available skills.
openclaw skills install <name>Install a skill.

Logs and System

CommandPurpose
openclaw logsShow logs.
openclaw system eventShow system events.
openclaw dashboardOpen web dashboard.

Common Command Sequences

After Installation

openclaw --version
openclaw doctor
openclaw config file
openclaw config validate

Connect to Ollama

openclaw config set models.providers.ollama.apiKey "ollama-local"
openclaw config set models.providers.ollama.baseUrl "http://127.0.0.1:11434"
openclaw models list --provider ollama

Start and Check Gateway

openclaw gateway install
openclaw gateway start
openclaw gateway status
openclaw gateway health

Check Security

openclaw security audit
openclaw security audit --deep
openclaw doctor --fix

Common Gotchas

  • Command not found: Verify your path, run which openclaw.
  • Gateway won’t start: Validate configuration, use openclaw doctor.
  • Model not visible: Check provider settings and API keys.
  • Security audit blocked: Provide --password or --token for deep audit.
  • Config changes not taking effect: Restart gateway or service.

FAQ: OpenClaw Commands

Where can I find the complete list? Run openclaw --help and openclaw <command> --help.

What’s the difference between doctor and security audit? doctor checks health and configuration; security audit focuses on security.

Can I use OpenClaw completely non-interactively? Yes, with --non-interactive and --yes on most commands.

How do I start the gateway? Use openclaw gateway start or via the systemd service.

Where are the logs? Check openclaw logs or journalctl -u openclaw.

Sources and Further Reading

Summary: Essential OpenClaw Commands

OpenClaw provides a comprehensive CLI for setup, configuration, models, gateway, security, and maintenance. The core commands are onboard, config, models, gateway, doctor, security audit, and logs. Master these, and you can install, connect, monitor, and troubleshoot OpenClaw quickly. For automated setups, use --non-interactive and --fix.

Back to Blog
Share:

Related Posts