Hostinger Black Friday deal: VPS hosting up to 70% off
Ad

Try describing what you need:

LobeHub logo

LobeHub

★ 86.2k

A self-hosted alternative to Chatgpt

Apache License 2.0Open Source — No Paywall10 Containers — 10 containers — heavy hosting footprintDocker · SourceNo external DB3 documented maintainers

About

LobeHub is a platform for building and operating AI agents in a shared workspace. It presents itself as an "AI agent playground" for users and developers who want to organize agents, automate...

Community Ratings

No ratings yet
LobeHubScreenshot 2Screenshot 3Screenshot 4Screenshot 5Screenshot 6Screenshot 7

Features

  • agent management
  • agent builder
  • agent groups
  • pages for shared content work
  • scheduled runs
  • project organization
  • workspace collaboration
  • personal memory
  • structured editable memory
  • MCP-compatible plugins

Details

Last Updated
Nov 27, 2026
Created
May 21, 2023
Install Methods
dockersource
Requirements
OpenAI API key
Runtime / Stack
NodejsDocker
Privacy & Independence
Cloud: Optional
User Model
Multi-User
Deployment

Deployment: Docker Compose ✓10 Containers — heavy hosting footprintRuns as 10 containers

Run LobeHub yourself

Pick how much you want to manage.

3 more ways to host

Some links earn us a commission. netcup pays us one and is our preferred VPS host. Hostinger is a paid sponsor and is listed first.

Is this your project? Sponsor a listing

Run LobeHub with Docker Compose

Compose file from the LobeHub project repository.

10 services · infra: redis · 4 unclassified (paradedb, rustfs, rc, searxng)

no resource limits declared

needs persistent storage (8 volumes)

docker-compose/deploy/docker-compose.yml · @ 738f62d · scanned Nov 3, 2026

