GitHub Copilot now supports server-to-server authentication for organization-installed GitHub Apps. The capability, announced on October 27, 2026, is available in public preview and is intended for services and agents that need to make Copilot requests without using a signed-in individual’s credentials.
For platform teams, the change introduces an organization-owned identity and billing boundary for Copilot SDK workloads. It also adds operational responsibilities: administrators must configure the app correctly, protect the app’s private key, refresh short-lived installation tokens, and account for organization-level model and spending controls.
What changed
Under the new authentication method, a GitHub App installed on an organization can obtain an installation access token and use it with the GitHub Copilot SDK. The token represents the app installation rather than a particular user, making it suitable for unattended services, background workers, and agents.
GitHub describes the capability as a public preview. It applies to organizations using Copilot Business or Copilot Enterprise. The supplied administrator documentation excludes personal-account and enterprise installations from this method, so the organization installation boundary is important when designing a deployment.
For services running outside GitHub Actions, the GitHub App must have the organization-level Copilot Requests permission set to Read-only. The app must also be installed on the organization that should receive usage attribution and billing. That organization must support and enable Copilot requests from GitHub App installations.
GitHub’s announcement and the Copilot SDK authentication documentation describe the token-based flow and its configuration options.
Token lifetime and SDK configuration
Installation access tokens expire after one hour. Long-running services therefore need to mint a replacement before expiration and restart the relevant SDK client or runtime as documented. The exact restart point depends on the deployment model: child-process deployments restart the SDK client, while in-process and existing-runtime deployments restart the host runtime after refreshing the token.
The installation token can be passed through the SDK’s GitHub token option. For an existing runtime URI, the documentation also describes using COPILOT_GITHUB_TOKEN on the runtime process. Services that must not discover or fall back to signed-in-user credentials should set useLoggedInUser to false.
Examples are documented for TypeScript, Python, Go, Rust, .NET, Java, in-process FFI, and existing-runtime deployments. The supplied material does not identify specific SDK package versions, so teams should use the current configuration guidance rather than assume a particular release.
Authentication depends on GitHub App credentials
Creating an installation access token requires the GitHub App authentication flow. GitHub App private keys are used to sign the JSON Web Tokens needed to request installation tokens. GitHub’s private-key guidance recommends keeping those keys secure, preferably in a key vault, and warns against hard-coding them.
The new Copilot capability does not remove the need to manage those persistent app credentials. A sound deployment should keep the private key outside source code and build artifacts, limit access to the service that needs it, and make token renewal part of normal runtime operations. The one-hour installation-token lifetime reduces the duration of an exposed token, but it does not eliminate the need to protect the underlying private key.
Organization billing and policy boundaries
Usage is attributed and billed to the organization that owns the GitHub App installation. The organization’s Copilot model policies, budgets, and spending controls apply to requests made through the app. The app can use only models allowed by those organization policies.
There is no separate budget for an individual app or installation. If an organization needs usage to stop when a budget limit is reached, administrators must use the organization-level Stop usage when budget limit is reached control. This means teams should treat app-based Copilot services as part of the organization’s shared Copilot consumption rather than as independently budgeted applications.
Administrators can identify app-attributed usage in AI usage CSV exports through app_client_id. They can also block an installation by suspending or uninstalling the app. Those actions affect the installation’s access to other organization resources as well, so they should be considered an administrative control for the whole app installation rather than a narrowly scoped Copilot switch.
GitHub Actions is a separate path
The GitHub App installation-token flow should not be confused with Copilot SDK usage from GitHub Actions. Actions uses the built-in GITHUB_TOKEN and the documented workflow requires contents: read and copilot-requests: write permissions. This path does not require a GitHub App or a stored authentication secret, but it has its own organization policy requirements.
In other words, teams should select the authentication model based on where the service runs. A service outside GitHub Actions generally needs an eligible organization-installed GitHub App, the Copilot Requests permission, an installation token, and token-refresh handling. A workflow running in GitHub Actions follows the separate GITHUB_TOKEN-based configuration.
What developers and administrators should do
- Confirm eligibility. Verify that the target organization uses Copilot Business or Copilot Enterprise and supports Copilot requests from GitHub App installations.
- Configure the app. Set the organization-level Copilot Requests permission to Read-only and install the app on the organization that should receive attribution and billing.
- Protect the private key. Store the GitHub App private key in a secure key-management system rather than hard-coding it in the service.
- Provide the installation token explicitly. Pass the token through the SDK’s supported GitHub token configuration and disable logged-in-user discovery with
useLoggedInUser: falsewhere user credentials must not be used. - Implement renewal. Refresh the installation token before its one-hour expiration and restart the applicable client or runtime as required by the deployment model.
- Review organization controls. Check model policies, budgets, spending controls, and the organization-level stop-usage setting before putting an unattended service into production.
- Monitor attribution. Use AI usage CSV exports and the
app_client_idfield to distinguish app-attributed activity. For Actions workloads, follow the separate permissions and policy requirements.
Public-preview limitations
This server-to-server authentication capability is subject to change, and GitHub has not documented a general-availability date in the supplied materials. The documentation establishes broad plan, installation, and model-policy boundaries, but it does not fully describe every possible regional, model-specific, or plan-specific restriction.
The available guidance also explains the required permissions, private-key dependency, installation-token context, and SDK configuration, but it is not a complete end-to-end tutorial for creating the GitHub App, generating the JWT, and minting the installation token. Teams should use GitHub’s app authentication and Copilot SDK documentation together when implementing the flow.


