omni-auth
하는 일
이 스킬은 OmniRoute API와 대시보드에 인증하는 방법을 보여 줍니다. 로그인하고, 세션을 받거나, 로그인 옵션을 설정해야 하는 개발자와 관리자를 위한 기능입니다.
사용하는 경우
- ✓bearer 토큰으로 요청을 인증해야 할 때.
- ✓OmniRoute 대시보드에 로그인하거나 세션 쿠키를 받아야 할 때.
- ✓단일 로그인(SSO)을 설정하거나 로그인 요구 사항을 바꾸려는 경우.
스킬 링크
https://github.com/cheaper-inference/OmniRoute/blob/release/v3.8.53/skills/omni-auth/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“제 스크립트에서 OmniRoute에 로그인해 액세스 토큰을 받으려면 어떻게 하나요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
스킬은 관리 비밀번호를 받아 세션 쿠키를 돌려주는 로그인 엔드포인트와, 보안 토큰이 필요한 로그아웃 엔드포인트를 나열합니다. 대시보드용 단일 로그인 옵션도 설명합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Overview
Manage API key authentication and session tokens. Start here to authenticate requests via Bearer token, obtain session cookies, and configure login requirements for the OmniRoute API.
Authentication
Remote API requests use a Bearer credential. Dashboard login is different: POST /api/auth/login accepts a management password and returns an auth_token session cookie.
Endpoints
POST /api/auth/login
Authenticate user
curl -X POST http://localhost:20128/api/auth/login \
-H "Content-Type: application/json" \
-c cookie.jar \
-d '{"password":"<management-password>"}'
POST /api/auth/logout
Log out
CSRF_TOKEN=$(curl -s http://localhost:20128/api/auth/csrf -b cookie.jar | jq -r .token)
curl -X POST http://localhost:20128/api/auth/logout \
-b cookie.jar \
-H "x-omniroute-csrf: $CSRF_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
GET /api/auth/oidc/login
Start OIDC login for the dashboard admin gate
Builds an authorization URL from the configured OIDC issuer/client (discovered
via {issuer}/.well-known/openid-configuration, falling back to {issuer}/authorize),
sets a short-lived oidc_state cookie, and redirects the browser. Password login
remains available as a fallback while OIDC is enabled.
curl http://localhost:20128/api/auth/oidc/login \
-b cookie.jar
GET /api/auth/oidc/callback
Complete OIDC login for the dashboard admin gate
Validates the state cookie, exchanges the authorization code for tokens,
verifies the ID token against the issuer's JWKS (audience = client id), and
requires at least one dashboard admission policy: oidcAllowedSubjects
(matching sub or verified email) or oidcAdmissionClaim (matching a
configured array claim in the verified ID token). When both are present,
both must match. Without either policy the callback returns not_configured.
On success it mints the same 30-day auth_token dashboard-session JWT
used by password login and redirects to /dashboard.
curl http://localhost:20128/api/auth/oidc/callback \
-b cookie.jar
GET /api/auth/csrf
GET auth › csrf
curl http://localhost:20128/api/auth/csrf \
-b cookie.jar
GET /api/auth/status
GET auth › status
curl http://localhost:20128/api/auth/status \
-b cookie.jar
Payloads
See the full OpenAPI specification at GET /api/openapi/spec or docs/openapi.yaml for detailed request/response schemas.
OmniRoute
Local/remote AI gateway exposing OpenAI-compatible REST. One key, 380 providers, auto-fallback, RTK token saver, MCP server, A2A agents.
Setup
export OMNIROUTE_URL="http://localhost:20128" # or VPS / tunnel URL
export OMNIROUTE_KEY="sk-..." # from Dashboard → API Keys
All requests: ${OMNIROUTE_URL}/v1/... with Authorization: Bearer ${OMNIROUTE_KEY}.
Verify: curl $OMNIROUTE_URL/api/health → {"ok":true}
Discover models
curl $OMNIROUTE_URL/v1/models # chat/LLM (default)
curl $OMNIROUTE_URL/v1/models/image # image-gen
curl $OMNIROUTE_URL/v1/models/tts # text-to-speech
curl $OMNIROUTE_URL/v1/models/embedding # embeddings
curl $OMNIROUTE_URL/v1/models/web # web search + fetch
curl $OMNIROUTE_URL/v1/models/stt # speech-to-text
Use data[].id as model field in requests. Combos appear with owned_by:"combo".
Capability skills
자주 묻는 질문
bearer 토큰과 대시보드 로그인은 어떻게 다른가요?
원격 API 요청은 bearer 자격 증명을 쓰고, 대시보드 로그인은 관리 비밀번호로 세션 쿠키를 받습니다.
단일 로그인을 지원하나요?
네. 스킬은 대시보드용 OIDC 로그인을 설명하며, 비밀번호 로그인은 대체 수단으로 남아 있습니다.
로컬 개발에서는 로그인을 건너뛸 수 있나요?
스킬에 따르면 로컬 개발에서는 키 요구 사항을 끌 수 있습니다.
상세 정보
작성자의 원본 설명
Manage API key authentication and session tokens. Start here to authenticate requests via Bearer token, obtain session cookies, and configure login requirements for the OmniRoute API.
인기도
- GitHub 스타
- 84k
- 순위
- #1420
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
cli-a2a
84k에이전트 간 작업을 위한 OmniRoute 명령줄 도구를 실행해, 작업을 보내고 작업 이력을 확인하며 스킬을 테스트하게 합니다.
cli-backup-sync
84k스냅샷, 클라우드 동기화, 일정, 아카이브 복원을 포함해 명령줄에서 OmniRoute 데이터를 백업합니다.
cli-batches
84k명령줄에서 대량 AI 작업을 배치 작업으로 제출하고 진행 상황을 추적하며, CI 파이프라인을 위해 결과와 오류를 저장합니다.
cli-chat
84k스트리밍 응답, 시스템 프롬프트, 대화형 세션을 갖춘 채팅 요청을 명령줄에서 AI 모델에 보냅니다.