selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

LightRAG logo

Self-host LightRAG

v1.5.7

Graph-based RAG framework with server, WebUI and API

ReleaseOpen SourceMIT
uv tool install "lightrag-hku[api]"
Updated2 months ago
LanguagePython
Setup difficultyModerate
MobileResponsive
Stars
40 641
Port
9621 (LightRAG API server / WebUI; Docker Compose maps ${HOST:-0.0.0.0}:${PORT:-9621}:9621)
Docker
ghcr.io/hkuds/lightrag
LightRAG server WebUI showing document handling and query interfaceWebUI screen from the LightRAG server and WebUI guideKnowledge graph exploration view in the WebUIRAG query interface screen in the LightRAG WebUI

What is LightRAG?

Should you self-host LightRAG?

LightRAG scores 82/100 on selfhost.directory (how scoring works) and ranks #2 of 7 in RAG. It has 40 641 GitHub stars, +642 in the last 30 days.

It shipped 11 stable releases in the past year. The latest, v1.5.7, came out on 2 September 2026. New versions land roughly every 8 days.

Setup is moderate: expect some configuration beyond a single command. An official Docker image is available. It is MIT-licensed and written mostly in Python.

Its closest alternative on selfhost.directory is WeKnora (84/100, 37 107 stars). It scores higher overall, so compare the two before you pick. See LightRAG vs WeKnora side by side.

Features

  • Configurable text chunking strategies
  • Dual-level retrieval
  • Evaluation and tracing
  • Incremental indexing and document deletion
  • Interactive setup wizard
  • Knowledge-graph augmented retrieval
  • Multimodal document processing
  • Ollama-compatible API
  • Pluggable storage backends
  • Reranking
  • REST API
  • Role-specific LLM configuration
  • Source citations
  • User login and API-key protectionAccount setup is admin credentials in the environment only; a full account system is not implemented yet.
  • Web UI

LightRAG README

LightRAG Logo

🚀 LightRAG: Simple and Fast Retrieval-Augmented Generation

GitHub Trending Repository of the Day HKUDS/LightRAG | Trendshift Star History Rank

How to install LightRAG

Install LightRAG with Docker Compose

Environment variables
LLM_BINDING, LLM_MODEL, LLM_BINDING_API_KEY, EMBEDDING_BINDING, EMBEDDING_MODEL, PORT
git clone https://github.com/HKUDS/LightRAG.git
cd LightRAG
cp env.example .env  # Update the .env with your LLM and embedding configurations
# modify LLM and Embedding settings in .env
docker compose up

Uses ghcr.io/hkuds/lightrag:latest and publishes port 9621; data lives in ./data/rag_storage and ./data/inputs.

How to configure LightRAG

  • HOSTServer Configuration HOST binds to all network interfaces (0.0.0.0) by default. SECURITY: only expose 0.0.0.0 together with LIGHTRAG_API_KEY or AUTH_ACCOUNTS (see "Login and API-Key Configuration" below). Without authentication, a server on 0.0.0.0 grants anyone on the network full access to your documents and knowledge graph. Bind to 127.0.0.1 for local-only access.
  • PORT9621
  • WEBUI_TITLEMy Graph KBDeployment name shown in WebUI headers, on the login page, and as the browser tab title. Leave unset to keep the default 'LightRAG'.
  • WEBUI_DESCRIPTIONSimple and Fast Graph Based RAG System
  • WORKERS

LightRAG releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

More in RAG

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…