← All skills
Tencent SkillHub · Other

CostLens

OpenClaw 成本和 Token 使用监控工具。从事件日志计算模型调用成本,支持预算告警和多维度报表(按模型/按天)。

skill openclawclawhub Free
0 Downloads
0 Stars
0 Installs
0 Score
High Signal

OpenClaw 成本和 Token 使用监控工具。从事件日志计算模型调用成本,支持预算告警和多维度报表(按模型/按天)。

⬇ 0 downloads ★ 0 stars Unverified but indexed

Install for OpenClaw

Quick setup
  1. Download the package from Yavira.
  2. Extract the archive and review SKILL.md first.
  3. Import or place the package into your OpenClaw setup.

Requirements

Target platform
OpenClaw
Install method
Manual import
Extraction
Extract archive
Prerequisites
OpenClaw
Primary doc
SKILL.md

Package facts

Download mode
Yavira redirect
Package format
ZIP package
Source platform
Tencent SkillHub
What's included
SKILL.md, bin/costlens.js, fixtures/events.json, package.json, src/index.js, test.js

Validation

  • Use the Yavira download entry.
  • Review SKILL.md after the package is downloaded.
  • Confirm the extracted package contains the expected setup assets.

Install with your agent

Agent handoff

Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.

  1. Download the package from Yavira.
  2. Extract it into a folder your agent can access.
  3. Paste one of the prompts below and point your agent at the extracted folder.
New install

I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.

Upgrade existing

I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.

Trust & source

Release facts

Source
Tencent SkillHub
Verification
Indexed source record
Version
1.0.0

Documentation

ClawHub primary doc Primary doc: SKILL.md 6 sections Open source page

CostLens

OpenClaw 成本和 Token 使用监控工具。

功能

monitor: 实时监控成本和预算状态 report: 导出成本报表 budget check: 预算检查,超支时返回非零退出码

支持模型费率

模型Input/1kOutput/1kgpt-4.1$0.01$0.03gpt-4o-mini$0.00015$0.0006claude-3-5-sonnet$0.003$0.015default$0.002$0.008 事件可覆盖默认费率:inputCostPer1k, outputCostPer1k

事件格式

[ { "model": "gpt-4.1", "promptTokens": 1500, "completionTokens": 800, "timestamp": "2026-02-26T10:00:00Z" } ]

用法

# 监控(表格输出) node bin/costlens.js monitor --events ./events.json --budget 10.00 --threshold 80 # 预算检查(超支时退出码 2) node bin/costlens.js budget check --events ./events.json --budget 5.00 --format json # 导出报表 node bin/costlens.js report --events ./events.json --out ./reports/cost-report.json

输出字段

总调用次数、总 Token 数、总成本 按模型分组(调用次数、Token、成本) 按天分组的成本趋势 预算使用率、告警级别(ok/warning/critical)

Category context

Long-tail utilities that do not fit the current primary taxonomy cleanly.

Source: Tencent SkillHub

Largest current source with strong distribution and engagement signals.

Package contents

Included in package
3 Scripts2 Config1 Docs
  • SKILL.md Primary doc
  • bin/costlens.js Scripts
  • src/index.js Scripts
  • test.js Scripts
  • fixtures/events.json Config
  • package.json Config