r/GithubCopilot • u/Cloud--Man • 25d ago
Help/Doubt ❓ Is there an official API to programmatically retrieve Copilot Business AI Credits usage and monthly limit?
Hi everyone. I use GitHub Copilot Business with a seat managed by my enterprise. In VS Code, the “Monthly limit” panel shows AI Credit usage—for example, 935 / 5,000 AI credits—and the date the limit resets.
I’d like to display those same live values in a small native macOS app. I’m specifically interested in the “Monthly limit” for AI Credits, not premium requests, model usage, or context-window usage.
I checked the official documentation:
- Monitoring your GitHub AI Credits usage describes viewing usage in VS Code and Copilot settings.
- The Copilot usage metrics API documents enterprise usage reports, but it does not appear to provide the current limit, usage amount, and reset date shown in that UI.
I haven’t tried undocumented endpoints or inspected network traffic. I attempted a preliminary macOS Accessibility check of the UI, but macOS denied the required permission. No data was read, and I didn’t change any settings.
Is there an official API or supported interface for retrieving these fields? If you’ve found a way to access them, what source and Copilot license type did you use (Business, Enterprise, or Individual)? I’m especially interested in whether it works with an enterprise-managed Business seat.
1
u/Smettbobezwinger 25d ago
I am using the Copilot API, Export them to Azure Blob Storage and visualize them in Grafana.
1
u/AutoModerator 25d ago
Hello /u/Cloud--Man. Looks like you have posted a query. Once your query is resolved, please reply the solution comment with "!solved" to help everyone else know the solution and mark the post as solved.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.