copilot-sdk/docs/auth at main · github/copilot-sdk · GitHub
Skip to content

Latest commit

 

History

History

auth

Folders and files

README.md

Authentication

Choose the authentication method that best fits your deployment scenario for the GitHub Copilot SDK.

Authentication priority

When multiple credentials are configured, an explicit SDK token takes priority, followed by direct Copilot API environment authentication, environment variable GitHub tokens, stored Copilot CLI credentials, and then GitHub CLI credentials. GitHub App installation tokens outside GitHub Actions use the explicit SDK token, or COPILOT_GITHUB_TOKEN on the runtime process for an existing runtime URI. See Authenticate Copilot SDK for details.

For multi-user server mode, pass a per-session gitHubToken so each session runs with the correct GitHub identity; see Multi-user and server deployments.