![]() |
VOOZH | about |
dotnet add package Anthropic --version 12.29.1
NuGet\Install-Package Anthropic -Version 12.29.1
<PackageReference Include="Anthropic" Version="12.29.1" />
<PackageVersion Include="Anthropic" Version="12.29.1" />Directory.Packages.props
<PackageReference Include="Anthropic" />Project file
paket add Anthropic --version 12.29.1
#r "nuget: Anthropic, 12.29.1"
#:package Anthropic@12.29.1
#addin nuget:?package=Anthropic&version=12.29.1Install as a Cake Addin
#tool nuget:?package=Anthropic&version=12.29.1Install as a Cake Tool
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.
Full documentation is available at platform.claude.com/docs/en/api/sdks/csharp.
dotnet add package Anthropic
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);
.NET Standard 2.0+
See .
This project is licensed under the MIT License. See the file for details.
| 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 is compatible. 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 was computed. 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 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 |
Showing the top 9 popular GitHub repositories that depend on Anthropic:
| Repository | Stars |
|---|---|
|
Sylinko/Everywhere
On-screen aware AI assistant for your desktop. Uses current app context, multiple LLMs, and MCP tools to help you act across apps.
|
|
|
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
|
|
|
DotHarness/dotcraft
AI Agent lives in your project. Open-source, self-hosted, multi-provider, highly scalable, powered by .NET.
|
|
|
rappen/FetchXMLBuilder
FetchXML Builder for XrmToolBox and Microsoft Dynamics 365 / CRM
|
|
|
Cysharp/CompilerBrain
CLI Coding Agent not for Vibe-coding, for C# Expert.
|
|
|
netclaw-dev/netclaw
Simple, secure, reliable agents. Self-hosted. Open source. Built with .NET.
|
| Version | Downloads | Last Updated |
|---|---|---|
| 12.29.1 | 2,998 | 6/15/2026 |
| 12.29.0 | 19,448 | 6/9/2026 |
| 12.28.0 | 3,457 | 6/9/2026 |
| 12.27.0 | 13,293 | 6/6/2026 |
| 12.26.0 | 2,194 | 6/5/2026 |
| 12.25.0 | 3,502 | 6/5/2026 |
| 12.24.1 | 34,661 | 5/28/2026 |
| 12.24.0 | 1,987 | 5/28/2026 |
| 12.23.0 | 24,606 | 5/21/2026 |
| 12.22.0 | 19,224 | 5/19/2026 |
| 12.21.0 | 24,086 | 5/13/2026 |
| 12.20.1 | 19,891 | 5/11/2026 |
| 12.20.0 | 53,155 | 5/6/2026 |
| 12.19.0 | 5,498 | 5/5/2026 |
| 12.18.0 | 22,047 | 5/5/2026 |
| 12.17.0 | 68,513 | 4/24/2026 |
| 12.16.0 | 60,598 | 4/16/2026 |
| 12.13.0 | 96,166 | 4/8/2026 |
| 12.11.0 | 63,762 | 4/1/2026 |
| 12.10.0 | 36,026 | 3/31/2026 |