Skip to content

GitHub Copilot

Configure HolmesGPT to use AI models through your GitHub Copilot subscription.

GitHub Copilot vs GitHub Models

This page covers GitHub Copilot (subscription-based, uses github_copilot/ prefix). For GitHub Models (token-based, uses github/ prefix), see the GitHub Models page.

Prerequisites

  • A GitHub Copilot subscription (individual, business, or enterprise)
  • LiteLLM handles authentication automatically via OAuth device flow — no API key needed

Required Headers

GitHub Copilot's API requires IDE-identifying headers (Editor-Version, Editor-Plugin-Version, Copilot-Integration-Id, User-Agent) on every request. Without them, requests fail with "missing Editor-Version header for IDE auth".

Configure them via the extra_headers field in your model list configuration, or the EXTRA_HEADERS environment variable — see the examples below.

Configuration

Create ~/.holmes/model_list.yaml:

copilot-claude:
  model: github_copilot/claude-sonnet-4.5
  extra_headers:
    Editor-Version: "vscode/1.85.1"
    Editor-Plugin-Version: "copilot-chat/0.26.7"
    Copilot-Integration-Id: "vscode-chat"
    User-Agent: "GithubCopilot/1.155.0"

Run Holmes:

holmes ask "what pods are failing?" --model="copilot-claude"

On first run, LiteLLM will prompt you to authorize the device via a GitHub URL. After authorization, the token is cached locally.

Alternative — environment variable:

export EXTRA_HEADERS='{"Editor-Version": "vscode/1.85.1", "Editor-Plugin-Version": "copilot-chat/0.26.7", "Copilot-Integration-Id": "vscode-chat", "User-Agent": "GithubCopilot/1.155.0"}'

holmes ask "what pods are failing?" --model="github_copilot/claude-sonnet-4.5"
# values.yaml
modelList:
  copilot-claude:
    model: github_copilot/claude-sonnet-4.5
    extra_headers:
      Editor-Version: "vscode/1.85.1"
      Editor-Plugin-Version: "copilot-chat/0.26.7"
      Copilot-Integration-Id: "vscode-chat"
      User-Agent: "GithubCopilot/1.155.0"

config:
  model: "copilot-claude"
# values.yaml
holmes:
  modelList:
    copilot-claude:
      model: github_copilot/claude-sonnet-4.5
      extra_headers:
        Editor-Version: "vscode/1.85.1"
        Editor-Plugin-Version: "copilot-chat/0.26.7"
        Copilot-Integration-Id: "vscode-chat"
        User-Agent: "GithubCopilot/1.155.0"

  config:
    model: "copilot-claude"

Additional Resources