कंटेंट पर जाएँ
TakoAPI
स्किल्स पर वापस

claude-usage-cli

cyberash-dev द्वारा

Browser & Automation
855clawskills.sh द्वारा बताए गए डाउनलोड
0व्यूज़
0 लाइकइस स्किल को लाइक करने के लिए साइन इन करें
—अभी तक कोई रेटिंग नहीं
आपकी रेटिंग

संक्षिप्त

Query Claude API usage and cost reports from the command line.

विवरण

यह स्किल क्या करती है

CLI tool for querying Anthropic Admin API usage and cost reports from the terminal. Stores the Admin API key in macOS Keychain. Outputs data as formatted tables or JSON. Note: this package is deprecated; claude-cost-cli is the maintained replacement.

Storing credentials in macOS Keychain avoids plaintext API key files that other CLI tools often require.

इसे कब इस्तेमाल करें

  • Check daily token spend across Claude models
  • Pull last 30 days of cost data into a script
  • Filter usage by specific API key IDs
  • Get hourly granularity on a busy billing period
  • Verify total monthly spend before invoice arrives

उदाहरण वर्कफ़्लो

इनपुट

User asks: how much did I spend on Claude last month?

एजेंट
  1. 1

    Run claude-usage config set-key to store Admin API key in Keychain

  2. 2

    Run claude-usage cost --period 30d to fetch last 30 days of cost data

  3. 3

    Review table output showing Date, Description, Model, Amount (USD), Token Type, and Tier

  4. 4

    Run claude-usage cost --period 30d --sum to get a single total figure

आउटपुट

Table of daily cost breakdown by model plus a total USD figure for the past 30 days

आवश्यकताएँ

  • Anthropic Admin API key (sk-ant-admin...) from Claude Console → Settings → Admin Keys
  • macOS (Keychain storage is macOS-only)

इंस्टॉलेशन

clawhub install cyberash-dev/claude-usage-cli

CLI कमांड चलाएँ, या प्रॉम्प्ट को Claude Code, Cursor, Codex या जो भी कोडिंग एजेंट आप इस्तेमाल करते हैं उसमें पेस्ट करें।

लिंक