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

claude-cost-cli

cyberash-dev द्वारा

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

संक्षिप्त

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

विवरण

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

CLI tool for querying Anthropic Admin API usage and cost data. Stores the Admin API key in macOS Keychain. Outputs tables or JSON for scripting.

Avoids logging into the Claude Console just to check usage, and outputs JSON for piping into scripts or dashboards.

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

  • Check daily Claude API spend before end of billing cycle
  • Filter token usage by model to compare costs across deployments
  • Export monthly cost report as JSON for expense tracking
  • Monitor hourly usage spikes during high-traffic periods
  • Audit which API keys are consuming the most tokens

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

इनपुट

User asks: show me my Claude API costs for January 2026 grouped by workspace

एजेंट
  1. 1

    Run claude-cost config set-key to store the Admin API key in macOS Keychain

  2. 2

    Run claude-cost cost --from 2026-01-01 --to 2026-01-31 --group-by workspace_id

  3. 3

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

  4. 4

    Optionally rerun with --json flag to pipe results into another tool

आउटपुट

Cost breakdown table for January 2026, one row per workspace entry

आवश्यकताएँ

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

इंस्टॉलेशन

clawhub install cyberash-dev/claude-cost-cli

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

लिंक