返回顶部
c

cost-tracker

AI spending monitor — track costs across OpenRouter models with daily, weekly, and monthly reports. Budget limits with alerts, per-model analysis, savings recommendations, and historical tracking via SQLite. Use for controlling AI costs and optimizing model selection.

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

cost-tracker

# 💰 Cost Tracker AI spending monitor for OpenRouter. Track per-model costs, get daily/weekly/monthly reports, set budget alerts, and get savings recommendations. ## Usage ```bash # Fetch and store current usage from OpenRouter python3 {baseDir}/scripts/cost_tracker.py fetch # Show spending reports python3 {baseDir}/scripts/cost_tracker.py report --period daily python3 {baseDir}/scripts/cost_tracker.py report --period weekly python3 {baseDir}/scripts/cost_tracker.py report --period monthly # Per-model breakdown python3 {baseDir}/scripts/cost_tracker.py models # Set monthly budget + check status python3 {baseDir}/scripts/cost_tracker.py budget --set 25.00 python3 {baseDir}/scripts/cost_tracker.py budget --check # Savings recommendations python3 {baseDir}/scripts/cost_tracker.py savings # Export data as JSON python3 {baseDir}/scripts/cost_tracker.py export --format json python3 {baseDir}/scripts/cost_tracker.py export --format csv ``` ## Features - **Live Usage Fetch** — Pulls real spending data from OpenRouter's `/api/v1/auth/key` endpoint - **Per-Model Tracking** — See which models cost you the most - **Period Reports** — Daily, weekly, monthly summaries with trends - **Budget Alerts** — Set limits and get warned at 80% threshold - **Savings Tips** — Identifies cheaper models that could handle the same workload - **Historical Data** — SQLite storage for long-term trend analysis - **Export** — JSON or CSV export for spreadsheets ## Data Storage All data stored in `{baseDir}/data/cost_tracker.db` (SQLite). ## Credits Built by [M. Abidi](https://www.linkedin.com/in/mohammad-ali-abidi) | [agxntsix.ai](https://www.agxntsix.ai) [YouTube](https://youtube.com/@aiwithabidi) | [GitHub](https://github.com/aiwithabidi) Part of the **AgxntSix Skill Suite** for OpenClaw agents. 📅 **Need help setting up OpenClaw for your business?** [Book a free consultation](https://cal.com/agxntsix/abidi-openclaw)

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 cost-tracker-1776419987 技能

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

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

通过命令行安装

skillhub install cost-tracker-1776419987

下载 Zip 包

⬇ 下载 cost-tracker v1.0.0

文件大小: 5.82 KB | 发布时间: 2026-4-17 19:52

v1.0.0 最新 2026-4-17 19:52
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

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

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

p2p_official_large
返回顶部