← 返回 Skills 市场
luxiang79

模型消耗统计

作者 luxiang79 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
101
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install model-usage-stats
功能描述
模型消耗统计技能,用于统计和展示不同会话、不同模型的 token 使用量、成本统计和消耗报告,通过飞书消息卡片进行可视化展示。当用户请求查看模型消耗、token 统计、成本分析或消耗报告时使用。
安全使用建议
This skill appears internally consistent and low-risk, but verify two operational details before enabling: (1) Confirm what data the platform 'session_status'/'sessions_list' APIs expose (they may include full conversation text); if they include sensitive content, restrict who can invoke the skill or filter/redact fields before reporting. (2) Confirm how the 'message' tool posts to Feishu (which Feishu account/app is used) and that no unintended data is shared externally. Also check that the model pricing numbers match your billing rates if you rely on the cost calculations. If you want extra safety, allow this skill only for manual/user-invoked reports (disable autonomous invocation where possible) and review generated card previews before sending to external channels.
功能分析
Type: OpenClaw Skill Name: model-usage-stats Version: 1.0.0 The skill bundle 'model-usage-stats' is designed to track and report LLM token usage and costs. It provides instructions for an AI agent to use standard OpenClaw tools (session_status, sessions_list, message) to aggregate session data and format it into Feishu message cards. There is no evidence of data exfiltration, malicious execution, or harmful prompt injection.
能力评估
Purpose & Capability
Name/description match the runtime instructions: the SKILL.md only describes collecting session usage (via session_status, sessions_list, sessions_history), computing token/cost metrics, and sending formatted Feishu cards. No unrelated credentials, binaries, or installs are requested.
Instruction Scope
Instructions are scoped to reading session data and producing reports sent through the platform 'message' tool (Feishu cards). This is appropriate, but it assumes the 'session_*' tools supply accurate token details and that the 'message' tool is authorized to post to Feishu; verify those tool permissions and what session data they expose (conversation contents may be included).
Install Mechanism
No install spec and no code files — instruction-only skill. Nothing will be downloaded or written to disk by this skill itself.
Credentials
The skill declares no environment variables, credentials, or config paths. That is proportionate for a reporting skill that relies on platform-provided session and messaging tools.
Persistence & Privilege
always is false and the skill is user-invocable (normal). It does not request persistent/enforced presence or modify other skills. Note: the platform default allows autonomous invocation, but that is not unique to this skill and always:false reduces continuous privilege.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install model-usage-stats
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /model-usage-stats 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of the "model-usage-stats" skill. - Provides token usage, cost statistics, and consumption reports by session and model. - Visualizes data with Feishu (Lark) message cards (tables, summaries, charts). - Supports queries for current session usage, historical session stats, model breakdowns, and exportable reports. - Includes sample message templates, typical use cases, and reference pricing for supported models.
元数据
Slug model-usage-stats
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

模型消耗统计 是什么?

模型消耗统计技能,用于统计和展示不同会话、不同模型的 token 使用量、成本统计和消耗报告,通过飞书消息卡片进行可视化展示。当用户请求查看模型消耗、token 统计、成本分析或消耗报告时使用。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 101 次。

如何安装 模型消耗统计?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install model-usage-stats」即可一键安装,无需额外配置。

模型消耗统计 是免费的吗?

是的,模型消耗统计 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

模型消耗统计 支持哪些平台?

模型消耗统计 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 模型消耗统计?

由 luxiang79(@luxiang79)开发并维护,当前版本 v1.0.0。

💬 留言讨论