← 返回
效率工具 中文

Skill Cost

Track per-skill token usage and costs from OpenClaw session logs. Use when user asks about skill-level spending, which skill costs the most, or wants a per-s...
追踪OpenClaw会话日志中各技能的Token用量与成本。当用户询问技能级消费、最高成本技能或需要分技能明细时使用。
dzwalker
效率工具 clawhub v0.1.0 1 版本 99835.3 Key: 无需
★ 1
Stars
📥 586
下载
💾 7
安装
1
版本
#latest

概述

Skill Cost — USE BASH TOOL

You MUST use the bash or shell tool to run these commands. No other method works.

Commands

Per-skill cost report:

bash ~/.openclaw/workspace/skills/skill-cost/skill-cost.sh report

Last 7 days:

bash ~/.openclaw/workspace/skills/skill-cost/skill-cost.sh report --days 7

Since a specific date:

bash ~/.openclaw/workspace/skills/skill-cost/skill-cost.sh report --since 2026-03-01

JSON output:

bash ~/.openclaw/workspace/skills/skill-cost/skill-cost.sh report --format json

Top skills by cost:

bash ~/.openclaw/workspace/skills/skill-cost/skill-cost.sh ranking

Detail for a specific skill:

bash ~/.openclaw/workspace/skills/skill-cost/skill-cost.sh detail poe-connector

Compare two skills:

bash ~/.openclaw/workspace/skills/skill-cost/skill-cost.sh compare poe-connector web-search

DO NOT

  • Do NOT use sessions_spawn — it will fail
  • Do NOT use browser — it will fail
  • Do NOT use any approach other than bash tool — only bash works

How It Works

  1. Scans OpenClaw session JSONL files at ~/.openclaw/agents/*/sessions/
  2. Parses assistant messages for tool calls and token usage
  3. Attributes token usage to skills by matching bash command paths and tool names
  4. Aggregates and reports per-skill costs with model and daily breakdowns

Notes

  • No API keys required — reads directly from local session files
  • No external Python dependencies (stdlib only)
  • Skill attribution uses bash command paths and SKILL.md tool mappings
  • Tokens for multi-skill messages are proportionally split across skills
  • Usage not attributable to any skill is categorized as (built-in) or (conversation)

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-03-29 16:52 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

productivity

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 437 📥 147,170
productivity

Weather

steipete
获取当前天气和预报(无需API密钥)
★ 444 📥 226,104
ai-intelligence

Poe Connector

dzwalker
通过运行bash命令访问Poe.com AI模型。当用户提到Poe、想要使用Poe模型或通过Poe生成媒体时使用。
★ 0 📥 662