LobeHub (formerly LobeChat) is an open source AI workspace that puts dozens of AI models, agents, MCP tools, knowledge bases and memory behind one polished chat interface.
You can use it in three ways: the hosted web app at app.lobehub.com, the desktop and mobile apps, or your own self-hosted copy running in Docker on a PC or server.
The self-hosted version can connect to cloud providers such as OpenAI, Anthropic and Gemini as well as to local models through Ollama, so your chats can stay entirely on your own hardware.
This guide explains what LobeHub does, how to self-host it with the official Docker Compose script, how to connect Ollama and cloud API keys, how to add agents and MCP servers from the marketplace, and how to fix the most common setup problems.
It follows the official LobeHub documentation as of November 2026.
- What: an open source AI chat and agent workspace with 40+ model providers, MCP, knowledge bases and memory.
- Fastest start: use the web app at
app.lobehub.comor download the desktop app. - Self-host:
bash <(curl -fsSL https://lobe.li/setup.sh) -l en, thendocker compose up -d. - Open:
http://localhost:3210. Storage (RustFS) runs on port 9000. - Ollama: set
OLLAMA_ORIGINS="*", then add it under Settings > AI Providers > Ollama. - Windows: self-hosting needs WSL 2 with Docker.
What LobeHub Does
LobeHub began as LobeChat, one of the most popular open source ChatGPT-style interfaces. It has since grown into a full workspace for working with AI agents rather than a single chat box.
- Many providers in one place: OpenAI, Anthropic, Google Gemini, DeepSeek, OpenRouter, Ollama and 40+ others, switchable per chat.
- Agents: reusable assistants with their own system prompt, model, tools and knowledge, plus Agent Teams that work together.
- MCP and skills: install MCP servers and skills from the built-in marketplace to give agents web search, file and app access.
- Knowledge bases: upload files and chat with them through retrieval (RAG).
- Memory, Tasks, Pages and Channels: long-term memory, scheduled agent work, documents and shared spaces.
- Multimodal: image input, image generation, text-to-speech and speech-to-text with supporting models.
Hosted, Desktop or Self-Hosted?
| Option | Best for | Notes |
|---|---|---|
| Web app (app.lobehub.com) | Trying it in two minutes | Sign up and use it in the browser; no setup |
| Desktop and mobile apps | Daily use on one machine or phone | Download from lobehub.com/downloads |
| Self-hosted Docker | Privacy, local models, teams | You run the database and storage yourself |
| Vercel and other cloud hosts | Quick public demos | The docs warn of a 10 second function timeout and no WebSocket on Vercel, so long agent tasks can fail |
If your goal is to chat with local models privately, self-hosting is the right choice. The rest of this guide focuses on it.
Self-Host LobeHub With Docker Compose
The official setup script downloads a ready Docker Compose stack: the LobeHub app, PostgreSQL for data, Redis, RustFS (an S3-compatible store for uploaded files), SearXNG for web search and an Agent Gateway.
Before you start
- Docker and Docker Compose installed. On Windows, use Docker Desktop with the WSL 2 backend and run the commands inside a WSL 2 Linux terminal.
- Ports 3210, 9000, 9001, 8787 and 8788 free on the machine.
- A few GB of free disk space for the images and database.
Install steps
- Create a folder and enter it:
mkdir lobehub && cd lobehub - Run the setup script in English:
bash <(curl -fsSL https://lobe.li/setup.sh) -l en - Pick a deployment mode when asked. Local (the default) is for using LobeHub on the same machine. Port exposes it on your network by IP and port. Domain is for a public server behind a reverse proxy with your own domain.
- Start the stack:
docker compose up -d - Open
http://localhost:3210and create your account. LobeHub uses Better Auth for sign-in. - Note the RustFS console at
http://localhost:9000. Its user isadminand its password is generated by the script and saved in the folder’s configuration.
To watch the app start and catch errors, run docker logs -f lobehub.
Keep the generated .env and Compose files safe. They hold the database password, storage keys and auth secrets. When you upgrade to a new release, read the release notes, because recent versions changed the gateway settings in .env.
Add Cloud Model Providers
- Open Settings (your avatar menu) and go to AI Providers.
- Pick a provider such as OpenAI, Anthropic, Google or OpenRouter.
- Paste your API key. Change the API proxy address only if you use a gateway or a compatible endpoint.
- Click Check to test the connection, then enable the models you want in the model list.
- Start a new chat and pick the model from the model switcher at the top.
API keys belong to you and are billed by each provider. If you only need one OpenAI-compatible endpoint, a single OpenRouter key gives access to many models through one account.
Connect Local Models With Ollama
LobeHub talks to Ollama directly from your browser in client request mode, so Ollama must accept cross-origin requests. Set OLLAMA_ORIGINS before you connect.
| Where Ollama runs | How to allow LobeHub |
|---|---|
| macOS app | launchctl setenv OLLAMA_ORIGINS "*", then restart Ollama |
| Linux (systemd) | sudo systemctl edit ollama, add Environment="OLLAMA_HOST=0.0.0.0" and Environment="OLLAMA_ORIGINS=*", then reload and restart |
| Windows | Add a user environment variable OLLAMA_ORIGINS with the value *, then quit and restart Ollama |
| Docker | Start the container with -e OLLAMA_ORIGINS="*" |
- Pull a model in Ollama first, for example
ollama pull qwen3. Our Ollama commands cheat sheet lists the common ones. - In LobeHub open Settings > AI Providers > Ollama.
- Leave the address as Ollama’s default,
http://127.0.0.1:11434, if Ollama runs on the same PC as your browser. Otherwise enter the other machine’s IP. - Turn on client request mode for a local Ollama, then click Check.
- Fetch the model list, enable your models and pick one in a new chat.
New to Ollama? Start with our Ollama guide, which covers install, models and GPU settings.
Agents, MCP Servers and Skills
Create an agent
- Click New Agent (or open the Discover marketplace to start from a community agent).
- Give it a name and a system prompt that explains its job, style and limits.
- Choose its default model and settings such as temperature.
- Attach knowledge bases and tools (MCP servers or skills) it should use.
- Save and chat. Each agent keeps its own conversations.
Add MCP servers
The marketplace lists MCP servers you can install with a click, and you can add your own by command or URL. MCP is what lets an agent search the web, read files, query a database or use apps. For ideas, see our list of the best MCP servers.
Only install MCP servers you trust. A local server runs commands on the machine, and a remote one sees whatever data you send it.
Knowledge Bases and Memory
- Knowledge bases: upload PDFs, documents and notes. Files are stored in RustFS/S3 and indexed in PostgreSQL so agents can retrieve relevant passages.
- Memory: LobeHub can remember facts and preferences across chats. Review and delete memories in settings if it stores something you do not want.
- Pages: long documents you write with AI help and share with agents.
For a heavier, document-first workflow, compare it with AnythingLLM, which is built around workspaces of documents.
LobeHub vs Open WebUI vs AnythingLLM
| Point | LobeHub | Open WebUI | AnythingLLM |
|---|---|---|---|
| Focus | Agent workspace with a polished UI | Self-hosted ChatGPT-style UI, Ollama first | Chat with documents, workspaces |
| Easiest start | Web or desktop app | One Docker container | Desktop app |
| Self-host stack | App, PostgreSQL, Redis, S3, search | Single container (optional extras) | Single app or container |
| MCP and marketplace | Built-in marketplace for agents, MCP and skills | Tools and functions | Agent skills and MCP |
| Best for | People who want many providers and agents in one place | Simple private chat with local models | Private document Q&A |
If you only want a light chat UI for Ollama, our Open WebUI setup guide is a simpler path. For building automated workflows rather than chatting, see Dify.
Troubleshooting
| Problem | Fix |
|---|---|
| Page at port 3210 will not load | Run docker compose ps and docker logs -f lobehub; wait for the database to finish starting |
| “Port is already allocated” | Free ports 3210, 9000, 9001, 8787 and 8788, or change them in the Compose file |
| Ollama check fails with a CORS or network error | Set OLLAMA_ORIGINS="*" and restart Ollama; confirm http://127.0.0.1:11434 opens in the browser |
| Ollama on another PC not reachable | Set OLLAMA_HOST=0.0.0.0 on that PC and allow port 11434 in its firewall |
| File uploads fail | Check that RustFS is running on port 9000 and the S3 settings in .env match |
| Long agent tasks time out on Vercel | Vercel limits functions to about 10 seconds; self-host with Docker instead |
| Setup script fails on Windows | Run it inside a WSL 2 terminal, not PowerShell |
| Broken after an upgrade | Compare your .env with the new release notes, especially the gateway settings |
FAQ
Is LobeHub the same as LobeChat?
Yes. LobeChat was renamed LobeHub as it grew from a chat interface into a workspace for agents, tools and memory.
Is LobeHub free?
The software is open source and free to self-host. The hosted web app at app.lobehub.com has its own usage plans (check its pricing page), and any cloud model API you connect is billed by that provider.
Can LobeHub run fully offline?
Mostly. A self-hosted copy with Ollama keeps chats and model calls on your network. Web search and cloud providers need the internet.
Which port does LobeHub use?
Port 3210 for the app. The self-hosted stack also uses 9000 and 9001 for storage and 8787 and 8788 for the Agent Gateway.
Does LobeHub support MCP?
Yes. You can install MCP servers from the built-in marketplace or add your own, and attach them to agents.
Do I need PostgreSQL?
For the self-hosted server version, yes. The official Compose stack includes PostgreSQL 14 or newer, so you do not install it separately.
Can I use LobeHub on Windows?
Yes. Use the desktop app, or self-host through Docker Desktop with WSL 2.



