Quick reference for the openclaw CLI, focused on models. Subcommands change between releases — openclaw <command> --help is the source of truth.
Models — status & discovery
| Command | What it does |
|---|---|
openclaw models | Same as models status (--json gives the same object) |
openclaw models status | Resolved default model, fallbacks, and auth overview |
openclaw models status --probe | Live requests to test auth/tool/image support (uses tokens, can hit rate limits) |
openclaw models status --check | Exit codes for auth/runtime health — good for scripts |
openclaw models list | Model inventory (--all, --provider <id>, --local, --refresh) |
openclaw models refresh | Download the hosted model catalog (stop the Gateway first) |
openclaw models scan | Rank OpenRouter :free models as fallbacks (--set-default, --set-image, --no-probe) |
Add --agent <id> to status, list and auth to inspect a specific agent. Most commands accept --json / --plain.
Models — set defaults
| Command | What it does |
|---|---|
openclaw models set <provider/model> | Set the primary text model (agents.defaults.model.primary) |
openclaw models set-image <provider/model> | Set the primary image model |
openclaw models aliases list | List aliases |
openclaw models aliases add <alias> <model> | Create or repoint an alias |
openclaw models aliases remove <alias> | Delete an alias |
openclaw models fallbacks list|add|remove|clear | Manage the text fallback chain |
openclaw models image-fallbacks list|add|remove|clear | Manage the image fallback chain |
set accepts provider/model or an alias. An unknown model from a known provider is saved with a warning.
Models — auth
| Command | What it does |
|---|---|
openclaw models auth add | Interactive setup: OAuth, API key or token |
openclaw models auth list [--provider <id>] | Saved auth profiles (no secrets shown) |
openclaw models auth login --provider <id> | Provider sign-in flow (--method api-key, --set-default, --profile-id) |
openclaw models auth paste-api-key --provider <id> | Save an API key from a prompt or stdin |
openclaw models auth setup-token --provider <id> | Provider token flow (needs a TTY) |
openclaw models auth paste-token --provider <id> | Save a token manually |
openclaw models auth activate <profileId> | Test a profile and select it for an agent |
openclaw models auth logout <profileId> | Remove a profile |
openclaw models auth order get|set|clear --provider <id> | Profile priority per agent |
openclaw models auth login-github-copilot | GitHub Copilot device flow |
Personal accounts: openclaw models accounts list | login [provider] | use <account-id> | clear-default <provider>.
Common recipes
# Sign in to OpenAI and make it the default
openclaw models auth login --provider openai --set-default
# Switch default model, add a fallback
openclaw models set anthropic/claude-opus-5-5
openclaw models fallbacks add openai/gpt-5.5
# Short alias for quick switching
openclaw models aliases add opus anthropic/claude-opus-5-5
openclaw models set opus
# Verify everything actually works
openclaw models status --probe
In chat, the /model and /models slash commands switch models per session (e.g. /model list).
Setup & gateway
| Command | What it does |
|---|---|
openclaw onboard | Full guided first run: gateway, model auth, workspace, channels, skills |
openclaw onboard --install-daemon | Onboard and install the gateway as a boot service |
openclaw setup | Baseline config and workspace, no full wizard |
openclaw configure | Change part of an existing setup (auth, gateway, channels, plugins, skills) |
openclaw config get|set|unset|validate | Edit config directly (config set on models is stricter than models set) |
openclaw gateway status|start|stop | Manage the gateway service |
openclaw logs | Gateway logs |
openclaw tui | Terminal UI |
Channels & health
| Command | What it does |
|---|---|
openclaw channels list | Configured channels/accounts |
openclaw channels status --probe | Channel health with live checks |
openclaw channels add --channel discord --account work --token $TOKEN | Add a channel account |
openclaw channels logs --channel all | Recent channel logs |
openclaw status --deep | Broad health check |
openclaw doctor | Guided fixes for common problems |
openclaw pairing list|approve | Approve DM pairing requests |
Global & maintenance
| Command | What it does |
|---|---|
openclaw --version | Show the installed version |
openclaw update --channel stable|beta|dev | Update / switch release channel |
openclaw --dev <cmd> | Isolated state in ~/.openclaw-dev, shifted ports |
openclaw --profile <name> <cmd> | Run against a named profile |
openclaw uninstall | Remove gateway service and local data (keeps the CLI) |
Full reference: docs.openclaw.ai/cli
Leave a Reply