doggy8088

Copilot Usage Analyzer

23
1
100% credibility
Found Feb 02, 2026 at 18 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
JavaScript
AI Summary

A command-line tool that reads local GitHub Copilot session logs to estimate token usage and costs using predefined pricing for various AI models.

How It Works

1
πŸ’‘ Discover the Tool

You're using an AI helper for coding and wonder how much it's costing, so you find this simple analyzer.

2
πŸ“₯ Add It to Your Computer

You easily add the analyzer to your computer so it's ready to use anytime.

3
πŸ“‚ Find Your Chat History

The tool automatically looks in the usual spot for your AI chat records, or you point it to the right folder.

4
πŸ” Run Your First Check

You start the analyzer and it quickly scans everything to show your total sessions, words handled, and money spent.

5
Pick Your View
πŸ“…
By Day

See usage broken down each day to spot busy times.

πŸ“†
By Month

Group it monthly for a bigger picture of spending.

πŸ’°
Top Costs

Rank the highest spending periods first.

6
πŸ“Š Dive Into Details

Enjoy tables showing sessions, input, output, and costs, or get it in a list for sharing.

βœ… Master Your Costs

You now clearly see your AI helper's usage patterns and can keep your spending in check.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 18 to 23 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is cpusage?

Cpusage is a JavaScript CLI tool that scans your local GitHub Copilot chat logs to deliver copilot usage analytics, tallying tokens and estimating costs across models like GPT-5 variants and Claude. Run `cpusage` for instant breakdowns by day, month, or hour, or pipe JSON output into tools for copilot usage metrics dashboard or Power BI integration. It auto-detects logs via copilot github cli paths or custom dirs, solving the black-box problem of tracking copilot github pricing and premium requests.

Why is it gaining traction?

Unlike vague dashboards, cpusage crunches real session logs with a built-in pricing table for copilot github models, letting you rank sessions by cost or filter with `--rank --limit 5`. Cross-platform npm/npx install and options like `--json` or `--list-price` make it dead simple for copilot usage monitoring or generating copilot usage reports. Devs dig the no-setup token estimates from messages, filling a gap in official copilot usage github tools.

Who should use this?

Copilot GitHub Pro subscribers watching copilot github kosten before billing spikes, or copilot github student/education users verifying free tier limits. Teams building copilot usage examples for audits, or solo devs on copilot github pro needing hourly copilot usage reports 2025-style. Skip if you're not dumping logs or chasing cpu usage command vibes elsewhere.

Verdict

Grab it for quick copilot usage analytics if you're a heavy Copilot userβ€”solid bilingual docs and CI make it reliable despite 23 stars and 1.0% credibility score signaling early maturity. Test locally first; it's MIT-licensed and lightweight, but lacks broad adoption for production dashboards yet.

(198 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.