github / github/copilot-cli

Retrieve overall usage statistics

Open
#1,327 0 comments 6 reactions 0 assignees View on GitHub
area:non-interactive
Dominant language
Shell
Stars
11.2k
Forks
1.9k
Avg merge
14h 16m
Merged PRs (30d)
6

Description

### Describe the feature or problem you'd like to solve

It would be nice to have a way to programmatically retrieve usage statistics for your user, similar to the small overview that the VSCode plugin gives in the bottom right corner. This is different from the `/usage` command, which reports on the stats of the current session.

### Proposed solution

Having something like `copilot usage [options]` could provide a nice entry point for integrating this information with other tools. It could even support `--json` to output the information in JSON format for better parsing.

People could then integrate this information in their statusbars, in a editor plugin, terminal prompt, whatever.

### Example prompts or workflows

_No response_

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.