GitHub
GitHub Copilot CLI
Copilot in the terminal, pointed at a custom provider.
Step by step
01
Install
npm i -g @github/copilot (or the gh copilot extension).
02
Export the variables
Set COPILOT_PROVIDER_BASE_URL, COPILOT_PROVIDER_API_KEY and COPILOT_MODEL below.
03
Run it
Start copilot and send a prompt.
Copy this
copilot-cli
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
Support for a custom base URL varies by Copilot CLI version, check your build if it ignores the variable.