omni-resilience
यह क्या करती है
यह स्किल दिखाती है कि AI providers स्वस्थ और तेज़ी से जवाब देने वाले हैं या नहीं, यह कैसे जाँचें। यह एडमिनिस्ट्रेटरों के लिए है जो धीमे या फ़ेल होते providers और budget की चेतावनी जल्दी पकड़ना चाहते हैं।
कब इस्तेमाल करें
- ✓जब कोई उपयोगकर्ता पूछे कि क्या अभी providers या gateway स्वस्थ हैं।
- ✓जब कोई उपयोगकर्ता providers के latency आँकड़े देखना चाहे।
- ✓जब कोई उपयोगकर्ता जाँचना चाहे कि कोई मॉडल या connection क्यों लॉक आउट है।
Skill का लिंक
https://github.com/cheaper-inference/OmniRoute/blob/release/v3.8.53/skills/omni-resilience/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“अभी कौन-से providers धीमे हैं या फ़ेल हो रहे हैं, और क्या कोई मॉडल लॉक आउट है?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
यह स्किल सिस्टम हेल्थ, हर मॉडल की हेल्थ, compression आँकड़े और resilience डेटा के लिए monitoring endpoints बताती है। यह circuit breakers, cooldowns, model lockouts और p50, p95 व p99 जैसे latency percentiles दिखाती है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Overview
Monitor provider health, circuit-breaker states, p50/p95/p99 latency metrics, and budget guard alerts. Inspect connection cooldowns and model lockouts in real time.
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/monitoring/health
System health check
Returns system health including uptime, memory, circuit breakers, rate limits
curl http://localhost:20128/api/monitoring/health \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
GET /api/monitoring/model-health
Get per-model health states
Management-only report that classifies every synced model on every provider connection as HEALTHY, DEGRADED, RATE_LIMITED, AUTH_FAILED, PROVIDER_DOWN, CONNECTION_BLOCKED, MODEL_LOCKED or UNKNOWN, from the connection state, the provider circuit breaker and the per-model lockout. Includes connection ids and names, so it requires a management principal.
curl http://localhost:20128/api/monitoring/model-health \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
GET /api/monitoring/compression
Get compression result-memo statistics
In-process compression result-memo observability snapshot — size, capacity, lifetime hits/misses/hitRate plus 1m/5m/15m/1h windowed rates. Lightweight (no DB, no provider reads) companion to GET /api/monitoring/health intended for frequent polling. Sent with Cache-Control: no-store, no-cache, must-revalidate. Counters reset on process restart.
curl http://localhost:20128/api/monitoring/compression \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
GET /api/provider-metrics
GET provider metrics
curl http://localhost:20128/api/provider-metrics \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
Payloads
See the full OpenAPI specification at GET /api/openapi/spec or docs/openapi.yaml for detailed request/response schemas.
OmniRoute — Monitoring & Health
Requires OMNIROUTE_URL and OMNIROUTE_KEY. See entry-point SKILL for setup.
System health
curl $OMNIROUTE_URL/api/health \
-H "Authorization: Bearer $OMNIROUTE_KEY"
Returns: uptime, memory, active connections, circuit breaker states, rate limit status, cache stats.
Unauthenticated quick check:
curl $OMNIROUTE_URL/api/health
# → {"ok":true}
Provider circuit breakers
Circuit breakers prevent traffic from hitting failing providers.
States: CLOSED (normal), OPEN (blocked), HALF_OPEN (probe mode — auto-recovers).
curl $OMNIROUTE_URL/api/monitoring/health \
-H "Authorization: Bearer $OMNIROUTE_KEY"
Response includes circuitBreakers array with per-provider state and resetAt timestamp.
Per-provider metrics (p50/p95/p99)
curl $OMNIROUTE_URL/api/providers/metrics \
-H "Authorization: Bearer $OMNIROUTE_KEY"
Response shape per provider:
{
"provider": "anthropic",
"requests": 1247,
"successRate": 0.994,
"latency": { "p50": 820, "p95": 2100, "p99": 3800 },
"circuitState": "CLOSED",
"tokensUsed": 2847000
}
Via MCP (if OmniRoute is your MCP server)
omniroute_get_health → full system health snapshot
omniroute_get_provider_metrics → p50/p95/p99 + circuit state per provider
omniroute_get_session_snapshot → cost, tokens, errors for current session
omniroute_check_quota → quota balance + percent remaining + reset time
omniroute_db_health_check → diagnose + auto-repair database drift
Quota check
curl $OMNIROUTE_URL/api/quota \
-H "Authorization: Bearer $OMNIROUTE_KEY"
Returns used/total tokens and requests per provider/account, with resetAt timestamps.
Budget guard (spend limit)
Set a session spending limit that degrades or blocks requests when hit:
curl -X POST $OMNIROUTE_URL/api/budget/guard \
-H "Authorization: Bearer $OMNIROUTE_KEY" \
-H "Content-Type: application/json" \
-d '{
"limitUsd": 5.00,
"action": "degrade",
"degradeTo": "openai/gpt-4o-mini"
}'
action options:
degrade— switch to a cheaper model when limit is hit- `b
अक्सर पूछे जाने वाले सवाल
हर मॉडल की स्थिति का क्या मतलब है?
मॉडल हेल्थ रिपोर्ट हर मॉडल को healthy, degraded, rate limited, auth failed या provider down जैसी स्थितियों में बाँटती है, और दूसरी स्थितियों में भी।
क्या मॉडल हेल्थ रिपोर्ट संवेदनशील है?
हाँ। इसमें connection IDs और नाम होते हैं, इसलिए स्किल कहती है कि इसके लिए management login चाहिए।
क्या यह budget alerts दिखाती है?
हाँ। स्किल monitoring के हिस्से के रूप में budget guard alerts की सूची देती है।
जानकारी
लेखक का मूल विवरण
Monitor provider health, circuit-breaker states, p50/p95/p99 latency metrics, and budget guard alerts. Inspect connection cooldowns and model lockouts in real time.
लोकप्रियता
- GitHub स्टार
- 84k
- रैंकिंग में स्थान
- #1434
- लाइसेंस
- MIT
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
cli-a2a
84kOmniRoute कमांड लाइन से एजेंट-से-एजेंट काम चलाती है, जिससे आप काम भेज सकते हैं, टास्क का इतिहास देख सकते हैं और स्किल टेस्ट कर सकते हैं।
cli-backup-sync
84kकमांड लाइन से OmniRoute डेटा का बैकअप लेती है, जिसमें स्नैपशॉट, क्लाउड सिंक, शेड्यूल और आर्काइव से रीस्टोर शामिल हैं।
cli-batches
84kकमांड लाइन से AI बैच जॉब भेजती है, उनकी प्रगति देखती है और नतीजे या त्रुटियाँ फ़ाइल में सेव करती है, CI पाइपलाइन के लिए भी।
cli-chat
84kकमांड लाइन से AI मॉडल को चैट अनुरोध भेजती है, जिसमें स्ट्रीमिंग जवाब, सिस्टम प्रॉम्प्ट और इंटरैक्टिव सेशन शामिल हैं।
मिलती-जुलती skills
openclaw-update
394kयह आपके एजेंट को चल रहे OpenClaw Gateway को अपडेट करने में मदद करती है, इंस्टॉल के तरीके के अनुसार सही विधि चुनकर और सेशन बनाए रखकर।
diagnose-gateway
394kयह आपके एजेंट को सेटिंग्स, चैनल और पोर्ट जांचकर पता लगाने देती है कि OpenClaw Gateway क्यों फ़ेल हो रहा है, बिना कुछ बदले।
crabbox-apps
394kयह आपके एजेंट को किसी अस्थायी क्लाउड मशीन पर ऐप खोलने और चलाने देती है, फिर उसका व्यू आपके चैट के साइड पैनल में दिखाती है।