Request History, Usage & Allowances
Stravia's Monitor section brings together three operational views: Request history (/logs), Usage (/stats), and Allowance (/allowances).
Prerequisites
- Running gateway with traffic or synced providers: Request history and Usage reflect recorded API calls; Allowances reflect providers whose plugins report quota snapshots.
Steps
1. Inspect Request history (/logs)

- Live stream, full output aggregation & virtualized cards: Long conversations and interaction timelines render smoothly with viewport virtualization while aggregating all visible output blocks in a turn and keeping expanded thinking blocks, unified tool-call cards (arguments + status + result), and rejection diagnostics intact. Active tab and deep-link selections persist in the URL (
?tab=client-errors|upstream-errors,?interaction=,?highlight=), and live error views follow an open upper window bound. - Credential masking on read: When a request triggered Credential Protection and its owner mapping is still valid, masked values display as
***on read (unlike Credential Protection's hit-detail default••••••). - Debug traces & Bundles: Enabling Debug captures raw application-layer wire events into
<data-dir>/diagnostics/observation-debug/and lets admins download a point-in-time Debug Bundle per interaction or rejected request.
Debug Bundle & Observation security
Debug Bundles redact only HTTP Authorization header values. Request bodies, tool arguments, attached media, other credentials, and temporary download tokens can still appear inside ordinary observations and Debug Bundles. Treat exported bundles as sensitive data.
2. Analyze Usage, Costs & Recovery (/stats)

- Persistent 15-minute buckets: Usage aggregates are stored in 15-minute base buckets (
900,000 ms) independently of log retention—clearing browser chats, deleting logs, or changinglog_retention_daysdoes not erase historical usage statistics. - Total cost & currency: Displays usage-based spend plus amortized subscription cost (
allocated_costper provider) in USD or your custom currency configured under Settings → Currency. Historical attempt costs remain frozen at capture time even if prices or exchange rates change later. - Final success vs. First-pass rate: The availability chart plots both Final success rate and First-pass rate (
0–100%). The shaded gap between lines shows requests automatically recovered by pre-commit retry or failover. - Interactive filtering: Click rows in the Providers or API Keys tables (mutually exclusive dimensions) to filter charts and summary cards, or hover cells in the Token activity grid to preview exact time buckets.
3. Monitor Allowances, Guards & Reset Grants (/allowances)

- Quota windows & exhaustion forecast: Inspect remaining quota percentages, next reset timeline, and risk forecast (
no_risk,will_exhaust,unknown) across providers. - Pause when exhausted (Quota Guards): Enable guards on provider-level allowance items (model-level rows cannot act as guards) to automatically suspend a provider when any guarded item reaches
Exhausted, and resume once a valid fresh snapshot confirms none remain exhausted. - One-time Reset entitlements: Supported providers (
Codex,Claude Code) display available Reset entitlements with grant expiration dates in a collapsed section. Selecting and confirming a grant redeems it immediately upstream—this is distinct from resetting an API key'sspend_limit.
Verify
Send one request, confirm its card updates to Completed in Request history, and verify request/token counters increment in Usage (using the 24h or live view).
Troubleshooting
- First-pass rate or cost shows unknown: Incomplete recovery coverage or upstream providers without pricing metadata keep unknown items as unknown rather than silently substituting zero.
- Expected old logs disappeared: Ordinary interactions and rejected requests follow Settings → History retention (
log_retention_days, default7days, minimum1day).
Next
- Databases, Storage & Backups — configure
log_retention_days, custom currencies, and backup routines. - Credential Protection — understand how local secret masking interacts with
/logsand retention.