{"id":31076522,"url":"https://github.com/anthropics/anthropic-sdk-csharp","last_synced_at":"2026-05-21T22:00:43.692Z","repository":{"id":313841588,"uuid":"1044588509","full_name":"anthropics/anthropic-sdk-csharp","owner":"anthropics","description":"Access to Anthropic's safety-first language model APIs in C#","archived":false,"fork":false,"pushed_at":"2026-05-19T02:48:34.000Z","size":7682,"stargazers_count":263,"open_issues_count":8,"forks_count":81,"subscribers_count":7,"default_branch":"main","last_synced_at":"2026-05-19T05:42:11.313Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anthropics.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-25T23:20:29.000Z","updated_at":"2026-05-15T18:48:25.000Z","dependencies_parsed_at":"2025-09-09T04:58:27.494Z","dependency_job_id":"6655a8d6-7d3d-4535-85c3-9947650c4dfa","html_url":"https://github.com/anthropics/anthropic-sdk-csharp","commit_stats":null,"previous_names":["anthropics/anthropic-sdk-csharp"],"tags_count":66,"template":false,"template_full_name":null,"purl":"pkg:github/anthropics/anthropic-sdk-csharp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthropics%2Fanthropic-sdk-csharp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthropics%2Fanthropic-sdk-csharp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthropics%2Fanthropic-sdk-csharp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthropics%2Fanthropic-sdk-csharp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anthropics","download_url":"https://codeload.github.com/anthropics/anthropic-sdk-csharp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthropics%2Fanthropic-sdk-csharp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33316507,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-21T12:23:38.849Z","status":"ssl_error","status_checked_at":"2026-05-21T12:22:11.673Z","response_time":62,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-09-16T05:21:07.407Z","updated_at":"2026-05-21T22:00:43.653Z","avatar_url":"https://github.com/anthropics.png","language":"C#","funding_links":[],"categories":["🏢 Official Anthropic Resources"],"sub_categories":["🔧 SDKs \u0026 Development Tools"],"readme":"# Claude SDK for C#\n\n[![NuGet Version](https://img.shields.io/nuget/v/Anthropic.svg)](https://www.nuget.org/packages/Anthropic)\n\n\u003e [!IMPORTANT]\n\u003e 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`.\n\nThe Claude SDK for C# provides access to the [Claude API](https://docs.anthropic.com/en/api/) from C# applications.\n\n## Documentation\n\nFull documentation is available at **[platform.claude.com/docs/en/api/sdks/csharp](https://platform.claude.com/docs/en/api/sdks/csharp)**.\n\n## Installation\n\n```bash\ndotnet add package Anthropic\n```\n\n## Getting started\n\n```csharp\nusing System;\nusing Anthropic;\nusing Anthropic.Models.Messages;\n\nAnthropicClient client = new();\n\nMessageCreateParams parameters = new()\n{\n    MaxTokens = 1024,\n    Messages =\n    [\n        new()\n        {\n            Role = Role.User,\n            Content = \"Hello, Claude\",\n        },\n    ],\n    Model = \"claude-opus-4-6\",\n};\n\nvar message = await client.Messages.Create(parameters);\n\nConsole.WriteLine(message);\n```\n\n## Requirements\n\n.NET Standard 2.0+\n\n## Contributing\n\nSee [CONTRIBUTING.md](./CONTRIBUTING.md).\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanthropics%2Fanthropic-sdk-csharp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanthropics%2Fanthropic-sdk-csharp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanthropics%2Fanthropic-sdk-csharp/lists"}