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

token-watch

vedantsingh60 द्वारा

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

संक्षिप्त

**Track, analyze, and optimize token usage and costs across AI providers.

विवरण

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

TokenWatch is a local Python library for tracking token usage and costs across AI providers. It records API calls, calculates costs against a pricing table of 41 models across 10 providers, and fires budget alerts when configured thresholds are crossed. All usage data stays on your machine with no external connections.

Unlike provider billing dashboards, it captures per-call cost data in real time and surfaces ranked optimization suggestions before the monthly bill arrives.

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

  • Checking daily AI spend before a budget limit is reached
  • Comparing model costs for a specific input/output token count before choosing a model
  • Getting automatic alerts when monthly spending hits a set percentage of budget
  • Identifying which tasks or models are driving the highest per-call costs
  • Estimating cost before running a large batch of API calls

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

इनपुट

User asks: How much did I spend on Claude this week and how can I reduce it?

एजेंट
  1. 1

    Calls get_spend_by_model(period="week") to retrieve spending broken down by model

  2. 2

    Calls get_spend_by_provider(period="week") to see Anthropic's share of total spend

  3. 3

    Calls get_optimization_suggestions() to generate ranked cost-reduction tips with estimated monthly savings

  4. 4

    Calls format_dashboard() to render a visual summary with budget progress bars

आउटपुट

Weekly spend by model alongside optimization suggestions, such as swapping Claude Opus for Sonnet on non-reasoning tasks to save an estimated $8.20/month

इंस्टॉलेशन

clawhub install vedantsingh60/token-watch

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

लिंक