Skip to main content
GitHub Copilot CLI is GitHub’s coding agent for the terminal. It supports custom model providers through environment variables, so it runs on any model in the Opper catalog — and with a custom provider configured, it needs no Copilot plan and no GitHub sign-in.

Setup

COPILOT_PROVIDER_TYPE also accepts anthropic for the Anthropic Messages format — both work against Opper’s gateway, which serves each surface from the same base URL. Run copilot help providers for the full reference.
GitHub documents COPILOT_PROVIDER_BASE_URL and COPILOT_MODEL as the required pair; the type and key variables are what point it at Opper specifically. GitHub’s own BYOK docs don’t spell out whether a Copilot plan stays mandatory, so if you’re prompted to sign in on a managed or enterprise-provisioned install, that’s your org’s policy rather than the gateway.

Choosing a model

Set COPILOT_MODEL to any model ID from the catalog. Copilot CLI needs tool calling and streaming — pick a model the catalog marks with the tools capability.

Troubleshooting

The provider variables have to be set before copilot starts, in the same shell. Check COPILOT_PROVIDER_BASE_URL and COPILOT_MODEL first — GitHub treats those two as required — then confirm COPILOT_PROVIDER_TYPE and COPILOT_PROVIDER_API_KEY are exported too.
Copy the model ID exactly from the catalog, including the provider prefix.
The model needs tool-calling support. Check the model is marked with the tools capability in the catalog and switch if not.

GitHub Copilot in VS Code

Copilot Chat and agent mode, via the Opper VS Code extension.

All integrations

Every app that runs on Opper.