[GH-ISSUE #15585] launch command for copilot CLI #56462

Closed
opened 2026-04-29 10:51:04 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @scaryrawr on GitHub (Apr 14, 2026).
Original GitHub issue: https://github.com/ollama/ollama/issues/15585

Copilot CLI has support for BYOK now, this enables launching copilot CLI similarly to the existing claude code integration (all environment variables no config files).

I find the copilot help providers output easier to read compared to the web page 😅:

  COPILOT_PROVIDER_BASE_URL          API endpoint URL (required to activate BYOK)
  COPILOT_PROVIDER_TYPE              "openai" (default), "azure", or "anthropic"
  COPILOT_PROVIDER_API_KEY           API key (optional for local providers like Ollama)
  COPILOT_PROVIDER_BEARER_TOKEN      Bearer token (takes precedence over API key)
  COPILOT_PROVIDER_WIRE_API          "completions" (default) or "responses"
  COPILOT_PROVIDER_AZURE_API_VERSION Azure API version (default: versionless v1)

Model Configuration:

  COPILOT_MODEL                             Model name (sets both model ID and wire model)
  COPILOT_PROVIDER_MODEL_ID                 Well-known model ID for agent config and token limits
  COPILOT_PROVIDER_WIRE_MODEL               Model name sent to the provider API for inference
  COPILOT_PROVIDER_MAX_PROMPT_TOKENS        Maximum prompt tokens
  COPILOT_PROVIDER_MAX_OUTPUT_TOKENS        Maximum output tokens

  A model is required for BYOK. Set COPILOT_MODEL, COPILOT_PROVIDER_MODEL_ID, or --model.
Originally created by @scaryrawr on GitHub (Apr 14, 2026). Original GitHub issue: https://github.com/ollama/ollama/issues/15585 [Copilot CLI](https://github.com/features/copilot/cli/) has support for [BYOK](https://docs.github.com/en/copilot/how-tos/copilot-cli/customize-copilot/use-byok-models) now, this enables launching copilot CLI similarly to the existing claude code integration (all environment variables no config files). I find the `copilot help providers` output easier to read compared to the web page 😅: ```md COPILOT_PROVIDER_BASE_URL API endpoint URL (required to activate BYOK) COPILOT_PROVIDER_TYPE "openai" (default), "azure", or "anthropic" COPILOT_PROVIDER_API_KEY API key (optional for local providers like Ollama) COPILOT_PROVIDER_BEARER_TOKEN Bearer token (takes precedence over API key) COPILOT_PROVIDER_WIRE_API "completions" (default) or "responses" COPILOT_PROVIDER_AZURE_API_VERSION Azure API version (default: versionless v1) Model Configuration: COPILOT_MODEL Model name (sets both model ID and wire model) COPILOT_PROVIDER_MODEL_ID Well-known model ID for agent config and token limits COPILOT_PROVIDER_WIRE_MODEL Model name sent to the provider API for inference COPILOT_PROVIDER_MAX_PROMPT_TOKENS Maximum prompt tokens COPILOT_PROVIDER_MAX_OUTPUT_TOKENS Maximum output tokens A model is required for BYOK. Set COPILOT_MODEL, COPILOT_PROVIDER_MODEL_ID, or --model. ```
GiteaMirror added the feature request label 2026-04-29 10:51:04 -05:00
Author
Owner

@ParthSareen commented on GitHub (Apr 17, 2026):

Thanks for adding the integration :D Excited to get it in!

<!-- gh-comment-id:4264424255 --> @ParthSareen commented on GitHub (Apr 17, 2026): Thanks for adding the integration :D Excited to get it in!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#56462