Problem
I've been trying to use the Copilot engine with an external model provider (BYOK) but I can't find any documentation on how to actually set it up.
I know there's a feature for this — I've seen references to COPILOT_PROVIDER_* variables in the Copilot CLI changelog — but there are no docs or examples in this repo explaining how to use them with gh aw.
What I don't know
- Where to put the provider API key (is it in
engine.env? somewhere else?)
- Which variables are needed (e.g.
COPILOT_PROVIDER_BASE_URL, COPILOT_PROVIDER_API_KEY, COPILOT_PROVIDER_TYPE…)
- How to authenticate to the new base URL without breaking GitHub's own auth
- When I put a secret in
engine.env I get a warning that it might be leaked — so is engine.env even the right place?
What would help
- A short example or how-to guide showing a complete working workflow using an external provider
- Docs explaining where provider credentials go and how they're kept out of the agent container
Problem
I've been trying to use the Copilot engine with an external model provider (BYOK) but I can't find any documentation on how to actually set it up.
I know there's a feature for this — I've seen references to
COPILOT_PROVIDER_*variables in the Copilot CLI changelog — but there are no docs or examples in this repo explaining how to use them withgh aw.What I don't know
engine.env? somewhere else?)COPILOT_PROVIDER_BASE_URL,COPILOT_PROVIDER_API_KEY,COPILOT_PROVIDER_TYPE…)engine.envI get a warning that it might be leaked — so isengine.enveven the right place?What would help