Skip to content

GitHub Copilot

To use GitHub Copilot as an AI provider in Team Edition, configure it as follows:

  1. Sign in to your GitHub account
  2. Go to the GitHub Copilot page and activate a free trial or subscription
  3. In Team Edition, go to Window -> Preferences -> AI -> Model configurations
  4. Click + and choose GitHub Copilot as the engine to create a profile
  5. Click Authorize to start GitHub device authorization
  6. Open the verification URL shown by Team Edition and enter the displayed code
  7. Complete authorization in GitHub. Team Edition fills in the Access token field automatically

    Important

    The token is visible only once. After you save the changes, it’ll be masked for security.

  8. Choose the model

  9. Click Test connection to verify that the token and model work correctly
  10. Apply the changes

Settings

Setting Description Default
Access token GitHub access token filled in automatically after you complete device authorization with Authorize.
Authentication URL Your GitHub Enterprise Cloud hostname (for example your-org.ghe.com) to authenticate against, instead of the public github.com. Leave empty to use github.com.
Model Choose the AI model. Models are loaded dynamically and can be refreshed using the Refresh models button next to the field.
Context window size A larger number allows the AI to use more data for better answers but may slow down response time. The size is set dynamically based on the selected model. Model-dependent
Temperature Control AI's creativity from 0.0 (more precise) to 0.9 (more diverse).
Note that higher temperature can lead to less predictable results.
Model-dependent (0.0 fallback)
Request timeout (sec) Maximum time Team Edition waits for a response from the AI engine before the request fails; available under Advanced settings 30
Use environment variables Read supported environment variables to override saved settings; available under Advanced settings Off
Write AI queries to debug log Logs your AI requests. For more details on logging, see Log Viewer; available under Advanced settings disabled

Use environment variables

Variable Description
COPILOT_GITHUB_TOKEN GitHub access token; used even if GH_TOKEN or GITHUB_TOKEN is also set
GH_TOKEN Access token used if COPILOT_GITHUB_TOKEN is not set
GITHUB_TOKEN Access token used if neither COPILOT_GITHUB_TOKEN nor GH_TOKEN is set
COPILOT_MODEL Model name
DBEAVER_AI_COPILOT_AUTH_URL Authentication endpoint