Skip to main content
Skip to content

Client info

Client info identifies the application using the Copilot SDK and, when applicable, a specific integration within it. An integration is an identifiable sub-part of the application through which the SDK is used, such as an extension or plugin. Set the optional clientInfo client option to attribute runtime telemetry for that connection to your application instead of the runtime's own build.

When to set client info

Set client info when your SDK application represents a distinct product, service, or integration whose runtime activity should be attributed consistently.

Leave client info unset for scripts, one-off tools, and jobs that do not represent a distinct application. The runtime then keeps its default attribution.

Client info has four optional string fields. Set the fields you know and omit the rest. The SDK includes client info in the server.connect handshake only when at least one field has a non-empty value.

FieldExampleMeaning
applicationName"vscode"Name of the application using the SDK
applicationVersion"1.124.2"Version of the application using the SDK
integrationName"copilot-chat"Name of the extension, plugin, or other application sub-part using the SDK
integrationVersion"0.54.0"Version of that extension, plugin, or application sub-part

For a standalone application without a distinct integration, set only the application fields. For example, a developer portal could set applicationName to "acme-developer-portal" and applicationVersion to "2.4.0", leaving both integration fields unset.

The SDK sends client info once when it establishes the connection. The identity applies for the lifetime of that connection.

Configure client info

Pass client info when you create the client:

Codesprachen navigation

TypeScript
import { CopilotClient } from "@github/copilot-sdk";

const client = new CopilotClient({
  clientInfo: {
    applicationName: "vscode",
    applicationVersion: "1.124.2",
    integrationName: "copilot-chat",
    integrationVersion: "0.54.0",
  },
});

await client.start();

Notes

  • Client info is advisory. The runtime can ignore values that do not match the expected format, such as an invalid version string.
  • Setting client info changes how the runtime attributes its telemetry. It does not change what the runtime records.
  • If every field is unset or empty, the SDK omits client info from the handshake and the runtime keeps its default attribution.