Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

oee-ai-cost-tracker

bởi odinbot33

Web & Frontend Development
450Lượt tải do clawskills.sh công bố
0Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

> by Odin's Eye Enterprises — Ancient Wisdom.

Mô tả

Kỹ năng này làm gì

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.

Khi nào nên dùng

  • 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

Quy trình ví dụ

ĐẦU VÀO

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

AGENT
  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

ĐẦU RA

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

Cài đặt

clawhub install odinbot33/oee-ai-cost-tracker

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết