Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Generates token usage, cost, cache, and tool-calls-per-API-call reports from LingTai logs using litellm model pricing.
Use this skill ↓27% 82%+55 ptsof test cases passed
Passed 18 of 22 test cases with the skill, and 6 of 22 without it.
3 of 3 safety checks passed
Not used yet
Network-wide token cost analysis powered by litellm's model pricing database (2700+ models), plus runtime-event trend analysis for tool calls per API call.
Run the bundled cost script:
~/.lingtai-tui/runtime/venv/bin/python3 ~/.lingtai-tui/utilities/swiss-knife/reference/token-usage/scripts/cost_report.py /path/to/.lingtai
Cost-report optional flags:
--json — output as JSON instead of table--by-model — group by model instead of by agent--since YYYY-MM-DD — only count entries after this date--top N — show only top N agents (default: all)--custom-pricing FILE — load custom pricing overrides from JSONUse this when the human asks for “tool calls per API call”, “tools per API call”, “agentic intensity”, or how tool-heavy the local LingTai network has been over time. The script reads LingTai logs/events.jsonl files, not token_ledger.jsonl, because it needs runtime event IDs.
~/.lingtai-tui/runtime/venv/bin/python3 ~/.lingtai-tui/utilities/swiss-knife/reference/token-usage/scripts/tool_calls_per_api_call_trend.py \
/path/to/project/.lingtai \
--days 5 \
--timezone America/Los_Angeles \
--model gpt-5.5
Optional flags:
--out-prefix PREFIX — write PREFIX.md, PREFIX.json, and PREFIX.csv--model MODEL — also emit a model-specific table for an exact model name; repeatable--include-daemons — include daemon event logs instead of excluding themMetric definitions:
type == "llm_response"), deduplicated by (events log path, api_call_id).Next to this one in the catalogue, plus more from the same author.