Documentation Index
Fetch the complete documentation index at: https://xerg.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
xerg init is the default first-run path for the CLI.
initis interactive in v1. Use directdoctor/auditcommands when you need non-interactive behavior or explicit flags immediately.
What xerg init does
Run:
init:
- checks the local OpenClaw and Hermes defaults
- auto-selects the only detected runtime or asks you to choose when both are present
- runs the first audit with local snapshot persistence enabled
- prints the normal terminal summary
- tells you to use
audit --compareafter the next fix - offers optional hosted follow-up with
connectandmcp-setup
Supported local runtimes
init only covers local OpenClaw and local Hermes detection.
Current defaults:
- OpenClaw gateway logs:
/tmp/openclaw/openclaw-*.log - OpenClaw session transcripts:
~/.openclaw/agents/*/sessions/*.jsonl - Hermes logs:
~/.hermes/logs/agent.log*withgateway.log*fallback - Hermes session transcripts:
~/.hermes/sessions/
doctor / audit --cursor-usage-csv workflow rather than part of init.
When to use init versus audit
Use init when:
- you are onboarding for the first time
- you want the CLI to choose between detected local runtimes
- you want a guided path from first audit to optional hosted setup
audit directly when:
- you need non-interactive behavior
- you already know the runtime
- you want JSON, Markdown, CI gates, or explicit path flags immediately
- you want remote OpenClaw audits over SSH or Railway
What happens when no local data is found
init does not guess. It prints:
- the default local paths it checked
- explicit local-path commands for OpenClaw and Hermes
- remote OpenClaw-only next steps:
npx @xerg/cli audit --remote user@hostnpx @xerg/cli audit --railway
What happens after a successful audit
After the first audit,init tells you to re-run:
connectfor authentication and pushing the latest auditmcp-setupfor generating hosted MCP config for Cursor, Claude Code, Codex, or another client