
Usage Logs and Analytics
Filters call logs and token usage by provider, model, time and cost, and exports them.
Install
npx skills add cheaper-inference/OmniRoute --skill omni-usage-logs -g -a claude-code -y- Repository
- cheaper-inference/OmniRoute83.6k
- Category
- Business
- Updated
- 4d ago
- License
- MIT
- Context cost
- Mediumabout 1,962 tokens
- Runs scripts
- No, instructions only
What it does
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.
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


