ClaudeMap

Anthropic SDK for C#

Official Anthropic C# / .NET SDK for the Claude API.

SDKs & Toolingofficialsdkcsharpdotnetclaude-api

.NET client for the Claude Messages API and Batch API. Targets net6.0/net8.0 and ships with first-class async streaming support.

What it does

  • Official Anthropic SDK for .NET (`dotnet add package Anthropic`)
  • Typed request/response models for the Messages API with async-first client
  • Source-generated serialization for AOT-friendly use

When to use it

.NET backends calling Claude — Azure-hosted services, enterprise C# shops.

Getting started

dotnet add package Anthropic

Then:

using Anthropic;
using Anthropic.Models.Messages;

AnthropicClient client = new();

Things to know

Separate from ModelContextProtocol.* NuGet packages — `Anthropic` calls the Claude API; `ModelContextProtocol` builds MCP servers/clients.

Repository

anthropics/anthropic-sdk-csharp

Charted

Related on the map

  • Harness Bridge

    SDK / Tool

    A local launcher that points Claude Code and seven other coding harnesses at any OpenAI-, Anthropic- or Responses-compatible endpoint — without editing a single config file.

    • launcher
    • local-models
    • cli
    • menu-bar
  • Claude for Siri

    SDK / Tool

    Answers macOS Spotlight and Siri prompts with your signed-in Claude Code account — an experimental macOS 27 model-delegation provider.

    • macos
    • siri
    • spotlight
    • model-delegation
  • Extract your own local chat history from ten AI coding assistants into one normalized JSONL — for fine-tuning, analytics, or backing up years of conversations. Standard library only.

    • cli
    • data-export
    • jsonl
    • backup