An offline-first, highly secure local memory and vector search system for AI agents powered by Ollama and OpenClaw.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install ollama-openclaw-memory-guide
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 ollama-openclaw-memory-guide using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
This integration guides developers through deploying a fully local, self-hosted memory and vector search system using Ollama and OpenClaw. Designed specifically for restricted environments such as corporate Windows machines where running system installers or accessing cloud APIs is restricted, this skill enables offline embeddings, conversation logging, semantic chunking, and user profiling.
By leveraging the portable version of Ollama and the nomic-embed-text model, developers can set up high-performance L1/L2/L3 memory extraction pipelines. This ensures that your AI agents maintain long-term contextual continuity and robust information retrieval capabilities without relying on external APIs, ensuring absolute privacy and data sovereignty.
First, fetch the portable release of Ollama. We recommend downloading the ZIP directly or using a git-mirror:
# Download the portable ZIP into your temp folder
Invoke-WebRequest -Uri "https://www.modelscope.cn/models/ollama/ollama-windows/resolve/master/ollama-windows-amd64.zip" -OutFile "D:/temp/ollama-windows-amd64.zip"
Next, extract the binaries into the designated OpenClaw environment directories:
# Create the local directory structure
New-Item -ItemType Directory -Force -Path "$env:APPDATA/mx/openclaw-home/$env:USERNAME/.openclaw/tools/ollama"
New-Item -ItemType Directory -Force -Path "$env:APPDATA/mx/openclaw-home/$env:USERNAME/.openclaw/ollama-data/models"
# Extract the portable files
Expand-Archive -Path "D:/temp/ollama-windows-amd64.zip" -DestinationPath "$env:APPDATA/mx/openclaw-home/$env:USERNAME/.openclaw/tools/ollama" -Force
Configure your local models environment and run the background service:
$env:OLLAMA_MODELS = "$env:APPDATA/mx/openclaw-home/$env:USERNAME/.openclaw/ollama-data/models"
Set-Location "$env:APPDATA/mx/openclaw-home/$env:USERNAME/.openclaw/tools/ollama"
Start-Process -FilePath ".\\ollama.exe" -ArgumentList "serve" -WindowStyle Hidden
Pull the required vector embedding model:
.\\ollama.exe pull nomic-embed-text
Now, update your .openclaw/openclaw.json configuration file to point to your local Ollama instance and enable memory-tencentdb:
{
"agents": {
"defaults": {
"memorySearch": {
"enabled": true,
"provider": "openai",
"model": "nomic-embed-text",
"remote": {
"baseUrl": "http://localhost:11434/v1",
"apiKey": "ollama"
}
}
}
},
"plugins": {
"enabled": true,
"allow": ["mx", "memory-tencentdb"],
"load": {
"paths": ["D:/Users/YOUR_USERNAME/AppData/Roaming/mx/openclaw-home/YOUR_USERNAME/.openclaw/plugins/memory-tencentdb"]
},
"slots": {
"memory": "memory-tencentdb"
}
}
}
Finally, rebuild your vector index for existing archives:
pip install requests tqdm
python scripts/rebuild_vector_index.py --incremental
The local memory and vector search system organizes data in a clean directory hierarchy, caching vector embeddings alongside raw databases for optimized processing:
| Location / File Path | Data Format | Description |
|---|---|---|
.openclaw/tools/ollama/ |
Binary | Portable Ollama engine binaries |
.openclaw/ollama-data/models/ |
Model Blobs | Local nomic-embed-text weights and configuration |
workspace/memory/main.sqlite |
SQLite DB | Core database housing full-text search and embedding_cache |
memory/ontology/graph.jsonl |
JSONL | Dynamic, incrementally built knowledge graphs and relational maps |
memory-tdai/recall_checkpoint.json |
JSON | Tracking checkpoint status for active L1/L2 extraction runs |
rebuild_vector_index.py --incremental) optimizes execution time by scanning changes in your workspace and running only modified chunks.OLLAMA_KEEP_ALIVE variable allows developers to offload local neural models from memory during inactive periods, conserving host hardware resources.Loading
An automated, highly configurable news delivery agent for Openclaw Skills that retrieves, summarizes, and sends daily technology hotspots to various messaging channels with strict anti-hallucination rules.

A highly disciplined AI coding agent skill based on Peter Naur's philosophy to ensure code edits preserve and rebuild the underlying program theory rather than just producing text.

A versatile data generation utility that produces random values, unique identifiers, secure credentials, and placeholder content for development and testing.

An AI-powered social psychology and humanistic psychoanalysis toolkit based on Erich Fromm's seminal work to help users understand political conformity, authoritarianism, and the path to positive freedom.

A 60-second onboarding CLI tool to scaffold RustChain-participating AI agents with wallet and MCP wiring.

A CLI client for discovering, claiming, and delivering jobs on the RustChain RIP-302 decentralized agent job market.








































