# Bring Your Own Model to the GitHub Copilot SDK with C#

DevFeed: [Bring Your Own Model to the GitHub Copilot SDK with C#](<https://devfeed.tech/articles/bring-your-own-model-to-the-github-copilot-sdk-with-c-90440.md>)

Original publisher: [Read original article](<https://devblogs.microsoft.com/dotnet/bring-your-own-model-to-the-github-copilot-sdk-with-csharp/>)

Author: Bruno Capuano

Published: 2026-10-19T16:00:00Z

Content type: tutorial

Language: en

Sources: [.NET Blog](<https://devfeed.tech/sources/net-blog.md>)

Topics: [GitHub Copilot SDK](<https://devfeed.tech/topics/github-copilot-sdk.md>), [SDK](<https://devfeed.tech/topics/sdk.md>), [GitHub Copilot](<https://devfeed.tech/topics/github-copilot.md>), [Chat completions endpoints](<https://devfeed.tech/topics/chat-completions-endpoints.md>), [litellm](<https://devfeed.tech/topics/litellm.md>)

Tags: [agent-harness](<https://devfeed.tech/tags/agent-harness.md>), [agent-harnesses](<https://devfeed.tech/tags/agent-harnesses.md>), [ai](<https://devfeed.tech/tags/ai.md>), [api](<https://devfeed.tech/tags/api.md>), [azure](<https://devfeed.tech/tags/azure.md>), [azure-openai](<https://devfeed.tech/tags/azure-openai.md>), [byok](<https://devfeed.tech/tags/byok.md>), [c-sharp](<https://devfeed.tech/tags/c-sharp.md>), [copilot](<https://devfeed.tech/tags/copilot.md>), [csharp](<https://devfeed.tech/tags/csharp.md>), [dotnet](<https://devfeed.tech/tags/dotnet.md>), [github-copilot-sdk](<https://devfeed.tech/tags/github-copilot-sdk.md>), [microsoft-foundry](<https://devfeed.tech/tags/microsoft-foundry.md>), [net](<https://devfeed.tech/tags/net.md>), [runtime](<https://devfeed.tech/tags/runtime.md>)

## AI overview

This tutorial shows how to use the GitHub Copilot SDK runtime with a model provider you control. Its .NET 10 sample configures Microsoft Foundry or Azure OpenAI, supports Microsoft Entra ID or an API key, and demonstrates a minimal session that sends a model request.

## Source excerpt

The GitHub Copilot SDK gives your application an agent runtime. BYOK lets you keep that runtime while sending model requests to your own Microsoft Foundry or Azure OpenAI deployment. Here is the complete C# setup. The post Bring Your Own Model to the GitHub Copilot SDK with C# appeared first on .NET Blog.