A thin wrapper around the native GitHub Copilot CLI.
Run it like normal. Get full usage capture for free.
copilot
Use bunx @f6n/copilot-usage exactly like you'd use copilot. All your flags pass through untouched.
.github/hooks/f6n-copilot-usage.jsoncopilot with full interactive behaviorEvery 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.
No 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.
| Flag | Description |
|---|---|
| --f6n-store-session | Internal hook mode that captures the latest Copilot session |
| --f6n-show-usage | Print stored usage from this package's local state |
| --f6n-state-home <path> | Override wrapper state directory |
| --f6n-copilot-home <path> | Override Copilot state directory |
One command. Full visibility into every Copilot session. No API keys, no dashboards, no friction.