csusage-adapter-openclaw 0.0.2

Coding agent CLI usage reports (ccusage fork with Claude Science support)
docs.rs failed to build csusage-adapter-openclaw-0.0.2
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.

ccusage-adapter-openclaw

The OpenClaw adapter: it turns session JSONL files, including the tool's earlier names into the usage entries the reports render.

Owns

  • loader.rs — reading the source, dedupe, and date filtering.
  • parser.rs — raw record parsing, token mapping, and model naming.
  • paths.rs — environment variables, default directories, and file discovery.
  • report.rs — the JSON and table shapes where they differ from the shared ones.

Anything that is not specific to this source belongs in ccusage-core or ccusage-adapter-common instead.

Data source

  • ${OPENCLAW_DIR:-~/.openclaw}/**/*.jsonl, plus ~/.clawdbot, ~/.moltbot, and ~/.moldbot

Reads plain files through ccusage-adapter-common, which handles walking, size-balanced chunking, and ordered parallel reads.

Public surface

  • loader::load_entries
  • report::report_from_rows
  • report::summarize_entries
  • run

Depends on

  • ccusage-adapter-common
  • ccusage-cli
  • ccusage-core
  • jiff
  • serde
  • serde_json

Build layer

Built in the adapters Crane artifact layer; the layer compiles all adapters in one Cargo invocation, so they build concurrently.