A community-driven registry for Claude, Cursor, Windsurf, Cline & more. Not affiliated with Anthropic.
Are you the author? Sign in to claim
Access to Anthropic's safety-first language model APIs in C#
[!IMPORTANT] As of version 10+, the
Anthropicpackage 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 totryAGI.Anthropic. If you need to continue using the former client in your project, update your package reference totryAGI.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 CONTRIBUTING.md.
This project is licensed under the MIT License. See the LICENSE file for details.
1000+ skills curated from Anthropic, Vercel, Stripe, and other engineering teams
Claude Code skill for YouTube creators — channel audits, video SEO, retention scripts, thumbnails, content strategy, Sho
Design enforcement with memory — keeps your UI consistent across a project
AI image generation skill for Claude Code -- Creative Director powered by Gemini