跳到正文
TakoAPI
返回技能列表

openrouter-usage

由 rosseyre 提供

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

简介

Fetch real-time OpenRouter usage totals and historical per-model spend.

描述

该技能的功能

Fetches real-time and historical cost data from the OpenRouter API. Shows today, week, and month spend totals alongside a per-model breakdown of recent activity.

Gives CLI-accessible spend breakdowns without logging into the OpenRouter web dashboard.

何时使用

  • Checking how much you've spent on AI models today
  • Reviewing which models consumed the most budget last week
  • Monitoring monthly spend against your OpenRouter balance
  • Auditing per-model costs before a billing cycle closes
  • Comparing model spend across a recent project

示例工作流

输入

User asks: How much have I spent on OpenRouter this month and which models cost the most?

智能体
  1. 1

    Authenticate with OPENROUTER_API_KEY

  2. 2

    Fetch live totals from the /auth/key endpoint

  3. 3

    Fetch per-model activity for the past 7 days from the /activity endpoint using OPENROUTER_MGMT_KEY

  4. 4

    Rank models by spend

  5. 5

    Format results into a cost summary

输出

Today: $0.42 | Week: $3.18 | Month: $11.55 | Balance: $38.45 / $50.00 — Recent Models: gpt-4o: $4.12 (23 requests), claude-3-5-sonnet: $3.91 (18 requests)

前置要求

  • OPENROUTER_API_KEY from openrouter.ai
  • OPENROUTER_MGMT_KEY from openrouter.ai (optional, enables per-model breakdown)

安装

clawhub install rosseyre/openrouter-usage

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

链接