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

openrouter-analytics

plgonzalezrx8 द्वारा

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

संक्षिप्त

Review OpenRouter usage, analytics, and troubleshooting data via API.

विवरण

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

Pulls usage and billing data from OpenRouter via its API. Covers account-level credit tracking, per-key consumption reporting, and request-level debugging by generation ID. Two API key types control access: a Management key for aggregate data, a standard API key for individual request logs.

Combines account-level management reporting and per-request debug detail in one CLI tool, replacing manual API calls or navigating the OpenRouter dashboard.

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

  • Reviewing daily OpenRouter spend over a custom date range
  • Identifying which API keys are consuming the most credits
  • Debugging a slow or failed request using its generation ID
  • Exporting monthly usage data to CSV for billing review
  • Checking remaining credits before hitting a spending limit

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

इनपुट

User asks: Which of my API keys spent the most on OpenRouter last month?

एजेंट
  1. 1

    Run activity --from 2026-02-01 --to 2026-02-28 --summary to get overall spend for the period

  2. 2

    Run keys --limit 50 --summary to list per-key usage and identify top consumers

  3. 3

    Run report --from 2026-02-01 --to 2026-02-28 --format markdown to generate a formatted summary

आउटपुट

A ranked breakdown of API keys with spend and request counts for the specified month

आवश्यकताएँ

  • OPENROUTER_MANAGEMENT_KEY environment variable (required for activity, credits, keys, and report commands)
  • OPENROUTER_API_KEY environment variable (required for the generation troubleshooting command)
  • OpenRouter account

इंस्टॉलेशन

clawhub install plgonzalezrx8/openrouter-analytics

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

लिंक