![]() |
VOOZH | about |
dotnet add package JD.SemanticKernel.Connectors.Abstractions --version 0.1.67
NuGet\Install-Package JD.SemanticKernel.Connectors.Abstractions -Version 0.1.67
<PackageReference Include="JD.SemanticKernel.Connectors.Abstractions" Version="0.1.67" />
<PackageVersion Include="JD.SemanticKernel.Connectors.Abstractions" Version="0.1.67" />Directory.Packages.props
<PackageReference Include="JD.SemanticKernel.Connectors.Abstractions" />Project file
paket add JD.SemanticKernel.Connectors.Abstractions --version 0.1.67
#r "nuget: JD.SemanticKernel.Connectors.Abstractions, 0.1.67"
#:package JD.SemanticKernel.Connectors.Abstractions@0.1.67
#addin nuget:?package=JD.SemanticKernel.Connectors.Abstractions&version=0.1.67Install as a Cake Addin
#tool nuget:?package=JD.SemanticKernel.Connectors.Abstractions&version=0.1.67Install as a Cake Tool
π CI
π NuGet
π codecov
Use your GitHub Copilot subscription as an AI backend for Microsoft Semantic Kernel applications.
This connector reads your local Copilot OAuth credentials, exchanges them for short-lived API tokens, and injects authentication into SK's OpenAI-compatible chat completion β giving you access to GPT-4o, Claude, Gemini, and more through a single Copilot subscription.
dotnet add package JD.SemanticKernel.Connectors.GitHubCopilot
using JD.SemanticKernel.Connectors.GitHubCopilot;
using Microsoft.SemanticKernel;
// One-liner: reads credentials from your local Copilot installation
var kernel = Kernel.CreateBuilder()
.UseCopilotChatCompletion()
.Build();
// Use any model available through Copilot
var kernel = Kernel.CreateBuilder()
.UseCopilotChatCompletion(CopilotModels.ClaudeSonnet4)
.Build();
ββββββββββββββββββββββββ βββββββββββββββββββ ββββββββββββββββββββββββ
β Local Copilot Auth β β Token Exchange β β Copilot API β
β apps.json/hosts.jsonββββββΆβ api.github.com ββββββΆβ chat/completions β
β (ghu_* OAuth token) β β /copilot_internalβ β (OpenAI-compatible) β
ββββββββββββββββββββββββ β /v2/token β ββββββββββββββββββββββββ
βββββββββββββββββββ
β² Short-lived token
β (~30 min TTL)
β Auto-refreshed
%LOCALAPPDATA%/github-copilot/apps.json (Windows) or ~/.config/github-copilot/hosts.json (Linux/macOS)Copilot provides access to 41+ models from multiple AI providers through a single subscription.
Use CopilotModelDiscovery to discover all available models at runtime, or reference well-known constants:
| Constant | Model ID | Provider | Best For |
|---|---|---|---|
| Anthropic | |||
CopilotModels.ClaudeOpus46 |
claude-opus-4.6 |
Anthropic | Deep reasoning, complex analysis |
CopilotModels.ClaudeOpus46Fast |
claude-opus-4.6-fast |
Anthropic | Faster Opus variant |
CopilotModels.ClaudeSonnet46 |
claude-sonnet-4.6 |
Anthropic | Balanced quality/speed (default) |
CopilotModels.ClaudeSonnet4 |
claude-sonnet-4 |
Anthropic | Reliable completions |
CopilotModels.ClaudeHaiku45 |
claude-haiku-4.5 |
Anthropic | Fast, lightweight tasks |
| OpenAI | |||
CopilotModels.Gpt53Codex |
gpt-5.3-codex |
OpenAI | Latest code-specialized model |
CopilotModels.Gpt52 |
gpt-5.2 |
OpenAI | Complex reasoning |
CopilotModels.Gpt51Codex |
gpt-5.1-codex |
OpenAI | Code generation |
CopilotModels.Gpt5Mini |
gpt-5-mini |
Azure OpenAI | Fast general-purpose |
CopilotModels.Gpt4o |
gpt-4o |
Azure OpenAI | Multimodal |
CopilotModels.Gemini31Pro |
gemini-3.1-pro-preview |
Latest Gemini model | |
CopilotModels.Gemini3Pro |
gemini-3-pro-preview |
Long-context reasoning | |
CopilotModels.Gemini3Flash |
gemini-3-flash-preview |
Fast responses | |
| xAI | |||
CopilotModels.GrokCodeFast1 |
grok-code-fast-1 |
xAI | Code generation |
var discovery = new CopilotModelDiscovery(provider, httpClient, logger);
var models = await discovery.DiscoverModelsAsync();
// Returns all 41+ models including embedding and legacy variants
var kernel = Kernel.CreateBuilder()
.UseCopilotChatCompletion(CopilotModels.ClaudeSonnet46, options =>
{
// Override token file location
options.TokenFilePath = "/custom/path/apps.json";
// GitHub Enterprise Server
options.GitHubHost = "github.enterprise.com";
// Enterprise SSL bypass
options.DangerouslyDisableSslValidation = true;
// Custom endpoint
options.CustomEndpoint = "https://proxy.internal/copilot";
})
.Build();
services.AddCopilotAuthentication(configuration);
// or
services.AddCopilotAuthentication(o => o.OAuthToken = "ghu_...");
| Variable | Description |
|---|---|
GITHUB_COPILOT_TOKEN |
Override OAuth token (skips file lookup) |
| Package | Description |
|---|---|
JD.SemanticKernel.Connectors.Abstractions |
Shared interfaces for multi-provider connectors |
JD.SemanticKernel.Connectors.GitHubCopilot |
GitHub Copilot authentication connector |
JD.Tools.CopilotChat |
jdcplt β Interactive chat CLI demo |
jdcpltdotnet tool install -g JD.Tools.CopilotChat
# Interactive chat
jdcplt
# Single prompt
jdcplt --prompt "Explain async/await in C#"
# Choose a model
jdcplt --model claude-sonnet-4 --prompt "Write a haiku about code"
# List available models
jdcplt --list-models
# Enterprise SSL bypass
jdcplt --insecure
Full documentation is available at GitHub Pages or in the directory:
Both connectors implement the shared JD.SemanticKernel.Connectors.Abstractions interfaces,
enabling MCP server bridging across subscriptions.
git clone https://github.com/JerrettDavis/JD.SemanticKernel.Connectors.GitHubCopilot.git
cd JD.SemanticKernel.Connectors.GitHubCopilot
dotnet build
dotnet test
See for guidelines.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 was computed. |
| .NET Framework | net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 3 NuGet packages that depend on JD.SemanticKernel.Connectors.Abstractions:
| Package | Downloads |
|---|---|
|
JD.SemanticKernel.Connectors.ClaudeCode
Claude connector for Semantic Kernel with API-key-first authentication and optional local interactive OAuth support. Provides UseClaudeCodeChatCompletion() to wire Claude access into Semantic Kernel applications. |
|
|
JD.SemanticKernel.Connectors.GitHubCopilot
GitHub Copilot session connector for Semantic Kernel. Reads local Copilot OAuth credentials, exchanges them for short-lived API tokens, and wires authentication into any Semantic Kernel application via UseCopilotChatCompletion(). |
|
|
JD.SemanticKernel.Connectors.OpenAICodex
OpenAI Codex session connector for Semantic Kernel. Provides UseCodexChatCompletion() to wire local Codex CLI OAuth credentials (or an explicit API key) into any Semantic Kernel application without managing tokens manually. |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.67 | 48 | 6/16/2026 |
| 0.1.66 | 51 | 6/16/2026 |
| 0.1.65 | 56 | 6/15/2026 |
| 0.1.64 | 61 | 6/15/2026 |
| 0.1.63 | 52 | 6/15/2026 |
| 0.1.62 | 53 | 6/15/2026 |
| 0.1.61 | 805 | 6/8/2026 |
| 0.1.60 | 135 | 6/8/2026 |
| 0.1.59 | 1,170 | 6/2/2026 |
| 0.1.58 | 141 | 6/2/2026 |
| 0.1.57 | 135 | 6/2/2026 |
| 0.1.56 | 997 | 5/25/2026 |
| 0.1.55 | 962 | 5/18/2026 |
| 0.1.54 | 141 | 5/18/2026 |
| 0.1.53 | 141 | 5/18/2026 |
| 0.1.52 | 135 | 5/18/2026 |
| 0.1.51 | 141 | 5/18/2026 |
| 0.1.50 | 805 | 5/11/2026 |
| 0.1.49 | 151 | 5/11/2026 |
| 0.1.48 | 138 | 5/11/2026 |