Lumoswitch Docs
Client setup

GitHub Copilot CLI setup

GitHub Copilot CLI BYOK supports an OpenAI Chat Completions-compatible endpoint. Create an OpenAI-compatible API configuration, then export:

export COPILOT_PROVIDER_TYPE="openai"
export COPILOT_PROVIDER_BASE_URL="https://api.lumoswitch.com/v1"
export COPILOT_PROVIDER_API_KEY="your-lumoswitch-access-key"
export COPILOT_MODEL="your-client-facing-model-name"
export COPILOT_OFFLINE="true"

copilot

GitHub sign-in is not required in BYOK mode. COPILOT_OFFLINE=true prevents runtime GitHub connections for optional features such as repository integration. The model must support streaming and tool/function calling; GitHub recommends at least a 128K context window.

Troubleshooting

  • If the default model remains active, verify all five COPILOT_ variables are visible to the process.
  • Tool or editing failures usually indicate missing model capabilities or insufficient context.
  • The base URL ends in /v1, not /chat/completions.
  • Use the API configuration's client-facing model name.

Reference: GitHub Copilot CLI BYOK documentation.

On this page