LnYo-Cly/ai4j
A Java AI Agentic SDK for JDK 8+ that unifies access to multiple LLM providers and provides agent runtime, RAG, MCP, and coding agent capabilities.

ai4j is a multi-module Java SDK designed to accelerate AI application development on the JVM. It provides a unified interface for accessing diverse LLM providers including OpenAI, ChatGLM, DeepSeek, Moonshot, Tencent Hunyuan, and others, normalizing inputs and outputs to OpenAI compatibility. The SDK offers built-in support for tool calling, Model Context Protocol (MCP), and retrieval-augmented generation with VectorStore abstraction. It includes agent runtime capabilities, a coding agent module, and integrations with platforms like Dify, Coze, and n8n.
Frequently asked
- What is LnYo-Cly/ai4j?
- A Java AI Agentic SDK for JDK 8+ that unifies access to multiple LLM providers and provides agent runtime, RAG, MCP, and coding agent capabilities.
- Is ai4j open source?
- Yes — LnYo-Cly/ai4j is open source, released under the Apache-2.0 license.
- What language is ai4j written in?
- LnYo-Cly/ai4j is primarily written in Java.
- How popular is ai4j?
- LnYo-Cly/ai4j has 419 stars on GitHub.
- Where can I find ai4j?
- LnYo-Cly/ai4j is on GitHub at https://github.com/LnYo-Cly/ai4j.