| `—runtime [openclaw | hermes | claude-code]` | doctor, audit | Chooses the local runtime explicitly |
--log-file [path] | doctor, audit | Points Xerg at one explicit local gateway log | | |
--sessions-dir [path] | doctor, audit | Points Xerg at one explicit local sessions directory | | |
--otlp-file [path] | audit | Audits an independent OpenClaw capture by default; with --runtime hermes, enriches an auditable state.db from a certified Hermes capture | | |
--state-db [path] | doctor, audit, collect hermes | Uses a specific read-only Hermes database; required for certified Hermes trace reconciliation | | |
--hermes-events-dir [path] | doctor, audit, collect hermes | Uses a specific first-party Hermes observer ledger | | |
--claude-code-dir [path] | doctor, audit | Points Xerg at a Claude Code projects directory other than ~/.claude/projects/ | | |
--cursor-usage-csv [path] | doctor, audit | Uses a local Cursor usage export instead of runtime files | | |
--since [duration] | audit | Limits the audit window, for example 24h, 7d, or 30m | | |
--compare | audit | Compares against the newest compatible saved snapshot | | |
--json | audit | Emits JSON output | | |
--markdown | audit | Emits Markdown output | | |
--db [path] | audit | Uses a custom JSON snapshot path for local snapshot storage | | |
--no-db | audit | Skips local persistence | | |
--remote [user@host] | doctor, audit | Targets an SSH OpenClaw host | | |
--remote-log-file [path] | doctor, audit | Overrides the remote OpenClaw log path | | |
--remote-sessions-dir [path] | doctor, audit | Overrides the remote OpenClaw sessions path | | |
--remote-config [path] | audit | Runs a multi-source remote OpenClaw audit | | |
--keep-remote-files | audit | Keeps pulled remote files under ~/.xerg/remote-cache/ | | |
--railway | doctor, audit | Targets a Railway OpenClaw service | | |
--project [id] | doctor, audit | Chooses a Railway project explicitly | | |
--environment [id] | doctor, audit | Chooses a Railway environment explicitly | | |
--service [id] | doctor, audit | Chooses a Railway service explicitly | | |
--push | audit | Pushes the summary after computing it | | |
--dry-run | audit --push, push | Prints the payload instead of sending it | | |
--file [path] | ingest, push | For ingest: audits a Xerg event payload from any framework. For push: pushes one saved payload file instead of the most recent cached audit | | |
--fail-above-waste-rate [n] | audit | Exits 3 when waste rate is above the threshold | | |
--fail-above-waste-usd [n] | audit | Exits 3 when confirmed waste dollars are above the threshold | | |
--verbose | doctor, audit | Prints progress updates to stderr | | |
--port [n] | collect openclaw, collect hermes | Chooses the loopback OTLP/HTTP port (default 4318) | | |
--output [path] | collect openclaw, collect hermes | Chooses a no-overwrite sanitized capture path | | |
-h, --help | root, doctor, audit, push | Prints help for the selected command | | |
-v, --version | root | Prints the installed CLI version | | |