Skill

Owner: Fury · Team: Fury · Source: ~/.openclaw/workspace-fury/skills/cost-ledger/SKILL.md

Track every agent’s activity and cost, produce end-of-day reports, and maintain the Google-Sheets tables on Drive. Use for daily reports, “what did do / cost”, weekly spend, or “which tools are unused”.


Playbook (mirrored from disk)

Cost Ledger

The numbers are DERIVED from logs by a deterministic collector — never fabricate them.

Refresh + publish

bash ~/.openclaw/scripts/fury-daily-report.sh    # rebuild ledger + upload CSVs to Drive

Outputs (local + gdrive:Fury-Reports/):

  • agent-activity.csv — one row per (date, agent, session): turns, model, tokens, est_cost, tools, provider
  • daily-summary.csv — by-date pivot: active agents, turns, tokens, est_cost, audio chars
  • daily-summaries/day-YYYY-MM-DD.csv — per-day snapshot

Query

L=~/.openclaw/workspace-fury/ledger
grep "^$(date +%F)," $L/agent-activity.csv          # today, all agents
grep ",phoenix," $L/agent-activity.csv | tail        # one agent's history
tail -7 $L/daily-summary.csv                         # last 7 days

Sum a column with awk (e.g. est_cost = field 10 in detail, field 5 in summary).

Report rules

  • Separate subscription/included (Codex tokens — report count + context %, **
    (ElevenLabs audio, Claude API).
  • Always surface: per-agent activity, day total, tool usage, unused tools (retire candidates),
    anomalies (spikes, failing jobs).
  • Tables for Yossef: gdrive:Fury-Reports/ (open the CSVs with Google Sheets).
  • Pricing is tunable at ledger/pricing.json — adjust if rates change.