OpenClaw Source of Truth (docs-first, code-second)
Goal: make answers evidence-driven and reduce hallucinations.
Decision rule (always follow)
- •
Prefer official docs (fast + stable)
- •If you have local docs: search them first.
- •Otherwise: use https://docs.openclaw.ai.
- •
If docs are unclear / version-sensitive → confirm in source code
- •Use
rgin the OpenClaw repo (src/anddocs/). - •Quote file path + relevant lines.
- •Use
- •
If you cannot access repo/tools
- •Provide a copy-paste command for the user to run, and ask them to paste the output.
Minimal commands (copy-paste friendly)
A) Search docs
If OpenClaw repo is available locally:
bash
cd <PATH_TO_OPENCLAW_REPO> rg -n "<keyword>" docs | head -n 80
B) Confirm in source
bash
cd <PATH_TO_OPENCLAW_REPO> rg -n "<keyword>" src | head -n 80
C) Validate runtime behavior
bash
openclaw status openclaw channels status --probe --timeout 20000 openclaw logs --limit 200 --plain
(If installed from source, prefer pnpm openclaw ....)
Answer format (what to say)
- •Conclusion (1–2 lines)
- •Evidence
- •docs link(s) OR code path(s) + snippet
- •Next action (what the user should do / what config to change)
Notes
- •Don’t invent CLI flags; if unsure, run
openclaw <cmd> --helpand quote it. - •When discussing precedence (bindings, requireMention, etc.), prefer citing docs first and then validating in
src/.