# 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
# 1. Installnpm install -g @mem0/cli # or: pip install mem0-cli
# 2. Sign up as an agent (replace `claude-code` with your name)
mem0 init --agent --agent-caller claude-code
# 3. Add a memory
mem0 add "I am using mem0"# 4. Search
mem0 search "am I using mem0"
LightRAG vs mem0 常见问题 (FAQ)
LightRAG 和 mem0 在开源协议与商用合规上有什么区别?
HKUDS/LightRAG 采用 MIT · 允许商用(宽松开源协议,允许商业使用、修改与私有化闭源分发(保留版权声明即可)。);mem0ai/mem0 采用 Apache-2.0 · 允许商用(宽松开源协议,允许商业使用、修改与私有化闭源分发(保留版权声明即可)。)。
2026 年 LightRAG 与 mem0 哪个社区增长更快?
按 RepoForAI 实时快照,LightRAG 总 Star 41,022(7日 +110),mem0 总 Star 70,036(7日 +498),近期增速由 mem0 领先。