Free Personal AI Hub: Docker LobeChat Guide

Free Personal AI Hub: Docker LobeChat Guide

Published: 2025-02-14
Author: DP
Duration: 16:26
Views: 4
Support Content
## 1. Introduction This video demonstrates the complete process of installing the Docker version of LobeChat on Synology 7.2.x system to build a private free AI aggregation tool platform, including installation, testing, advanced operations, external network access, and other aspects. Disclaimer: Released with DP_IT videos, free to use. Any resale or commercial activities are strictly prohibited. If someone sold this to you, please request a refund. Website: https://dpit.lib00.com ## 2. Resource Links Used in the Video > 20250621 - Due to continuous link deletions on Baidu Pan and the time-consuming nature of constantly replacing links, it will no longer be used. Thank you for understanding. > Quark Netdisk may delete Docker image files. If deleted, please use other cloud storage services. > Download addresses for various materials used: Quark Netdisk: https://pan.quark.cn/s/26627945db3f Xunlei Cloud: https://pan.xunlei.com/s/VOTGVsrusIogzEaRAw2feez1A1?pwd=nxc9 UC Netdisk: https://drive.uc.cn/s/24cb1d9a168b4 Google Drive: https://drive.google.com/drive/folders/1pCh7dFeEc1W54X6wfJuSphvr7FCulGbE ## 3. Commands Used in the Video > 3.1 [Demo Only, Not Usable] Simple Docker Run Command docker run -d -p 3210:3210 \ #1. Port -e OPENAI_API_KEY=sk-xxxx \ #2. OpenAI/Other platform key -e ACCESS_CODE=dpit2025 \ #3. Password --name lobe-chat \ #4. Docker container name, can be changed lobehub/lobe-chat:1.53.8 #5. Docker image name > 3.2 [Demo Only, Not Usable] Docker Run Command with Proxy docker run -d -p 3210:3210 \ -e OPENAI_API_KEY=sk-xxxx \ -e OPENAI_PROXY_URL=https://api-proxy.com/v1 \ #6. Set proxy here if using a relay -e ACCESS_CODE=dpit2025 \ --name lobe-chat \ lobehub/lobe-chat:1.53.8 > 3.3 Docker Network Create Command (Paired with 3.4) docker network create --subnet=172.18.0.0/16 eeLan > 3.4 [Usable] Command Used in Video (with model specification + network isolation) docker run -d -p 3210:3210 --network eeLan --ip 172.18.0.12 --name ee-lobe-chat \ -e OPENAI_API_KEY=sk-dpitxxxxxxxxxxxx \ -e OPENAI_PROXY_URL=https://api-proxy.com/v1 \ -e ACCESS_CODE=dpit2025 \ -e CUSTOM_MODELS=gpt-4o,gpt-4o-mini,o1-preview,o1-mini,claude-3-5-sonnet \ lobehub/lobe-chat:1.53.8 > 3.5 Nginx Configuration File Update Commands //Verify configuration file is correct docker exec ee-nginx-1.27.3 nginx -t //Restart docker container docker exec ee-nginx-1.27.3 service nginx restart
Summary Content
# Free Personal AI Hub: Docker LobeChat Guide ## 📋 Overview This video provides a **complete LobeChat Docker deployment tutorial**, teaching you how to set up a private AI aggregation platform on your Synology NAS. LobeChat is an open-source AI conversation platform that supports integration with multiple third-party AI services (such as ChatGPT, Claude, DeepSeek, Qianwen, etc.), allowing you to use various AI models in a unified interface. --- ## 🎯 Key Points ### **Why Choose LobeChat?** - **Private Deployment**: Complete data control and privacy protection - **Free & Open Source**: Software is free, only pay for API usage - **Multi-Model Support**: Access multiple AI providers from one platform - **Flexible Access**: Supports both local and remote access ### **Deployment Method** The video demonstrates the **simplified deployment** (without database): - No user registration/login required - Simple configuration with minimal dependencies - Ready to use immediately, ideal for personal use --- ## 🛠️ Detailed Deployment Steps ### **Step 1: Preparation** 1. **Download Required Files** (from dpit.lib00.com): - Docker image file (version 1.53.8, latest as of Feb 14, 2025) - Nginx reverse proxy config file (optional, for HTTPS) 2. **Obtain API Key**: - Get from OpenAI or third-party proxy services - Note: Most quality API services are paid 3. **Domain Setup** (optional, for remote access): - Configure DDNS dynamic domain resolution - Recommended tools: iKuai OS or DDNS-GO ### **Step 2: Import Docker Image** 1. Upload the `.tar` image file to your Synology NAS 2. Open Container Manager → Images → Action → Import 3. Select the uploaded image file to complete import ### **Step 3: Configure and Run Container** **Basic Run Command Example:** ```bash docker run -d \ -p 3210:3210 \ -e OPENAI_API_KEY=your_api_key \ -e ACCESS_CODE=DPIT2025 \ --name lobechat \ lobechat:1.53.8 ``` **Recommended Configuration (with network isolation and custom models):** ```bash # Create isolated network (enhanced security) docker network create --subnet=172.18.0.0/16 eeLan # Run container docker run -d \ -p 3210:3210 \ -e OPENAI_API_KEY=your_api_key \ -e OPENAI_PROXY_URL=your_proxy_url/v1 \ -e ACCESS_CODE=DPIT2025 \ -e CUSTOM_MODELS=gpt-4o-mini,claude-3 \ --network eeLan \ --ip 172.18.0.12 \ --name lobechat \ lobechat:1.53.8 ``` **Important Parameters:** - `3210`: Access port (customizable) - `ACCESS_CODE`: Access password (strongly recommended to change) - `OPENAI_PROXY_URL`: Proxy service URL (optional) - `CUSTOM_MODELS`: Custom model list - `--network` & `--ip`: Network isolation config (security enhancement) ### **Step 4: Local Network Access Test** - Access URL: `http://NAS_IP:3210` - First access requires password entry - Verify AI conversation functionality ### **Step 5: Configure Remote Access (Optional)** **Option 1: HTTP Direct Access** 1. Configure port forwarding on router (e.g., iKuai): external port 3210 → NAS IP:3210 2. Ensure DDNS domain resolution works 3. Access: `http://your-domain.com:3210` **Option 2: HTTPS Secure Access (Recommended)** 1. Prepare SSL certificate 2. Configure Nginx reverse proxy: - Modify provided config template - Set domain and certificate paths - Configure upstream server to `172.18.0.12:3210` 3. Upload config file to Nginx directory 4. Reload Nginx: ```bash # Check configuration nginx -t # Reload configuration nginx -s reload ``` 5. Map Nginx HTTPS port on router (e.g., 55102 → 443) 6. Access: `https://your-domain.com:55102` --- ## 🔒 Security Recommendations 1. **Strong Password**: Must change default `ACCESS_CODE` 2. **Network Isolation**: Use dedicated Docker network to isolate from other containers 3. **HTTPS Access**: Strongly recommended for remote access 4. **Port Management**: Don't expose unnecessary ports to public internet 5. **API Key Protection**: Safeguard your API keys --- ## 💡 Usage Tips - **Role Customization**: Create different AI roles for different purposes - **Model Selection**: Choose appropriate models based on task complexity (e.g., GPT-4o-mini for cost-effectiveness) - **Proxy Services**: Using domestic proxy services can improve speed and stability - **Multi-Scenario Application**: Use AI assistance for work, study, and daily life --- ## 📊 Cost Breakdown - **Software Cost**: Free and open-source - **API Fees**: Pay-per-use, varies by model - **Note**: "A paid experience worth investing in" - paid APIs offer better performance --- ## 🔧 Troubleshooting If you encounter issues, check: 1. Docker image properly imported 2. API Key validity 3. Network configuration correctness 4. Port availability and mapping 5. Nginx config file syntax --- ## 🎓 Related Tutorials Author's referenced videos: - Nginx reverse proxy detailed tutorial - iKuai OS DDNS configuration guide - Docker network isolation setup --- ## 📝 Summary With this tutorial, you can build: - ✅ Fully private AI conversation platform - ✅ Multi-model AI aggregation tool - ✅ Accessible both locally and remotely - ✅ Personal AI assistant with data security and control --- ## SEO Keywords LobeChat deployment, Docker AI tools, private AI platform, ChatGPT self-hosted, Synology NAS AI, AI aggregation platform, DeepSeek tutorial, Claude deployment, Docker tutorial, Nginx reverse proxy, HTTPS configuration, self-hosted AI assistant, open-source AI tools, NAS Docker, AI proxy service
Recommended
Claude Code with DeepSeek v3.1 API Tutorial
Claude Code with DeepSeek v3.1...
06:04 | 10

How to integrate DeepSeek v3.1 API into Claude Cod...

Starsector 0.98 Chinese 97%+ v0.2.2 Final Test
Starsector 0.98 Chinese 97%+ v...
04:02 | 12

Starsector Online Tools Website (https://sst.lib00...

HomeBox Free Speed Test Tool Docker on Synology 7.2
HomeBox Free Speed Test Tool D...
10:31 | 9

Based on Synology DSM 7.2.x, a complete video tuto...

View HDD SMART Info on Synology DSM 7.2.1 Tutorial
View HDD SMART Info on Synolog...
12:19 | 19

How to use the command line to check hard drive SM...