{"id":20546204,"url":"https://github.com/AoElite/claude4j","last_synced_at":"2025-05-09T14:32:27.351Z","repository":{"id":228890161,"uuid":"775192463","full_name":"AoElite/claude4j","owner":"AoElite","description":"A very simple java library to interact with Claude's API","archived":false,"fork":false,"pushed_at":"2025-03-16T05:48:41.000Z","size":90,"stargazers_count":12,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-16T06:25:16.293Z","etag":null,"topics":["anthropic","anthropic-claude","claude","claude-3","claude-ai","claude-api","java","library"],"latest_commit_sha":null,"homepage":"","language":"Java","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/AoElite.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-20T23:36:04.000Z","updated_at":"2025-03-16T05:48:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"69429346-aca4-4288-91c6-ef0cf4f520a5","html_url":"https://github.com/AoElite/claude4j","commit_stats":null,"previous_names":["aoelite/claude4j"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AoElite%2Fclaude4j","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AoElite%2Fclaude4j/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AoElite%2Fclaude4j/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AoElite%2Fclaude4j/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AoElite","download_url":"https://codeload.github.com/AoElite/claude4j/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253266523,"owners_count":21880991,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["anthropic","anthropic-claude","claude","claude-3","claude-ai","claude-api","java","library"],"created_at":"2024-11-16T02:00:42.640Z","updated_at":"2025-05-09T14:32:27.343Z","avatar_url":"https://github.com/AoElite.png","language":"Java","funding_links":[],"categories":["API Wrappers"],"sub_categories":["Java"],"readme":"\u003e [!WARNING]  \n\u003e **This repository is being archived. Please use Anthropic's official Java SDK instead.**\n\u003e https://github.com/anthropics/anthropic-sdk-java\n\nA very simple java library to interact with Claude's API\n\nExample usage:\n```java\n        ClaudeAPI client = new ClaudeClient(System.getenv(\"CLAUDE_API_KEY\"));\n\n        ClaudeResponse response = client.sendRequest(ClaudeRequest.builder()\n                .model(ClaudeAIModel.HAIKU_3_5)\n                .max_tokens(100)\n                .temperature(0)\n                .stop_sequence(\"###\")\n                .system(\"You are a AI math assistant\")\n                .input(ClaudeRole.USER.text(\"what's 2+2?\"))\n                .input(ClaudeRole.ASSISTANT.text(\"4\"))\n                .input(ClaudeRole.USER.text(\"what's 3+3?\"))\n                .build());\n\n        if (response != null) { // response could timeout\n            for (String string : response.getContent()) {\n                System.out.println(string);\n            }\n        }\n```\n\nYou can create a API key [here](https://console.anthropic.com/settings/keys) once you have created a Anthropic account.\n\nTODO:\n- [X] Image/File support\n- [ ] Stream support\n- [ ] Embeddings\n- [ ] Legacy models\n- [ ] Cache support\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAoElite%2Fclaude4j","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAoElite%2Fclaude4j","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAoElite%2Fclaude4j/lists"}