Anthropic SDK Csharp — AI skill for Claude Code
Access to Anthropic's safety-first language model APIs in C#.
How to install Anthropic SDK Csharp
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open anthropics/anthropic-sdk-csharp and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Anthropic SDK Csharp does
Access to Anthropic's safety-first language model APIs in C#.
Alternatives in AI
- Welcome — AI Research Skills — You now have access to 86 production-ready skills covering the entire AI research lifecycle: literature survey 5.4k ★
- WindsurfAPI — Turn Windsurf / Devin Desktop's 100+ AI models (Claude, GPT, Gemini, DeepSeek, Kimi, GLM, SWE) into OpenAI-, A 3k ★
- Anthropic SDK TypeScript — Access to Anthropic's safety-first language model APIs in TypeScript 2.1k ★
README
Claude SDK for C#
[](https://www.nuget.org/packages/Anthropic)
[!IMPORTANT] 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`](https://www.nuget.org/packages/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](https://docs.anthropic.com/en/api/) from C# applications.
Documentation
Full documentation is available at **[platform.claude.com/docs/en/api/sdks/csharp](https://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](./CONTRIBUTING.md).
License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
Related Skills
Anthropic SDK Go
Access to Anthropic's safety-first language model APIs via Go
Fxapis MCP Examples
Connect Claude, Cursor, VS Code, the OpenAI API and the Anthropic API to fxapis's hosted MCP server for MetaTr
Gearbox Routing
A toolkit for running AI coding agents well: model and effort routing across Anthropic, OpenAI, Gemini and Z.a
Awareness SDK
Local-first AI agent memory — one command, 13+ IDEs, works offline. Persistent memory for Claude Code, Cursor,
Claude Evals
Production eval framework for Claude Agent SDK — implements Anthropic's published eval patterns with native SD
Anythropic
Use any model in Anthropic tools like Claude Code and Claude Agent SDK
Related Agents
LLM Expert
Use this agent for AI SDK integration, LLM provider configuration, prompt template management, error handling
Dotnet Csharp Concurrency Specialist
WHEN debugging race conditions, deadlocks, thread safety issues, concurrent access bugs, lock contention, asyn
Engineering API Platform Engineer
Expert API platform engineer for public and partner APIs — contract-first design (OpenAPI/gRPC), versioning an