OpenRouter Usage Analytics Overview OpenRouter provides usage data through three endpoints: (credit balance and rate limits), (per-request cost and metadata), and response fields (token counts). This skill covers collecting metrics from these sources, building analytics pipelines, cost reporting, and performance dashboards. Collect Per-Request Metrics Analytics Database Analytics Queries Credit Balance Monitoring Weekly Report Generator Error Handling | Error | Cause | Fix | |-------|-------|-----| | Missing cost data | Generation endpoint fetch failed | Retry after 1-2s; log warning | | Metr…