@xerg/cli 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +55 -13
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,53 +1,90 @@
1
1
  # xerg
2
2
 
3
- Xerg is the unit economics engine for AI agents — starting with local waste intelligence for OpenClaw workflows.
3
+ Audit OpenClaw agent spend, waste, and before/after improvements.
4
4
 
5
- It reads your OpenClaw gateway logs and session transcripts, shows where money is leaking in dollars, classifies waste into five categories with distinct fixes, and lets you re-run the same audit with `--compare` so you can see what changed after a fix.
5
+ Xerg audits OpenClaw workflows in dollars, not tokens. It reads your gateway logs and session transcripts, shows where money is leaking, classifies waste into five categories, and lets you re-run the same audit with `--compare` so you can see what changed after a fix.
6
6
 
7
- ## Install
7
+ ## 30-second quick start
8
8
 
9
9
  ```bash
10
- npm install -g @xerg/cli
10
+ npx @xerg/cli doctor
11
+ npx @xerg/cli audit
12
+ npx @xerg/cli audit --compare
11
13
  ```
12
14
 
13
- Or run it without a global install:
15
+ Prefer a global install?
14
16
 
15
17
  ```bash
16
- npx @xerg/cli audit
18
+ npm install -g @xerg/cli
19
+ xerg doctor
20
+ xerg audit
17
21
  ```
18
22
 
19
- After a global install, run:
23
+ ## Sample output
20
24
 
21
- ```bash
22
- xerg audit
25
+ ```text
26
+ Total spend: $148.00
27
+ Observed spend: $105.00
28
+ Estimated spend: $43.00
29
+
30
+ Waste taxonomy
31
+ - Retry waste: $12.40
32
+ - Context bloat: $18.90
33
+ - Loop waste: $7.10
34
+ - Downgrade candidates: $4.80
35
+ - Idle waste: $3.37
36
+
37
+ First savings test
38
+ - Move heartbeat_monitor from Claude Opus to Sonnet
23
39
  ```
24
40
 
25
41
  ## Commands
26
42
 
27
- Inspect local audit readiness:
43
+ - Inspect local audit readiness:
28
44
 
29
45
  ```bash
30
46
  xerg doctor
31
47
  ```
32
48
 
33
- Run the first audit:
49
+ - Run the first audit:
34
50
 
35
51
  ```bash
36
52
  xerg audit
37
53
  ```
38
54
 
39
- Compare the latest run against the newest compatible prior local snapshot:
55
+ - Compare the latest run against the newest compatible prior local snapshot:
40
56
 
41
57
  ```bash
42
58
  xerg audit --compare
43
59
  ```
44
60
 
45
- Audit a specific window:
61
+ - Audit a specific window:
46
62
 
47
63
  ```bash
48
64
  xerg audit --since 24h --compare
49
65
  ```
50
66
 
67
+ ## Works where your OpenClaw logs live
68
+
69
+ - Local machine: yes
70
+ - VPS or remote server: yes
71
+ - If OpenClaw runs remotely, SSH into the machine where the logs live and run Xerg there
72
+ - Or point Xerg at exported files directly with flags
73
+
74
+ ## Default paths
75
+
76
+ By default, Xerg checks:
77
+
78
+ - `/tmp/openclaw/openclaw-*.log`
79
+ - `~/.openclaw/agents/*/sessions/*.jsonl`
80
+
81
+ Use explicit paths when needed:
82
+
83
+ ```bash
84
+ xerg audit --log-file /path/to/openclaw.log
85
+ xerg audit --sessions-dir /path/to/sessions
86
+ ```
87
+
51
88
  ## What the audit shows
52
89
 
53
90
  - Total spend by workflow and model, in dollars
@@ -59,3 +96,8 @@ xerg audit --since 24h --compare
59
96
  ## Privacy
60
97
 
61
98
  Xerg v0 stores economic metadata and audit summaries locally. It does not store prompt or response content.
99
+
100
+ ## Pilot and support
101
+
102
+ - Pilot: [xerg.ai/pilot](https://xerg.ai/pilot)
103
+ - Support: `query@xerg.ai`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xerg/cli",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Audit OpenClaw agent spend, waste, and before/after improvements.",
5
5
  "keywords": ["ai", "agents", "finops", "llm", "openclaw", "cost", "cli"],
6
6
  "homepage": "https://xerg.ai",