📊 Usage Report
This is Octo’s thin wrapper around the shared usage-report skill in openclaw-hub.
- Shared implementation:
<host-path> - Octo-specific output dir:
<host-path> - Delivery target:
#root - Daily label enrichment cron:
usage-enrich-sessions - Weekly report cron:
usage-weekly-report
What lives where
Shared in openclaw-hub
These files are canonical and reusable across OpenClaw installs:
scripts/usage_summary.pyscripts/generate_usage_report.shassets/template.html- generic
SKILL.md+README.md
Local to Octo
These stay Octo-specific:
- report output under
agents/root/reports/api-cost/ - the
usage-enrich-sessionsandusage-weekly-reportcron jobs - the Discord destination (
#root) - any local env-var overrides
How Octo runs it
-
Refresh usage CSVs:
-
Generate the Markdown report:
- Render to HTML with
md_to_html - Render to PDF with
html_to_pdf - Post the PDF to
#root - Commit and push
agents/root/reports/api-cost/
Report contents
The generated report includes:
- total weekly cost, daily average, monthly projection
- token breakdowns (input, output, cache read, cache write, total)
- interactive vs automated spend
- cost by agent
- per-session and cron breakdowns
- daily trend
- model split
- recommendations
- pricing reference
Token visibility
The report now surfaces token counts in the summary and in the per-agent and cron summary tables, not just cost.
Session label enrichment
Session labels for the breakdown sections come from:
session-labels.csvwritten daily byenrich_sessions.py- inline heuristics in
usage_summary.pyfor any unlabeled sessions
That daily enrichment is why usage-enrich-sessions runs before the weekly report.
Public docs / website
The public website entry for this skill is generated from this wrapper and points back to the shared source in openclaw-hub.
Source: openclaw-hub