跳到正文
TakoAPI
返回技能列表

oee-ai-cost-tracker

由 odinbot33 提供

Web & Frontend Development
450下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

> by Odin's Eye Enterprises — Ancient Wisdom.

描述

该技能的功能

Tracks AI API usage by logging each call with model, token counts, and cost to a JSONL file. Provides CLI reports broken down by model, time period, or use case, and suggests cheaper model alternatives based on task complexity.

Requires no external service or API key, so all cost data stays local and is queryable instantly without a dashboard login.

何时使用

  • Checking total AI spend for the month
  • Comparing costs across Claude, GPT, and other models
  • Auditing which tasks consume the most tokens
  • Deciding when to swap a model for a cheaper one
  • Generating weekly spend summaries for a team

示例工作流

输入

User asks: show AI spending for the last 7 days by model

智能体
  1. 1

    Run python report.py --days 7 --by-model

  2. 2

    Parse the JSONL log for entries within the date range

  3. 3

    Aggregate token counts and costs per model

  4. 4

    Format results into a spend breakdown table

输出

A per-model cost summary covering the past 7 days with token totals and dollar amounts

安装

clawhub install odinbot33/oee-ai-cost-tracker

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接