High-Performance ยท Multi-Model ยท Enterprise-Grade AI Chat Management Platform
An open-source AI chat platform built with Rust + Vue 3. Supports OpenAI, Claude, Ollama and more. Features WebSocket streaming chat, RBAC admin dashboard, OpenAI-compatible API, VIP plans, WeChat integration โ everything you need to deploy your own ChatGPT-like service.
๐จ๐ณ ไธญๆ ย ยทย ๐ Website ย ยทย ๐ Issues ย ยทย ๐บ๏ธ Roadmap
QiLuo AI is an AI chat management platform built on the QiLuo framework. It inherits QiLuo's enterprise-grade development capabilities (RBAC permission management, system monitoring, code generator, etc.) and deeply integrates multi-model AI conversation capabilities on top of that.
QiLuo AI provides a complete AI chat system built from scratch, including:
- Multi AI Provider Integration โ Built-in adapters for OpenAI, Claude, Ollama, and more, easily extensible
- AI User Management โ Independent user registration/login system with SMS verification code support
- Session Management โ Create, edit, delete sessions; persistent message history with pagination
- VIP Plan System โ Tier-based model access control with usage statistics and daily limits
- OpenAI-Compatible API โ Accessible via standard OpenAI SDK, compatible with Cherry Studio and other clients
- Access Key Management โ Self-service API Key generation for secure AI interface calls
- Voice Input & Screenshot โ Browser-based speech recognition and screenshot-as-input
- Multimodal Conversations โ Support for image paste and camera photo upload
A modern, beautiful full-screen AI chat application with dark/light theme switching.
| Feature | Screenshot |
|---|---|
| Chat Interface | ![]() |
| Model Selection | ![]() |
| Settings Panel | ![]() |
| VIP Plans | ![]() |
A lightweight, clean H5 chat interface for mobile and desktop.
| Feature | Screenshot |
|---|---|
| Chat Interface | ![]() |
| Model Selection | ![]() |
| Feature | Screenshot |
|---|---|
| AI Operation Statistics | ![]() |
| AI User Management | ![]() |
| AI Provider Configuration | ![]() |
| Usage Logs | ![]() |
- ๐ง Multi-Model Support โ Supports GPT-4o, Claude, Gemini, and more LLMs via hot-pluggable Provider adapters
- ๐ Multi-Provider Adapters โ Built-in adapters for OpenAI, Claude, Ollama; standardized interfaces for quick integration
- ๐ฌ Real-time WebSocket Chat โ Streaming output with cancel generation, heartbeat keep-alive, and reconnection
- ๐ History Session Management โ Auto-save chat history with rename, delete, and paginated review
- ๐ Session Sharing โ One-click share link generation
- ๐ Usage Tracking โ Token consumption and request counts by user, model, and time period
- ๐ VIP Plan System โ Multi-tier plans with daily/monthly message and token limits
- ๐ Access Key Management โ Self-service create/delete API Keys for OpenAI-compatible API access
- ๐ OpenAI-Compatible API โ Provides
/v1/chat/completions,/v1/models,/v1/audio/transcriptionsendpoints - ๐จ Deep Thinking Mode โ Supports reasoning content display
- ๐ท Multimodal Input โ Image paste/camera/screenshot upload with code highlighting
- ๐ฃ๏ธ Voice Input โ Browser-based speech recognition, auto-transcribed to text
- ๐ Dark/Light Theme โ System-follow or manual toggle
- ๐ Multi-language โ Chinese/English/Japanese/Korean UI
- ๐ฆ Rust Ecosystem โ Rust + Axum + Sea-ORM + JWT, performance with memory safety
- ๐ RBAC Permission Management โ Multi-dimensional user, role, menu, and API permission control
- ๐ฑ WeChat Management โ Built-in WeChat Official Account management with menu config, message management, auto-reply
- โก High Performance โ Async architecture, high concurrency with fast response
- ๐ Distributed โ Supports cluster deployment, multiple data sources, distributed architecture
- ๐ System Monitoring โ Real-time server status, online users, operation logs
- โฐ Scheduled Tasks โ Online Cron expression configuration
- ๐ Read/Write Splitting โ Auto-routing for master-slave database architecture
- ๐ข Multi-Tenancy โ Logical or physical data isolation by tenant ID
| Technology | Description |
|---|---|
| Rust | System programming language, high performance with memory safety |
| Axum | Web framework based on Tokio async runtime |
| Sea-ORM | ORM framework supporting MySQL/SQLite/PostgreSQL |
| Tokio | Async runtime |
| JWT | Authentication |
| Redis | Cache & queue (optional) |
| Lettre | Email sending |
| Tera | Template engine (code generator) |
| Technology | Description |
|---|---|
| Vue 3 | Frontend framework |
| TypeScript | Type safety |
| Element Plus | UI component library |
| Pinia | State management |
| Vite | Build tool |
| Technology | Description |
|---|---|
| Vue 3 | Frontend framework + Composition API |
| TypeScript | Type safety |
| Tailwind CSS | Utility-first CSS framework |
| Pinia | State management |
| Vite | Build tool |
| marked + highlight.js | Markdown rendering & code highlighting |
| KaTeX | Formula rendering |
| i18next | Internationalization |
| lucide-vue-next | Icon library |
qiluo_ai/
โโโ qiluo_admin/ # ๐ฆ Rust backend service (based on QiLuo framework)
โ โโโ src/
โ โ โโโ api/ # API route definitions
โ โ โ โโโ ai_chat.rs # AI chat routes (WebSocket + REST)
โ โ โ โโโ sys_controll.rs
โ โ โ โโโ test.rs
โ โ โ โโโ web_path.rs
โ โ โโโ service/ # Business logic
โ โ โ โโโ ai_chat/ # ๐ค AI chat core module
โ โ โ โ โโโ adapter/ # Multi-provider adapters (OpenAI/Claude/Ollama)
โ โ โ โ โโโ handler.rs # WebSocket handler
โ โ โ โ โโโ rest_handler.rs # OpenAI-compatible REST API
โ โ โ โ โโโ types.rs # Message type definitions
โ โ โ โ โโโ provider_cache.rs # Provider cache
โ โ โ โโโ sys/ # System management business
โ โ โ โ โโโ ... # s_ai_user, s_ai_vip_plan, etc.
โ โ โ โโโ prelude.rs
โ โ โโโ model/ # Data models
โ โ โ โโโ sys/ # System table models (including AI-related tables)
โ โ โโโ worker/ # Async tasks
โ โ โ โโโ ai_chat_worker.rs # AI message async persistence
โ โ โ โโโ ...
โ โ โโโ midle_ware/ # Middleware (JWT auth, operation logs)
โ โ โโโ common/ # Common utilities
โ โ โโโ config/ # Configuration
โ โ โโโ main.rs # Entry point
โ โโโ migration/ # Database migrations
โ โโโ config/ # Configuration files
โ โ โโโ development.yaml # Development environment config
โ โโโ Cargo.toml
โ
โโโ qiluo_vue/ # ๐จ Admin dashboard frontend (Element Plus)
โ โโโ src/
โ โโโ api/ # API interfaces
โ โ โโโ aiuser/ # AI user management
โ โ โโโ aiprovider/ # AI provider management
โ โ โโโ aivipplan/ # AI VIP plans
โ โ โโโ aiaccesskey/ # AI Access Keys
โ โ โโโ aiusagelog/ # AI usage logs
โ โ โโโ aichatarchive/ # AI chat archives
โ โ โโโ aidashboard/ # AI data dashboard
โ โโโ views/AI/ # AI management pages
โ โ โโโ AiUser.vue # User management
โ โ โโโ AiProvider.vue # Provider configuration
โ โ โโโ AiVipPlan.vue # Plan management
โ โ โโโ AiAccessKey.vue# Access Keys
โ โ โโโ AiUsageLog.vue # Usage logs
โ โ โโโ AiChatArchive.vue # Chat archives
โ โ โโโ AiDashboard.vue# Data dashboard
โ โโโ ...
โ
โโโ qiluo_aichat/ # ๐ฌ AI Chat frontend (Tailwind CSS full-screen app)
โ โโโ src/
โ โโโ components/ # Components
โ โ โโโ ChatInterface.vue # Chat interface
โ โ โโโ Sidebar.vue # Sidebar
โ โ โโโ MessageBubble.vue # Message bubble
โ โ โโโ SharedView.vue # Shared view
โ โ โโโ modals/ # Modal components
โ โโโ services/ # Backend service calls
โ โ โโโ api.ts # HTTP client
โ โ โโโ chatService.ts # AI chat service
โ โโโ stores/chat.ts # Pinia state management
โ โโโ locales/ # Internationalization
โ โโโ components/
โ โโโ modals/
โ โโโ AuthModal.vue # Login/Register
โ โโโ SettingsModal.vue # Settings
โ โโโ PricingModal.vue # VIP plans
โ โโโ DashboardModal.vue# Usage dashboard
โ โโโ ...
โ
โโโ docs/ # ๐ Documentation
โ โโโ guide/ # User guides
โ โ โโโ quick-start.md # Quick start
โ โ โโโ deployment.md # Deployment guide
โ โ โโโ wechat-integration.md # WeChat integration
โ โโโ marketing/ # Marketing materials
โ โโโ product-intro.md
โ โโโ comparison.md
โ โโโ pricing.md
โ
โโโ ROADMAP.md # ๐บ๏ธ Project roadmap
โโโ COMMERCIAL-LICENSE.md # Commercial license
โโโ LICENSE # Apache 2.0
โโโ LICENSE-APACHE # Apache 2.0
| Dependency | Version | Description |
|---|---|---|
| Rust | >= 1.75 | Backend compilation |
| Node.js | >= 18 | Frontend runtime |
| MySQL | >= 8.0 | Database (SQLite also supported) |
| Redis | >= 6.0 | Cache & queue (optional; falls back to in-memory cache) |
# Clone the entire project
git clone https://github.com/chelunfu/qiluo_ai.git
cd qiluo_aiEdit qiluo_admin/config/development.yaml:
databases:
- name: primary
uri: "mysql://username:password@127.0.0.1:3306/qiluoai"
max_connections: 16
min_connections: 2
connect_timeout: 3000
idle_timeout: 300000
enable_logging: true
# Or use SQLite
# uri: "sqlite:data/qiluo.db?mode=rwc"Import the database tables:
qiluo_admin/qiluo.sql(MySQL) orqiluo_admin/qiluo_sqlite.sql(SQLite).
cd qiluo_admin
# Run in development mode
cargo run -- --config config/development.yamlcd qiluo_vue
# Install dependencies
npm install
# Start development server
npm run devcd qiluo_aichat
# Configure AI provider
# Edit .env.local, set GEMINI_API_KEY (if using Gemini models)
# Or configure AI Provider directly in the admin dashboard
# Install dependencies
npm install
# Start development server
npm run dev| Application | URL |
|---|---|
| Admin Dashboard | http://localhost:4000 |
| AI Chat Interface | http://localhost:5173 |
| Backend API | http://localhost:5001 |
The root directory provides start.bat for unified management of all three services:
# Start all (default)
start.bat
# Start a single service
start.bat admin # Backend only (http://localhost:5001)
start.bat vue # Admin dashboard only (http://localhost:4000)
start.bat aichat # AI Chat only (http://localhost:5173)
# Stop all
start.bat stop # Or double-click stop.bat
# Restart all
start.bat restartEach service runs in its own window; closing the window stops the corresponding service without affecting others.
In the admin dashboard's AI Provider page, you can configure the following types of AI providers:
| Provider Type | Adapter | Description |
|---|---|---|
openai |
OpenAiAdapter | Services compatible with OpenAI API format (GPT-4o, DeepSeek, Moonshot, etc.) |
claude |
ClaudeAdapter | Anthropic Claude series models |
ollama |
OllamaAdapter | Locally deployed Ollama models |
Configuration fields:
- Name โ Provider name
- Type โ Adapter type (openai / claude / ollama)
- API URL โ Server-side API address
- API Key โ Authentication key
- Model List โ Model names provided by this provider
- Enabled โ Whether to enable
QiLuo AI provides OpenAI-compatible REST APIs, supporting standard OpenAI SDK integration:
# Get model list
curl -H "Authorization: Bearer <access_key>" http://localhost:5001/v1/models
# Chat completion (non-streaming)
curl -X POST http://localhost:5001/v1/chat/completions \
-H "Authorization: Bearer <access_key>" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4o",
"messages": [{"role": "user", "content": "Hello"}]
}'
# Chat completion (streaming)
curl -X POST http://localhost:5001/v1/chat/completions \
-H "Authorization: Bearer <access_key>" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4o",
"messages": [{"role": "user", "content": "Hello"}],
"stream": true
}'In Cherry Studio and other third-party clients, configure the API address as
http://localhost:5001/v1and enter your Access Key.
| Module | Description |
|---|---|
| AI Chat | WebSocket real-time streaming chat with multi-model switching and deep thinking |
| AI User Management | Registration/login/profile management, independent of admin user system |
| AI Provider Management | Dynamic AI provider configuration (OpenAI/Claude/Ollama) with hot-reload |
| AI Plan Management | Multi-tier VIP plans with daily/monthly limits and model access control |
| AI Access Key | Self-service API Key management for secure and controlled usage |
| AI Usage Logs | Detailed records of Token consumption, model, and duration per call |
| AI Data Dashboard | Aggregated platform-wide usage data display |
| Module | Description |
|---|---|
| User Management | System user management |
| Role Management | RBAC roles and permission assignment |
| Menu Management | Dynamic menus and button permissions |
| Department Management | Enterprise organizational structure |
| Dictionary Management | Data dictionary maintenance |
| Operation Logs | User operation audit |
| System Monitoring | Server status, online users |
| Code Generator | Auto-generate CRUD code |
| Scheduled Tasks | Online Cron task configuration |
| Module | Description |
|---|---|
| Official Account Management | Multi-account binding |
| Menu Management | Custom menu configuration |
| Message Management | User message viewing and replies |
| User Management | WeChat follower management |
| Auto Reply | Keyword/follow auto-reply |
| Role | Username | Password |
|---|---|---|
| Super Admin | admin | admin123 |
See ROADMAP.md
Planned highlights:
- WeChat/Alipay auto payment integration
- RAG knowledge base plugin
- Docker Compose one-click deployment
- Plugin system architecture
- OAuth 2.0 social login
- SMS verification code login
Contributions of any kind are welcome! Before submitting a PR, please:
- Fork this repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'feat: add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Create a Pull Request
- Backend code follows Rust community coding standards
- Frontend code uses ESLint + Prettier formatting
- Commit messages follow Conventional Commits specification
This project adopts a Apache 2.0 + Commercial License dual-licensing model.
Open Source Edition โ Includes all code from the qiluo framework (WeChat management, WeChat Pay, Alipay, etc., all in the codebase), but you need to configure certificates, integrate APIs, handle callbacks, etc. yourself. The code is complete; integration is up to you.
Commercial Edition โ Built on the open source edition with all integrations pre-configured. Install it and it works (payment collection, WeChat QR login, Webhook message receiving, etc.), plus dedicated technical support.
The core difference in one sentence: Open Source Edition is "source code" โ ; Commercial Edition is "out-of-the-box solution" ๐.
| Open Source | Commercial | |
|---|---|---|
| License | Apache 2.0 | Commercial License (EULA) |
| Price | Free | ยฅ499+ |
| Code | Fully open, all feature code visible | Built on open source + pre-integrated solutions |
| Positioning | Source code open, self-integrate | Out-of-the-box, pre-configured |
| Support | Community (Issues) | Dedicated technical support |
| Feature | Open Source | Commercial |
|---|---|---|
| Multi-Provider Management | โ | โ |
| Access Key Management | โ | โ |
| Chat Session Management | โ | โ |
| Chat History Archive | โ | โ |
| Conversation Sharing | โ | โ |
| Usage Statistics & Trend Charts | โ | โ |
| Model Distribution Analysis | โ | โ |
| VIP Plan Management | โ | โ |
| RAG Knowledge Base | โ Planned | โ Planned |
| Feature | Open Source | Commercial |
|---|---|---|
| VIP Plan Configuration | โ | โ |
| Manual Payment QR Code Upload | โ | โ |
| WeChat Pay Auto Integration | โ Out-of-the-box | |
| Alipay Auto Integration | โ Out-of-the-box | |
| Payment Callback Handling | โ Built-in | |
| Auto VIP Activation | โ Auto-activate on payment | |
| Order Management/Refund | โ Complete order system |
| Feature | Open Source | Commercial |
|---|---|---|
| Official Account Management | โ | โ |
| Custom Menu Setup | โ | โ |
| Auto Reply Rules | โ | โ |
| Message Records | โ | โ |
| WeChat User Management | โ | โ |
| WeChat Message (Webhook) | โ Built-in server listener | |
| WeChat QR Login | โ Pre-integrated | |
| WeChat Template Messages | โ Pre-integrated | |
| WeCom Integration | โ Not included | โ |
| Feature | Open Source | Commercial |
|---|---|---|
| RBAC Permission Management | โ | โ |
| JWT Authentication | โ | โ |
| Operation Audit Logs | โ | โ |
| Login Logs | โ | โ |
| CAPTCHA | โ | โ |
| OAuth 2.0 Social Login | โ | โ |
| SMS Login | โ | โ |
| IP Whitelist | โ | โ |
| Multi-Factor Authentication (MFA) | โ | โ |
| Feature | Open Source | Commercial |
|---|---|---|
| Department Management | โ | โ |
| Multi-Database Support | โ | โ |
| SaaS Multi-Tenant Isolation | โ | โ |
| Tenant Custom Domain | โ | โ |
| Custom Branding | โ | โ |
| Feature | Open Source | Commercial |
|---|---|---|
| Scheduled Tasks | โ | โ |
| Code Generator | โ | โ |
| Cache Management | โ | โ |
| Data Dashboard | โ Basic | โ Advanced |
| Batch Import/Export | โ Pre-integrated | |
| Auto Backup | โ Built-in solution | |
| One-Click Upgrade | โ | โ |
Legend: โ = Ready to use /
โ ๏ธ = Code included, needs configuration and development / โ = Not included
- โ Your tech team can handle WeChat/payment integration on their own
- โ Budget is limited and you want to validate product feasibility first
- โ You need deep UI or business logic customization
- โ You want to build your own product based on this project
- โ You want an out-of-the-box solution to save integration time
- โ You need WeChat Pay/Alipay auto integration
- โ You need advanced features like WeChat QR login
- โ You want dedicated technical support
- โ You're building a customer-facing SaaS platform
| License Type | Price | Suitable For | Benefits |
|---|---|---|---|
| Personal | ยฅ499 | Individual developers/small projects | Single domain + 1 year updates + community support |
| Enterprise | ยฅ1,999 | Companies/commercial projects | Single domain + perpetual license + 1 year tech support |
| Flagship | ยฅ4,999 | High traffic/multi-business | 3 domains + perpetual license + priority tech support |
| Source | ยฅ19,999 | Custom development/resale | Full source code + brand license + dedicated tech manager |
Open Source users upgrading to Commercial Edition: configurations and data are fully compatible โ seamless migration.
For detailed version comparison, see docs/marketing/comparison.md; pricing details at docs/marketing/pricing.md.
This project adopts a Apache 2.0 + Commercial License dual-licensing model:
- Open Source Edition โ Apache License 2.0 โ Completely free, commercial use allowed, modifiable, distributable (copyright notice must be retained)
- Commercial Edition โ See COMMERCIAL-LICENSE.md โ Additional advanced features + dedicated technical support
| Project | Description / ่ฏดๆ |
|---|---|
| QiLuo Admin | The underlying enterprise-grade Rust development framework (RBAC, WeChat management, code generator, etc.). QiLuo AI is built on top of it. / ๅบๅฑไผไธ็บง Rust ๅผๅๆกๆถ๏ผๆไพ RBACใๅพฎไฟก็ฎก็ใไปฃ็ ็ๆๅจ็ญๅ่ฝ๏ผQiLuo AI ๆๅปบไบๅ ถไธใ |
Thank you to all sponsors and contributors who support this project.
Special thanks to the following open-source projects:
- Rust
- Vue.js
- Axum
- Tokio
- Sea-ORM
- Element Plus
- Tailwind CSS
- QiLuo โ The underlying development framework
โญ If this project helps you, please give it a Star!









