omni-api-keys
하는 일
이 스킬은 REST 엔드포인트로 OmniRoute의 API 키를 관리하는 방법을 설명합니다. 어떤 앱과 사용자가 게이트웨이에 접근할 수 있는지 통제하는 관리자를 위한 기능입니다.
사용하는 경우
- ✓사용자가 앱이나 에이전트를 위한 API 키를 만들고 싶을 때.
- ✓사용자가 노출되었을 수 있는 키를 교체하거나 폐기해야 할 때.
- ✓사용자가 키에 지출 한도, 권한 범위, 만료일을 설정하고 싶은 경우.
스킬 링크
https://github.com/cheaper-inference/OmniRoute/blob/release/v3.8.53/skills/omni-api-keys/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“제 앱을 위해 월간 지출 한도와 만료일이 있는 API 키를 만들어 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
스킬은 키 목록, 생성, 조회, 수정, 삭제 REST 호출과, 키에 허용 모델과 조합을 한 번에 추가하거나 제거하는 호출을 나열합니다. 모든 요청에는 유효한 bearer 토큰이 필요합니다.
기술 내용 (원본 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
자주 묻는 질문
키가 쓸 수 있는 모델을 제한할 수 있나요?
네. access 엔드포인트는 키에 허용 모델과 조합을 한 번에 추가하거나 제거합니다.
먼저 로그인해야 하나요?
네. 요청에는 bearer 토큰이나 세션 쿠키가 필요하며, 이는 로그인 엔드포인트에서 받습니다.
키 하나의 세부 정보를 볼 수 있나요?
네. get 호출은 ID로 키 하나를 돌려줍니다.
상세 정보
작성자의 원본 설명
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
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
cli-a2a
84k에이전트 간 작업을 위한 OmniRoute 명령줄 도구를 실행해, 작업을 보내고 작업 이력을 확인하며 스킬을 테스트하게 합니다.
cli-backup-sync
84k스냅샷, 클라우드 동기화, 일정, 아카이브 복원을 포함해 명령줄에서 OmniRoute 데이터를 백업합니다.
cli-batches
84k명령줄에서 대량 AI 작업을 배치 작업으로 제출하고 진행 상황을 추적하며, CI 파이프라인을 위해 결과와 오류를 저장합니다.
cli-chat
84k스트리밍 응답, 시스템 프롬프트, 대화형 세션을 갖춘 채팅 요청을 명령줄에서 AI 모델에 보냅니다.