- Home (README)
- Plain English
- Technical
- Privacy + safety
- Deployment
- Optimizations
- Reference
This is a copy/paste oriented page. For deeper explanations, use the official docs linked below.
curl -fsSL https://openclaw.ai/install.sh | bash
openclaw onboard --install-daemonDocs: https://docs.openclaw.ai/install and https://docs.openclaw.ai/start/wizard
export CUSTOM_API_KEY="your-api-key-here"
openclaw onboard --non-interactive --install-daemon \
--custom-base-url "https://llm.example.com/v1" \
--custom-model-id "my-model" \
--custom-compatibility openaiFlags: --custom-base-url (required), --custom-model-id (required), --custom-api-key (optional, env var preferred), --custom-provider-id (optional), --custom-compatibility openai|anthropic (optional).
Auto-inference: providing any --custom-* flag auto-sets --auth-choice custom-api-key.
Docs: https://docs.openclaw.ai/start/wizard-cli-automation and https://docs.openclaw.ai/cli/onboard
Foreground:
openclaw gateway
# alias:
openclaw gateway runService lifecycle:
openclaw gateway status
openclaw gateway restart
openclaw gateway stop
openclaw gateway startDocs: https://docs.openclaw.ai/gateway and https://docs.openclaw.ai/cli/gateway
openclaw status
openclaw status --all
openclaw health
openclaw config validate # validate config before startup
openclaw config file # print active config file pathHTTP health probe endpoints (for Docker/Kubernetes): GET /health, /healthz, /ready, /readyz.
openclaw security audit
openclaw security audit --deep
openclaw security audit --fixDocs: https://docs.openclaw.ai/gateway/security
openclaw pairing list telegram
openclaw pairing approve telegram <CODE>Docs: https://docs.openclaw.ai/start/pairing
ssh -N -L 18789:127.0.0.1:18789 user@gateway-hostDocs: https://docs.openclaw.ai/gateway/remote
openclaw backup create # full backup
openclaw backup create --no-include-workspace # config + state only
openclaw backup create --only-config # just the config file
openclaw backup verify ./backup.tar.gz # validate archiveRun openclaw backup create before openclaw reset or openclaw uninstall.
Docs: https://docs.openclaw.ai/cli/backup
/btw what are we doing right now?
/btw summarize the current taskEphemeral side question against the current session — no tool calls, no transcript persistence.
Docs: https://docs.openclaw.ai/tools/btw
- Run
openclaw dashboardand open the printed tokenized URL. - Ensure you are connecting to the correct Gateway instance/profile.
Docs: https://docs.openclaw.ai/help/faq
- Stop the supervised service (
openclaw gateway stop) or choose another port. - Foreground reclaim:
openclaw gateway --force.
Docs: https://docs.openclaw.ai/help/faq
- Check channel status and logs.
- Confirm pairing/allowlists aren’t blocking.
- Confirm model auth is present on the gateway host.
Docs: https://docs.openclaw.ai/help/faq and https://docs.openclaw.ai/channels/troubleshooting
- Getting started: https://docs.openclaw.ai/start/getting-started
- Gateway runbook: https://docs.openclaw.ai/gateway
- Security: https://docs.openclaw.ai/gateway/security
- Remote: https://docs.openclaw.ai/gateway/remote
- Help/FAQ: https://docs.openclaw.ai/help/faq
- Troubleshooting: https://docs.openclaw.ai/gateway/troubleshooting