lobehub
БесплатноБез исполняемых скриптовНе проверенDeploys and configures LobeHub (formerly LobeChat), an open-source AI chat and agent workspace with accounts, saved conversations, agents, a knowledge base…
от TerminalSkills★ 221 звезда на GitHubОб этом скилле
LobeHub — Self-Hosted AI Chat and Agent Workspace
Overview
LobeHub (the project formerly called LobeChat; the repository is lobehub/lobehub) is a web workspace where people chat with many model providers, build agents and keep a knowledge base. The self-hosted "server database" edition is a Next.js app in the Docker image lobehub/lobehub that listens on port 3210. It needs:
- PostgreSQL with the
pgvectorandpg_searchextensions (the docs use theparadedb/paradedb:latest-pg17image); - S3-compatible storage for uploads (the Compose stack ships RustFS; Cloudflare R2 or MinIO also work);
- secrets:
KEY_VAULTS_SECRET,AUTH_SECRETandJWKS_KEY(accounts use Better Auth, so there is no shared access code in this version); - model provider keys as environment variables.
The image runs database migrations itself on every start. An older image, lobehub/lobe-chat, stopped at tag 1.143.3; use lobehub/lobehub for new installs. This skill is for deploying and operating the service, not for clicking through the chat UI.
Instructions
Option A: official Docker Compose stack
The recommended route is the upstream Compose stack (LobeHub, gateway, PostgreSQL, Redis, RustFS, SearXNG). The project's helper script setup.sh downloads the Compose files, generates every secret and fills .env. Download the copy from the release tag, check its SHA-256 (computed from the v2.3.1 file; recompute it when you move to a newer tag), read it, then run it. The script itself fetches the Compose files from the repository's main branch:
mkdir lobehub && cd lobehub
curl -fsSL -o setup.sh https://raw.githubusercontent.com/lobehub/lobehub/v2.3.1/docker-compose/setup.sh
echo "837b5acfcfc2000d464838050595f3b3322282bc7ec41c4a3e8589213ff73a4f setup.sh" | sha256sum -c - # v2.3.1 copy
less setup.sh # review before running
bash setup.sh -l en # interactive: local mode, port mode or domain mode
docker compose up -d
docker compose logs -f lobe # the service container is named "lobehub"; the compose service is "lobe"
Modes asked by the script: local (reachable only from this machine, the default), port (plain http on a LAN or public IP) and domain (https behind a reverse proxy, one host for the app, one for RustFS and one for the gateway). The script needs openssl and either curl or wget, and uses Node.js (or the lobehub/lobehub image) to create the JWKS_KEY.
Without the script, fetch docker-compose.yml and .env from docker-compose/deploy/ (.env.example) in the repository and replace the placeholders in .env yourself: KEY_VAULTS_SECRET and AUTH_SECRET (openssl rand -base64 32 each), GATEWAY_SERVICE_TOKEN (openssl rand -hex 32), JWKS_KEY and its public half JWKS_PUBLIC_KEY, POSTGRES_PASSWORD, RUSTFS_SECRET_KEY, and the three URLs APP_URL, S3_ENDPOINT and AGENT_GATEWAY_URL as the browser sees them.
Bind every port to localhost
The shipped Compose file publishes 3210, 5432, 6379, the RustFS ports and the gateway ports on all interfaces. Edit the ports: entries so the host side starts with 127.0.0.1:, for example '127.0.0.1:${LOBE_PORT}:3210', and delete the 5432:5432 and 6379:6379 mappings (the file's own comments say they are optional). Put a reverse proxy such as Caddy or nginx in front for remote access; the gateway domain needs WebSocket upgrades. Browsers must be able to reach S3_ENDPOINT (RustFS) and AGENT_GATEWAY_URL, so these two cannot stay on localhost for remote users.
Option B: one container plus your own Postgres
This is the smallest working set, checked with image lobehub/lobehub:2.3.1. First create the secrets in an env file. The JWKS_KEY is an RS256 key set; the docs page environment-variables/auth has a generator, or use Node.js:
node -e 'const c=require("crypto");const {privateKey}=c.generateKeyPairSync("rsa",{modulusLength:2048});console.log("JWKS_KEY="+JSON.stringify({keys:[{...privateKey.export({format:"jwk"}),alg:"RS256",kid:c.randomBytes(8).toString("hex"),use:"sig"}]}))' > lobehub.env
cat >> lobehub.env <<EOF
APP_URL=http://127.0.0.1:3210
KEY_VAULTS_SECRET=$(openssl rand -base64 32)
AUTH_SECRET=$(openssl rand -base64 32)
DATABASE_URL=postgres://postgres:${PG_PASSWORD}@lobehub-pg:5432/postgres
S3_ACCESS_KEY_ID=${S3_ACCESS_KEY_ID}
S3_SECRET_ACCESS_KEY=${S3_SECRET_ACCESS_KEY}
S3_ENDPOINT=${S3_ENDPOINT}
S3_BUCKET=lobe
EOF
chmod 600 lobehub.env
PG_PASSWORD and the S3 variables come from the shell: the user creates the bucket and access key in their S3 provider. Then start Postgres and LobeHub on one Docker network:
docker network create lobehub-net
docker run -d --name lobehub-pg --network lobehub-net \
-e POSTGRES_PASSWORD="$PG_PASSWORD" -v lobehub-pgdata:/var/lib/postgresql/data \
paradedb/paradedb:latest-pg17 \
-c shared_preload_libraries=pg_search,pg_cron,pg_stat_statements
docker run -d --name lobehub --network lobeh
Установить lobehub в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл lobehub?
Deploys and configures LobeHub (formerly LobeChat), an open-source AI chat and agent workspace with accounts, saved conversations, agents, a knowledge base and many model providers. Use when a user asks to self-host LobeHub or LobeChat, run the lobehub/lobehub Docker image, set up Postgres, S3 and Better Auth for it, add OpenAI, Anthropic or OpenRouter keys through environment variables, restrict sign-ups, or update an existing instance.
Как установить скилл lobehub?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл lobehub запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub