A high-performance semantic memory system for AI agents that combines vector embeddings with knowledge graphs for precise, context-aware information retrieval.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install lightrag-memory
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install lightrag-memory using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
LightRAG Memory is a sophisticated long-term storage solution designed for autonomous AI entities. By leveraging the power of LightRAG, this skill moves beyond simple keyword matching, offering a hybrid approach that integrates traditional vector search with structured knowledge graph relationships. This architecture allows agents to understand context and entity connections far more effectively than standard text-based memory.
Using Openclaw Skills like LightRAG Memory significantly reduces token consumption. Instead of re-reading massive memory files on every request—which can easily exceed 30K tokens—this system retrieves only the most relevant 1-3K tokens. This makes agent operations faster, more cost-effective, and more contextually aware across long-running sessions and complex workflows.
To install this skill, navigate to the skill directory and install the necessary Python dependencies:
cd skills/lightrag-memory
pip install -r requirements.txt
Configure your environment by setting your API credentials. You can export these in your shell or use a .env file:
export OPENAI_API_KEY="your-key"
# Optional: Override the default OpenAI base URL
export OPENAI_BASE_URL="https://your-api-endpoint/v1"
Finally, initialize your memory by indexing your current workspace files:
python3 scripts/rag.py index
The system organizes memory data into a specialized storage directory, ensuring persistence and fast retrieval.
| Component | Technical Detail | Storage Location |
|---|---|---|
| Vector DB | JSON-based embeddings (1536 dim) | ~/.openclaw/workspace/lightrag_storage/ |
| Knowledge Graph | GraphML-formatted entities and relationships | ~/.openclaw/workspace/lightrag_storage/ |
| Source Tracking | Metadata linking text chunks to source files | Internal Index |
| State Management | Last-indexed timestamp for incremental updates | memory/lightrag-last-index.txt |
LIGHTRAG_WORKING_DIR environment variable to point to specific storage locations for different agent instances.Loading
A sophisticated orchestration framework designed to coordinate specialized AI agents through task decomposition, state management, and structured communication patterns.

A comprehensive scaffolding tool for building Model Context Protocol servers to extend AI agents with custom tools and data resources.

An automated system that converts raw ideas into structured agile tasks using a virtual Scrum team.

An intelligent A-share decision dashboard that transforms raw stock data into actionable AI-powered buy, sell, and hold signals.

A specialized AI assistant designed to streamline Git operations, resolve complex merge conflicts, and manage version control workflows.

A specialized automation tool for querying Uniqlo's Chinese API to find and report on discounted clothing items by category and size.








































