返回顶部
s

skill-cost

>

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

skill-cost

# 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 bash ~/.openclaw/workspace/skills/skill-cost/skill-cost.sh report ``` Last 7 days: ```bash bash ~/.openclaw/workspace/skills/skill-cost/skill-cost.sh report --days 7 ``` Since a specific date: ```bash bash ~/.openclaw/workspace/skills/skill-cost/skill-cost.sh report --since 2026-03-01 ``` JSON output: ```bash bash ~/.openclaw/workspace/skills/skill-cost/skill-cost.sh report --format json ``` Top skills by cost: ```bash bash ~/.openclaw/workspace/skills/skill-cost/skill-cost.sh ranking ``` Detail for a specific skill: ```bash bash ~/.openclaw/workspace/skills/skill-cost/skill-cost.sh detail poe-connector ``` Compare two skills: ```bash 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)

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

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

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

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

通过命令行安装

skillhub install skill-cost-1776189635

下载 Zip 包

⬇ 下载 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
返回顶部