Anthropic 12.24.1
Prefix Reserveddotnet add package Anthropic --version 12.24.1
NuGet\Install-Package Anthropic -Version 12.24.1
<PackageReference Include="Anthropic" Version="12.24.1" />
<PackageVersion Include="Anthropic" Version="12.24.1" />
<PackageReference Include="Anthropic" />
paket add Anthropic --version 12.24.1
#r "nuget: Anthropic, 12.24.1"
#:package Anthropic@12.24.1
#addin nuget:?package=Anthropic&version=12.24.1
#tool nuget:?package=Anthropic&version=12.24.1
Claude SDK for C#
As of version 10+, the Anthropic package is now the official Claude SDK for C#. Package versions 3.X and below were previously used for the tryAGI community-built SDK, which has moved to tryAGI.Anthropic. If you need to continue using the former client in your project, update your package reference to tryAGI.Anthropic.
The Claude SDK for C# provides access to the Claude API from C# applications.
Documentation
Full documentation is available at platform.claude.com/docs/en/api/sdks/csharp.
Installation
dotnet add package Anthropic
Getting started
using System;
using Anthropic;
using Anthropic.Models.Messages;
AnthropicClient client = new();
MessageCreateParams parameters = new()
{
MaxTokens = 1024,
Messages =
[
new()
{
Role = Role.User,
Content = "Hello, Claude",
},
],
Model = "claude-opus-4-6",
};
var message = await client.Messages.Create(parameters);
Console.WriteLine(message);
Requirements
.NET Standard 2.0+
Contributing
See CONTRIBUTING.md.
License
This project is licensed under the MIT License. See the LICENSE file for details.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Microsoft.Extensions.AI.Abstractions (>= 10.5.1)
- System.Collections.Immutable (>= 8.0.0)
- System.Net.ServerSentEvents (>= 10.0.1)
- System.Text.Json (>= 10.0.6)
- System.Threading.Tasks.Extensions (>= 4.6.3)
-
net8.0
- Microsoft.Extensions.AI.Abstractions (>= 10.5.1)
- System.Net.ServerSentEvents (>= 10.0.1)
- System.Text.Json (>= 10.0.6)
-
net9.0
- Microsoft.Extensions.AI.Abstractions (>= 10.5.1)
- System.Net.ServerSentEvents (>= 10.0.1)
- System.Text.Json (>= 10.0.6)
NuGet packages (35)
Showing the top 5 NuGet packages that depend on Anthropic:
| Package | Downloads |
|---|---|
|
LangChain.Providers.Anthropic
Anthropic API LLM and Chat model provider. |
|
|
Anthropic.Foundry
Package Description |
|
|
Microsoft.Agents.AI.Anthropic
Provides Microsoft Agent Framework support for Anthropic Agents. |
|
|
Intelica.Infrastructure.Library
Package Description |
|
|
Anthropic.Bedrock
Package Description |
GitHub repositories (7)
Showing the top 7 popular GitHub repositories that depend on Anthropic:
| Repository | Stars |
|---|---|
|
Sylinko/Everywhere
Context-aware AI assistant for your desktop. Ready to respond intelligently, seamlessly integrating multiple LLMs and MCP tools.
|
|
|
modelcontextprotocol/csharp-sdk
The official C# SDK for Model Context Protocol servers and clients. Maintained in collaboration with Microsoft.
|
|
|
getcellm/cellm
Use LLMs in Excel formulas
|
|
|
clawdotnet/openclaw.net
Self-hosted OpenClaw gateway + agent runtime in .NET (NativeAOT-friendly)
|
|
|
CodeAlta/CodeAlta
Your efficient agentic AI coding CLI assistant
|
|
|
rappen/FetchXMLBuilder
FetchXML Builder for XrmToolBox and Microsoft Dynamics 365 / CRM
|
|
|
Cysharp/CompilerBrain
CLI Coding Agent not for Vibe-coding, for C# Expert.
|
| Version | Downloads | Last Updated |
|---|---|---|
| 12.24.1 | 4,191 | 5/28/2026 |
| 12.24.0 | 540 | 5/28/2026 |
| 12.23.0 | 13,255 | 5/21/2026 |
| 12.22.0 | 13,573 | 5/19/2026 |
| 12.21.0 | 15,851 | 5/13/2026 |
| 12.20.1 | 11,213 | 5/11/2026 |
| 12.20.0 | 28,410 | 5/6/2026 |
| 12.19.0 | 3,701 | 5/5/2026 |
| 12.18.0 | 9,594 | 5/5/2026 |
| 12.17.0 | 54,273 | 4/24/2026 |
| 12.16.0 | 49,285 | 4/16/2026 |
| 12.13.0 | 78,410 | 4/8/2026 |
| 12.11.0 | 56,623 | 4/1/2026 |
| 12.10.0 | 31,093 | 3/31/2026 |
| 12.9.0 | 129,476 | 3/16/2026 |
| 12.8.0 | 231,801 | 2/19/2026 |
| 12.7.0 | 4,000 | 2/18/2026 |
| 12.6.0 | 3,128 | 2/18/2026 |
| 12.5.0 | 21,893 | 2/12/2026 |
| 12.4.0 | 41,123 | 2/9/2026 |