name: lobehub
services:
  lobe:
    image: lobehub/lobehub
    container_name: lobehub
    ports:
      - '${LOBE_PORT}:3210'
    depends_on:
      postgresql:
        condition: service_healthy
      redis:
        condition: service_healthy
      rustfs:
        condition: service_healthy
      rustfs-init:
        condition: service_completed_successfully
    environment:
      - 'KEY_VAULTS_SECRET=${KEY_VAULTS_SECRET}'
      - 'AUTH_SECRET=${AUTH_SECRET}'
      - 'DATABASE_URL=postgresql://postgres:${POSTGRES_PASSWORD}@postgresql:5432/${LOBE_DB_NAME}'
      - 'ES_REINDEX_STATE_DIR=/app/.elasticsearch-reindex'
      - 'INTERNAL_APP_URL=http://localhost:3210'
      - 'S3_ENDPOINT=${S3_ENDPOINT}'
      # S3_ENDPOINT is opened by browsers; server-side S3 requests stay on the Compose network
      - 'S3_INTERNAL_ENDPOINT=http://rustfs:9000'
      - 'S3_BUCKET=${RUSTFS_LOBE_BUCKET}'
      - 'S3_ENABLE_PATH_STYLE=1'
      - 'S3_ACCESS_KEY=${RUSTFS_ACCESS_KEY}'
      - 'S3_ACCESS_KEY_ID=${RUSTFS_ACCESS_KEY}'
      - 'S3_SECRET_ACCESS_KEY=${RUSTFS_SECRET_KEY}'
      - 'LLM_VISION_IMAGE_USE_BASE64=1'
      - 'S3_SET_ACL=0'
      - 'SEARXNG_URL=http://searxng:8080'
      - 'REDIS_URL=redis://redis:6379'
      - 'REDIS_PREFIX=lobechat'
      - 'REDIS_TLS=0'
      # Gateway Mode: agent runs execute on the server and stream to the browser
      # through the gateway service below. The browser-facing AGENT_GATEWAY_URL
      # comes from .env; server-to-gateway traffic stays on the Compose network.
      - 'ENABLE_AGENT_GATEWAY=1'
      - 'AGENT_GATEWAY_INTERNAL_URL=http://gateway:8787'
      - 'AGENT_GATEWAY_SERVICE_TOKEN=${GATEWAY_SERVICE_TOKEN:-}'
      - 'DEVICE_GATEWAY_SERVICE_TOKEN=${GATEWAY_SERVICE_TOKEN:-}'
    env_file:
      - .env
    volumes:
      - 'fts-search-reindex-state:/app/.elasticsearch-reindex'
    restart: always
    networks:
      - lobe-network

  # Single-instance LobeHub gateway (https://github.com/lobehub/lobehub-gateway):
  # - 8787 agent gateway: relays Gateway Mode runs to browsers over WebSocket,
  #   so AGENT_GATEWAY_URL in .env must be reachable from the browser.
  # - 8788 device gateway: routes tool calls to devices joined with
  #   `lh connect --gateway <url>`.
  # State is kept in memory: runs in flight are lost when this container restarts.
  gateway:
    image: ghcr.io/lobehub/lobehub-gateway:0.5.0
    container_name: lobe-gateway
    ports:
      - '${AGENT_GATEWAY_PORT:-8787}:8787'
      - '${DEVICE_GATEWAY_PORT:-8788}:8788'
    environment:
      - 'SERVICE_TOKEN=${GATEWAY_SERVICE_TOKEN:-}'
      # Public key only: the private JWKS_KEY stays in the lobe container
      - 'JWKS_PUBLIC_KEY=${JWKS_PUBLIC_KEY:-}'
      - 'LOBE_API_BASE_URL=http://lobe:3210'
    restart: always
    networks:
      - lobe-network

  postgresql:
    image: paradedb/paradedb:latest-pg17
    container_name: lobe-postgres
    # Optional: Remove or change these ports if:
    # - You don't need external database access
    # - The ports conflict with other services on your host
    ports:
      - '5432:5432'
    volumes:
      - './data:/var/lib/postgresql/data'
    # Keep the image's default preload list: its first-start bootstrap creates the pg_cron
    # extension and aborts initialization when pg_cron is missing from this list.
    command: ['postgres', '-c', 'shared_preload_libraries=pg_search,pg_cron,pg_stat_statements']
    environment:
      - 'POSTGRES_DB=${LOBE_DB_NAME}'
      - 'POSTGRES_PASSWORD=${POSTGRES_PASSWORD}'
    healthcheck:
      # Probe over TCP: during first-time initialization the image runs a temporary server that
      # only listens on the Unix socket, so a socket probe reports ready while LobeHub's TCP
      # connections are still refused.
      test: ['CMD-SHELL', 'pg_isready -U postgres -h 127.0.0.1']
      interval: 5s
      timeout: 5s
      retries: 5
      # TCP stays closed until initialization finishes, which can outlast the retries above
      start_period: 60s
    restart: always
    networks:
      - lobe-network

  redis:
    image: redis:7-alpine
    container_name: lobe-redis
    # Optional: Remove or change these ports if:
    # - You don't need external access
    # - The ports conflict with other services on your host
    ports:
      - '6379:6379'
    command: redis-server --save 60 1000 --appendonly yes
    volumes:
      - 'redis_data:/data'
    healthcheck:
      test: ['CMD', 'redis-cli', 'ping']
      interval: 5s
      timeout: 3s
      retries: 5
    restart: always
    networks:
      - lobe-network

  rustfs:
    image: rustfs/rustfs:latest
    container_name: lobe-rustfs
    ports:
      - '${RUSTFS_PORT}:9000'
      - '${RUSTFS_ADMIN_PORT}:9001'
    # Optional: Remove or change RUSTFS_ADMIN_PORT if:
    # - You don't need external access to rustfs control panel
    # - The ports conflict with other services on your host
    # - RUSTFS_PORT is necessary only if you need to upload images to conversations. (avatar uploads are not affected)
    # - Uploading images to conversations requires a browser-accessible S3_ENDPOINT.
    environment:
      - RUSTFS_CONSOLE_ENABLE=true
      - RUSTFS_ACCESS_KEY=${RUSTFS_ACCESS_KEY}
      - RUSTFS_SECRET_KEY=${RUSTFS_SECRET_KEY}
    volumes:
      - 'rustfs-data:/data'
    healthcheck:
      test: ['CMD-SHELL', 'wget -qO- http://localhost:9000/health >/dev/null 2>&1 || exit 1']
      interval: 5s
      timeout: 3s
      retries: 30
    command:
      ['--access-key', '${RUSTFS_ACCESS_KEY}', '--secret-key', '${RUSTFS_SECRET_KEY}', '/data']
    networks:
      - lobe-network

  rustfs-init:
    image: rustfs/rc:latest
    container_name: lobe-rustfs-init
    depends_on:
      rustfs:
        condition: service_healthy
    volumes:
      - ./bucket.config.json:/bucket.config.json:ro
    entrypoint: /bin/sh
    # Browsers upload through presigned URLs on the RustFS origin, so the bucket also needs a CORS rule
    command: -c ' set -eux; echo "S3_ACCESS_KEY=${RUSTFS_ACCESS_KEY}, S3_SECRET_KEY=${RUSTFS_SECRET_KEY}"; rc --version; rc alias set rustfs "http://rustfs:9000" "${RUSTFS_ACCESS_KEY}" "${RUSTFS_SECRET_KEY}"; rc ls rustfs || true; rc mb "rustfs/lobe" --ignore-existing; rc admin info cluster rustfs || true; rc anonymous set-json "/bucket.config.json" "rustfs/lobe"; printf "%s" "<CORSConfiguration><CORSRule><AllowedOrigin>*</AllowedOrigin><AllowedMethod>GET</AllowedMethod><AllowedMethod>PUT</AllowedMethod><AllowedMethod>HEAD</AllowedMethod><AllowedHeader>*</AllowedHeader><ExposeHeader>ETag</ExposeHeader><MaxAgeSeconds>3600</MaxAgeSeconds></CORSRule></CORSConfiguration>" | rc bucket cors set "rustfs/lobe" -; '
    restart: 'no'
    networks:
      - lobe-network

  searxng:
    image: searxng/searxng
    container_name: lobe-searxng
    volumes:
      - './searxng-settings.yml:/etc/searxng/settings.yml'
    environment:
      - 'SEARXNG_SETTINGS_FILE=/etc/searxng/settings.yml'
    restart: always
    networks:
      - lobe-network
    env_file:
      - .env

  # ---------------------------------------------------------------------------
  # Optional: self-hosted single-node Elasticsearch for LobeHub full-text search.
  # Disabled by default; LobeHub keeps using PostgreSQL pg_search unless you opt in.
  # Enable with COMPOSE_PROFILES in .env and follow the docs:
  # https://lobehub.com/docs/self-hosting/advanced/full-text-search
  #
  # Resources: the JVM heap below (ES_JAVA_OPTS, default 1 GB) should stay at or
  # below half of the memory available to this container; plan for at least 2 GB
  # RAM for Elasticsearch alone. Linux hosts must set vm.max_map_count=262144.
  #
  # The image is built locally from ./elasticsearch/Dockerfile: the pinned
  # official image plus the required analysis-icu plugin. The build runs once,
  # the first time the profile is enabled, and needs outbound access to
  # docker.elastic.co / artifacts.elastic.co; afterwards container recreation
  # works offline. To upgrade, change the version in both `image` and
  # `build.args` below, then run `docker compose up -d --build`.
  # ---------------------------------------------------------------------------
  elasticsearch:
    image: lobehub-elasticsearch-icu:9.5.2
    build:
      context: ./elasticsearch
      args:
        ELASTICSEARCH_VERSION: 9.5.2
    container_name: lobe-elasticsearch
    # Only this profile starts the bundled node. The reindex and sync services
    # below deliberately do not depend on it, so the same services also work
    # against an external Elasticsearch (ES_URL + ES_API_KEY in .env) without
    # building or starting a local node.
    profiles: [elasticsearch]
    # Intentionally no `ports`: security is disabled, so this node must stay
    # reachable only from services on lobe-network. Never publish 9200.
    environment:
      - 'discovery.type=single-node'
      - 'cluster.name=lobehub'
      - 'xpack.security.enabled=false'
      - 'xpack.ml.enabled=false'
      - 'ingest.geoip.downloader.enabled=false'
      - 'ES_JAVA_OPTS=${ES_JAVA_OPTS:--Xms1g -Xmx1g}'
    volumes:
      - 'elasticsearch-data:/usr/share/elasticsearch/data'
    ulimits:
      nofile:
        soft: 65536
        hard: 65536
    healthcheck:
      test:
        [
          'CMD-SHELL',
          "curl -fsS 'http://localhost:9200/_cluster/health?wait_for_status=yellow&timeout=5s' >/dev/null || exit 1",
        ]
      interval: 10s
      timeout: 10s
      retries: 30
      start_period: 90s
    restart: always
    networks:
      - lobe-network

  # One-off full backfill / status command for the optional Elasticsearch path.
  # It never starts with `docker compose up`; run it explicitly, for example:
  #   docker compose run --rm fts-search-reindex --status
  #   docker compose run --rm fts-search-reindex --apply --fresh-run --yes
  # The checkpoint lives in the fts-search-reindex-state volume so a later run
  # with the same arguments (without --fresh-run) resumes instead of restarting.
  # With the bundled node, start the stack with `docker compose up -d --wait`
  # first so Elasticsearch is healthy before the backfill connects to it.
  fts-search-reindex:
    image: lobehub/lobehub
    profiles: [elasticsearch-reindex]
    depends_on:
      postgresql:
        condition: service_healthy
    environment:
      - 'DATABASE_URL=postgresql://postgres:${POSTGRES_PASSWORD}@postgresql:5432/${LOBE_DB_NAME}'
      - 'ES_REINDEX_STATE_DIR=/app/.elasticsearch-reindex'
    env_file:
      - .env
    volumes:
      - 'fts-search-reindex-state:/app/.elasticsearch-reindex'
    # The script lives in the entrypoint so that arguments given to
    # `docker compose run fts-search-reindex ...` replace only `--status`.
    entrypoint: ['/bin/node', '/app/fts-search-elasticsearch-reindex.cjs']
    command: ['--status']
    restart: 'no'
    networks:
      - lobe-network

  # Long-running incremental sync worker for the optional Elasticsearch path.
  # Start it only after the backfill status is ready_for_incremental_sync by
  # adding the elasticsearch-sync profile to COMPOSE_PROFILES in .env. It keeps
  # draining the PostgreSQL Outbox into Elasticsearch and exits non-zero (and is
  # restarted) when it hits failed or dead-letter work, so check its logs. It
  # also exits and is restarted until the Elasticsearch target is reachable.
  fts-search-sync:
    image: lobehub/lobehub
    container_name: lobe-fts-search-sync
    profiles: [elasticsearch-sync]
    depends_on:
      postgresql:
        condition: service_healthy
    environment:
      - 'DATABASE_URL=postgresql://postgres:${POSTGRES_PASSWORD}@postgresql:5432/${LOBE_DB_NAME}'
      - 'FTS_SEARCH_SYNC_ENABLED=true'
      - 'MIGRATION_DB=1'
    env_file:
      - .env
    entrypoint: ['/bin/node', '/app/fts-search-elasticsearch-sync.cjs']
    command: ['--max-steps=8', '--interval-seconds=${FTS_SEARCH_SYNC_INTERVAL_SECONDS:-15}', '--yes']
    # On SIGTERM the worker finishes only the current drain step (not all 8) and
    # then exits, so the grace period has to cover one step: its bulk request may
    # wait up to 20s plus database settlement. Compose's default of 10s would
    # SIGKILL mid-step and leave claims to expire into retries.
    stop_grace_period: 2m
    restart: always
    networks:
      - lobe-network

