\ud83d\udcb0 Cost Tracker — AI费用监控
v1.0.0实时追踪 OpenRouter 各模型调用费用,自动生成日/周/月账单;支持预算上限与超支告警,按模型维度分析支出,帮你发现省钱空间。
0· 750·7 当前·7 累计
安全扫描
OpenClaw
安全
high confidenceThe skill's code, runtime instructions, and required environment variable (OPENROUTER_API_KEY) are coherent with its stated purpose of tracking OpenRouter usage and producing reports; nothing in the package asks for unrelated credentials or contacts unexpected endpoints.
评估建议
This skill appears to do what it says: it uses your OPENROUTER_API_KEY to query OpenRouter for usage and models, stores results locally in data/cost_tracker.db, and prints reports. Before installing, confirm you trust the skill source (homepage: agxntsix.ai) and are comfortable giving the skill your OpenRouter API key. Note the DB will contain raw JSON from the /auth/key response (account/usage data) — protect that file. The script requires the Python requests library; consider running it in an ...详细分析 ▾
✓ 用途与能力
Name/description (OpenRouter cost tracking) align with the code and SKILL.md: the script calls OpenRouter endpoints (/api/v1/auth/key and /api/v1/models), stores data in a local SQLite DB, produces reports, and provides savings recommendations. Required env var is the OpenRouter API key, which is appropriate.
✓ 指令范围
SKILL.md instructs running the included Python script with subcommands (fetch, report, models, budget, savings, export). The script operates on a local data directory and only queries OpenRouter. It does store raw JSON of the /auth/key response in the DB (expected for tracking usage) but does not reference unrelated system files or other environment variables.
✓ 安装机制
No install spec is provided (instruction-only + included script). The only third‑party library used is requests; missing this library causes the script to exit with a clear message asking the user to pip install requests. No arbitrary downloads or extracted archives are present.
✓ 凭证需求
Only OPENROUTER_API_KEY is required and is used to authenticate to OpenRouter. No additional credentials, secrets, or unrelated env vars are requested. The script stores account/usage JSON locally in data/cost_tracker.db, which is proportional to the stated purpose.
✓ 持久化与权限
The skill does not request persistent platform privileges (always:false). It writes only to its own data directory (./data/cost_tracker.db) and creates local SQLite tables; it does not modify other skills or global agent configuration.
安全有层次,运行前请审查代码。
运行时依赖
无特殊依赖
版本
latestv1.0.02026/2/18
Initial release of cost-tracker — an AI spending monitor for OpenRouter. - Track AI costs per model with daily, weekly, and monthly reports - Set monthly budget limits and receive alerts at 80% usage - Analyze spending across models with historical tracking in SQLite - Get savings recommendations to optimize model selection - Export usage data as JSON or CSV for further analysis
● 无害
安装命令
点击复制官方npx clawhub@latest install cost-tracker
镜像加速npx clawhub@latest install cost-tracker --registry https://cn.longxiaskill.com