KION
← All articles

AI automation / GitHub Copilot / C# / .NET / workflow integration

Bring Your Own Model to the GitHub Copilot SDK with C# Boosts Regional Workflow Automation

23/10/2026

GitHub Copilot SDK now supports Bring Your Own Model via ProviderConfig, letting .NET teams route inference to self-hosted endpoints while keeping the Copilot runtime.

What Changed

Microsoft now lets teams route GitHub Copilot SDK inference to a model provider they control, rather than relying only on Copilot’s default model. Using a ProviderConfig object, a .NET 10 application can keep the Copilot agent runtime — which manages the client, session, system message, and agent configuration — while sending the actual model request to an organization-hosted endpoint S1. Supported destinations include OpenAI, Anthropic, Ollama, Microsoft Foundry Local, and any OpenAI-compatible endpoint such as vLLM or LiteLLM. Authentication can reuse Microsoft Entra ID via Azure.Identity or fall back to an API key, and the sample keeps endpoints and credentials out of source control using .NET User Secrets S1. The change separates the runtime from the model provider, so teams can switch deployments without rewriting agent logic.

What It Means for Business Teams in Egypt, Saudi Arabia, and the UAE

For regional teams building internal tools, this removes a key blocker: you can adopt Copilot’s agent runtime without surrendering data or inference costs to a single external model. A bank in Saudi Arabia, a logistics firm in the Emirates, or a fintech in Egypt can point the SDK at a locally deployed or Azure-hosted model, keeping sensitive prompts within approved boundaries while still benefiting from Copilot’s session and tool management. Because the sample is a small console app with configuration-driven endpoints, integration leads can test a single proof-of-concept before wiring it into existing automation pipelines. The practical win is control over cost, compliance, and latency — not a new feature set.

Evaluation Checklist

  • Confirm your target model endpoint is OpenAI-compatible or supported by the Copilot SDK provider list.
  • Verify authentication: choose between Microsoft Entra ID (via Azure.Identity) and an API key, and store secrets outside source control.
  • Validate that your deployment supports the Responses API, since the sample uses WireApi = "responses".
  • Run the minimal console sample end-to-end before integrating into your automation workflow.
  • Map one existing internal task to a Copilot session to measure latency and cost against your current approach.

Teams that need agentic automation while retaining model control should evaluate this capability now, then connect it to broader integration work through our automation services. Questions? Reach us at contact.

Sources

AI-assisted analysis based on the following primary sources.