omni-api-keys
यह क्या करती है
यह स्किल REST endpoints के ज़रिए OmniRoute की API keys मैनेज करने का तरीका समझाती है। यह उन एडमिनिस्ट्रेटरों के लिए है जो तय करते हैं कि कौन-से ऐप और लोग gateway तक पहुँच सकें।
कब इस्तेमाल करें
- ✓जब कोई उपयोगकर्ता किसी ऐप या एजेंट के लिए API key बनाना चाहे।
- ✓जब कोई उपयोगकर्ता ऐसी key को rotate या revoke करना चाहे जो उजागर हो सकती है।
- ✓जब कोई उपयोगकर्ता किसी key पर खर्च की सीमा, scopes या expiry date सेट करना चाहे।
Skill का लिंक
https://github.com/cheaper-inference/OmniRoute/blob/release/v3.8.53/skills/omni-api-keys/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे ऐप के लिए एक API key बनाइए, जिसकी मासिक खर्च सीमा हो और expiry date भी।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
यह स्किल keys की सूची देखने, बनाने, पढ़ने, अपडेट करने और हटाने के REST calls बताती है, और एक ही कदम में key पर अनुमति वाले मॉडल और combos जोड़ने या हटाने के भी। हर request को valid bearer token चाहिए।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Overview
Create, list, rotate, and revoke OmniRoute API keys. Control per-key scopes, spending limits, and expiration. Keys gate access to all proxy and management endpoints.
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/keys
List API keys
curl http://localhost:20128/api/keys \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
POST /api/keys
Create API key
curl -X POST http://localhost:20128/api/keys \
-H "Authorization: Bearer $OMNIROUTE_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
GET /api/keys/{id}
Get API key
curl http://localhost:20128/api/keys/{id} \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
PATCH /api/keys/{id}
Update API key
curl -X PATCH http://localhost:20128/api/keys/{id} \
-H "Authorization: Bearer $OMNIROUTE_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
DELETE /api/keys/{id}
Delete API key
curl -X DELETE http://localhost:20128/api/keys/{id} \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
POST /api/keys/{id}/access
Add or remove allowed models and combos on an API key atomically
Adds or removes allowed models and combos on an API key without lost updates. Serialized per key ID using an in-process async lock. Keys allowing all models (modelAccessMode: all) or all combos (allowedCombos containing 'combo/*') require switchToRestricted: true when adding new models or combos, otherwise returning a 409 Conflict. When switching to restricted mode, the allowlist becomes exactly the net added items (at least one required). Direct concurrent PATCH calls to /api/keys/{id} completely overwrite the policy outside this lock.
curl -X POST http://localhost:20128/api/keys/{id}/access \
-H "Authorization: Bearer $OMNIROUTE_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
GET /api/keys/{id}/devices
List devices for an API key
Lists the distinct devices (masked IP + User-Agent fingerprints) tracked for an API key by the in-memory device tracker. IPs are masked before storage; the route never sees the raw client IP.
curl http://localhost:20128/api/keys/{id}/devices \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
POST /api/keys/{id}/regenerate
POST keys › <id> › regenerate
curl -X POST http://localhost:20128/api/keys/{id}/regenerate \
-H "Authorization: Bearer $OMNIROUTE_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
GET /api/keys/{id}/reveal
GET keys › <id> › reveal
curl http://localhost:20128/api/keys/{id}/reveal \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
GET /api/keys/{id}/usage-limits
GET keys › <id> › usage limits
curl http://localhost:20128/api/keys/{id}/usage-limits \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
GET /api/keys/groups
GET keys › groups
curl http://localhost:20128/api/keys/groups \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
POST /api/keys/groups
POST keys › groups
curl -X POST http://localhost:20128/api/keys/groups \
-H "Authorization: Bearer $OMNIROUTE_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
GET /api/keys/groups/{id}
GET keys › groups › <id>
curl http://localhost:20128/api/keys/groups/{id} \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
PUT /api/keys/groups/{id}
PUT keys › groups › <id>
Updates the group. Setting isActive to false pauses its allow rules while preserving membership restrictions and deny rules. Other active groups may still grant access unless a deny matches. Keys belonging only to inactive groups have no group grants. Keys without groups remain unrestricted by group policy; per-key restrictions still apply.
curl -X PUT http://localhost:20128/api/keys/groups/{id} \
-H "Authorization: Bearer $OMNIROUTE_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
DELETE /api/keys/groups/{id}
DELETE keys › groups › <id>
curl -X DELETE http://localhost:20128/api/keys/groups/{id} \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
GET /api/keys/groups/{id}/keys
GET keys › groups › <id> › keys
curl http://localhost:20128/api/keys/groups/{id}/keys \
-H "Authorization
अक्सर पूछे जाने वाले सवाल
क्या मैं key को कुछ मॉडल तक सीमित कर सकता हूँ?
हाँ। access endpoint एक ही कदम में key पर अनुमति वाले मॉडल और combos जोड़ता या हटाता है।
क्या पहले लॉगिन करना होगा?
हाँ। अनुरोधों के लिए bearer token या session cookie चाहिए, जो login endpoint से मिलता है।
क्या मैं किसी एक key का विवरण देख सकता हूँ?
हाँ। get कॉल ID से एक key लौटाती है।
जानकारी
लेखक का मूल विवरण
Create, list, rotate, and revoke OmniRoute API keys. Control per-key scopes, spending limits, and expiration. Keys gate access to all proxy and management endpoints.
लोकप्रियता
- GitHub स्टार
- 84k
- रैंकिंग में स्थान
- #1419
- लाइसेंस
- MIT
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
cli-a2a
84kOmniRoute कमांड लाइन से एजेंट-से-एजेंट काम चलाती है, जिससे आप काम भेज सकते हैं, टास्क का इतिहास देख सकते हैं और स्किल टेस्ट कर सकते हैं।
cli-backup-sync
84kकमांड लाइन से OmniRoute डेटा का बैकअप लेती है, जिसमें स्नैपशॉट, क्लाउड सिंक, शेड्यूल और आर्काइव से रीस्टोर शामिल हैं।
cli-batches
84kकमांड लाइन से AI बैच जॉब भेजती है, उनकी प्रगति देखती है और नतीजे या त्रुटियाँ फ़ाइल में सेव करती है, CI पाइपलाइन के लिए भी।
cli-chat
84kकमांड लाइन से AI मॉडल को चैट अनुरोध भेजती है, जिसमें स्ट्रीमिंग जवाब, सिस्टम प्रॉम्प्ट और इंटरैक्टिव सेशन शामिल हैं।
मिलती-जुलती skills
reverse-engineer-anything
422kयह आपके एजेंट को REA टूल से शिप हुई ऐप्स और पैकेज को अंदर से समझने, वर्ज़न की तुलना करने या दोबारा बनाने में मदद करती है।
1password
394kयह आपके एजेंट को 1Password CLI सेट करने, साइन इन करने और सीक्रेट्स की वैल्यू चैट में छापे बिना उन्हें पढ़ने या इस्तेमाल करने में मदद करती है।
healthcheck
394kयह आपके एजेंट को उस कंप्यूटर या सर्वर का सुरक्षा ऑडिट करने देती है जिस पर OpenClaw चलता है, जिसमें SSH, firewall, अपडेट और बैकअप शामिल हैं, और फिर सुरक्षित सुधार सुझाती है।