Betalgo Anthropic - Biblioteca .NET para Claude
betalgo/Anthropic
SDK .NET oficial da comunidade para integrar Claude AI em C#
Ver no GitHubBiblioteca C# oficial da comunidade para integrar Claude da Anthropic em aplicações .NET. Oferece acesso simplificado à API com suporte completo a modelos de última geração, permitindo implementar IA generativa em projetos existentes sem complexidade.
Instalação
npx convez-ai betalgo/Anthropic1 comando no terminal: detecta o formato do repositório (marketplace ou plugin avulso) e instala via Claude Code. Requer Node 18+ e o Claude Code instalado.
Métricas
Casos de uso
- Integrar Claude em aplicações desktop e web C#
- Construir chatbots e assistentes IA em .NET
- Adicionar capacidades de processamento de linguagem natural a softwares empresariais
Veredito

Biblioteca comunitária bem mantida e confiável para integração de Claude em ecossistema .NET. Código limpo, documentação adequada e atualizações regulares de segurança a tornam uma escolha sólida para desenvolvedores C# que querem usar IA generativa.
README
A tradução para o português deste README ainda está na fila.
.NET Library for Anthropic Claude
⭐ We appreciate your star, it helps!
Community Links
We have a very new and
channel. Please come and help us build the .NET AI community.
This C# library is created by Betalgo for the Ranul Tinga Project and is released under the MIT license.
Overview
A simple and efficient .NET library for accessing Anthropic's Claude AI API. This community-provided library allows you to easily integrate Claude's powerful AI capabilities into your C# applications.
Install Package
Install-Package Betalgo.Ranul.Anthropic
Documentation and Examples
The repository contains a sample project named Anthropic.Playground to help you understand how to work with Claude using this library. Please refer to the Wiki for detailed documentation and advanced usage scenarios.
Quick Start
Here's a simple example demonstrating how easy it is to use Claude with the Anthropic .NET Library:
var anthropicService = new AnthropicService(new()
{
ApiKey = Environment.GetEnvironmentVariable("MY_ANTHROPIC_API_KEY")
});
var messageRequest = new MessageRequest
{
Messages = [Message.FromUser("What is the capital of France?")],
Model = "claude-3-opus-20240229",
MaxTokens = 100
};
var messageResponse = await anthropicService.Messages.Create(messageRequest);
if (messageResponse.Successful)
{
Console.WriteLine(messageResponse.ToString());
}
Notes
This library is a community project for interacting with Anthropic's Claude AI and is not officially supported by Anthropic. Please use it responsibly and in accordance with Anthropic's usage policies for Claude.
Changelog
8.1.1
- Updated NuGet packages to address a security issue flagged by Microsoft: https://github.com/advisories/GHSA-8g4q-xg66-9fp4
8.1.0
- Updated Namespace to
Betalgo.Anthropic
8.0.0
- Initial release of the Anthropic Claude .NET Library
Acknowledgements
Maintenance of this project is made possible by all the bug reporters, contributors, and sponsors.
For any issues, contributions, or feedback related to using this library with Claude, feel free to reach out or submit a pull request.
Betalgo GitHub: https://github.com/betalgo
Betalgo Twitter: @Betalgo
Betalgo LinkedIn: Betalgo | LinkedIn