Skip to main content
Examples use npx @xerg/cli. If you installed the CLI globally, substitute xerg.

Common problems

SymptomWhat it meansWhat to do
No ... sources were detected... or exit code 2Xerg could not find any supported local runtime data, or any pulled OpenClaw data.Run npx @xerg/cli doctor, then pass --runtime, --log-file, and --sessions-dir as needed, or inspect SSH or Railway sources directly for OpenClaw.
Could not determine whether the provided local files belong to OpenClaw or HermesThe explicit local paths look plausible for more than one supported runtime.Re-run with --runtime openclaw or --runtime hermes so Xerg knows which parser to use.
The --compare flag needs local snapshot history...You used --compare with --no-db.Remove --no-db or use --db <path> so Xerg has a local snapshot store.
No prior comparable audit was found... in notesXerg completed, but no compatible baseline exists yet.Re-run the same audit after your next change.
Install fails around better-sqlite3The native dependency could not build for the current environment.Use Node 22 or 24 and install standard native build tooling for your platform.
SSH audit cannot connect or pull filesSSH access, key access, or rsync is missing.Verify ssh connectivity, remote key access, and that rsync is installed locally and remotely.
Railway audit says it cannot reach the serviceThe railway CLI is missing or unauthenticated, the current directory is not linked to a reachable Railway service, the current directory is linked to the wrong service, or the explicit Railway IDs do not point at the OpenClaw app.Run railway login, then either run railway link in the directory where you invoke Xerg and choose the OpenClaw app service, or pass explicit --project, --environment, and --service values. Re-run npx @xerg/cli doctor --railway to confirm the target.
Railway audit reaches a service but still reports no OpenClaw dataThe linked or selected Railway service is probably not the OpenClaw app, or the app stores logs and sessions outside the default paths.Re-link or re-select the OpenClaw app service. If the app writes elsewhere, pass --remote-log-file and --remote-sessions-dir.
Push says No API key configuredXerg could not find credentials.Set XERG_API_KEY, add apiKey to ~/.xerg/config.json, or run npx @xerg/cli login.
xerg push says no cached audit snapshots foundThere is no audit in the default local database.Run npx @xerg/cli audit first, or use npx @xerg/cli push --file <path>.

Debug in the right order

  1. Run npx @xerg/cli doctor.
  2. Run the plain audit without extra flags.
  3. Add --compare, --json, or --push once the base audit works.
  4. If the data is remote, validate SSH or Railway access separately before debugging Xerg flags.

Get help