Anthropic 12.9.0

Prefix Reserved
dotnet add package Anthropic --version 12.9.0
                    
NuGet\Install-Package Anthropic -Version 12.9.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Anthropic" Version="12.9.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Anthropic" Version="12.9.0" />
                    
Directory.Packages.props
<PackageReference Include="Anthropic" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Anthropic --version 12.9.0
                    
#r "nuget: Anthropic, 12.9.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Anthropic@12.9.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Anthropic&version=12.9.0
                    
Install as a Cake Addin
#tool nuget:?package=Anthropic&version=12.9.0
                    
Install as a Cake Tool

Claude SDK for C#

NuGet Version

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (24)

Showing the top 5 NuGet packages that depend on Anthropic:

Package Downloads
LangChain.Providers.Anthropic

Anthropic API LLM and Chat model provider.

Intelica.Infrastructure.Library

Package Description

Anthropic.Foundry

Package Description

Microsoft.Agents.AI.Anthropic

Provides Microsoft Agent Framework support for Anthropic Agents.

WarpToolkit.WinForms.AI

Preview-Version of the Winforms Ai- and RevamP -Toolkit (WARP). You need to target TFM 'net9-windows10.0.22000.0' at the least. Note, that this is a preview version and may be unstable. **DISCLAIMER** – USE AT YOUR OWN RISK This NuGet package is a personal collection of experimental ideas and proof-of-concepts by Klaus Löffelmann. It is part of an AI learning ramp-up project focused on exploring modernization strategies for Windows Forms (WinForms). The package is not production-ready and may contain bugs, incomplete features, or other issues. It is intended solely for educational and conceptual exploration. Although the author is a full-time Microsoft employee, this project is a personal initiative and is not affiliated with, endorsed by, or supported by Microsoft. Versions 0.x are released under the MIT License. Licensing terms may change for future 1.x versions and beyond.

GitHub repositories (2)

Showing the top 2 popular GitHub repositories that depend on Anthropic:

Repository Stars
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.9.0 2,649 3/16/2026
12.8.0 59,281 2/19/2026
12.7.0 3,117 2/18/2026
12.6.0 2,028 2/18/2026
12.5.0 13,233 2/12/2026
12.4.0 13,740 2/9/2026
12.3.0 50,806 1/29/2026
12.2.0 36,303 1/14/2026
12.1.0 16,180 1/7/2026
12.0.1 40,448 12/18/2025
12.0.0 8,195 12/16/2025
11.0.0 45,218 12/2/2025
10.4.0 3,239 11/26/2025
10.2.1 1,866 11/21/2025
10.1.2 3,367 11/18/2025
10.0.1 1,194 11/18/2025
3.7.1-dev.6 518 6/18/2025 3.7.1-dev.6 is deprecated.
3.7.1-dev.5 510 6/18/2025 3.7.1-dev.5 is deprecated.
0.2.0-alpha03 532 11/18/2025
Loading failed