Run a local audit
- OpenClaw:
/tmp/openclaw/openclaw-*.log - OpenClaw:
~/.openclaw/agents/*/sessions/*.jsonl - Hermes:
~/.hermes/logs/agent.log*withgateway.log*fallback - Hermes:
~/.hermes/sessions/
--runtime explicitly.
Audit a Cursor usage CSV locally
- Xerg estimates spend only for Cursor aliases that have an explicit local pricing map
- unmapped aliases stay visible in token and model breakdowns as
unpriced - agent-runtime findings like retry waste and loop waste are intentionally disabled for this source
Limit the audit window
m), hour (h), day (d), and week (w) suffixes.
Output modes
Default terminal report:--json or --markdown, but not both in the same command.
Local snapshot storage
Unless you pass--no-db, Xerg stores each audit locally in SQLite so later runs can use --compare and xerg push.
Default database path:
| Platform | Default path |
|---|---|
| macOS | ~/Library/Application Support/xerg/xerg.db |
| Linux | ${XDG_DATA_HOME:-~/.local/share}/xerg/xerg.db |
| Windows | %LOCALAPPDATA%\xerg\Data\xerg.db |
--compare will not work.
What the report contains
- total spend, observed spend, and estimated spend
- daily spend and confirmed waste series in UTC
- structural waste and structural waste rate
- savings opportunities
- top workflows and top models by spend
- high-confidence waste findings
- the first savings test to run next