汎用DevOps・インフラ⭐ リポ 0品質スコア 45/100
anthropic-usage
Anthropic APIの使用量とコストを任意の期間で確認できます。ユーザーがAPIコスト、使用量、支出、またはAnthropicアカウントの課金について質問した場合に使用します。「先週」「昨日」「2025年1月」などの自然言語表現や、特定の日付、日付範囲に対応しています。
description の原文を見る
Check Anthropic API usage and costs for any time period. Use when the user asks about API costs, usage, spending, or billing for their Anthropic account. Supports natural language periods like "last week", "yesterday", "january 2025", specific dates, or date ranges.
SKILL.md 本文
注意: このスキルのライセンスは ライセンス未確認 です。本サイトでは本文プレビューのみを表示しています。利用前に GitHub の原本でライセンス条件をご確認ください。
Anthropic API 使用量
Anthropic Admin API からコストレポートを取得します。
前提条件
ANTHROPIC_ADMIN_KEYを~/.envに設定する必要があります
使用方法
スクリプトを期間を指定して実行します:
~/.claude/skills/anthropic-usage/scripts/get_cost.py "<period>"
サポートされている期間フォーマット
| フォーマット | 例 | 説明 |
|---|---|---|
| 相対週 | last week, this week | 7日間のピリオド |
| 相対月 | last month, this month | カレンダー月 |
| 相対日 | yesterday, today | 単一日 |
| 直近 N 日 | last 3 days, last 30 days | ローリングウィンドウ |
| 特定日付 | 2026-02-01 | 単一の UTC 日 |
| 日付範囲 | 2026-01-01 to 2026-01-31 | 含括範囲 |
| 月名 | january, feb 2025 | 完全 |
...
詳細情報
- 作者
- shreyasgm
- ライセンス
- 不明
- 最終更新
- 2026/2/8
Source: https://github.com/shreyasgm/anthropic-usage-skill / ライセンス: 未指定