You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2.**Aggregate** — on every render, recent spans are read, `gen_ai.usage.*` counters and `gen_ai.request.model` are extracted, and rolled up by session / model / day.
125
-
3.**Estimate** — token counts are multiplied by a bundled pricing snapshot from GitHub's public [Copilot models & pricing](https://docs.github.com/en/copilot/reference/copilot-billing/models-and-pricing) table to estimate USD and GitHub AI Credits (AIC). This is not billing data; run `copilot-cost refresh-pricing --force` to refresh the local pricing cache when GitHub updates its published prices.
125
+
3.**Estimate** — token counts are multiplied by prices from GitHub's public [Copilot models & pricing](https://docs.github.com/en/copilot/reference/copilot-billing/models-and-pricing) table to estimate USD and GitHub AI Credits (AIC). The local cache refreshes automatically when it is older than seven days, retains the last-known-good data if GitHub is unavailable, and falls back to the bundled snapshot when no cache exists. Long-context rates are selected from the published input-token thresholds. This is not billing data.
126
126
4.**Render** — a one-line statusline, plus an optional local web dashboard.
127
127
128
128
More on the underlying telemetry pipeline: [Copilot OpenTelemetry observability](https://docs.github.com/en/copilot/how-tos/copilot-sdk/observability/opentelemetry).
@@ -134,7 +134,7 @@ More on the underlying telemetry pipeline: [Copilot OpenTelemetry observability]
134
134
- ✅ Usage data **stays on your machine**.
135
135
- ✅ The dashboard only supports local binds (`127.0.0.1` or `localhost`).
136
136
- ✅ This package emits **no telemetry or analytics** of its own.
137
-
- 🌐 Pricing refresh contacts `docs.github.com` only when requested or when the cache needs refreshing.
137
+
- 🌐 Pricing refresh contacts GitHub's public Docs pricing source only when requested or when the cache needs refreshing.
138
138
139
139
---
140
140
@@ -147,7 +147,7 @@ More on the underlying telemetry pipeline: [Copilot OpenTelemetry observability]
147
147
|`uninstall [--yes]`| Remove settings installed by this package when they point at this tool. |
|`dashboard [--port <n>] [--host <h>] [--no-open]`| Serve the local dashboard. |
150
-
|`refresh-pricing [--force]`| Refresh model pricing; `--force` bypasses the cache TTL. |
150
+
|`refresh-pricing [--force]`| Refresh model pricing now; `--force` bypasses the seven-day cache TTL. |
151
151
152
152
---
153
153
@@ -157,7 +157,7 @@ More on the underlying telemetry pipeline: [Copilot OpenTelemetry observability]
157
157
-**No usage shows up yet.** Make sure you're on the latest Copilot CLI, restart your shell and `copilot`, send a prompt, then check for JSONL files in `~/.copilot/otel/`.
158
158
-**I do not want profile edits.** Use `copilot-cost install --no-otel-profile` and paste the printed OpenTelemetry block into the shell profile you choose.
159
159
-**The dashboard will not bind.** Use a local host only, e.g. `copilot-cost dashboard --host 127.0.0.1 --port 4567`.
160
-
-**Pricing looks stale.** Run `copilot-cost refresh-pricing --force`.
160
+
-**Pricing looks stale.** Run `copilot-cost refresh-pricing --force`. Set `COPILOT_COST_REFRESH_DAYS` to change the automatic refresh interval, or `COPILOT_COST_AUTO_REFRESH=0` to disable automatic refreshes.
0 commit comments