Skip to content

docs: COPILOT_PROVIDER_* variables not documented and strict-mode allowlist not updated #29378

@MauroDruwel

Description

@MauroDruwel

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

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions