LangGraph4j
Java library for building stateful multi-agent applications as graphs, working with LangChain4j and Spring AI.
Updated
✨ Try AgentScout's free AI image generator →Good for: building AI agents, building multi-agent systems, memory for agents
Use cases
About LangGraph4j
LangGraph4j is listed in our frameworks category and is aimed at builders. Java library for building stateful multi-agent applications as graphs, working with LangChain4j and Spring AI. Pricing, as the maker states it: Open source. Maturity: Active. We last checked the official link on 2026-12-01.
What is LangGraph4j?
LangGraph4j is a Java library for building stateful, multi-agent LLM applications, inspired by Python's LangGraph and designed to work with LangChain4j and Spring AI. You define graphs of agents, tools and custom logic that share state and, unlike plain DAGs, can loop back for retries or clarification.
It offers stateful execution, cyclical graphs, explicit conditional control flow and modular reusable nodes, with release 1.9 as the current line. MIT.
Sources: the official README and our directory listing, checked 2026-10-30. Official site: langgraph4j.github.io/langgraph4j.
Who is LangGraph4j for?
Java and Spring developers building agent workflows on the JVM.
LangGraph4j at a glance
- Open source: Yes (MIT)
- GitHub: langgraph4j/langgraph4j · 2,133 stars (as of Dec 2, 2026)
Key features
- Stateful graph execution
- Cyclical graphs for agent loops
- Works with LangChain4j and Spring AI
- Explicit conditional edges
- MIT
LangGraph4j FAQ
What is LangGraph4j?
LangGraph4j is a Java library for building stateful, multi-agent LLM applications, inspired by Python's LangGraph and designed to work with LangChain4j and Spring AI. You define graphs of agents, tools and custom logic that share state and, unlike plain DAGs, can loop back for retries or clarification.
Who is LangGraph4j for?
Java and Spring developers building agent workflows on the JVM.
Is LangGraph4j free?
LangGraph4j's pricing, as the maker states it: Open source. Open-source tools are free to use, though you may still pay for model API usage or a hosted plan. Check the official site for current plans.
Is LangGraph4j open source?
Yes. LangGraph4j is released under MIT, according to its GitHub repository.
Is LangGraph4j an official LangChain project?
No. It is an independent Java project inspired by LangGraph.
What are alternatives to LangGraph4j?
Similar tools include AgentScope, Spring AI Alibaba, Aden Hive, Atmosphere, Kooboo and Sico.
LangGraph4j ratings and reviews
Be the first to rate LangGraph4j: tap 1 to 5 stars below. A written review is optional.
LangGraph4j alternatives
Other frameworks tools in our directory. See all frameworks tools →
AgentScope
Framework for building and running transparent multi-agent applications with visual debugging.
Spring AI Alibaba
Agentic AI framework for Java developers built on Spring AI.
Aden Hive
Multi-agent harness for production AI.
Atmosphere
Real-time AI agent runtime for the JVM that runs one agent class on Spring AI, LangChain4j and other backends with streaming, MCP, A2A and AG-UI.
Kooboo
Kooboo is an open-source agent project that helps builders handle high-performance platform for building websites, e-commerce, and web applications—with Native AI, JavaScript.
Sico
Sico is an open-source agent project that helps builders handle digital Worker platform for reliable execution, continuous co-evolution, and building Enterprise AI.