OpenClaw CLI: The Commands You'll Use Most
A quick reference for installing OpenClaw and the console commands for setup, updates, the gateway service, diagnostics, sessions, memory, scheduled tasks and logs.
Verification
- Test environment
- Unknown
- Tested on
- Unknown
- Last updated
- 2026-11-22
A collection of the OpenClaw console commands the author uses most for setting up and debugging their agent. OpenClaw updates often, so options can change: openclaw --help and openclaw <command> --help show what your installed version supports, and the CLI reference has the full list.
Install
The official install page gives one-line installers. They download and run a script, so read it first if you want to know what it does.
Windows (PowerShell):
iwr -useb https://openclaw.ai/install.ps1 | iex
macOS, Linux or WSL2:
curl -fsSL https://openclaw.ai/install.sh | bash
The installer adds openclaw to your PATH.
Set up and configure
openclaw onboard # guided setup for beginners
openclaw setup # set up a new install
openclaw configure # change model auth, gateway, channels, plugins or skills
configure is the easy way to set models and tokens, link Telegram or install skills. Editing the config file directly works too.
Update
openclaw update
Run it regularly; OpenClaw ships updates frequently.
Start, stop and check the gateway
OpenClaw runs a gateway service:
openclaw gateway start
openclaw gateway stop
openclaw gateway restart
openclaw gateway status
First-time onboarding may need to install the gateway service before start works. See the gateway reference.
Fix problems and chat from the terminal
openclaw doctor # diagnose and offer fixes
openclaw agent --message "Hello" # talk to your agent from the command line
Review any repairs doctor proposes before accepting them. The agent command takes many more options. On messaging platforms, Telegram has the widest support for chat commands such as /model to switch models and /think to change the thinking level.
Advanced commands
You won't need these often:
openclaw sessions # list current sessions
openclaw memory status # check memory status
openclaw cron list # scheduled tasks; see openclaw cron --help for add, status, etc.
openclaw logs # view logs
Scheduled tasks can do things like send you the news and weather every morning. Logs help when you ask someone for help; remove tokens and private messages before sharing them.
Many more commands exist, but most are already covered by the one-step setup, so you rarely need to run them yourself.
Adapted from the XMLans blog: OpenClaw Command Reference: Setup, Gateway, and Logs (Chinese original: OpenClaw常用命令大全!).
Sources
- OpenClaw常用命令大全!(星梦博客)www
.xmlans .com (opens in a new tab) · checked 2026-11-22 - OpenClaw Command Reference: Setup, Gateway, and Logs (XMLans blog)en
.xmlans .com (opens in a new tab) · checked 2026-11-22 - OpenClaw docs: installdocs
.openclaw .ai (opens in a new tab) · checked 2026-11-22 - OpenClaw docs: CLI referencedocs
.openclaw .ai (opens in a new tab) · checked 2026-11-22 - OpenClaw docs: gateway commanddocs
.openclaw .ai (opens in a new tab) · checked 2026-11-22