Integrations / GitHub Copilot CLI
G

GitHub Copilot CLI

GitHub · Verified setup guide

Copilot in the terminal, pointed at a custom provider.

Setup steps

  1. 1
    Installnpm i -g @github/copilot (or the gh copilot extension).
  2. 2
    Export the variablesSet COPILOT_PROVIDER_BASE_URL, COPILOT_PROVIDER_API_KEY and COPILOT_MODEL below.
  3. 3
    Run itStart copilot and send a prompt.

Configuration example

bash
export COPILOT_PROVIDER_BASE_URL="https://api.luxechain.si/v1"
export COPILOT_PROVIDER_API_KEY="lxc_live_YOUR_KEY"
export COPILOT_MODEL="YOUR_MODEL_ID"

gh copilot

Replace YOUR_MODEL_ID with any model from the catalogue. Never paste a real API key into a shared document.

Troubleshooting

Support for a custom base URL varies by Copilot CLI version, check your build if it ignores the variable.

If the tool rejects the endpoint, confirm the base URL exactly matches the value on the right, and that the key is active in your account.