Authentication
When API keys are configured inauth.apiKeys, the /usage endpoints require authentication using one of:
If no keys are configured, the endpoints are open.
GET /usage
Returns runtime status snapshots for all accounts currently loaded by the proxy. Each entry includes the account ID, remaining premium quota, and whether the account has unlimited access.GET /usage/:accountIndex
Returns detailed Copilot usage for a specific account, includingquota_snapshots with a breakdown of usage over time. The accountIndex parameter is 0-based.
If you started the server with
--github-token, a temporary account is added at index 0 and your registered accounts start at index 1. Run GET /usage first to see which account is at each index.Note that auth rm <index> uses a 1-based index (as shown by auth ls), while /usage/:accountIndex is 0-based. These are different numbering schemes.