Answer: Subscribe to the assistant.usage session event for real-time per-call token counts, and to the session.usage_info session event for context-window utilization. Status: Confirmed Entry: tool/github-copilot/pricing-and-limits/usage-metrics-token-counts Revision: 1 Digest: sha256:0e6c335e90068b5b (changes whenever the content changes) Timeline: Created: 2026-11-15T13:15:00Z Last changed: 2026-11-15T13:15:00Z Last verified: 2026-11-20T13:08:48Z Next check: 2026-11-21T13:08:48Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Per-call token counts API | assistant.usage event | [1] | 2026-11-20 Context-window utilization API | session.usage_info event | [1] | 2026-11-20 Context-window breakdown (on demand) API | session.metadata.context Info Session RPC | [1] | 2026-11-20 Accumulated totals API | session.usage.get Metrics Session RPC | [1] | 2026-11-20 Sources: [1] GitHub. "Usage and billing metrics - GitHub Docs". https://docs.github.com/en/copilot/how-tos/copilot-sdk/features/usage-and-billing Role: primary. Accessed: 2026-11-20T13:08:48Z Quote: "Per-call token counts assistant.usage event Session Event" (Supports: Per-call token counts API) Quote: "Context-window utilization session.usage_info event Session Event" (Supports: Context-window utilization API) Quote: "Context-window breakdown (on demand) session.metadata.context Info Session RPC" (Supports: Context-window breakdown (on demand) API) Quote: "Accumulated AI credit and token totals session.usage.get Metrics Session RPC" (Supports: Accumulated totals API) Snapshot SHA-256: cb0242d1279dd59e34e0fb4befc4aebfcebcc228ef72f5e1fcaa30c9c94a9fc6 (captured 2026-11-18T13:03:59Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-18T13:03:58Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:08:48Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:08:48Z Last attempt: 2026-11-20T13:08:48Z Notes and limitations: Extracted automatically from a single official source (section "Overview"). Related: https://latestn.com/tool/github-copilot/pricing-and-limits/user-budget-vs-spending-limit How do GitHub Copilot user-level budgets and spending limits interact? https://latestn.com/tool/github-copilot/pricing-and-limits/view-premium-request-usage-ide How do I view my GitHub Copilot premium request usage in my IDE? https://latestn.com/tool/github-copilot/pricing-and-limits/vision-limits What are the vision limits and limitations for GitHub Copilot image input? https://latestn.com/tool/github-copilot/pricing-and-limits/unused-requests-end-of-month What happens to unused GitHub Copilot requests at the end of the month? https://latestn.com/tool/github-copilot/pricing-and-limits/usage-based-billing-individuals How does usage-based billing work for individual GitHub Copilot users? https://latestn.com/tool/github-copilot/pricing-and-limits/usage-based-billing-orgs-enterprises How does usage-based billing work for GitHub Copilot in organizations and enterprises? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-15T13:15:00Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/github-copilot/pricing-and-limits/usage-metrics-token-counts/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/github-copilot/pricing-and-limits/usage-metrics-token-counts POST: https://latestn.com/dispute/tool/github-copilot/pricing-and-limits/usage-metrics-token-counts with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/github-copilot/pricing-and-limits/usage-metrics-token-counts?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I check per-call token counts and context-window utilization in the GitHub Copilot SDK? Revision 1, last verified 2026-11-20T13:08:48Z. https://latestn.com/tool/github-copilot/pricing-and-limits/usage-metrics-token-counts (accessed 2026-11-21T10:00:36Z). @misc{LatestN_tool_github_copilot_pricing_and_limits_usage_metrics_token_counts_r1, title = {How do I check per-call token counts and context-window utilization in the GitHub Copilot SDK?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/github-copilot/pricing-and-limits/usage-metrics-token-counts}}, note = {Revision 1; digest sha256:0e6c335e90068b5b; last verified 2026-11-20T13:08:48Z; accessed 2026-11-21T10:00:36Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/github-copilot/pricing-and-limits/usage-metrics-token-counts