返回顶部
s

skill-cost技能消耗

>

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.1.0
安全检测
已通过
302
下载量
免费
免费
1
收藏
概述
安装方式
版本历史

skill-cost

技能名称: skill-cost
详细描述:

技能成本 — 使用 Bash 工具

你必须使用 bash 或 shell 工具来运行这些命令。其他方法均无效。

命令

按技能统计成本报告:
bash
bash ~/.openclaw/workspace/skills/skill-cost/skill-cost.sh report

最近7天:
bash
bash ~/.openclaw/workspace/skills/skill-cost/skill-cost.sh report --days 7

自指定日期起:
bash
bash ~/.openclaw/workspace/skills/skill-cost/skill-cost.sh report --since 2026-03-01

JSON 格式输出:
bash
bash ~/.openclaw/workspace/skills/skill-cost/skill-cost.sh report --format json

按成本排名技能:
bash
bash ~/.openclaw/workspace/skills/skill-cost/skill-cost.sh ranking

查看特定技能详情:
bash
bash ~/.openclaw/workspace/skills/skill-cost/skill-cost.sh detail poe-connector

比较两个技能:
bash
bash ~/.openclaw/workspace/skills/skill-cost/skill-cost.sh compare poe-connector web-search

禁止事项

  • - 不要使用 sessions_spawn — 会失败
  • 不要使用浏览器 — 会失败
  • 不要使用除 bash 工具以外的任何方法 — 只有 bash 有效

工作原理

  1. 1. 扫描 ~/.openclaw/agents/*/sessions/ 路径下的 OpenClaw 会话 JSONL 文件
  2. 解析助手消息中的工具调用和令牌使用情况
  3. 通过匹配 bash 命令路径和工具名称,将令牌使用归因到对应技能
  4. 按技能汇总并报告成本,包含模型和每日细分

备注

  • - 无需 API 密钥 — 直接从本地会话文件读取
  • 无需外部 Python 依赖(仅使用标准库)
  • 技能归因使用 bash 命令路径和 SKILL.md 工具映射
  • 多技能消息中的令牌按比例分配到各个技能
  • 无法归因到任何技能的使用量被归类为(内置)或(对话)

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 skill-cost-1776189635 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 skill-cost-1776189635 技能

通过命令行安装

skillhub install skill-cost-1776189635

下载

⬇ 下载 skill-cost v0.1.0(免费)

文件大小: 13.59 KB | 发布时间: 2026-4-15 10:54

v0.1.0 最新 2026-4-15 10:54
Initial release of skill-cost: track per-skill token usage and costs.

- Provides bash-based tools for detailed skill spending and usage breakdowns.
- Supports per-skill reports, top cost rankings, date filtering, and skill comparisons.
- Analyzes OpenClaw session logs and attributes token usage to individual skills.
- No API keys or external dependencies required; works directly from local files.
- Only the bash tool is supported—other execution methods are not compatible.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部