ageerle/ruoyi-ai
Self-hosted Java workspace for AI agents, RAG, and visual workflows
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
RuoYi AI is a multi-module Maven backend built on Spring Boot 3.5.8 and Langchain4j. The root separates ruoyi-admin, ruoyi-common, ruoyi-extend, and ruoyi-modules; despite the name overlap, the Vue 3 admin UI lives in a separate repository, as does the ruoyi-web user UI. MySQL 8.0 and Redis sit alongside the vector store, and the all-in-one deployment includes MinIO. Authentication uses Sa-Token and JWT.
Visual workflows compose nodes such as model calls and human review, and stream execution output over SSE. Supervisor-mode orchestration coordinates agents that can combine MCP tools and Skills; WebSocket support is also available for real-time communication. The v3.0.0 release refactored ChatServiceFacade and added streaming wrappers and listeners, a concrete change to the chat service and the way it handles streamed output.
Key Capabilities & Differentiators
Model management covers DeepSeek, Zhipu, MIMO, Bailian, and OpenAI, including multimodal capabilities where supported by the selected model. It also connects to Coze, Dify, FastGPT, and RAGFlow. The local RAG feature combines document parsing and vector retrieval; v3.1.0 adds Zhipu embeddings, reranking support, and a custom-model option. These expand the choices for retrieval and model configuration without establishing any particular accuracy or latency gain.
Document handling extends beyond knowledge-base ingestion. The v3.0.0 SkillsAgent can use DOCX, PDF, and XLSX Skills for tasks such as Word annotations and tracked changes, PDF form filling and image conversion, and Excel processing. Visual workflows can combine model calls with email and manual review, making it possible to require human input within a process rather than leaving the entire decision to an agent.
Trade-offs & Limitations
Compared with Dify Cloud or Coze, RuoYi AI puts the application stack under your control and offers a Java backend to customize, at the cost of operating the database, cache, vector store, object storage, and frontends. Hosting the application yourself does not keep inference data on-premises if model or embedding calls go to external providers. Before putting agent tools into production, verify their authorization boundaries and decide which actions require human approval.
The broad storage and parsing lists are not an edition-specific compatibility matrix. The all-in-one Compose deployment uses Weaviate, while v2.1.0 release notes record the migration of Milvus and Qdrant extensions and certain knowledge-base parsers to the enterprise edition. The later XLSX Skill is not proof that Excel attachment ingestion returned to the open-source knowledge base. Validate the exact release and edition against your ingestion and vector-store requirements before migrating.
Hardware & Deployment Guide
Use Docker Engine on Linux or macOS, or Docker Desktop on Windows, with Compose V2. For the all-in-one deployment, copy docs/docker/ruoyi-ai/.env.example to docs/docker/ruoyi-ai/.env, set RUIYI_VERSION=v3.1.0, and run pull, up -d, and ps with that env file and docs/docker/ruoyi-ai/docker-compose-all.yaml. It pulls public GHCR images and publishes the admin UI, user UI, and backend API on ports 25666, 25137, and 26039, respectively.
A step-by-step source-build path deploys the backend and UI repositories separately. Before production use, replace default MySQL and MinIO passwords and restrict access to the published MySQL, Redis, Weaviate, and MinIO ports. For upgrades, change the image version and re-run pull and startup; down -v deletes persistent volumes. v3.1.0 fixes an all-in-one Compose startup issue. The standard install needs image access, and remote model APIs need connectivity at runtime; self-hosting is not an offline guarantee.
Java teams building a self-hosted knowledge assistant that needs provider choice, document processing, and workflows with human review.
You want a managed service, require a verified air-gapped deployment, or depend on a particular vector-store adapter or ingestion format you have not validated in the target edition.
Quick Start & Installation
# Clone the v3.1.0 release git clone --depth 1 --branch v3.1.0 https://github.com/ageerle/ruoyi-ai.git cd ruoyi-ai # Pin the image version. Public GHCR images do not require docker login. cp docs/docker/ruoyi-ai/.env.example docs/docker/ruoyi-ai/.env sed -i 's/^RUIYI_VERSION=.*/RUIYI_VERSION=v3.1.0/' docs/docker/ruoyi-ai/.env # Pull pre-built images from GHCR and start all services docker compose --env-file docs/docker/ruoyi-ai/.env \ -f docs/docker/ruoyi-ai/docker-compose-all.yaml pull docker compose --env-file docs/docker/ruoyi-ai/.env \ -f docs/docker/ruoyi-ai/docker-compose-all.yaml up -d # Check service status docker compose --env-file docs/docker/ruoyi-ai/.env \ -f docs/docker/ruoyi-ai/docker-compose-all.yaml ps # Access services (replace SERVER_IP with the server address) # Admin Panel: http://SERVER_IP:25666 (admin / admin123) # User Frontend: http://SERVER_IP:25137 # B
Comparison vs. Top Agents & Frameworks Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| ruoyi-ai ★ | 5.8k | +9 | Java | MIT | Self-hosted Java workspace for AI agents, RAG, and visual workflows |
| MetaGPT | 71.6k | +94 | Python | MIT | A role-based Python agent framework that turns software briefs into project arti |
| agno | 43.4k | +66 | Python | Apache-2.0 | Python framework and runtime for durable agent services over REST and MCP |
| AstrBot | 47.9k | +298 | Python | AGPL-3.0 | A self-hosted Python agent hub that connects chat platforms to model providers |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/ageerle/ruoyi-ai.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about ruoyi-ai
How do models, tools, and workflows fit together?
Do I need a GPU, and what drives host sizing?
Can we use it commercially, and does self-hosting satisfy data-residency requirements?
When should we choose it over Dify Cloud or Coze?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy