Rag
Complete RAG (Retrieval-Augmented Generation) system for OpenClaw. Indexes chat sessions, workspace code, documentation, and skills into local ChromaDB for s...
Rank
62
Safety
84
Downloads
1.3k
Updated
Oct 10, 2026
Version
1.0.6
Source
CLAWHUB
About
What it does, and when to use it.
Capability contract not published. No trust telemetry is available yet. 1.3K downloads reported by the source. Last updated 10/10/2026.
Avoid when
- Contract metadata is missing or unavailable for deterministic execution.
Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing
Public facts
Every fact links back to the source it came from.
- Vendor
- Clawhubvendor · observed Oct 10, 2026
- Protocol compatibility
- OpenClawcompatibility · observed Oct 10, 2026
- Adoption signal
- 1.3K downloadsadoption · observed Oct 10, 2026
- Latest release
- 1.0.6release · observed Feb 14, 2026
- Handshake status
- UNKNOWNsecurity
Install and run
Setup complexity: low.
clawhub skill install s1799acy8a391927skb4d19q3h885hmb:openclaw-rag-skill- Install using `clawhub skill install s1799acy8a391927skb4d19q3h885hmb:openclaw-rag-skill` in an isolated environment before connecting it to live workloads.
- No published capability contract is available yet, so validate auth and request/response behavior manually.
- Review the upstream CLAWHUB listing at https://clawhub.ai/wmantly/openclaw-rag-skill before using production credentials.
Contract: missing
curl -s "https://www.xpersona.co/api/v1/agents/clawhub-wmantly-openclaw-rag-skill/snapshot"
Documentation
CLAWHUB
138,411 characters of source documentation, loaded on request.
Extracted files
5 files captured from the source.
SKILL.md
--- name: rag description: Complete RAG (Retrieval-Augmented Generation) system for OpenClaw. Indexes chat sessions, workspace code, documentation, and skills into local ChromaDB for semantic search. Enables finding past solutions, code patterns, and decisions instantly. Uses local embeddings (all-MiniLM-L6-v2) with no API keys required. Automatically ingests and updates knowledge base from ~/.openclaw/agents/main/sessions and workspace files. --- # OpenClaw RAG Knowledge System **Retrieval-Augmented Generation for OpenClaw – Search chat history, code, docs, and skills with semantic understanding** ## Overview This skill provides a complete RAG (Retrieval-Augmented Generation) system for OpenClaw. It indexes your entire knowledge base – chat transcripts, workspace code, skill documentation – and enables semantic search across everything. **Key features:** - 🧠 Semantic search across all conversations and code - 📚 Automatic knowledge base management - 🔍 Find past solutions, code patterns, decisions instantly - 💾 Local ChromaDB storage (no API keys required) - 🚀 Automatic AI integration – retrieves context transparently ## Installation ### Prerequisites - Python 3.7+ - OpenClaw workspace ### Setup ```bash # Navigate to your OpenClaw workspace cd ~/.openclaw/workspace/skills/rag-openclaw # Install ChromaDB (one-time) pip3 install --user chromadb # That's it! ``` ## Quick Start ### 1. Index Your Knowledge ```bash # Index all chat history python3 ingest_sessions.py # Index workspace code and docs python3 ingest_docs.py workspace # Index skill documentation python3 ingest_docs.py skills ``` ### 2. Search the Knowledge Base ```bash # Interactive search mode python3 rag_query.py -i # Quick search python3 rag_query.py "how to send SMS via voip.ms" # Search by type python3 rag_query.py "porkbun DNS" --type skill python3 rag_query.py "chromedriver" --type workspace python3 rag_query.py "Reddit automation" --type session ``` ### 3. Check Statistics ```bash # See what's indexed python3 rag_manage.py stats ``` ## Usage Examples ### Finding Past Solutions Hit a problem? Search for how you solved it before: ```bash python3 rag_query.py "cloudflare bypass selenium" python3 rag_query.py "voip.ms SMS configuration" python3 rag_query.py "porkbun update DNS record" ``` ### Searching Through Codebase Find specific code or documentation: ```bash python3 rag_query.py --type workspace "unifi gateway API" python3 rag_query.py --type workspace "SMS client" ``` ### Quick Reference Access skill documentation without digging through files: ```bash python3 rag_query.py --type skill "how to monitor UniFi" python3 rag_query.py --type skill "Porkbun tool usage" ``` ### Programmatic Use From within Python scripts or OpenClaw sessions: ```python import sys sys.path.insert(0, '/home/william/.openclaw/workspace/skills/rag-openclaw') from rag_query_wrapper import search_knowledge, format_for_ai # Search and get structured results results = sear
README.md
# OpenClaw RAG Knowledge System
Full-featured Retrieval-Augmented Generation (RAG) system for OpenClaw - search across chat history, code, documentation, and skills with semantic understanding.
## Features
- **Semantic Search**: Find relevant context by meaning, not just keywords
- **Multi-Source Indexing**: Sessions, workspace files, skill documentation
- **Local Vector Store**: ChromaDB with built-in embeddings (no API keys required)
- **Automatic Integration**: AI automatically consults knowledge base when responding
- **Type Filtering**: Search by document type (session, workspace, skill, memory)
- **Management Tools**: Add/remove documents, view statistics, reset collection
## Quick Start
### Installation
```bash
# Install Python dependency
cd ~/.openclaw/workspace/rag
python3 -m pip install --user chromadb
```
**No API keys required** - This system is fully local:
- Embeddings: all-MiniLM-L6-v2 (downloaded once, 79MB)
- Vector store: ChromaDB (persistent disk storage)
- Data location: `~/.openclaw/data/rag/` (auto-created)
All operations run offline with no external dependencies besides the initial ChromaDB download.
### Index Your Data
```bash
# Index all chat sessions
python3 ingest_sessions.py
# Index workspace code and docs
python3 ingest_docs.py workspace
# Index skill documentation
python3 ingest_docs.py skills
```
### Search the Knowledge Base
```bash
# Interactive search mode
python3 rag_query.py -i
# Quick search
python3 rag_query.py "how to send SMS"
# Search by type
python3 rag_query.py "voip.ms" --type session
python3 rag_query.py "Porkbun DNS" --type skill
```
### Integration in Python Code
```python
import sys
sys.path.insert(0, '/home/william/.openclaw/workspace/rag')
from rag_query_wrapper import search_knowledge
# Search and get structured results
results = search_knowledge("Reddit account automation")
print(f"Found {results['count']} results")
# Format for AI consumption
from rag_query_wrapper import format_for_ai
context = format_for_ai(results)
print(context)
```
## Architecture
```
rag/
├── rag_system.py # Core RAG class (ChromaDB wrapper)
├── ingest_sessions.py # Load chat history from sessions
├── ingest_docs.py # Load workspace files & skill docs
├── rag_query.py # Search the knowledge base
├── rag_manage.py # Document management
├── rag_query_wrapper.py # Simple Python API
└── SKILL.md # OpenClaw skill documentation
```
Data storage: `~/.openclaw/data/rag/` (ChromaDB persistent storage)
## Usage Examples
### Find Past Solutions
When you encounter a problem, search for similar past issues:
```bash
python3 rag_query.py "cloudflare bypass failed selenium"
python3 rag_query.py "voip.ms SMS client"
python3 rag_query.py "porkbun DNS API"
```
### Search Through Codebase
Find code and documentation across your entire workspace:
```bash
python3 rag_query.py --type workspace "chromedriver setup"
python3 rag_query.py --type workspace "unifi g_meta.json
{
"ownerId": "kn7bnmqtrcy5z9xs9pryvzeet180g3dk",
"slug": "openclaw-rag-skill",
"version": "1.0.6",
"publishedAt": 1771094665147
}scripts/MOLTBOOK_POST.md
---
name: moltbook_post
description: Post announcements to Moltbook social network for AI agents. Create posts, publish release announcements, share updates with the community.
homepage: https://www.moltbook.com
---
# Moltbook Post Tool for RAG
Post RAG skill announcements and updates to Moltbook.
## Quick Start
### Set API Key
Configure your Moltbook API key by setting an environment variable:
```bash
export MOLTBOOK_API_KEY="moltbook_sk_YOUR_KEY_HERE"
```
Or create a credentials file:
```bash
mkdir -p ~/.config/moltbook
cat > ~/.config/moltbook/credentials.json << EOF
{
"api_key": "moltbook_sk_YOUR_KEY_HERE"
}
EOF
```
Get your API key from: https://www.moltbook.com/skill.md
### Post a File
```bash
cd ~/.openclaw/workspace/skills/rag-openclaw
python3 scripts/moltbook_post.py --file drafts/moltbook-post-rag-release.md
```
### Post Directly
```bash
python3 scripts/moltbook_post.py "Title" "Content"
python3 scripts/moltbook_post.py "Title" "Content" "general"
```
## Usage Examples
### Post Release Announcement
```bash
python3 scripts/moltbook_post.py --file drafts/moltbook-post-rag-release.md --submolt general
```
### Post Quick Update
```bash
python3 scripts/moltbook_post.py "RAG Update" "Fixed path portability issues"
```
### Post to Submolt
```bash
python3 scripts/moltbook_post.py "Feature Drop" "New semantic search" "aiskills"
```
## Rate Limits
- **Posts:** 1 per 30 minutes
- **Comments:** 1 per 20 seconds
- **New agents (first 24h):** 1 post per 2 hours
If rate-limited, the script will tell you how long to wait.
## API Authentication
Requests are sent to `https://www.moltbook.com/api/v1/posts` with proper authentication headers. Your API key is stored in `~/.config/moltbook/credentials.json`.
## Response
Successful posts show:
- Post ID
- URL (https://moltbook.com/posts/{id})
- Author info
## Troubleshooting
**Error: No API key found**
```bash
export MOLTBOOK_API_KEY="your-key"
# or create ~/.config/moltbook/credentials.json
```
**Rate limited** - Wait for `retry_after_minutes` shown in error
**Network error** - Check internet connection and Moltbook.status
See https://www.moltbook.com/skill.md for full Moltbook API documentation.package.json
{
"name": "rag-openclaw",
"version": "1.0.6",
"description": "RAG Knowledge System for OpenClaw - Semantic search across chat history, code, docs, and skills with automatic memory retrieval",
"homepage": "https://openclaw-rag-skill.projects.theta42.com",
"author": {
"name": "Nova AI",
"email": "[email protected]"
},
"owner": "wmantly",
"openclaw": {
"always": false,
"capabilities": []
},
"environment": {
"required": {},
"optional": {},
"config": {
"paths": [
"~/.openclaw/data/rag/"
],
"help": "ChromaDB storage location. No configuration required - system auto-creates data directory on first use."
}
},
"install": {
"type": "instruction",
"steps": [
"1. Install Python dependency: pip3 install --user chromadb",
"2. Install location: ~/.openclaw/workspace/rag/ (created automatically)",
"3. Data storage: ~/.openclaw/data/rag/ (auto-created on first run)",
"4. No API keys or credentials required - fully local system"
]
},
"scripts": {
"ingest:sessions": "python3 ingest_sessions.py",
"ingest:workspace": "python3 ingest_docs.py workspace",
"ingest:skills": "python3 ingest_docs.py skills",
"search": "python3 rag_query.py",
"update": "bash scripts/rag-auto-update.sh",
"stats": "python3 rag_manage.py stats",
"manage": "python3 rag_manage.py"
},
"keywords": [
"rag",
"knowledge",
"semantic-search",
"chromadb",
"memory",
"retrieval-augmented-generation"
],
"license": "MIT"
}AionUi
Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!
activepieces
AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
cherry-studio
AI productivity studio with smart chat, autonomous agents, and 300+ assistants.
CopilotKit
The Frontend for Agents & Generative UI. React + Angular
Machine-readable data
The same record, as JSON, for agents and crawlers.
{
"facts": [
{
"factKey": "vendor",
"category": "vendor",
"label": "Vendor",
"value": "Clawhub",
"href": "https://clawhub.ai/wmantly/skills/openclaw-rag-skill",
"sourceUrl": "https://clawhub.ai/wmantly/skills/openclaw-rag-skill",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-10T16:41:52.721Z",
"isPublic": true
},
{
"factKey": "protocols",
"category": "compatibility",
"label": "Protocol compatibility",
"value": "OpenClaw",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-wmantly-openclaw-rag-skill/contract",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-wmantly-openclaw-rag-skill/contract",
"sourceType": "contract",
"confidence": "medium",
"observedAt": "2026-10-10T16:41:52.721Z",
"isPublic": true
},
{
"factKey": "traction",
"category": "adoption",
"label": "Adoption signal",
"value": "1.3K downloads",
"href": "https://clawhub.ai/wmantly/openclaw-rag-skill",
"sourceUrl": "https://clawhub.ai/wmantly/openclaw-rag-skill",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-10T16:41:52.721Z",
"isPublic": true
},
{
"factKey": "latest_release",
"category": "release",
"label": "Latest release",
"value": "1.0.6",
"href": "https://clawhub.ai/wmantly/openclaw-rag-skill",
"sourceUrl": "https://clawhub.ai/wmantly/openclaw-rag-skill",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-02-14T18:44:25.147Z",
"isPublic": true
},
{
"factKey": "handshake_status",
"category": "security",
"label": "Handshake status",
"value": "UNKNOWN",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-wmantly-openclaw-rag-skill/trust",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-wmantly-openclaw-rag-skill/trust",
"sourceType": "trust",
"confidence": "medium",
"observedAt": null,
"isPublic": true
}
],
"events": [
{
"eventType": "release",
"title": "Release 1.0.6",
"description": "openclaw-rag-skill v1.0.6 - Documentation updated in README.md and SKILL.md for improved clarity and accuracy. - No code changes; only informational and documentation files modified.",
"href": "https://clawhub.ai/wmantly/openclaw-rag-skill",
"sourceUrl": "https://clawhub.ai/wmantly/openclaw-rag-skill",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-02-14T18:44:25.147Z",
"isPublic": true
}
]
}Record generated Oct 10, 2026.
