docs: align Copilot cost management with AIC and model/billing docs#37072
Merged
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
docs: add Copilot cost reference links in cost management guide
docs: add Copilot model/billing references to cost management
Jun 5, 2026
Copilot created this pull request from a session on behalf of
pelikhan
June 5, 2026 06:01
View session
Collaborator
|
@copilot copilot pricing based on github copilot models pricing and billing document |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Contributor
Author
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Contributor
Author
Copilot
AI
changed the title
docs: add Copilot model/billing references to cost management
docs: align Copilot cost management with AIC and model/billing docs
Jun 5, 2026
pelikhan
approved these changes
Jun 5, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the cost-management reference docs to treat AI Credits (AIC) as the primary cost metric for Copilot workflows, adding explicit links to authoritative Copilot model/billing sources and updating examples to use AIC terminology.
Changes:
- Updates the Copilot entries in provider and inference-cost tables to reference Copilot model/billing documentation.
- Shifts Copilot guidance from “Effective Tokens-only” to “Prefer AIC”, including episode-level usage guidance.
- Updates the example jq query to rank Copilot usage by AIC instead of effective tokens.
Show a summary per file
| File | Description |
|---|---|
| docs/src/content/docs/reference/cost-management.md | Revises Copilot cost guidance and examples to align with AIC-based tracking and adds links to model/billing docs. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 1/1 changed files
- Comments generated: 5
| | `claude` | Based on Anthropic token pricing (prompt + completion + cache read/write + reasoning tokens) | | ||
| | `codex` | Based on OpenAI token pricing | | ||
| | `copilot` | Not available — Copilot does not expose billing-grade pricing data; use Effective Tokens as a proxy | | ||
| | `copilot` | Based on GitHub Copilot usage and billing data surfaced by GitHub documentation; cross-reference [models.dev](https://models.dev/), [GitHub Copilot models](https://docs.github.com/en/copilot/concepts/about-github-copilot-models), and [Copilot billing](https://docs.github.com/en/copilot/about-github-copilot/subscription-plans-for-github-copilot) docs | |
|
|
||
| > [!NOTE] | ||
| > Effective Tokens (ET) remain available for backward compatibility and are still the most reliable proxy for Copilot inference usage. For all other engines, prefer AIC. See [Effective Tokens Specification](/gh-aw/reference/effective-tokens-specification/) for the ET definition. | ||
| > Effective Tokens (ET) remain available for backward compatibility. Prefer AIC for cost monitoring, including Copilot workflows. See [Effective Tokens Specification](/gh-aw/reference/effective-tokens-specification/) for the ET definition. |
| | Engine | Billed to | gh-aw cost metric | | ||
| |--------|-----------|-------------------| | ||
| | `copilot` | Account owning [`COPILOT_GITHUB_TOKEN`](/gh-aw/reference/auth/#copilot_github_token) | Effective Tokens (AIC not available; Copilot does not expose pricing data) | | ||
| | `copilot` | Account owning [`COPILOT_GITHUB_TOKEN`](/gh-aw/reference/auth/#copilot_github_token) | AIC (based on GitHub Copilot model and billing documentation — see [models.dev](https://models.dev/), [GitHub Copilot models](https://docs.github.com/en/copilot/concepts/about-github-copilot-models), and [Copilot billing](https://docs.github.com/en/copilot/about-github-copilot/subscription-plans-for-github-copilot)) | |
| | `blocked_request_count` | Aggregate blocked-network pressure | | ||
|
|
||
| For Claude and Codex runs, `total_aic` is the preferred cost metric — it reflects actual provider billing in AI Credits (1 AIC = $0.01 USD). For Copilot runs, `total_effective_tokens` is the most reliable proxy for resource usage since Copilot does not expose billing-grade cost data. | ||
| For Claude, Codex, and Copilot runs, `total_aic` is the preferred cost metric — it reflects provider billing in AI Credits (1 AIC = $0.01 USD). |
Comment on lines
+119
to
+122
| # Top 10 heaviest Copilot executions by AIC | ||
| gh aw logs --start-date -30d --json | \ | ||
| jq '[.episodes[] | {episode: .episode_id, workflow: .primary_workflow, runs: .total_runs, effective_tokens: (.total_effective_tokens // 0)}] | ||
| | sort_by(.effective_tokens) | reverse | .[:10]' | ||
| jq '[.episodes[] | {episode: .episode_id, workflow: .primary_workflow, runs: .total_runs, aic: (.total_aic // 0)}] | ||
| | sort_by(.aic) | reverse | .[:10]' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Copilot cost guidance in the AIC documentation lacked direct references to authoritative model and billing sources and still referenced Effective Tokens where Copilot AIC is available. This update adds explicit links and aligns Copilot guidance to AIC-based cost tracking.
AIC provider table updates
copilotrow indocs/src/content/docs/reference/cost-management.mdto include links to:Inference cost matrix updates
copilotengine entry in the “Inference Costs” table with the same references for consistent guidance across the page.Episode usage guidance updates