networks:
  lobe-network:
    driver: bridge

volumes:
  redis_data:
    driver: local
  rustfs-data:
    driver: local
  # Only created when an Elasticsearch profile is enabled.
  elasticsearch-data:
    driver: local
  fts-search-reindex-state:
    driver: local

This file may be out of date. Check the LobeHub documentation for current setup steps.

Track your self-hosted stack

Bookmark software to try, rate tools you've used, and keep your collection in one place.

Metadata extracted from README on Oct 31, 2026

Alternatives to LobeHub

Lobe Chat logo

Lobe Chat

86.2k
LobeHub is a self-hostable AI agent platform for organizing, creating, and collaborating with multi-agent workflows.
Artificial IntelligenceAI InterfacesSelf Hosting Solutions+3
6 Containers
Details
Sim Studio logo

Sim Studio

30.2k
An open-source platform for building AI agents and orchestrating agentic workflows with integrations, LLMs, and vector databases.
Automation ToolsArtificial IntelligenceAI Tooling+4
Details
Flowise logo

Flowise

55.6k
Flowise is a visual tool for building AI agents.
Self Hosting SolutionsAI AgentsAI RAG Systems+3
Single Container
Details
AnythingLLM logo

AnythingLLM

68.7k
An all-in-one AI application for chatting with documents, building AI agents, and running local or cloud LLM workflows.
Artificial IntelligenceAutomation ToolsGenerative AI+7
Single Container
Details
Dify.ai logo

