🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

OpenClaw Token Usage

by @lujohn74

Inspect token usage from local OpenClaw transcripts across a specified time range. Use when the user asks how many tokens were consumed in OpenClaw, GitHub C...

Versionv1.2.0
πŸ’‘ Examples

Run:

python3 ~/.openclaw/workspace/skills/openclaw-token-usage/scripts/report_openclaw_token_usage.py \
  --from '2026-03-14' \
  --to '2026-03-16' \
  --tz 'UTC+8'

Default output includes:

  • total usage
  • daily Γ— agent breakdown
  • agent totals
  • model totals
  • Optional additions:

  • --top-sessions 10 for Top N session ranking
  • --csv-dir ~/.openclaw/workspace/output/token-usage-csv for CSV exports
  • --format json for structured output including session totals
  • --format markdown for a ready-to-share report
  • View on ClawHub
    TERMINAL
    clawhub install openclaw-token-usage

    πŸ§ͺ Use this skill with your agent

    Most visitors already have an agent. Pick your environment, install or copy the workflow, then run the smoke-test prompt above.

    πŸ” Can't find the right skill?

    Search 60,000+ AI agent skills β€” free, no login needed.

    Search Skills β†’