# with uv (recommended)uv tool install "code-graph-rag[treesitter-full,ast-grep,semantic]"# or with pipx
pipx install "code-graph-rag[treesitter-full,ast-grep,semantic]"
# Install LightRAG Server as a tool using uv (recommended)uv tool install "lightrag-hku[api]"# Or using pip inside a virtual environment# python -m venv .venv# source .venv/bin/activate # Windows: .venv\Scripts\activate# pip install "lightrag-hku[api]"# Get the configuration template and edit it (see "Minimum .env Changes" below)curl -O https://raw.githubusercontent.com/HKUDS/LightRAG/main/env.example
cp env.example .env
lightrag-server
code-graph-rag vs LightRAG 常见问题 (FAQ)
code-graph-rag 和 LightRAG 在开源协议与商用合规上有什么区别?
vitali87/code-graph-rag 采用 MIT · 允许商用(宽松开源协议,允许商业使用、修改与私有化闭源分发(保留版权声明即可)。);HKUDS/LightRAG 采用 MIT · 允许商用(宽松开源协议,允许商业使用、修改与私有化闭源分发(保留版权声明即可)。)。
2026 年 code-graph-rag 与 LightRAG 哪个社区增长更快?
按 RepoForAI 实时快照,code-graph-rag 总 Star 5,465(7日 +20),LightRAG 总 Star 41,022(7日 +110),近期增速由 LightRAG 领先。