返回顶部
t

token-tracker

>

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

token-tracker

# Token Tracker **Author:** zruler **Blog:** https://www.zruler.fun/ **Email:** zruler@163.com **Feedback:** 有问题请及时反馈!Issues and suggestions welcome. Report token usage and estimated cost for the current conversation. ## When to Trigger 1. **User asks** — "token用了多少"、"花了多少钱"、"cost"、"usage" 等 2. **Long conversation ends** — 复杂任务完成后主动报告 3. **User requests summary** — 明确要求看用量统计 ## Quick Usage Call `session_status` to get current session metrics, then format a user-friendly summary. ## Response Format After getting session_status, report in this format: ``` 📊 本次对话用量 🧮 Tokens: {input} 入 / {output} 出 💵 费用: ${cost} 🗄️ 缓存: {cache_percent}% 命中 ({cached} 缓存 / {new} 新) 📚 上下文: {used}/{max} ({percent}%) ``` ## Model Pricing Reference (USD per 1M tokens) | Model | Input | Output | Cached Input | |-------|-------|--------|--------------| | claude-sonnet-4-20250514 | $3 | $15 | $0.30 | | claude-opus-4-20250514 | $15 | $75 | $1.50 | | gpt-4o | $2.50 | $10 | $1.25 | | gpt-4o-mini | $0.15 | $0.60 | $0.075 | | o1 | $15 | $60 | $7.50 | | o3-mini | $1.10 | $4.40 | $0.55 | | gemini-2.0-flash | $0.10 | $0.40 | $0.025 | | gemini-2.5-pro | $1.25-$2.50 | $10-$15 | - | | deepseek-chat | $0.27 | $1.10 | $0.07 | | deepseek-reasoner | $0.55 | $2.19 | $0.14 | Note: Actual cost from session_status is authoritative. This table is for reference only. ## Usage Tips - For long conversations, suggest compaction if context > 80% - Note cache hit rate — high cache = lower actual cost - If user asks for historical usage, explain this tracks current session only

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 token-tracker-1776080304 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 token-tracker-1776080304 技能

通过命令行安装

skillhub install token-tracker-1776080304

下载 Zip 包

⬇ 下载 token-tracker v1.3.0

文件大小: 1.83 KB | 发布时间: 2026-4-14 14:16

v1.3.0 最新 2026-4-14 14:16
Simplified trigger: user asks or end of long conversations

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

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

p2p_official_large
返回顶部