-
-
Notifications
You must be signed in to change notification settings - Fork 54.4k
Closed as not planned
Closed as not planned
Copy link
Labels
enhancementNew feature or requestNew feature or request
Description
Problem
- Usage can spike, but current UX is coarse:
/usage costis a fixed 30-day summary and/usageonly shows per-response footers. Provider quota snapshots do not explain where tokens went. - The only deeper option today is manual
jqagainst session logs (skills/session-logs).
Proposal (small, aligned steps)
- Extend the existing session-log aggregator (
src/infra/session-cost-usage.ts) to accept date ranges/--daysand emit JSON. - Expose via CLI:
moltbot usage cost --days N --json --agent all. - Optional: add per-session/per-model breakdown flags once the core is agreed.
Value
- Concrete diagnostics for token spikes without provider OAuth.
- Works across providers (Claude 4.5 / Gemini 3 Flash / MiniMax 2.1).
- Exportable for budgeting and dashboards.
If this direction makes sense, I can follow up with a small PR limited to steps (1) and (2), then iterate.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request