omni-usage-logs
하는 일
이 스킬은 OmniRoute에서 개별 AI 요청과 사용량 합계를 조회하는 방법을 보여 줍니다. 호출을 감사하거나, 토큰 사용을 추적하거나, 비싼 요청을 찾으려는 관리자를 위한 기능입니다.
사용하는 경우
- ✓사용자가 제공자나 모델에 대한 요청의 호출 로그를 보고 싶을 때.
- ✓사용자가 특정 시간 범위의 사용량 합계나 분석을 원할 때.
- ✓사용자가 로그를 내보내거나 특정 호출 하나를 확인하려는 경우.
스킬 링크
https://github.com/cheaper-inference/OmniRoute/blob/release/v3.8.53/skills/omni-usage-logs/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“어젯밤 실패한 호출의 로그를 보여 주고, 사용된 토큰을 합계해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
스킬은 사용량 분석, 호출 로그, 필터 옵션, ID로 찾는 단일 호출 로그, 한 연결의 사용량을 위한 호출을 나열합니다. 결과는 제공자, 모델, 시간 범위, 상태, 비용으로 거를 수 있습니다.
기술 내용 (원본 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로 가져올 수 있습니다.
어떤 필터가 있나요?
스킬은 제공자, 모델, 계정, API 키, 시간 범위, 상태, 비용 필터를 나열합니다.
로그를 내보낼 수 있나요?
네. 스킬에 따르면 로그를 내보낼 수 있고, 토큰 사용량을 연결별로 합산할 수 있습니다.
상세 정보
작성자의 원본 설명
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
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
cli-a2a
84k에이전트 간 작업을 위한 OmniRoute 명령줄 도구를 실행해, 작업을 보내고 작업 이력을 확인하며 스킬을 테스트하게 합니다.
cli-backup-sync
84k스냅샷, 클라우드 동기화, 일정, 아카이브 복원을 포함해 명령줄에서 OmniRoute 데이터를 백업합니다.
cli-batches
84k명령줄에서 대량 AI 작업을 배치 작업으로 제출하고 진행 상황을 추적하며, CI 파이프라인을 위해 결과와 오류를 저장합니다.
cli-chat
84k스트리밍 응답, 시스템 프롬프트, 대화형 세션을 갖춘 채팅 요청을 명령줄에서 AI 모델에 보냅니다.
비슷한 스킬
gitcrawl
394k에이전트가 저장된 GitHub 이슈와 풀 리퀘스트 보관본을 검색하고, 중복 항목을 묶고, GitHub에서 현재 상태를 확인하도록 돕습니다.
slacrawl
394k에이전트가 로컬 Slack 보관본에서 메시지를 검색하고 개수를 세며, 보관본이 얼마나 최신인지 확인하고 필요할 때 새로 고치도록 돕습니다.
goplaces
394k에이전트가 Google Places로 장소를 검색하고, 세부 정보와 리뷰를 가져오고, 장소 이름을 확인하며, 스크립트용 JSON을 출력하도록 돕습니다.