Discover and explore top open-source AI tools and projects—updated daily.
anthropicsClaude API integration for Java
Top 91.6% on SourcePulse
An Anthropic SDK for Java that enables Java applications to seamlessly integrate with the Claude API. This SDK simplifies the process for Java developers to leverage Anthropic's advanced AI models, offering a direct interface for message creation and interaction.
How It Works
The SDK provides a Java client (AnthropicClient) built on OkHttp, abstracting the complexities of direct API calls. Developers can configure the client using environment variables, such as ANTHROPIC_API_KEY, and then instantiate message creation parameters (MessageCreateParams) to interact with specific Claude models. The core approach focuses on providing a type-safe and idiomatic Java API for accessing Claude's capabilities.
Quick Start & Requirements
implementation("com.anthropic:anthropic-java:2.16.0")<dependency>
<groupId>com.anthropic</groupId>
<artifactId>anthropic-java</artifactId>
<version>2.16.0</version>
</dependency>
ANTHROPIC_API_KEY environment variable must be set for authentication.Highlighted Details
Model.CLAUDE_OPUS_4_6.client.messages().create() interface.Maintenance & Community
CONTRIBUTING.md file.Licensing & Compatibility
Limitations & Caveats
9 hours ago
Inactive
ArcadeAI
nlweb-ai