omni-usage-logs
यह क्या करती है
यह स्किल दिखाती है कि OmniRoute में अलग-अलग AI अनुरोध और उपयोग के कुल आँकड़े कैसे देखें। यह एडमिनिस्ट्रेटरों के लिए है जो कॉल की जाँच करना, token उपयोग पर नज़र रखना या महँगे अनुरोध ढूँढना चाहते हैं।
कब इस्तेमाल करें
- ✓जब कोई उपयोगकर्ता किसी provider या मॉडल के अनुरोधों का कॉल लॉग देखना चाहे।
- ✓जब कोई उपयोगकर्ता किसी समय सीमा में उपयोग के कुल आँकड़े या analytics चाहे।
- ✓जब कोई उपयोगकर्ता लॉग एक्सपोर्ट करना या कोई एक कॉल जाँचना चाहे।
Skill का लिंक
https://github.com/cheaper-inference/OmniRoute/blob/release/v3.8.53/skills/omni-usage-logs/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“कल रात के फ़ेल हुए कॉल के लॉग दिखाइए और इस्तेमाल हुए tokens का कुल जोड़ बताइए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
यह स्किल उपयोग analytics, कॉल लॉग, फ़िल्टर विकल्पों, ID से एक कॉल लॉग और एक connection के उपयोग की कॉल बताती है। नतीजे provider, मॉडल, समय सीमा, स्थिति और लागत से छाने जा सकते हैं।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Overview
Access detailed call logs and usage analytics. Filter by provider, model, time range, status, and cost. Export logs and aggregate token usage across all connections.
Authentication
All requests require a valid Bearer token or session cookie. Obtain a token via POST /api/auth/login or configure REQUIRE_API_KEY=false for local development.
Endpoints
GET /api/usage/analytics
Get usage analytics
curl http://localhost:20128/api/usage/analytics \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
GET /api/usage/call-logs
Get call logs
curl http://localhost:20128/api/usage/call-logs \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
GET /api/usage/call-logs/filters
Get call log filter options
Distinct providers, models, accounts and API keys seen in call logs, plus every configured API key (id and name only). Feeds the Logs tab filter dropdowns.
curl http://localhost:20128/api/usage/call-logs/filters \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
GET /api/usage/call-logs/{id}
Get a specific call log
curl http://localhost:20128/api/usage/call-logs/{id} \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
GET /api/usage/{connectionId}
Get usage for a specific connection
curl http://localhost:20128/api/usage/{connectionId} \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
GET /api/usage/history
Get usage history
curl http://localhost:20128/api/usage/history \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
GET /api/usage/logs
Get usage logs
curl http://localhost:20128/api/usage/logs \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
GET /api/usage/proxy-logs
Get proxy logs
curl http://localhost:20128/api/usage/proxy-logs \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
GET /api/usage/request-logs
Get request logs
curl http://localhost:20128/api/usage/request-logs \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
GET /api/usage/budget
Get usage budget status
Returns current budget limits and consumption.
curl http://localhost:20128/api/usage/budget \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
POST /api/usage/budget
Configure usage budget
Set or update budget limits for usage tracking.
curl -X POST http://localhost:20128/api/usage/budget \
-H "Authorization: Bearer $OMNIROUTE_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
GET /api/usage/cache-health
Get prompt-cache health summary
Summarizes the write/read cache ratio from call_logs for a time window:
distribution (p50/p90/p99/max of cache-write tokens), warm/cold/rewrite/uncached
call counts, the "heavy write" outlier share (10x the window median, floored at
1024 tokens — Anthropic's cache-creation minimum), and a per-model breakdown.
Only successful (status = 200) calls with a non-null cache column are counted.
curl http://localhost:20128/api/usage/cache-health \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
GET /api/usage/model-latency-stats
Get per-model/provider latency statistics
Aggregates usage_history rows into per-(provider, model) latency stats (avg/p50/p95/p99, std-dev, TTFT, tokens/sec) over a rolling window. Falls back from successful-only to all-sample rows when the successful count is below minSamples.
curl http://localhost:20128/api/usage/model-latency-stats \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
GET /api/usage/budget/bulk
GET usage › budget › bulk
curl http://localhost:20128/api/usage/budget/bulk \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
GET /api/usage/codex-reset-credit
GET usage › codex reset credit
curl http://localhost:20128/api/usage/codex-reset-credit \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
POST /api/usage/codex-reset-credit
POST usage › codex reset credit
curl -X POST http://localhost:20128/api/usage/codex-reset-credit \
-H "Authorization: Bearer $OMNIROUTE_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
GET /api/usage/combo-forecast
GET usage › combo forecast
curl http://localhost:20128/api/usage/combo-forecast \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
GET /api/usage/combo-health
GET usage › combo health
curl http://localhost:20128/api/usage/combo-health \
अक्सर पूछे जाने वाले सवाल
क्या मैं एक कॉल देख सकता हूँ?
हाँ। कॉल लॉग उसकी ID से लाया जा सकता है।
कौन-से फ़िल्टर उपलब्ध हैं?
स्किल provider, मॉडल, account, API key, समय सीमा, स्थिति और लागत के फ़िल्टर बताती है।
क्या मैं लॉग एक्सपोर्ट कर सकता हूँ?
हाँ। स्किल कहती है कि लॉग एक्सपोर्ट हो सकते हैं और connections के बीच token उपयोग जोड़ा जा सकता है।
जानकारी
लेखक का मूल विवरण
Access detailed call logs and usage analytics. Filter by provider, model, time range, status, and cost. Export logs and aggregate token usage across all connections.
लोकप्रियता
- GitHub स्टार
- 84k
- रैंकिंग में स्थान
- #1438
- लाइसेंस
- MIT
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
cli-a2a
84kOmniRoute कमांड लाइन से एजेंट-से-एजेंट काम चलाती है, जिससे आप काम भेज सकते हैं, टास्क का इतिहास देख सकते हैं और स्किल टेस्ट कर सकते हैं।
cli-backup-sync
84kकमांड लाइन से OmniRoute डेटा का बैकअप लेती है, जिसमें स्नैपशॉट, क्लाउड सिंक, शेड्यूल और आर्काइव से रीस्टोर शामिल हैं।
cli-batches
84kकमांड लाइन से AI बैच जॉब भेजती है, उनकी प्रगति देखती है और नतीजे या त्रुटियाँ फ़ाइल में सेव करती है, CI पाइपलाइन के लिए भी।
cli-chat
84kकमांड लाइन से AI मॉडल को चैट अनुरोध भेजती है, जिसमें स्ट्रीमिंग जवाब, सिस्टम प्रॉम्प्ट और इंटरैक्टिव सेशन शामिल हैं।
मिलती-जुलती skills
gitcrawl
394kयह आपके एजेंट को GitHub issues और pull requests के सेव आर्काइव में खोजने, मिलते-जुलते मामलों को समूह में रखने और लाइव स्थिति जांचने देती है।
slacrawl
394kयह आपके एजेंट को स्थानीय Slack आर्काइव में संदेश खोजने और गिनने, उसकी ताज़गी जांचने और ज़रूरत पड़ने पर उसे ताज़ा करने देती है।
goplaces
394kयह आपके एजेंट को Google Places से जगहें खोजने, उनका विवरण और समीक्षाएं पाने, और जगह के नाम हल करने में मदद करती है, स्क्रिप्ट के लिए JSON आउटपुट के साथ।