![]() |
VOOZH | about |
dotnet add package JD.SemanticKernel.Connectors.ClaudeCode --version 1.0.37
NuGet\Install-Package JD.SemanticKernel.Connectors.ClaudeCode -Version 1.0.37
<PackageReference Include="JD.SemanticKernel.Connectors.ClaudeCode" Version="1.0.37" />
<PackageVersion Include="JD.SemanticKernel.Connectors.ClaudeCode" Version="1.0.37" />Directory.Packages.props
<PackageReference Include="JD.SemanticKernel.Connectors.ClaudeCode" />Project file
paket add JD.SemanticKernel.Connectors.ClaudeCode --version 1.0.37
#r "nuget: JD.SemanticKernel.Connectors.ClaudeCode, 1.0.37"
#:package JD.SemanticKernel.Connectors.ClaudeCode@1.0.37
#addin nuget:?package=JD.SemanticKernel.Connectors.ClaudeCode&version=1.0.37Install as a Cake Addin
#tool nuget:?package=JD.SemanticKernel.Connectors.ClaudeCode&version=1.0.37Install as a Cake Tool
👁 NuGet
👁 NuGet Downloads
👁 CI
👁 CodeQL
👁 codecov
A Semantic Kernel connector for Anthropic models with API-key-first authentication and optional local Claude Code OAuth support.
sk-ant-api* via options or ANTHROPIC_API_KEYsk-ant-oat* is opt-in and interactive-onlyIKernelBuilder.UseClaudeCodeChatCompletion() one-linerIServiceCollection.AddClaudeCodeAuthentication() for ASP.NET Core / Generic Hostnetstandard2.0, net8.0, net10.0EnableOAuthTokenSupport = true and an interactive session.sk-ant-api*).dotnet add package JD.SemanticKernel.Connectors.ClaudeCode
using JD.SemanticKernel.Connectors.ClaudeCode;
var builder = Kernel.CreateBuilder();
builder.UseClaudeCodeChatCompletion(apiKey: "sk-ant-api..."); // defaults to ClaudeModels.Default (Sonnet)
var kernel = builder.Build();
var result = await kernel.InvokePromptAsync("Hello, Claude!");
Console.WriteLine(result);
builder.Services.AddClaudeCodeAuthentication(options =>
{
options.CredentialsPath = "/custom/path/.credentials.json"; // optional
options.EnableOAuthTokenSupport = true; // only for local interactive OAuth use
});
{
"ClaudeSession": {
"ApiKey": null,
"OAuthToken": null,
"EnableOAuthTokenSupport": false,
"CredentialsPath": null
}
}
builder.Services.AddClaudeCodeAuthentication(builder.Configuration);
| Priority | Source | Description |
|---|---|---|
| 1 | ClaudeSession:ApiKey |
Explicit API key in options/config |
| 2 | ANTHROPIC_API_KEY env var |
Environment variable |
| 3 | ClaudeSession:OAuthToken |
Explicit OAuth token (requires EnableOAuthTokenSupport = true) |
| 4 | ~/.claude/.credentials.json |
Local Claude Code session (requires EnableOAuthTokenSupport = true) |
This repo includes sample projects demonstrating agentic workflows with Semantic Kernel:
| Tool | Command | Description |
|---|---|---|
| Gherkin Generator | jdgerkinator |
Converts acceptance criteria into Gherkin/Reqnroll specs |
| PR Review Agent | jdpr |
Multi-provider PR review (GitHub, Azure DevOps, GitLab) |
| Codebase Explorer | jdxplr |
Profiles codebases into structured knowledgebases |
| Todo Extractor | (library demo) | Extracts structured todos from natural language |
Install the CLI tools as global tools:
dotnet tool install -g JD.Tools.GherkinGenerator
dotnet tool install -g JD.Tools.PullRequestReviewer
dotnet tool install -g JD.Tools.CodebaseExplorer
Well-known model constants are available via ClaudeModels:
builder.UseClaudeCodeChatCompletion(ClaudeModels.Opus); // claude-opus-4-6
builder.UseClaudeCodeChatCompletion(ClaudeModels.Sonnet); // claude-sonnet-4-6 (default)
builder.UseClaudeCodeChatCompletion(ClaudeModels.Haiku); // claude-haiku-4-5
Full documentation is available at the including:
dotnet build
dotnet test
cd docs
dotnet tool restore
dotnet docfx docfx.json
This connector implements the JD.SemanticKernel.Connectors.Abstractions interfaces, enabling multi-provider bridging:
| Interface | Implementation |
|---|---|
ISessionProvider |
ClaudeCodeSessionProvider — credential resolution with IsAuthenticatedAsync() |
IModelDiscoveryProvider |
ClaudeModelDiscovery — returns known Claude model catalogue |
SessionOptionsBase |
ClaudeCodeSessionOptions — inherits DangerouslyDisableSslValidation, CustomEndpoint |
Use the same abstractions across providers:
ISessionProvider provider = isClaudeCode
? claudeCodeProvider
: copilotProvider;
var creds = await provider.GetCredentialsAsync();
| 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 1 NuGet packages that depend on JD.SemanticKernel.Connectors.ClaudeCode:
| Package | Downloads |
|---|---|
|
JD.AI.Core
Core library for JD.AI — agents, providers, sessions, tools, orchestration, and event bus. Shared by the TUI, Gateway, and channel adapters. |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.37 | 47 | 6/16/2026 |
| 1.0.36 | 50 | 6/16/2026 |
| 1.0.35 | 54 | 6/15/2026 |
| 1.0.34 | 713 | 6/8/2026 |
| 1.0.33 | 96 | 6/8/2026 |
| 1.0.32 | 410 | 6/2/2026 |
| 1.0.31 | 459 | 5/25/2026 |
| 1.0.30 | 643 | 5/18/2026 |
| 1.0.29 | 1,106 | 5/11/2026 |
| 1.0.28 | 109 | 5/11/2026 |
| 1.0.27 | 111 | 5/4/2026 |
| 1.0.26 | 1,492 | 4/27/2026 |
| 1.0.25 | 125 | 4/20/2026 |
| 1.0.24 | 107 | 4/20/2026 |
| 1.0.23 | 1,291 | 4/13/2026 |
| 1.0.22 | 107 | 4/13/2026 |
| 1.0.21 | 1,605 | 4/6/2026 |
| 1.0.20 | 947 | 3/31/2026 |
| 1.0.19 | 101 | 3/31/2026 |
| 1.0.18 | 122 | 3/25/2026 |