Dify.ai

162.0k
An open-source platform for building, testing, and operating LLM-powered applications with workflows, RAG, agents, and observability.
Low Code DevelopmentSelf Hosting SolutionsAutomation Tools+7
36 ContainersOpen CoreFOSS with Issues
Details
MindsDB logo

MindsDB

39.9k
Minds Platform is a general-purpose AI workspace for knowledge workers to automate multi-step tasks and build internal AI tools.
Database ManagementArtificial IntelligenceAI Agents+4
Open Core
Details
LibreChat logo

LibreChat

47.6k
LibreChat is a self-hosted AI chat platform that unifies major AI providers in a ChatGPT-like interface.
Artificial IntelligenceAI InterfacesPermissive License+4
5 Containers
Details
Langflow logo

Langflow

157.0k
Langflow is a platform for building and deploying AI-powered agents and workflows with a visual builder, API deployment, and MCP server support.
Low Code DevelopmentAutomation ToolsModel Context Protocol+2
10 Containers
Details
LibreChat logo

LibreChat

47.6k
LibreChat is a self-hosted AI chat platform that unifies major AI providers in a ChatGPT-like interface.
Artificial IntelligenceAI InterfacesLocal LLMs+2
6 Containers
Details
AutoGPT logo

AutoGPT

188.2k
AutoGPT is a platform for creating, deploying, and managing continuous AI agents that automate complex workflows.
Artificial IntelligenceAutomation ToolsPermissive License+4
13 ContainersOpen Core
Details
odysseus logo

