openclaw Source
The openclaw adapter reads OpenClaw agent transcripts:
~/.openclaw/agents/**/*.jsonl- legacy homes:
~/.clawdbot/agents,~/.moltbot/agents,~/.moldbot/agents
llm-usage daily --source openclawllm-usage daily --source-dir openclaw=/path/to/.openclaw/agentsParsing behavior
Section titled “Parsing behavior”- Reads transcript JSONL rows recursively in deterministic path order.
- Uses
sessionrows forsessionId, timestamp, andcwd. - Tracks provider/model changes as later transcript rows update runtime state.
- Emits only assistant messages with usage.
- Preserves explicit
usage.costvalues when present. - Falls back to file mtime when an assistant usage row has no message timestamp.
- Ignores non-usage user/system/tool rows and OpenClaw delivery-mirror assistant rows.