npx @xerg/cli doctor is the fastest way to confirm that Xerg can see local OpenClaw or Hermes data before you run an audit.
Examples use npx @xerg/cli. If you installed the CLI globally, substitute xerg.
Local checks
- the default gateway pattern
- the default sessions pattern
- detected source files
- notes about what is missing
--verbose when you want progress messages on stderr while doctor is checking paths and transports.
Use explicit local paths when your data is not in the defaults:
--runtime openclaw or --runtime hermes so doctor checks the exact runtime you mean.
To inspect a local Cursor usage export instead:
SSH checks
- SSH connectivity
- whether
rsyncexists locally and remotely - default remote paths
- optional custom remote paths when you pass
--remote-log-fileor--remote-sessions-dir
Railway checks
railway CLI context.
If railway link in this directory points at a database, sidecar, or another non-OpenClaw service, doctor can authenticate successfully but still report that the linked service is unreachable or has no OpenClaw data. Re-run railway link in the directory where you invoke Xerg and choose the OpenClaw app service.
Use explicit --project, --environment, and --service values when you want a deterministic Railway target instead of the service linked to the current directory.
You can also target a specific service:
- whether the
railwayCLI is installed - whether the
railwayCLI is authenticated - whether the target service is reachable
- default and alternate OpenClaw paths
- optional custom remote paths when you pass
--remote-log-fileor--remote-sessions-dir
/tmp/openclawfor gateway logs~/.openclaw/agentsfor session files/data/.clawdbot/agents/main/sessionsas an alternate session directory when the default one is empty
When doctor says no data
If doctor cannot find any local OpenClaw or Hermes data:- verify that your runtime is writing gateway logs and session files
- pass explicit paths with
--log-fileand--sessions-dir - run
npx @xerg/cli doctor --remote user@hostto inspect an SSH target directly from your machine - run
npx @xerg/cli doctor --railwayto inspect a linked Railway service - use
--project,--environment, and--servicewhen you want a deterministic Railway target instead of the service linked to the current directory - run
npx @xerg/cli audit --remote user@hostornpx @xerg/cli audit --railwaywhen the data lives on another machine or service; see remote audits for the full workflow - remote audits still pull telemetry to the machine where you run Xerg and analyze it locally