Skip to content

feat(analytics): export usage data as CSV or JSON #139

Description

@SurviveM

Requirements

Export usage data (token consumption, session count, model breakdown) as CSV or JSON for external BI analysis or archival. Support filtering by date range and model type.

Verification

  1. Run /analytics export --format csv --from 2026-05-01 --to 2026-05-06
  2. Verify a CSV file is downloaded with correct columns (date, model, tokens, sessions)
  3. Import the CSV into a spreadsheet tool and verify all rows are present and correctly formatted
  4. Run /analytics export --format json and verify JSON structure matches the CSV data
  5. Verify the command handles empty data gracefully (empty file, no crash)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions