{"id":26590451,"url":"https://github.com/anthropics/anthropic-sdk-java","last_synced_at":"2026-04-08T19:01:16.337Z","repository":{"id":267735625,"uuid":"894206832","full_name":"anthropics/anthropic-sdk-java","owner":"anthropics","description":null,"archived":false,"fork":false,"pushed_at":"2026-04-01T23:02:06.000Z","size":7144,"stargazers_count":273,"open_issues_count":9,"forks_count":64,"subscribers_count":8,"default_branch":"main","last_synced_at":"2026-04-02T07:37:29.677Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","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-11-26T00:12:20.000Z","updated_at":"2026-04-01T20:50:22.000Z","dependencies_parsed_at":"2024-12-12T06:18:11.043Z","dependency_job_id":"8893f63c-c87d-4b1d-a102-e3c80d1b2452","html_url":"https://github.com/anthropics/anthropic-sdk-java","commit_stats":null,"previous_names":["anthropics/anthropic-sdk-java"],"tags_count":53,"template":false,"template_full_name":null,"purl":"pkg:github/anthropics/anthropic-sdk-java","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthropics%2Fanthropic-sdk-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthropics%2Fanthropic-sdk-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthropics%2Fanthropic-sdk-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthropics%2Fanthropic-sdk-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anthropics","download_url":"https://codeload.github.com/anthropics/anthropic-sdk-java/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthropics%2Fanthropic-sdk-java/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31567545,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":"2025-03-23T13:39:45.526Z","updated_at":"2026-04-08T19:01:16.330Z","avatar_url":"https://github.com/anthropics.png","language":"Kotlin","funding_links":[],"categories":["LLM Provider API","人工智能","🏢 Official Anthropic Resources"],"sub_categories":["🔧 SDKs \u0026 Development Tools"],"readme":"# Claude SDK for Java\n\n[![Maven Central](https://img.shields.io/maven-central/v/com.anthropic/anthropic-java)](https://central.sonatype.com/artifact/com.anthropic/anthropic-java)\n\nThe Claude SDK for Java provides access to the [Claude API](https://docs.anthropic.com/en/api/) from Java applications.\n\n## Documentation\n\nFull documentation is available at **[platform.claude.com/docs/en/api/sdks/java](https://platform.claude.com/docs/en/api/sdks/java)**.\n\n## Installation\n\n\u003c!-- x-release-please-start-version --\u003e\n\n### Gradle\n\n```kotlin\nimplementation(\"com.anthropic:anthropic-java:2.22.0\")\n```\n\n### Maven\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.anthropic\u003c/groupId\u003e\n  \u003cartifactId\u003eanthropic-java\u003c/artifactId\u003e\n  \u003cversion\u003e2.22.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n\u003c!-- x-release-please-end --\u003e\n\n## Getting started\n\n```java\nimport com.anthropic.client.AnthropicClient;\nimport com.anthropic.client.okhttp.AnthropicOkHttpClient;\nimport com.anthropic.models.messages.Message;\nimport com.anthropic.models.messages.MessageCreateParams;\nimport com.anthropic.models.messages.Model;\n\n// Configures using the `ANTHROPIC_API_KEY` environment variable\nAnthropicClient client = AnthropicOkHttpClient.fromEnv();\n\nMessageCreateParams params = MessageCreateParams.builder()\n    .maxTokens(1024L)\n    .addUserMessage(\"Hello, Claude\")\n    .model(Model.CLAUDE_OPUS_4_6)\n    .build();\nMessage message = client.messages().create(params);\n```\n\n## Requirements\n\nJava 8+\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-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanthropics%2Fanthropic-sdk-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanthropics%2Fanthropic-sdk-java/lists"}