Xpersona
O

OpenClaw Ollama Memory

CLAWHUB · Unverified

Set up local semantic memory search in OpenClaw using Ollama + nomic-embed-text. Free, private, offline-capable. Replaces cloud embedding APIs (OpenAI, Gemin... Skill: OpenClaw Ollama Memory Owner: djc00p Summary: Set up local semantic memory search in OpenClaw using Ollama + nomic-embed-text. Free, private, offline-capable. Replaces cloud embedding APIs (OpenAI, Gemin... Tags: latest:1.1.0 Version history: v1.1.0 | 2026-03-31T02:04:31.636Z | user Add multilingual model alternatives: nomic-embed-text-v2-moe (100+ languages, MoE) and embeddinggemma (Google Gemma-based, 100+ l

62
Rank
84
Safety
1.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17akx17qd32yxnr1065qq0kdd83h2c3:openclaw-ollama-memory
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-djc00p-openclaw-ollama-memory/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

17,276 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: openclaw-ollama-memory
description: "Set up local semantic memory search in OpenClaw using Ollama + nomic-embed-text. Free, private, offline-capable. Replaces cloud embedding APIs (OpenAI, Gemini) with a locally-running model. Trigger phrases: ollama memory, local embeddings, private memory search, offline memory, free embeddings, nomic-embed-text."
metadata: {"clawdbot":{"emoji":"🧠","requires":{"bins":["ollama","curl"]},"os":["linux","darwin","win32"]}}
---

# OpenClaw Ollama Memory

Local semantic memory search for OpenClaw using Ollama — free, private, no API key required.

## Quick Start

### 1. Install & Run Ollama

Download from https://ollama.ai, then pull the embedding model:

```bash
ollama pull nomic-embed-text
```

Verify Ollama is running:

```bash
curl http://127.0.0.1:11434/api/tags
```

### 2. Configure OpenClaw

Edit `~/.openclaw/openclaw.json` and add under `agents.defaults.memorySearch`:

```json
{
  "agents": {
    "defaults": {
      "memorySearch": {
        "provider": "ollama",
        "model": "nomic-embed-text:latest",
        "remote": {
          "baseUrl": "http://127.0.0.1:11434"
        }
      }
    }
  }
}
```

### 3. Restart OpenClaw

```bash
openclaw gateway restart
```

## Key Points

- **Ollama must be explicit** — use `provider: "ollama"`, not `"openai"`. OpenClaw doesn't auto-detect Ollama.
- **No API key needed** — runs locally, fully offline.
- **nomic-embed-text** — 274MB model, fast, accurate, free.
- **baseUrl format** — `http://127.0.0.1:11434` (no `/v1` suffix, no trailing slash).

## Next Steps

- See `references/config-reference.md` for advanced tuning (hybrid search, MMR, temporal decay, extra paths).
- See `references/troubleshooting.md` for common errors and fixes.

_meta.json

{
  "ownerId": "kn75k4jwpn9qgy3pk38e93gkt982zqmg",
  "slug": "openclaw-ollama-memory",
  "version": "1.1.0",
  "publishedAt": 1774922671636
}

references/config-reference.md

# Configuration Reference

## Minimal Working Config

```json
{
  "agents": {
    "defaults": {
      "memorySearch": {
        "provider": "ollama",
        "model": "nomic-embed-text:latest",
        "remote": {
          "baseUrl": "http://127.0.0.1:11434"
        }
      }
    }
  }
}
```

## Full Config with All Options

```json
{
  "agents": {
    "defaults": {
      "memorySearch": {
        "provider": "ollama",
        "model": "nomic-embed-text:latest",
        "fallback": "local",
        "enabled": true,
        "remote": {
          "baseUrl": "http://127.0.0.1:11434"
        },
        "query": {
          "hybrid": {
            "enabled": true,
            "vectorWeight": 0.7,
            "textWeight": 0.3,
            "mmr": {
              "enabled": false,
              "lambda": 0.7
            },
            "temporalDecay": {
              "enabled": false,
              "halfLifeDays": 30
            }
          }
        },
        "extraPaths": []
      }
    }
  }
}
```

## Alternative Models

| Model | Size | Languages | Notes |
|-------|------|-----------|-------|
| `nomic-embed-text:latest` | 274MB | English | Default recommendation — fast, accurate |
| `nomic-embed-text-v2-moe` | ~300M | 100+ | Multilingual MoE, SoTA for its size, Matryoshka embeddings |
| `embeddinggemma` | ~300M | 100+ | Google Gemma-based, requires Ollama v0.11.10+, state-of-the-art for size |

Pull an alternative:
```bash
ollama pull nomic-embed-text-v2-moe
# or
ollama pull embeddinggemma
```

Then update `openclaw.json`:
```json
{
  "memorySearch": {
    "provider": "ollama",
    "model": "nomic-embed-text-v2-moe",
    "remote": { "baseUrl": "http://127.0.0.1:11434" }
  }
}
```

> **Note for `nomic-embed-text-v2-moe`:** Add query prefixes for best results — `"search_query: your query"` for searches, `"search_document: your text"` for indexed content.

---

## Config Options

### Core

| Key | Default | Description |
|-----|---------|-------------|
| `provider` | auto | Must be `"ollama"` — not auto-detected |
| `model` | provider default | `"nomic-embed-text:latest"` recommended |
| `fallback` | `"none"` | Fallback provider if Ollama fails (e.g. `"local"`) |
| `enabled` | `true` | Set `false` to disable memory search entirely |
| `remote.baseUrl` | — | Ollama API base: `http://127.0.0.1:11434` |

### Hybrid Search (BM25 + Vector)

| Key | Default | Description |
|-----|---------|-------------|
| `query.hybrid.enabled` | `true` | Combine vector + keyword search |
| `query.hybrid.vectorWeight` | `0.7` | Weight for semantic similarity (0–1) |
| `query.hybrid.textWeight` | `0.3` | Weight for BM25 keyword match (0–1) |

### MMR Diversity Re-ranking

Prevents returning near-duplicate results.

| Key | Default | Description |
|-----|---------|-------------|
| `query.hybrid.mmr.enabled` | `false` | Enable MMR re-ranking |
| `query.hybrid.mmr.lambda` | `0.7` | 0 = max diversity, 1 = max relevance |

### Temporal Decay (Recency Boost)

Boosts newer memori

references/troubleshooting.md

# Troubleshooting

## `getaddrinfo ENOTFOUND http`

**Cause:** Either a double `http://http://` prefix in `baseUrl`, or `provider` is set to something other than `"ollama"`.

**Fix:**
- Verify `provider` is exactly `"ollama"` (not `"openai"`)
- Verify `baseUrl` is exactly `http://127.0.0.1:11434` — single `http://` prefix, no `/v1`, no trailing slash

**Wrong:**
```json
{ "provider": "openai", "remote": { "baseUrl": "http://http://127.0.0.1:11434/v1/" } }
```

**Right:**
```json
{ "provider": "ollama", "remote": { "baseUrl": "http://127.0.0.1:11434" } }
```

---

## `provider: "openai"` with Ollama baseUrl Doesn't Work

**Cause:** OpenClaw's `openai` provider uses a different request format than Ollama's native API.

**Fix:** Must use `provider: "ollama"` explicitly. Ollama is supported but not auto-detected — setting `"openai"` won't route to Ollama even with the correct baseUrl.

---

## Empty Results

**Cause:** Memory search is working but the index is empty or not yet built.

**Fix:** This is normal on first run. The index builds over time as you use OpenClaw. Check that Ollama is running and the model is loaded:

```bash
curl http://127.0.0.1:11434/api/tags
```

---

## Ollama Not Running

**Symptom:** `curl http://127.0.0.1:11434/api/tags` times out or returns connection refused.

**Fix:**
```bash
ollama serve
```

Or on macOS, start the Ollama app from Applications.

---

## Model Not Found

**Symptom:** Ollama reports the model doesn't exist.

**Fix:**
```bash
ollama pull nomic-embed-text
```

Verify it downloaded:
```bash
ollama list
```

---

## Config Changes Not Taking Effect

**Fix:** Restart the OpenClaw gateway after any config change:

```bash
openclaw gateway restart
```

---

## Memory Search Still Using Old Provider After Restart

**Cause:** OpenClaw may cache the provider selection at startup.

**Fix:** Full gateway stop and start:

```bash
openclaw gateway stop
openclaw gateway start
```

skill-card.md

## Description:

Set up local semantic memory search in OpenClaw using Ollama and nomic-embed-text as a free, private, offline-capable replacement for cloud embedding APIs.

This skill is ready for commercial/non-commercial use.

## Publisher:

[djc00p](https://clawhub.ai/user/djc00p)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and engineers use this skill to configure OpenClaw memory search with a locally running Ollama embedding model, including model selection, base URL settings, search tuning, and restart steps.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Adding extra memory paths can index private notes or shared Markdown documents.

Mitigation: Only add directories that are intentionally approved for OpenClaw memory search, and review absolute and recursive paths before enabling extraPaths.

Risk: Misconfigured provider or base URL settings can route requests incorrectly or prevent local Ollama search from working.

Mitigation: Use provider "ollama" with baseUrl "http://127.0.0.1:11434" and verify Ollama is running before restarting OpenClaw.

## Reference(s):

- [Configuration Reference](references/config-reference.md)
- [Troubleshooting](references/troubleshooting.md)
- [Ollama](https://ollama.ai)
- [ClawHub Skill Page](https://clawhub.ai/djc00p/skills/openclaw-ollama-memory)

## Skill Output:

**Output Type(s):** [Guidance, Markdown, Shell commands, Configuration]

**Output Format:** [Markdown with JSON configuration snippets and shell command blocks]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Produces local setup and troubleshooting guidance; it does not require cloud embedding API keys.]

## Skill Version(s):

1.1.0 (source: server release evidence)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to OpenClaw Ollama Memory and adjacent AI workflows.