Anthropic Usage
/install anthropic-usage-report
Anthropic Usage Report Format
Design Principles
- Icons = signal importance only. Icons appear ONLY at the start of lines with key metrics the user needs to scan quickly. No decorative icons.
- Key metrics first. CLI %, cache %, high-output call count — these appear at line start with icons.
- No noise. No latency (ms), no success/error icons, no redundant breakdowns unless errors exist.
- Neutral labeling. High-output calls are flagged for review, not pre-judged as "should have used CLI" — the cause may be inefficiency, legitimate work, or missing CLI usage.
- Compact. Every line earns its place.
Report Template
Anthropic Usage — {date} ({time} CET)
══════════════════════════════════════════
Total: {total} calls ({errors} errors)
⚠️ CLI: {cli_pct}% / API: {api_pct}%
{agent_name}:
🗄️ {cache_pct}% cache ({cache_read} read / {cache_create} create)
Tokens: {total_in} in ({new_in} new) / {total_out} out
Cost: ~${cost}
──────────────────────────────────────────
CLI potential:
⚠️ {n}× inline work (>{threshold} out, {sum} tok, max {max})
{n}× standard ({low}-{threshold} out)
{n}× heartbeat (\x3C{low} out)
──────────────────────────────────────────
Total estimate: ~${total_cost}
Conditional Rules
- Error breakdown: Show
API: X (Y ok, Z err) | CLI: X (Y ok, Z err)ONLY when errors > 0 - CLI icon: ⚠️ when CLI \x3C 50%, ✅ when CLI >= 50%
- High output icon: ⚠️ when inline work calls > 0, ✅ (show "No inline work") when 0
- Model line: Show only if multiple models used
Icon Placement Rules
Icons appear ONLY on these lines, ALWAYS at line start:
⚠️or✅— CLI/API ratio🗄️— Cache rate⚠️or✅— Inline work count
NO icons on: header, totals, tokens, cost, heartbeat count, standard count, separator lines.
Language
Default language is English. To localize, edit LANG dict in scripts/format_report.py:
LANG = {
"total": "Total",
"calls": "calls",
"errors": "errors",
"cache": "cache",
"tokens": "Tokens",
"cost": "Cost",
"total_est": "Total estimate",
"cli_potential": "CLI potential",
"inline_work": "inline work",
"standard": "standard",
"heartbeat": "heartbeat",
"no_calls": "No API calls today.",
"no_inline": "No inline work",
}
Presets available in scripts/:
lang_cs.py— Czech / Čeština
Implementation
Reference implementation: scripts/format_report.py
To apply to an existing installation:
python3 scripts/patch_format.py /path/to/anthropic-report.py
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install anthropic-usage-report - 安装完成后,直接呼叫该 Skill 的名称或使用
/anthropic-usage-report触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Anthropic Usage 是什么?
Format for Anthropic API usage reports generated by anthropic-report.py. Use this skill when creating, modifying, or discussing the format of Anthropic proxy... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 94 次。
如何安装 Anthropic Usage?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install anthropic-usage-report」即可一键安装,无需额外配置。
Anthropic Usage 是免费的吗?
是的,Anthropic Usage 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Anthropic Usage 支持哪些平台?
Anthropic Usage 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Anthropic Usage?
由 kubiczech808(@kubiczech808)开发并维护,当前版本 v1.0.0。