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

token-manager

kelegele द्वारा

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

संक्षिप्त

Universal LLM Token Manager - Monitor usage and provide cost-saving recommendations for Kimi, OpenAI, Anthropic.

विवरण

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

Tracks LLM API token usage and costs across providers including Kimi/Moonshot, OpenAI, Anthropic, Gemini, and local Ollama models. Runs scheduled balance checks via cron, records cross-session spending patterns, and outputs cost-saving recommendations based on context usage and model selection.

Direct API balance querying for Kimi/Moonshot and local session recording means you get actual numbers rather than estimates scraped from provider dashboards.

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

  • Checking how many tokens a session consumed before closing
  • Setting hourly alerts when Moonshot balance drops below a threshold
  • Comparing GPT-4o vs GPT-4o-mini costs for a given workload
  • Generating a weekly spending report across multiple LLM providers
  • Deciding whether to disable reasoning mode on a small task to cut costs

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

इनपुट

User asks: check my current token usage and get recommendations

एजेंट
  1. 1

    Runs manager.js report with current session token counts, context window usage, and reasoning state

  2. 2

    Queries Moonshot API for live account balance

  3. 3

    Evaluates context usage thresholds and reasoning mode status against recommendation rules

  4. 4

    Outputs cost-saving suggestions such as compacting context or switching to a cheaper model

आउटपुट

Session report showing tokens in/out, estimated cost, remaining balance, and actionable recommendations like '/compact' or switching to kimi-k2.5

आवश्यकताएँ

  • MOONSHOT_API_KEY environment variable (required for Kimi/Moonshot balance queries)
  • OPENAI_API_KEY environment variable (optional, for OpenAI usage tracking)
  • ANTHROPIC_API_KEY environment variable (optional, for Anthropic usage tracking)

इंस्टॉलेशन

clawhub install kelegele/token-manager

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

लिंक