ClaudeMap

Anthropic SDK for Java

Official Anthropic Java SDK for the Claude API.

SDKs & Toolingofficialsdkjavaclaude-api

Java client for the Claude Messages API and Batch API. Synchronous and asynchronous (OkHttp + Reactor) transports are both supported.

What it does

  • Official Anthropic SDK for Java — Claude API access with typed models, sync/async clients
  • Maven Central artifact `com.anthropic:anthropic-java`
  • Supports streaming, tool use, and the full Messages API surface

When to use it

JVM services calling Claude — enterprise backends where the Python/TS SDKs aren't an option.

Getting started

Gradle:

implementation("com.anthropic:anthropic-java:2.64.0")

Maven: same coordinates as a <dependency>. Check Maven Central for the latest version.

Things to know

Version bumps are frequent — pin and check the changelog on upgrades. Not to be confused with the official MCP Java SDK (io.modelcontextprotocol.sdk:mcp), which is for building MCP servers/clients.

Repository

anthropics/anthropic-sdk-java

Charted

Related on the map

  • Harness Bridge

    SDK / Tool

    A local launcher that points Claude Code and seven other coding harnesses at any OpenAI-, Anthropic- or Responses-compatible endpoint — without editing a single config file.

    • launcher
    • local-models
    • cli
    • menu-bar
  • Claude for Siri

    SDK / Tool

    Answers macOS Spotlight and Siri prompts with your signed-in Claude Code account — an experimental macOS 27 model-delegation provider.

    • macos
    • siri
    • spotlight
    • model-delegation
  • Extract your own local chat history from ten AI coding assistants into one normalized JSONL — for fine-tuning, analytics, or backing up years of conversations. Standard library only.

    • cli
    • data-export
    • jsonl
    • backup