--remote, --railway, and --remote-config currently target OpenClaw sources only.
Use only one of --remote, --remote-config, or --railway in a single command.
Examples use npx @xerg/cli. If you installed the CLI globally, substitute xerg.
SSH audits
Prerequisites:sshon yourPATHrsyncon yourPATHfor the fastest transfer path- access to the target host
--remoteacceptsuser@hostoruser@host:port- if
rsyncis unavailable or fails, Xerg falls back totarover SSH --keep-remote-fileskeeps pulled data in~/.xerg/remote-cache/<source-name>/instead of cleaning up a temporary directory
Railway audits
Prerequisites:- the
railwayCLI on yourPATH - a Railway login that can reach the target project or the service linked to the current working directory
railway link in that directory and choose the OpenClaw app service.
Target a specific service:
/tmp/openclaw for gateway logs and ~/.openclaw/agents for session files. Railway also checks /data/.clawdbot/agents/main/sessions as an alternate session location when the default session directory is empty.
Use explicit --project, --environment, and --service values for CI, automation, or any workflow where you want the target to stay stable regardless of the current directory.
If Xerg cannot reach the linked service for the current directory, run railway login first if needed, then run railway link in that directory and choose the OpenClaw app service.
If you pass explicit Railway IDs and Xerg still cannot reach the service, verify that the provided --project, --environment, and --service values point at the OpenClaw app service.
If the target Railway service is reachable but Xerg still reports no OpenClaw data, verify that you selected the OpenClaw app service rather than a database or sidecar. If the app writes data to different paths, override them with --remote-log-file and --remote-sessions-dir.
Multi-source audits with --remote-config
Use --remote-config when you want one command to pull several SSH or Railway sources.
Example config:
transportdefaults tossh- each entry needs a
name - Railway entries require
projectId,environmentId, andserviceId - plain terminal or Markdown output prints one section per source
--jsonreturns a top-level{ "sources": [...] }object when more than one source succeeds- if some sources fail, Xerg continues with the sources it could pull and prints warnings for the ones it could not reach
Remote comparisons
Remote and Railway audits can still use--compare, but the baseline lives in the local SQLite database on the machine running Xerg. Xerg pulls the remote telemetry to your machine and analyzes it locally. It does not analyze the data on the SSH host or on Railway itself. Re-run the same target with the same effective remote paths if you want clean before and after deltas.