{"id":18924169,"url":"https://github.com/anthropics/anthropic-sdk-go","last_synced_at":"2026-04-08T18:07:03.626Z","repository":{"id":251251674,"uuid":"835501107","full_name":"anthropics/anthropic-sdk-go","owner":"anthropics","description":"Access to Anthropic's safety-first language model APIs via Go","archived":false,"fork":false,"pushed_at":"2026-02-12T23:04:51.000Z","size":1456,"stargazers_count":782,"open_issues_count":45,"forks_count":106,"subscribers_count":12,"default_branch":"main","last_synced_at":"2026-02-13T02:47:33.566Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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":"2024-07-30T01:13:26.000Z","updated_at":"2026-02-13T02:18:33.000Z","dependencies_parsed_at":"2025-05-02T07:25:10.576Z","dependency_job_id":"992ba8d3-258c-49f2-afd7-ba81e02ace55","html_url":"https://github.com/anthropics/anthropic-sdk-go","commit_stats":null,"previous_names":["anthropics/anthropic-sdk-go"],"tags_count":48,"template":false,"template_full_name":null,"purl":"pkg:github/anthropics/anthropic-sdk-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthropics%2Fanthropic-sdk-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthropics%2Fanthropic-sdk-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthropics%2Fanthropic-sdk-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthropics%2Fanthropic-sdk-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anthropics","download_url":"https://codeload.github.com/anthropics/anthropic-sdk-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthropics%2Fanthropic-sdk-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29596332,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T20:59:56.587Z","status":"ssl_error","status_checked_at":"2026-02-18T20:58:41.434Z","response_time":162,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":"2024-11-08T11:06:02.013Z","updated_at":"2026-04-08T18:07:03.541Z","avatar_url":"https://github.com/anthropics.png","language":"Go","funding_links":[],"categories":["Large Language Model","🏢 Official Anthropic Resources","SDKs"],"sub_categories":["SDKs","🔧 SDKs \u0026 Development Tools"],"readme":"# Claude SDK for Go\n\n\u003c!-- x-release-please-start-version --\u003e\n\n\u003ca href=\"https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go\"\u003e\u003cimg src=\"https://pkg.go.dev/badge/github.com/anthropics/anthropic-sdk-go.svg\" alt=\"Go Reference\"\u003e\u003c/a\u003e\n\n\u003c!-- x-release-please-end --\u003e\n\nThe Claude SDK for Go provides access to the [Claude API](https://docs.anthropic.com/en/api/) from Go applications.\n\n## Documentation\n\nFull documentation is available at **[platform.claude.com/docs/en/api/sdks/go](https://platform.claude.com/docs/en/api/sdks/go)**.\n\n## Installation\n\n\u003c!-- x-release-please-start-version --\u003e\n\n```go\nimport (\n\t\"github.com/anthropics/anthropic-sdk-go\" // imported as anthropic\n)\n```\n\n\u003c!-- x-release-please-end --\u003e\n\nOr explicitly add the dependency:\n\n\u003c!-- x-release-please-start-version --\u003e\n\n```sh\ngo get -u 'github.com/anthropics/anthropic-sdk-go@v1.33.0'\n```\n\n\u003c!-- x-release-please-end --\u003e\n\n## Getting started\n\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\n\t\"github.com/anthropics/anthropic-sdk-go\"\n\t\"github.com/anthropics/anthropic-sdk-go/option\"\n)\n\nfunc main() {\n\tclient := anthropic.NewClient(\n\t\toption.WithAPIKey(\"my-anthropic-api-key\"), // defaults to os.LookupEnv(\"ANTHROPIC_API_KEY\")\n\t)\n\tmessage, err := client.Messages.New(context.TODO(), anthropic.MessageNewParams{\n\t\tMaxTokens: 1024,\n\t\tMessages: []anthropic.MessageParam{\n\t\t\tanthropic.NewUserMessage(anthropic.NewTextBlock(\"What is a quaternion?\")),\n\t\t},\n\t\tModel: anthropic.ModelClaudeOpus4_6,\n\t})\n\tif err != nil {\n\t\tpanic(err.Error())\n\t}\n\tfmt.Printf(\"%+v\\n\", message.Content)\n}\n```\n\n## Requirements\n\nGo 1.22+\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-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanthropics%2Fanthropic-sdk-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanthropics%2Fanthropic-sdk-go/lists"}