jsantisi Avatar

Juan Santisi

Solutions, Evals & Agile Lessons

OpenClaw CLI Cheat Sheet

|

Quick reference for the openclaw CLI, focused on models. Subcommands change between releases — openclaw <command> --help is the source of truth.

Models — status & discovery

CommandWhat it does
openclaw modelsSame as models status (--json gives the same object)
openclaw models statusResolved default model, fallbacks, and auth overview
openclaw models status --probeLive requests to test auth/tool/image support (uses tokens, can hit rate limits)
openclaw models status --checkExit codes for auth/runtime health — good for scripts
openclaw models listModel inventory (--all, --provider <id>, --local, --refresh)
openclaw models refreshDownload the hosted model catalog (stop the Gateway first)
openclaw models scanRank 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

CommandWhat 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 listList 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|clearManage the text fallback chain
openclaw models image-fallbacks list|add|remove|clearManage 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

CommandWhat it does
openclaw models auth addInteractive 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-copilotGitHub 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

CommandWhat it does
openclaw onboardFull guided first run: gateway, model auth, workspace, channels, skills
openclaw onboard --install-daemonOnboard and install the gateway as a boot service
openclaw setupBaseline config and workspace, no full wizard
openclaw configureChange part of an existing setup (auth, gateway, channels, plugins, skills)
openclaw config get|set|unset|validateEdit config directly (config set on models is stricter than models set)
openclaw gateway status|start|stopManage the gateway service
openclaw logsGateway logs
openclaw tuiTerminal UI

Channels & health

CommandWhat it does
openclaw channels listConfigured channels/accounts
openclaw channels status --probeChannel health with live checks
openclaw channels add --channel discord --account work --token $TOKENAdd a channel account
openclaw channels logs --channel allRecent channel logs
openclaw status --deepBroad health check
openclaw doctorGuided fixes for common problems
openclaw pairing list|approveApprove DM pairing requests

Global & maintenance

CommandWhat it does
openclaw --versionShow the installed version
openclaw update --channel stable|beta|devUpdate / switch release channel
openclaw --dev <cmd>Isolated state in ~/.openclaw-dev, shifted ports
openclaw --profile <name> <cmd>Run against a named profile
openclaw uninstallRemove gateway service and local data (keeps the CLI)

Full reference: docs.openclaw.ai/cli

Leave a Reply