odysseus

96.0k
Odysseus is a self-hosted AI workspace for chat, agents, research, documents, email, notes, calendar, and local model workflows.
Artificial IntelligenceAI AgentsAI Interfaces+3
4 Containers
Details

Related Software

Agenta logo

Agenta

4.9k
Agenta is an open-source LLMOps platform for building production-grade LLM applications with prompt management, evaluation, and observability.
Artificial IntelligenceGenerative AIPermissive License+4
Details
omnara logo

omnara

3.5k
Omnara is an open-source managed agent platform for running AI agents on any model and any machine, with built-in tools, secrets, permissions, and streaming.
AI AgentsAI ToolingPlatform as a Service+3
10 ContainersFully FOSS
Details
n8n logo

n8n

212.3k
n8n is a platform for building and deploying AI agents and workflow automations using a visual canvas, custom code, and integrations.
Automation ToolsPermissive LicenseLow Code Development+5
Single ContainerOpen CoreNot FOSS
Details
OpenHands logo

OpenHands

94.4k
An AI-driven development platform with a software agent SDK, CLI, local GUI, and hosted cloud offering.
Artificial IntelligenceAI Coding AssistantAI Agents+2
Single ContainerOpen Core
Details
collie logo

collie

1.7k
ColliePWA is a self-hosted mobile PWA for driving terminal AI agents like Claude Code, Codex, and OpenCode from a phone.
Mobile terminalsSelf Hosting SolutionsRemote Access+3
Details
hermes-agent logo

hermes-agent

266.4k
Hermes Agent is a self-improving AI agent with a built-in learning loop, terminal UI, and messaging gateway for chatting and automating work across platforms.
Artificial IntelligenceAI AgentsAI Coding Assistant+2
2 Containers
Details
NanoClaw logo

NanoClaw

31.2k
An AI assistant that runs agents in isolated containers and can be customized through Claude Code skills.
Claws & ClankersAI AgentsAI Coding Assistant+2
Details
buzz logo

buzz

37.8k
Buzz is a self-hostable workspace where humans and AI agents collaborate in shared rooms, with messages, workflows, and code events recorded in a signed event log.
Self Hosting SolutionsCustom CommunicationsKnowledge Management+2
7 Containers
Details
IronClaw logo

IronClaw

12.7k
A secure personal AI assistant that runs with local data storage, sandboxed tools, and multiple interaction channels.
Artificial IntelligenceClaws & ClankersAI Agents+3
Details
onecli logo

onecli

3.7k
OneCLI is an open-source platform for running sandboxed AI agents for teams, with centralized credential injection and policy enforcement.
AI AgentsSecret ManagementModel Context Protocol+1
2 ContainersOpen Core
Details