The GitHub Copilot page covers usage and cost synced from GitHub. This page covers the per-machine Plugin, which adds conversation-level telemetry. Run both: the plugin for per-developer activity, GitHub for seat and usage spend.
What’s tracked
Copilot Chat emits OTLP logs and traces. Weave stores:- Session activity — session start, duration, model, git repository/branch/commit, and final status
- Prompts — prompt submissions and (when content capture is on) prompt text for activity classification
- Agent output — assistant replies, reasoning, and user feedback ratings (content follows your org policy)
- Tool calls — tool name, type, success, duration, model, and (when allowed) tool input
- File edits — relative path, language, lines added/removed, and whether the edit was accepted
- Subagents — subagent start/stop, status, duration, and tool-call counts
- LLM calls — per-call model plus input, output, cache-read, cache-creation, and reasoning tokens
- Install health — members appear under People we’re receiving data from once Chat telemetry arrives (there is no Weave hook installer that pings on setup)
What it unlocks
- No GitHub org-admin requirement — GitHub usage APIs need Copilot Business/Enterprise and App permissions; the plugin reports from each developer’s Copilot Chat
- Per-developer, per-session granularity — attribute activity to individual machines and GitHub emails
- File- and tool-level detail — accepted/rejected edits, line counts, and tool calls the GitHub usage API does not expose
- AI skills — conversation scoring needs the plugin’s session-level prompts, agent messages, and tool calls
- Install health monitoring — People we’re receiving data from is the live check that Chat telemetry is reaching Weave; dashboards update about hourly
Prerequisites
- GitHub Copilot Chat in VS Code, or Copilot CLI, with a build that supports Copilot Chat OTEL (
github.copilot.chat.otel.*) - A Weave account. Any signed-in member can create a personal install command. An admin can also create a shared plugin API key.
- The ability to set process environment variables before launching VS Code or Copilot CLI
~/.weave hook runtime. Copilot exports OTLP itself.
Setup
1
Create a plugin API key in Weave
Go to Data → Copilot → Connect (or Configure if Copilot is already connected), select Weave Plugin Install, and click Install Weave Plugin. If you can’t open that page, open Personal plugin setup on the Data page and choose Copilot. The page is titled Copilot plugin API keys. Click Create my install command to write telemetry onto your own Weave account. Revoke my install command removes those personal commands. An admin can click Create API key for a shared key that attributes by email. Weave shows the full key once, plus env vars, settings JSON, and an install command.
2
Export environment variables before launching Copilot
This is the required path on current Copilot Chat. Process env is what delivers Weave’s modal fills the real endpoint and key. Both content variables follow your org’s prompt-body retention: they are
weave.token. Do not skip it even if you also apply settings JSON.false when prompt bodies are denied. Copilot Chat reads COPILOT_OTEL_CAPTURE_CONTENT, and Copilot CLI reads only OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT. Without the second variable, Copilot CLI sends activity but no conversation content, so its sessions don’t appear in AI skills.When VS Code starts a Copilot CLI session, it doesn’t pass the content variables on. Set them in your user or system environment so every process inherits them.For per-user attribution, append ,user.email=you@corp.com to OTEL_RESOURCE_ATTRIBUTES. Copilot also sends user.email in its OTEL resource when the GitHub account email is present; add the attribute if usage does not link to a Weave member.3
Optionally merge VS Code settings
Settings JSON is a forward-compatible extra for newer Copilot builds. Merge it into user or MDM
settings.json. Settings alone do not deliver weave.token on current marketplace Copilot Chat.4
Restart VS Code or Copilot CLI
Quit the app completely so it picks up process env, then run a Copilot Chat session and confirm activity in Weave.
wcopkey_ prefix.
Install command and hosted config
The Install command in the modal only fetches settings JSON:GET /api/copilot/config/:key). Push it via MDM together with the environment variables — a settings-only rollout does not send telemetry today. Append ?email=you@corp.com to bake user.email into resourceAttributes.
Visual Studio (Windows)
Copilot Chat in Visual Studio runs the bundled Copilot CLI, which does not read theCOPILOT_OTEL_* variables. Weave covers it with a small hook plugin instead. The plugin reads Visual Studio’s own Copilot telemetry file and chat log, then sends sessions, prompts, model and token usage, tool calls, and file edits with their Keep or Undo outcome. Data appears under Copilot next to VS Code and Copilot CLI, with the host shown on each install.
Requirements
- Windows with Visual Studio 2026 (18.12 or later) and GitHub Copilot Chat
- Visual Studio 2022 is not supported: its Copilot Chat does not run the Copilot CLI that the plugin hooks into
- Node.js 18 or later on
PATH - No administrator rights. The plugin installs for the current Windows user only.
1
Create an install command
On the Copilot plugin page, choose Visual Studio, then create a key. Weave shows the key once with a PowerShell install command.
2
Run the command in Windows PowerShell
Run it as the developer who uses Visual Studio. It writes
%USERPROFILE%\.weave\visual-studio-copilot-plugin.json, installs the hook runtime under %USERPROFILE%\.weave\visual-studio-copilot-plugin, adds %LOCALAPPDATA%\Microsoft\VisualStudio\CopilotCli\hooks\weave-telemetry.json, and sends a test event to Weave.3
Restart Visual Studio and send a Copilot Chat message
The install shows as connected once that message arrives.
Privacy
Copilot has a single content toggle (COPILOT_OTEL_CAPTURE_CONTENT / github.copilot.chat.otel.captureContent for Copilot Chat, OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT for Copilot CLI), not the per-category install flags the Claude Code, Cursor, and Codex plugins use. Weave sets that toggle from your org’s prompt bodies policy.
After ingest, Weave still applies the full telemetry content policy (prompt bodies, agent messages, tool I/O, file paths, git context) before storing rows. Admins set the org floor under Telemetry content retention; members can opt out further, but not back in past the org floor.
Fleet / MDM rollout
- Create one org plugin API key.
- Deploy the five environment variables to each developer (login item, launchd, Intune, Jamf). VS Code and Copilot CLI must inherit them — a settings-only MDM profile is not enough on current Copilot.
- Optionally merge the hosted
settings.json(curl https://app.workweave.ai/api/copilot/config/<key>) and add?email=per user for attribution. The curl one-liner is settings JSON only — it is not a hook installer. On Windows,Invoke-WebRequestfetches the same URL. - On the Copilot plugin page, link installs that are not yet matched to Weave members.
Windows MDM rollout
Copilot telemetry needs no installer: the five environment variables are the whole setup. An MDM that runs scripts as SYSTEM (for example Intune or JumpCloud) can set them machine-wide, so every user and process on the device inherits them:false when your org denies prompt bodies) come from there.
- Restart VS Code. Running processes keep the environment they started with. Quit VS Code completely (and any open terminals running Copilot CLI) after the script runs, or have developers sign out and back in.
- Per-user attribution. A machine-wide value is shared by every user on the device, so it can’t carry a per-user email. Copilot sends the GitHub account email when it has one. If that email doesn’t match a Weave member, set
OTEL_RESOURCE_ATTRIBUTESat User scope instead, from a script that runs as the signed-in user (JumpCloud’s Windows - Run As Signed In User template, or Intune’s Run this script using the logged on credentials), with,user.email=you@corp.comappended. A User-scope value overrides the Machine one for that user. You can also link unmatched installs on the Copilot plugin page. - Other OpenTelemetry apps.
OTEL_EXPORTER_OTLP_ENDPOINTandOTEL_RESOURCE_ATTRIBUTESare standard OpenTelemetry variables. Set machine-wide, any other OpenTelemetry-instrumented app on the device that doesn’t configure its own exporter also reads them, and may send its telemetry to Weave with your token. If developers run such apps, set the variables at User scope or only in the environment VS Code launches from.
Metrics enabled
Once reporting, the plugin feeds:- Conversation prompt quality — prompt-level signals from captured sessions
- AI skills — per-conversation scoring (planning, verification, ownership, and more)
Cost tracking
The plugin captures activity, tokens, and behavioral signals, not GitHub invoices. Session-level cost estimates in Weave are modeled from captured tokens and model rates. Billed Copilot spend (usage report + seats) comes from the GitHub Copilot integration. Run the plugin and the GitHub connection together.Sync frequency
Telemetry is sent in real time over OTLP as Copilot Chat emits log and trace records.Uninstall
There is no--uninstall script. Remove the COPILOT_OTEL_* / OTEL_* environment variables and the github.copilot.chat.otel.* settings, then restart VS Code or Copilot CLI. Rotate or delete the API key on the Copilot plugin API keys page where you created it if you want every reference to it gone.
Visual Studio (PowerShell) (visual-studio-copilot-plugin-uninstall.ps1):
Troubleshooting
No activity after install
No activity after install
- Confirm the five environment variables are set in the process that launches VS Code / Copilot CLI (GUI apps often do not inherit your shell profile)
- Fully quit and reopen VS Code (OTEL settings load on startup)
- Confirm Copilot Chat is actually used — completions-only usage without Chat OTEL will not appear here
- Verify the machine can reach the ingest endpoint (check network/firewall)
Copilot CLI sessions are missing from AI skills
Copilot CLI sessions are missing from AI skills
Confirm
OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=true is set in the environment of the terminal that runs copilot. Copilot CLI ignores COPILOT_OTEL_CAPTURE_CONTENT, so without this variable it sends activity but no prompts or responses to score. Conversations from before you set it can’t be scored later.I only applied settings.json
I only applied settings.json
On current marketplace Copilot Chat,
github.copilot.chat.otel.resourceAttributes does not deliver weave.token. Export OTEL_RESOURCE_ATTRIBUTES (and the other env vars) as well.Usage is not attributed to a Weave member
Usage is not attributed to a Weave member
Append
,user.email=you@corp.com to OTEL_RESOURCE_ATTRIBUTES, or ?email=you@corp.com on the hosted config URL. Events without a resolvable email are dropped. Then link unmatched installs on the Copilot plugin page or the Members page.How do I know the setup worked?
How do I know the setup worked?
If a name is on People we’re receiving data from, the install worked. Dashboards update about hourly — that list is the live check.
Data privacy
The plugin receives whatever Copilot Chat puts on the OTEL export: session metadata, token counts, tool usage, edit stats, and — when content capture is on — prompt and agent text. Weave does not read source files beyond paths Copilot includes on edit events.Related integrations
- GitHub Copilot — GitHub usage and billing (spend, seats)
- Cursor plugin — the equivalent per-machine plugin for Cursor
- Claude Code plugin — the equivalent per-machine plugin for Claude Code
- Codex plugin — the equivalent per-machine plugin for Codex
