A thin wrapper around the native GitHub Copilot CLI.
Run it like normal. Get full usage capture for free.
bunx @f6n/copilot-usage wraps the native Copilot CLI — your flags and interactive behavior pass through untouched while token usage is silently captured to local JSONL files. Then run bunx @f6n/cli-usage to analyze your Codex + Copilot usage in one table.
.github/hooks/f6n-copilot-usage.jsoncopilot with full interactive behaviorbunx @f6n/cli-usage to analyze captured dataNo build step required. Run directly with bunx or install globally.
No install needed. Just run it whenever you want Copilot usage tracked.
Install once, then just use copilot-usage as a command.
Every session. Every model. Every token. Finally have visibility into your AI coding spend.
No config files, no setup steps. Just replace copilot with bunx @f6n/copilot-usage and you're tracking.
In non-interactive mode (-p/--prompt), the wrapper captures usage summaries and stores them in JSONL format.
Every non---f6n flag passes straight through to native copilot. Your workflow doesn't change.
Automatically hooks into Copilot's session lifecycle to capture data at the right moment, with full debug logging.
Every hook invocation appends to hook-debug.jsonl with stage markers so you can trace exactly where capture might fail.
Run bunx @f6n/cli-usage to see your captured data in beautiful terminal tables grouped by day, model, and session.
One command. Full visibility into every Copilot session. No API keys, no dashboards, no friction.